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

send complete IDOC using change pointers

Former Member
0 Likes
1,041

Hi

i am working on change pointers for DEBMAS.i am able to trigger change pointers for XD01/02/05/06.

i want to send complete data when change happens rather than DELTA data.

i got the following code:

CONSTANTS:

lc_fld_alelisting TYPE fieldname VALUE 'ALELISTING'.

DATA:

lt_bdcpv TYPE STANDARD TABLE OF bdcpv,

ls_bdcp TYPE bdcp,

lt_bdcp TYPE STANDARD TABLE OF bdcp.

  • Select all not yet processed change pointers

SELECT * FROM bdcpv

INTO TABLE lt_bdcpv

WHERE mestype = ud_mestyp

AND process NE 'X'.

IF sy-subrc EQ 0.

SELECT * FROM bdcp

INTO TABLE lt_bdcp

FOR ALL ENTRIES IN lt_bdcpv

WHERE cpident = lt_bdcpv-cpident.

IF sy-subrc EQ 0 .

CLEAR: ls_bdcp.

ls_bdcp-fldname = lc_fld_alelisting.

MODIFY lt_bdcp FROM ls_bdcp

TRANSPORTING fldname

WHERE ( fldname NE lc_fld_alelisting ).

UPDATE bdcp FROM TABLE lt_bdcp.

COMMIT WORK AND WAIT.

i dont see any entries in BDCP tables in my client . can some one let meknow what i need to do so taht i can trigger complete IDOC using change pointer?its a high priority isssue....

regards

1 REPLY 1
Read only

Former Member
0 Likes
560

hi

the entries to change pointers are in table BDCP2 in the system.

so i removed BDCPV AND BDCP and have put only BDCP2 for the logic but still its not working.

any suggestions???

SELECT * FROM bdcp2

INTO TABLE lt_bdcp2

WHERE mestype = ud_mestyp

AND process NE 'X'.

IF sy-subrc EQ 0.

ls_bdcp2-fldname = lc_fld_alelisting.

MODIFY lt_bdcp2 FROM ls_bdcp2

TRANSPORTING fldname

WHERE ( fldname NE lc_fld_alelisting ).

UPDATE bdcp2 FROM TABLE lt_bdcp2.

COMMIT WORK AND WAIT.

any changes to be done to the above code?