‎2008 May 02 12:13 PM
Hi All,
Can anyone plesase give me a sample Idoc program for transferring HR master data - e.g. to move data of infotype 0001 and 0002 or any other infotype - from one sap system to another through ALE???
Thanks for your support
‎2008 May 02 5:28 PM
Hi Ribhu Ahuja,
have a look on this................
Set Transfer of HR Master Data From External Systems
This section explains the settings that are necessary for the scenario Transfer of HR master data from external systems . You can find information on the business background in the section HR master data from external systems in "Application Help".
Procedure
The employee master data entered in an external system is stored as a sequential file in IDoc format. The external system starts the SAP System (for example, by means of a script) by using the C program startrfc and transmits the path, the name and the logical identifier of the IDoc as well as the name of the EDI function module EDI_DATA_INCOMING to EDI inbound processing. EDI inbound processing opens the file and processes the
IDoc. Once the file has been successfully transferred to the SAP System, it is then deleted.
Procedure in EDI:
In order to process the IDoc in HR, you have to call the HR function module IDOC_INPUT_HRSM_HIRE. The processing status of this IDoc is logged in EDI.
Procedure in HR:
1. The HR function module IDOC_INPUT_HRSM_HIRE writes the data to interface tables.
2. Depending on the Customizing settings, further processing of the data is triggered or you have to manually start it via the work list.
3. The processing of the data leads to personnel numbers being allocated in the HR system. These personnel numbers are sent back to the external system as an IDoc.
4. The processing status of the data is logged in the interface.
Customizing Distribution (ALE)
In order to ensure that the IDoc is imported and processed, you have to make the following settings:
1. Maintain logical systems
In this step you define logical systems for your external systems.
1. Maintain distribution model
In this step, include the following entries via Create message type:
Sender/Client: external logical system
Recipient/Server: HR System
Message type: HRSM_A
Sender/Client: HR System
Recipient/Server: external logical system
Message type: HRSM_B
1. Define port
In this step, define the following file ports:
a) File port for the import of HR master data
b) Data port for the export of allocated personnel numbers. Click on the pushbutton Outbound file and enter a path name and a function module in order to generate a file name.
1. Maintain partner profiles
In this step you set up the inbound and outbound parameters for the logical systems involved:
a) Declare the following outbound parameters for the external system.
Partner type: LS
Message type: HRSM_B
Recipient port: Port für Export der vergebenen Personalnummern
Output mode: Immediate transfer of IDocs
Do not start subsystem
Basic type: HRSM_B01
b) Declare the following inbound parameters for the HR system:
Partner type: LS
Message type: HRSM_A
Process code: HRSM
Processing: Immediate processing
Further notes
Latest supported HR System release: 4.5A
see this links for entire information
http://help.sap.com/saphelp_45b/helpdata/en/35/6f297b268b2239e10000009b38f984/content.htm
http://help.sap.com/saphelp_sm32/helpdata/en/0b/2a61f1507d11d18ee90000e8366fc2/content.htm
thankls
sagar
pls reward me points if usefull
‎2008 May 05 6:39 AM
Hi Ronnie,
Message type HRMD_A should suffice your requirements.
IDOcs for this Message type are create using Change pointers i.e. by using RBDMIDOC program.
These IDOCs are posted at receivers side using the Inbound FM IDOC_INPUT_HRMD.
Thanks
Shital
‎2011 Oct 21 5:04 PM
Hi Sagar Reddy and SDN forum
This message type it's working correctly in the system, but I need more infotypes, example IT0050, Is it possible?
What I need to add infotypes?
Thanks in advance.
Best regards.