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

Change Pointer processing - send all data

Former Member
0 Likes
522

HI,

do you know a way to fill the complete IDoc during change pointer processing ?

Example DEBMAS.

IS it possible to fill all segments/data instead of the changed data ?

The normal way is to fill only the changed segments/data.

thx,

Gordon

3 REPLIES 3
Read only

Former Member
0 Likes
473

Hi...

yes ..you can write user exit ..to fill the segments

-siva

Read only

0 Likes
473

@siva,

do you have sample code ? or the name of the exit ?

thx,

Gordon

Read only

0 Likes
473

Hi ,

Please find the sample code to fill the Idoc data.

DATA: C_INVREV_SEGNAME(7) TYPE C VALUE 'Z1INVRV',

C_INVREV_MESTYPE(6) TYPE C VALUE 'ZINVRV',

C_INVREV_IDOC_TYPE(8) TYPE C VALUE 'ZINVRV01',

Z1INVRV LIKE Z1INVRV,

C_INVREV_DOCTYPE LIKE BKPF-BLART VALUE 'YY',

IDOC_CONTROL LIKE EDIDC,

T_COMM_CONTROL LIKE EDIDC OCCURS 0 WITH HEADER LINE,

IDOC_DATA LIKE EDIDD OCCURS 0 WITH HEADER LINE.

*--- Move the document header into a structure

LOOP AT DOC_HEAD_TAB INTO DOC_HEAD.

ENDLOOP.

*--- Move the document item data into a structure

LOOP AT DOC_ITEM_TAB INTO DOC_ITEM WHERE NOT ( LIFNR IS INITIAL ).

ENDLOOP.

*--- Populate the IDoc segment’s field with the required data

CLEAR Z1INVRV.

Z1INVRV-LIFNR = DOC_ITEM-LIFNR. “Store vendor number for filter

Z1INVRV-XBLNR = DOC_HEAD-XBLNR. “Billing number

IDOC_DATA-SEGNAM = C_INVREV_SEGNAME. “Segment name

IDOC_DATA-SDATA = Z1INVRV. “Segment data

APPEND IDOC_DATA. “Populate IDoc internal table

Please let me know if u have any Queries

Rgds

Sree M