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_INPUT_HRMD

Former Member
0 Likes
1,802

Hi,

We have a requirement to transfer personnel details from one client to another. We are using the inbound FM 'IDOC_INPUT_HRMD' for this purpose. So far, we are able to update existing records. How do we proceed when we need to transfer records for a PERNR that does not exist on the receiving client?

I understand that we need to put the Operation (Update Method) as 'I' to insert a new PERNR. What other infotype details are necessary to create a new Person id(PERNR) in the new client?Also, PERNR numbers are proposed automatically by the system. Is there any methode to bypass this functionality?

Thanks in advance!

Regards,

Nejuma Iqbal

9 REPLIES 9
Read only

Former Member
0 Likes
1,453

Resolved!

Read only

0 Likes
1,453

Hi Nejuma,

It would really be helpful if you could let me know as to how did you resolve this issue. I am facing a similar issue. I am creating the Employees using test tool WE19, when I enter the PERNR externally and keep the operation mode as 'U', the record gets created but the number range does not get updated.

I tried keeping this field empty and operation mode as 'I', so that the system woud itself apply a PERNR to it using the number but found out the IDOC is getting processed but there is no Employee record created.

Cheers!

Amit

Read only

Former Member
0 Likes
1,453

Hi Nejuma,

I'm also trying a sceanrio where i'm sending external data to create a employee record in R/3. The PERNNR field is externally set. Now in the receiving R/3 I get the status of idoc as 53, but the entries are not populated in the tables.

Also i don't get any document no. for that respective idoc. In partner profile I have specified the transaction code as pfal, which is using the function module "IDOC_INPUT_HRMD".

Plz help me out.Its urgent.

Read only

0 Likes
1,453

Hi Pragati,

Are you trying to send an Idoc via PFAL?.

Please check if you are sending data for Info types 0000, 0001, 0002, and also the corresponing PD object (HRP1001),i.e, both P and CP objects through PFAL.

From what I have understood, the above infotypes are necessary to create a new PERNR.

Regards,

Nejuma

Read only

0 Likes
1,453

Hi Nejuma,

Thanks for ur reply.

"the corresponing PD object (HRP1001),i.e, both P and CP objects through PFAL"

Can u please elaborate what exactly has to be done, bcoz no one from my team has used the pfal transaction earlier. We all r new to it, I will be thankfull if u give me the details. Is there some configuration to be doen in pfal transaction.

Also when i send the idoc to r/3 i have mapped few fields to constant.

plan version -01

object type - P

object id - 100007

Read only

0 Likes
1,453

Hi Pragati,

Go to table HRP1001 and give objid as 10007 (as in your example) and find out the CP object corresponding to this (SCLAS = CP).

The SOBID field corresponding to CP will be the CP object.

In PFAL, you need to first send the P object and then the CP object.

I assume your distribution model, RFC etc are in place.

Do let me know if this works for you. Also check if the Idoc created has data for the infotype 0000, 0001, 0002, 1001.

Regards,

Nejuma

Read only

0 Likes
1,453

Hi Nejuma,

I'm still struggling with the idoc. I have passed the value of plan version, obj type, id in the tag immediately after the E1PLOGI node and the sclass and the sobid in the E1P1001 node.

Can i use any value from the HRP1001 table, bcoz right now i'm using any random value.Is there any significance of these fields.

In we05 i get the status text as "HR: ALE inbound processing for HR master data"

Read only

0 Likes
1,453

Hi Pragati,

Try this :

Step 1 : Goto PFAL , plan version '01', Object Type 'P' and Object id '10007'.

Step 2 : Goto table HRP1001, enter OBJID '10007' and SCLAS ='CP' .

Pick the SOBID value corresponding to this selection.

Step 3 : Goto PFAL again, plan version '01', Object Type 'CP' and Object id as the value fetched in step 2.

"Can i use any value from the HRP1001 table, bcoz right now i'm using any random value.Is there any significance of these fields"

No, you cannot use any random value, you need to use the value fetched from HRP10001.

Hope this helps you!

Regards,

N

Read only

0 Likes
1,453

Hi Pragati/Nejuma,

I did all the steps in the last reply of Nejuma. But now in the receiver system I am getting the following error:

"Relationship starting from 01CP50000593 impossible - 01P 22222226 does not exist/is not active".

Moreover after doing PFAL for "P", there was no record created for employee in the receiver system, but IDOC succeded with "HR: ALE inbound processing for HR master data" message.

Any insights into this.

sanjeev