Application Development 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: 

Extended Segment is not coming as a child segment, Got '26' IDOC Syntax error

Former Member
0 Kudos

Dear Idoc Experts,

I have extended the orders05 basic type, i have done the we82 configuration also, the custom segment needs to be in the item level, which is need to come multiple times under the item segment , So i have inserted under the segment E1EDP01 and wrote the code in the user exit EXIT_SAPLEINM_002, it is not coming in the child level, it is coming like another segment, this is the code I had wrote.

CONSTANTS : lc_zcustorder TYPE edidd-segnam VALUE 'ZCUSTORDER'.
DATA : lt_EKPO type TABLE OF EKPO,
lx_expo TYPE EKPO.
*
DATA : lx_custom TYPE zcustorder ##NEEDED,
lx_item TYPE E1EDP01,
lx_idoc TYPE EDIDD,
lt_custom TYPE TABLE OF zcustorder ##NEEDED.

DATA : lv_flag_p.
*BREAK-POINT.

IF int_edidd-segnam = 'E1EDP01'.
CONTROL_RECORD_OUT-cimtyp = 'ZCUSTORDERE'.
CLEAR int_edidd.
*MOVE int_edidd-sdata TO ls_e1edp01_dum.
READ TABLE XEKPO INTO lx_expo WITH KEY ebelp = ls_e1edp01_dum-posex.
lx_custom-purchase_order_no = lx_expo-ebeln.
lx_custom-po_item_no = lx_expo-ebelp.
lx_custom-zzship_date_sp = lx_expo-zzship_date_sp.
lx_custom-order_delivery = lx_expo-uebto.
lx_custom-under_delivery = lx_expo-UNTTO.
lx_custom-unlimited_check = lx_expo-UEBTK.

int_edidd-segnam = lc_zcustorder.
MOVE lx_custom to int_edidd-sdata.
* int_edidd-hlevel = '3'. (Commented and Non Commented same result)
APPEND int_edidd.
CLEAR int_edidd.
CLEAR lx_expo.
ENDIF.

Its very urgent, Kindly throw some light on it.

Thanks in advance.

Regards,

Palani

0 REPLIES 0