‎2010 Jan 11 10:45 AM
Hi Gurus,
We are integrating SAP and a non SAP system using SAP PI. For this std IDOC is used(basic type) HRMD_A07 with message type HRMD_A using change pointers. The idoc is getting triggered but we are facing the following problems
1) Whenever a record is added or deleted using pa30 transaction, BDCP table is recording it as "U" (update)
in change id column instead of "I" (insert) or "D"(delete).We want the table to record the correct information in change id
2) When there are muliple actions on one infotype of an employee, the latest action is
gettting triggered in IDOC. For e.g for employee no. 1234 if i add 2 address in IT 6 and
then i delete one adress and then modify the remaining address; The idoc captures only
the last action (which is modification in the quoted example).
However we want the IDOC to record all the actions..(ie addition, deletion and then modification in case of the quoted example)
Please help us
Regards
‎2010 Jan 11 2:06 PM
Hi Simran,
Maintain change document item for the message type in Tcode BD52. along with field names . add one more item as 'KEY'
give your object name, ztable name and in field name give as 'KEY'. you will get all the addition, deletion and modify updates.
Regards,
krd prasad.
‎2010 Jan 12 5:00 AM
Thanks Prasad.
Is there a possibility of getting the required indicator without any customisation?
Regards
Minal
‎2010 Jan 12 2:17 PM
After creating change document you will get one update function module name.
CALL FUNCTION 'Z_xxxxx_WRITE_DOCUMENT'
EXPORTING
OBJECTID = C_CDOBJID_
TCODE = sy-tcode
UTIME = sy-uzeit
UDATE = sy-datum
USERNAME = sy-uname
PLANNED_CHANGE_NUMBER = ' '
OBJECT_CHANGE_INDICATOR = 'U' <--- pass this variable according to your requirement
PLANNED_OR_REAL_CHANGES = ' '
NO_CHANGE_POINTERS = ' '
UPD_ICDTXT_Zxxxxx = ' '
UPD_Zxxxxx = 'U'
TABLES
ICDTXT_Zxxxx = ICDTXT_Zxxxx
Xxxxx = Xxxxx
Yxxxx = Yxxxx .
CHECK SY-SUBRC = 0.
COMMIT WORK.
Regards,
Prasad.