Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

IDoc

Former Member
0 Likes
566

hi all!

i am in inbound side of sap system i am not getting the personnel number(pernr)from xi system. In sap system i need to generate auto number sequence to pernr before the idoc is processed in inbound side.

but i am getting all the data related to HRMD_a06 idoctype.

give some logic i need to write in the FM.

idoc_input_hrmd.

thanks.

partha.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
541

Hi Partha,

Clone the inbound FM and take the parameters as same as in how SAP has given in standard one.

Before updating the personnel number use the FM <b>RH_GET_NEXT_NUMBER</b> for internal assignment. It will generate random numbers.

The other coding is same for updation. If u want u can use the FM <b>HR_INFOTYPE_OPERATION</b> for updation..

Thanks

Eswar

hi all!

i am in inbound side of sap system i am not getting the personnel number(pernr)from xi system. In sap system i need to generate auto number sequence to pernr before the idoc is processed in inbound side.

but i am getting all the data related to HRMD_a06 idoctype.

give some logic i need to write in the FM.

idoc_input_hrmd.

thanks.

partha.

2 REPLIES 2
Read only

Former Member
0 Likes
542

Hi Partha,

Clone the inbound FM and take the parameters as same as in how SAP has given in standard one.

Before updating the personnel number use the FM <b>RH_GET_NEXT_NUMBER</b> for internal assignment. It will generate random numbers.

The other coding is same for updation. If u want u can use the FM <b>HR_INFOTYPE_OPERATION</b> for updation..

Thanks

Eswar

Read only

Former Member
0 Likes
541

Try this FM also,

NUMBER_GET_NEXT