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

User Exit before receiving Idoc

Former Member
0 Likes
2,353

Hi all,

I would like to send Idoc from HR system to mini master of FI system.

The thing is, when I do message type HRMD_A, it's including all fields in IT0002, let's say I do not want to send SSN to FI system, so in that case, on FI system (receiving system) I need to manipulate IDOC segment for SSN field (PERID) before it's updating on mini master side (for example CLEAR SSN field). What user exit can do that?

Any thought? Thanks,

1 ACCEPTED SOLUTION
Read only

soumya_jose3
Active Contributor
0 Likes
1,626

Hi,

If you don't get any user exits, check if you can use the conversion rule of idoc to set the field to be cleared to a constant value.

Below are the steps.

1. Maintain conversion rule (BD62).

2. Assign the conversion rule to the message type (BD55).

3. Implement the conversion rule (BD79). ---> Here you can set the field value for SSN as a constant value. Then the outbound idoc will populate the constant value set here as SSN.

Regards,

Soumya.

Hi,

If you don't get any user exits, check if you can use the conversion rule of idoc to set the field to be cleared to a constant value.

Below are the steps.

1. Maintain conversion rule (BD62).

2. Assign the conversion rule to the message type (BD55).

3. Implement the conversion rule (BD79). ---> Here you can set the field value for SSN as a constant value. Then the outbound idoc will populate the constant value set here as SSN.

Regards,

Soumya.

4 REPLIES 4
Read only

Tamas_Hoznek
Product and Topic Expert
Product and Topic Expert
0 Likes
1,626

I suspect the inbound process code in your FI system will be the function module IDOC_INPUT_HRMD. There are several enhancement possibilities (CMOD and BAdI) in that function module, check those to see which one will be the best to edit the IDoc.

BAdI HRALE00INBOUND_IDOC or Customer-function 003 both look promising.

Read only

kesavadas_thekkillath
Active Contributor
0 Likes
1,626

Did you check badi IDOC_DATA_MAPPER,IDOC_COPY_MANAGE,IDOC_DATA_INSERT

Read only

soumya_jose3
Active Contributor
0 Likes
1,627

Hi,

If you don't get any user exits, check if you can use the conversion rule of idoc to set the field to be cleared to a constant value.

Below are the steps.

1. Maintain conversion rule (BD62).

2. Assign the conversion rule to the message type (BD55).

3. Implement the conversion rule (BD79). ---> Here you can set the field value for SSN as a constant value. Then the outbound idoc will populate the constant value set here as SSN.

Regards,

Soumya.

Read only

0 Likes
1,626

Thanks guys,

Soumya : I didnt know we can do that, I will try that out.

I found EXIT_SAPLRHA0_001 as an user exit that I can manipulate Idoc before it comes OUT. Not sure how to work with the Badi since I've never work with Badi

Edited by: Ben Boman on Apr 19, 2011 9:29 PM