Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

How to read Structure contents

Hi ABAP Gurus,

I am new to ABAP. Please bear with me. I am invoking a Function with Structure and it is returning results in a structure. I would like to read the results in a loop and populate Z-table. The Z-table also has few other fields and also this structure as include. I would really appreciate if someone give me the code.

My Z-table is as follows:

fld1

fld2

All the fields of structure HRMS_BIW_IO_OCCUPANCY (Include)

DATA: F_T_HRMS_BIW_IO_EMPLOYEE LIKE HRMS_BIW_IO_OCCUPANCY OCCURS 0. " Structure that needs to read

CALL FUNCTION 'HR_BIW_EXTRACT_IO_OCCUPANCY'

EXPORTING

I_INITFLAG = I_INITFLAG

I_UPDMODE = I_UPDMODE

I_MAXSIZE = I_MAXSIZE

I_PRIVATE_MODE = I_PRIVATE_MODE

I_BEGDA = I_S_TIMEINT-DATEFROM

I_ENDDA = I_S_TIMEINT-DATETO

TABLES

I_T_SELECT = G_T_SELECT

I_T_FIELDS = I_T_FIELDS

E_T_HRMS_BIW_IO_OCCUPANCY = F_T_HRMS_BIW_IO_EMPLOYEE.

I need to read structure F_T_HRMS_BIW_IO_EMPLOYEE in a loop and retrieve the values

Thanks.

Regards,

bw_newbie

Tags:
Former Member

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question