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:
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'
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
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