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: 

Populate E1EDL37 in DELVRY07 IDoc

Former Member
0 Kudos

Hi All,

I am using DELVRY07 IDoc type to send HU data from SAP ECC to external system means its an outbound IDoc.

The issue is that the standard SAP process doesn't populate E1EDL37 i.e. HU header data for HUs which are common in multiple deliveries i.e. with VEKP-VPOBJ equal to 21 (these are known as cross docking HUs)

I tried using user exit EXIT_SAPLV56K_002 for populating the E1EDL37 segment but as I am not able to determine the correct order of the segments in this exit, it is not working.

generally, one would check for segment name in the data record table and populate the data but the segment name is not available in the data record table (EDIDD) in this exit, hence it is not working.

Please help me resolve this issue.

Thanks in advance.

Regards,

Shilpi

1 ACCEPTED SOLUTION

nabheetscn
Active Contributor
0 Kudos

What you can do is check for segnam FINAL_DELIVERY_RUN in customer function 002.if segment name is this that means all processing has happene now based on the structure of idoc type you can insert records for the segment at desired position

Nabheet

5 REPLIES 5

nabheetscn
Active Contributor
0 Kudos

What you can do is check for segnam FINAL_DELIVERY_RUN in customer function 002.if segment name is this that means all processing has happene now based on the structure of idoc type you can insert records for the segment at desired position

Nabheet

0 Kudos

Hi Nabheet,

Thanks for your reply but the issue is how to determine the correct position to insert the segment? can you help me on this?

Thanks,

Shilpi

0 Kudos

Its easy you check the position of segment in we30 lets say its located after E1DP24 then you just read the index of with segnam equal to mentioned above... Append your data to next position meaning sy-tabix+1

Order of segments should remain same as in we30..

Nabheet

0 Kudos

Hi Nabheet,

I agree that this can be done by checking the previous segments in WE30 but if even the previous segments are not manadatory and we are not sure if previous segments will be populated or not then i'll have to check all the previous segments untill I get one. I wanted to avoid this and was seeking some work around for this.

Thanks,

Shilpi

0 Kudos

Yes you are correct you have to move up till you find one mandatory segment

NAbheet