its regarding idoc interface,try to help me.
i have a programRHALEINI and defined in Work Item WA00012 - "IDOC Extract for HR Master Data"
This IDoc will be created in SAP but not delivered to any external system.
The interface created in this work item will then read these IDOCs and the required fields will be identified and reformatted so that it can be processed by the FMS system.
Program RHALEINI is executed to create the IDocs for all employees. Refer to Work Item WA00012 - "IDOC Extract for HR Master Data
WI WA00012 will also provide Function Module Z_TP_INI_IDOCS to pull all the IDOCs needed to extract all of the employee data (latest employee extract).
The purpose of this interface program is to read all IDOCs created by program in WA00012 and map the required data into a flat file structure.
here to map i have header trailor and body data how to do this.
provide me solution asap with an example