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.