cancel
Showing results for 
Search instead for 
Did you mean: 

New Hire Action data in IDoc

Former Member
0 Kudos

Hello Experts,

I'm getting new hire data in an IDoc but IDoc doesn't have Personnel number . So I need to get a personnel number generated automatically. How can I achieve new hire action reading data from IDoc ? Can function module 'IDOC_INPUT_HRMD' generate personnel number automatically ?

I'd appreciate if you share your ideas in terms of how to do a hire action from IDoc.

Thanks.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Do you mean non-standard IDOC?

For example, standard IDOC type HRMD_A07 has personnel number (field PERNR) in every segment.

Cheers

Former Member
0 Kudos

Yeah each segment has personnel number but I wouldn't have that data in the IDoc. It needs to be generated by the system.

Yes It's a standard IDoc type HRMD_A06.

Edited by: Zaki_Hos on Jan 19, 2010 5:09 PM

ted_dinh
Active Contributor
0 Kudos

Does the outbound idoc get generated from SAP system ? If yes, then field pernr in the idoc segments should be populated already. The hiring action in SAP can only be sucessful if pernr is populated, and HR master data outbound idocs are created from this.

Former Member
0 Kudos

Ted,

It's not generated from SAP system so no personnel number in IDoc. It comes to our system as an Inbound IDoc.

ted_dinh
Active Contributor
0 Kudos

The outbound idoc from non-SAP system would have to have a pernr created prior to sending to receiving system. W/O the pernr populated in inbound idoc, how would SAP know which pernr to update if there's a change to an existing pernr in SAP ?

Former Member
0 Kudos

You can use your IDOC and update the values through the PA40 actions through LSMW (IDOC Method)

Your IDOC need not Pernr in it if the configuration is set in a manner to generate PERNR automatically

Answers (0)