‎2008 Mar 12 3:50 PM
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
‎2008 Mar 12 4:31 PM
Hi...
yes ..you can write user exit ..to fill the segments
-siva
‎2008 Mar 12 5:37 PM
@siva,
do you have sample code ? or the name of the exit ?
thx,
Gordon
‎2008 Mar 13 6:07 AM
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 segments 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