Skip to Content
0
Former Member
Mar 24, 2010 at 06:16 AM

IDOC status 26 ( Get details from previous status records with status 26 )

1452 Views

Hi All,

I have extended the standard IDOC and tried to populate the custom segment as child segment of parent segment of E1MASTM using user exit . But this custom segment appended at the end of all segments in a idoc ,instead of child segment of E1MASTM and got the status 26. ( Outbound )

Code as below.

LOOP AT idoc_data .

CASE idoc_data-segnam.

when 'E1MASTM'.

lc_wa_e1mastm = idoc_data-sdata.

select single verid

from MKAL

into l_verid

where matnr = lc_wa_e1mastm-matnr

and werks = lc_wa_e1mastm-werks

and STLAL = lc_wa_e1mastm-stlal

and STLAN = lc_wa_e1mastm-stlan.

IF sy-subrc eq 0.

idoc_data-segnam = 'ZE1MASTM'.

idoc_data-sdata = l_verid.

append idoc_data .

clear idoc_data.

ENDIF.

ENDCASE.

endloop.

Thanks - Vinay.

Edited by: Vinay parakala on Mar 24, 2010 7:24 AM