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

Inserting segment E1EDL41 into IDoc type SHPMNT06

Former Member
0 Likes
2,029

Hi Experts,

I have a requirement for IDOC.

If segment E1EDL41 with qualifier 001 is not found for a particular message type, I have to insert that segment.

I have added an Enhancement point in the Include' LV56KF3Q' and I am writing the code. At this point all the idoc data are in INT_EDIDD table.

I can check whether E1EDL41 segment is present or not

IDOC TYPE : SHPMNT06.

E1EDL41 is child segment for E1EDL24, and no mandatory segmnents are given .

E1EDL24 is the delivery item segment, hence it will repeat as many time ITEMS are present.So the child segment will also get repeated.

as many times parnt segment will repeat.

At runtime INT_EDIDD has no Entries for fields PSGNUM, HLEVEL & SEGNUM.

Please tell me how to do so and how to find exact location as where to insert this segment.

Hi Experts,

I have a requirement for IDOC.

If segment E1EDL41 with qualifier 001 is not found for a particular message type, I have to insert that segment.

I have added an Enhancement point in the Include' LV56KF3Q' and I am writing the code. At this point all the idoc data are in INT_EDIDD table.

I can check whether E1EDL41 segment is present or not

IDOC TYPE : SHPMNT06.

E1EDL41 is child segment for E1EDL24, and no mandatory segmnents are given .

E1EDL24 is the delivery item segment, hence it will repeat as many time ITEMS are present.So the child segment will also get repeated.

as many times parnt segment will repeat.

At runtime INT_EDIDD has no Entries for fields PSGNUM, HLEVEL & SEGNUM.

Please tell me how to do so and how to find exact location as where to insert this segment.

1 REPLY 1
Read only

Former Member
0 Likes
1,296

Hi Sha,

You can not modify the idoc segment in the middle of idoc processing, it will throw an syntax error, you have to do it before the loop on IDOC data starts.

READ_IDOC_DATA function module will give you the HLEVEL. SEGNUM is nothing but segment count, it will be equal to your sy-tabix value of a loop on idoc_data, and psgnum is the sy-tabix of your parent segment of current segment, Parent segment you will get from READ_IDOC_DATA FM.

Best Regards,

Tapodipta Khan.