2019 May 15 12:16 PM
Hi,
My requirement is to populate the child segments under standard segment E1EDK02 and qualf '014'. But after added my code, Idoc is getting failed with error '24' and the Idoc segments are all messed up (every segment appearing at hierarchy level 1) Please help with this as it's pretty urgent!. ( I Have created the segments in we31 and extended in proper place by using we30

and I have checked in we19 ( Hierarchy level is appearing as required)
IF ls_zcputm IS NOT INITIAL.
CLEAR: ls_edidd_egts,ls_edidd_temp_tr00_egts.
ls_edidd_egts-segnam = lc_zcputm.
ls_edidd_egts-sdata = ls_zcputm.
ls_edidd_egts-hlevel = 3.
CLEAR : ls_edidd_temp_tr00_egts.
READ TABLE int_edidd INTO ls_edidd_temp_tr00_egts WITH KEY segnam = lc_e1edk02
sdata(3) = lc_014.
IF sy-subrc = 0.
lv2_index = sy-tabix + 1.
INSERT ls_edidd_egts INTO int_edidd INDEX lv2_index.
ENDIF.
ENDIF.
IF ls_ztr00_igso_qtca IS NOT INITIAL.
CLEAR: ls_edidd_egts,ls_edidd_temp_tr00_egts.
ls_edidd_egts-segnam = lc_ztr00_igso_qtca.
ls_edidd_egts-sdata = ls_ztr00_igso_qtca.
ls_edidd_egts-hlevel = 3.
CLEAR: ls_edidd_temp_tr00_egts.
* lv2_index = sy-tabix + 1.
READ TABLE int_edidd INTO ls_edidd_temp_tr00_egts INDEX lv2_index.
* WITH KEY segnam = lc_e1edk02
* sdata(3) = lc_014.
IF sy-subrc = 0.
lv2_index = sy-tabix + 1.
INSERT ls_edidd_egts INTO int_edidd INDEX lv2_index .
ENDIF.
ENDIF.
2019 May 15 2:32 PM
Hi,
You should debug the program, this might be happen because of additional line item or additional data which is no segments like E1EDK01, during the loop.
I guess you know how to debug the IDOC .(Reprocess IDOC program RSNAST0D, and Go to WE20 and find FM to debug its under process code)
Regards,
Nawa.
Hi,
My requirement is to populate the child segments under standard segment E1EDK02 and qualf '014'. But after added my code, Idoc is getting failed with error '24' and the Idoc segments are all messed up (every segment appearing at hierarchy level 1) Please help with this as it's pretty urgent!. ( I Have created the segments in we31 and extended in proper place by using we30

and I have checked in we19 ( Hierarchy level is appearing as required)
IF ls_zcputm IS NOT INITIAL.
CLEAR: ls_edidd_egts,ls_edidd_temp_tr00_egts.
ls_edidd_egts-segnam = lc_zcputm.
ls_edidd_egts-sdata = ls_zcputm.
ls_edidd_egts-hlevel = 3.
CLEAR : ls_edidd_temp_tr00_egts.
READ TABLE int_edidd INTO ls_edidd_temp_tr00_egts WITH KEY segnam = lc_e1edk02
sdata(3) = lc_014.
IF sy-subrc = 0.
lv2_index = sy-tabix + 1.
INSERT ls_edidd_egts INTO int_edidd INDEX lv2_index.
ENDIF.
ENDIF.
IF ls_ztr00_igso_qtca IS NOT INITIAL.
CLEAR: ls_edidd_egts,ls_edidd_temp_tr00_egts.
ls_edidd_egts-segnam = lc_ztr00_igso_qtca.
ls_edidd_egts-sdata = ls_ztr00_igso_qtca.
ls_edidd_egts-hlevel = 3.
CLEAR: ls_edidd_temp_tr00_egts.
* lv2_index = sy-tabix + 1.
READ TABLE int_edidd INTO ls_edidd_temp_tr00_egts INDEX lv2_index.
* WITH KEY segnam = lc_e1edk02
* sdata(3) = lc_014.
IF sy-subrc = 0.
lv2_index = sy-tabix + 1.
INSERT ls_edidd_egts INTO int_edidd INDEX lv2_index .
ENDIF.
ENDIF.
2019 May 15 2:32 PM
Hi,
You should debug the program, this might be happen because of additional line item or additional data which is no segments like E1EDK01, during the loop.
I guess you know how to debug the IDOC .(Reprocess IDOC program RSNAST0D, and Go to WE20 and find FM to debug its under process code)
Regards,
Nawa.
2019 May 17 10:50 AM
Hi Nawanandana,
I tried and i didn't find any additional line item during the loop and I can see the expected structure in we19 as well. Could you please suggest is there any other way to resolve this issue
2019 May 17 3:03 PM
Hi,
According to me debug is only possible way to figure it out , kindly check in the custom program, are they pass hierarchy level properly. try to change this ls_edidd_egts-hlevel= '03'.
kindly check this code working properly or not . INSERT ls_edidd_egts INTO int_edidd INDEX lv2_index .
I mean "lv2_index".
Regards,
Nawa
2019 May 20 12:22 PM
Hi Nawanandana,
Thank you for you response!! Issue got resolved.
Thanks,
Ishwarya
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |