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

how to trigger Idocs for HR Master data changes?

Former Member
0 Likes
3,034

Hi Guru's,

I have to send IDOC from SAP to Another system, my actual requirement is

1) Employee master data changes must be transferred from SAP to (Another SAP System) for all employee actions (termination, transfer, hire, rehire, paid leave, unpaid leave, military leave, etc).T code : PA30

2) Any change to the following employee master data items must be transferred from SAP to (Another SAP System, along with effective dates:

        a) Personnel Name b) Personnel Number c) Employee type (exempt, non-exempt, hourly) d)Employee Classification (full-time, part-time, agency temp, temp employee on payroll) ,and etc....


Please let me know what are the steps I have do to trigger IDOC . HRMD_A0 is basic idoc type , So where I have to fill this IDOC and how to trigger?


Thanks & Regards,

SRK



Hi Guru's,

I have to send IDOC from SAP to Another system, my actual requirement is

1) Employee master data changes must be transferred from SAP to (Another SAP System) for all employee actions (termination, transfer, hire, rehire, paid leave, unpaid leave, military leave, etc).T code : PA30

2) Any change to the following employee master data items must be transferred from SAP to (Another SAP System, along with effective dates:

        a) Personnel Name b) Personnel Number c) Employee type (exempt, non-exempt, hourly) d)Employee Classification (full-time, part-time, agency temp, temp employee on payroll) ,and etc....


Please let me know what are the steps I have do to trigger IDOC . HRMD_A0 is basic idoc type , So where I have to fill this IDOC and how to trigger?


Thanks & Regards,

SRK



5 REPLIES 5
Read only

former_member212005
Active Contributor
0 Likes
1,939

You will have to user change pointers for this.....

Search in SCN or Google for "PA30 + Change Pointers".....there is plenty of links available...

Read only

0 Likes
1,939

Hi Vineesh,

Thanks for your quick response, As I am new to ALE IDOC's I am getting confused .Can you briefly explain about change pointers?

One More question do we need to use any userexit to trigger idoc ?

Regards,

SRK

Read only

0 Likes
1,939

Not really....you will not require any userexit to trigger these changes.

To know about change pointers....i would recommend the SAP help page which is given below:

Change Pointer (Master Data Distribution) (SAP Library - IDoc Interface/ALE)

To briefly explain.....Change Pointers is a way in which SAP allows us to distribute Master data to different SAP system.

Initial Settings required are:

i.e. BD61 - where change pointers are activated generally

      BD50 - to activate message type for change pointers

The way it works is that there is a table which is filled....namely BDCP2 which will contain the entries which are to be transported using BD21 transaction.

For your requirement....I was able to find the below link of SCN which may be relevant

http://scn.sap.com/thread/368940

Read only

0 Likes
1,939

Hi Vineesh ,

Appreciate  your help , now I observed idoc's are triggering for this

1) I have activated message type in BD50 tcode (HRMD_A is checked ) .

2) Done changes in PA30 tcode.

3) Executed tcode BD21 with message type HRMD_A then I observed idoc are triggered.

Now my questions

1) if I want to validate data then where exactly I can validate .

2) if I have custom fields how can I populate that data into IDOC.? how can i make those fields are change pointers ?

Regards,

SRK

Read only

0 Likes
1,939

First of all please dont post duplicate threads for same query its against the rules.

Seconldy this function module MASTERIDOC_CREATE_SMD_HRMD is used to for sending IDOCS which internally calls RH_MASTER_IDOC_DISTRIBUTE_HRMD to send IDOCs

You can cross check by putting break point in these FM. Inside it BADI HRALE00OUTBOUND_IDOC is called. You can creat implementation of it and use method IDOC_DATA_FOR_RECEIVER_MODIFY to fill your custom segments OR Imlement customer exit EXIT_SAPLRHA0_001 to handle your validations and add custom segment(Easy solution)

Nabheet