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

BDCP table - change id

Former Member
0 Likes
732

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

3 REPLIES 3
Read only

Former Member
0 Likes
603

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.

Read only

0 Likes
603

Thanks Prasad.

Is there a possibility of getting the required indicator without any customisation?

Regards

Minal

Read only

0 Likes
603

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.