2013 Dec 27 6:39 AM
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
2013 Dec 27 6:50 AM
You will have to user change pointers for this.....
Search in SCN or Google for "PA30 + Change Pointers".....there is plenty of links available...
2013 Dec 27 7:02 AM
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
2013 Dec 27 7:13 AM
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
2013 Dec 27 5:52 PM
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
2013 Dec 27 6:22 PM
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
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |