Skip to Content
0
Former Member
Jun 24, 2014 at 07:32 PM

Need to populate EDIDC-SNDLAD

626 Views

Hi,

I have an outbound delivery IDoc that will call EXIT_SAPLV56K_001; I need to use a couple of the fields in the CONTROL_RECORD_OUT structure that is passed back to the IDoc. This exit consists of Include ZXTRKU01. What I need to do is select the plant number and the sold-to partner number for the delivery and pass those back to the IDoc via CONTROL_RECORD_OUT (SNDLAD and RCVLAD). However, I cannot find where the delivery number (VBELN) is available in this exit or include, so I am unable to select the plant and sold-to party. I was hoping that the delivery number was in the CONTROL_RECORD_OUT structure already (it is used as Import and Export...) but I don't see it.

** I am not asking about the segments, I have already extended my segments and I am not filling those at this point. I just need to populate a couple of fields in CONTROL_RECORD_OUT from within this user exit. The exit is shown below:

FUNCTION EXIT_SAPLV56K_001.

*"----------------------------------------------------------------------

*"*"Globale Schnittstelle:

*" IMPORTING

*" VALUE(CONTROL_RECORD_OUT) LIKE EDIDC STRUCTURE EDIDC

*" REFERENCE(DATA) TYPE TR_IDOC_SHPMNT_INDATA OPTIONAL

*" VALUE(OBJECT) LIKE NAST STRUCTURE NAST OPTIONAL

*" EXPORTING

*" VALUE(CONTROL_RECORD_OUT) LIKE EDIDC STRUCTURE EDIDC

*" EXCEPTIONS

*" ERROR_MESSAGE_RECEIVED

*" DATA_NOT_RELEVANT_FOR_SENDING

*"----------------------------------------------------------------------

INCLUDE ZXTRKU01.

ENDFUNCTION.

Thank you in advance.