Skip to Content
0
Former Member
May 09, 2007 at 10:55 AM

Creating sales order using IDOC - Delivery hour

119 Views

Hi,

i've a problem to solve. when creating a sales order i need that when the segment is E1EDK03 and the IDDAT is 002 i need to extract the delivery hour and insert it in the table vbak-vzeit, now what i'm doing in the exit EXIT_SAPLVEDA_001 is:

DATA: hour LIKE vbak-vzeit.

CHECK segment-segnam = 'E1EDK03'.

IF segment-sdata(3) = '002'.

hour = segment-sdata+11(6).

ENDIF.

and now i want to acess the value in hour in the exit EXIT_SAPLVEDA_002 to put it in the dxvbak struct tha i think that is the table correct to then internaly fill the vbak. the problem is that the variable hour is not available in the exit EXIT_SAPLVEDA_002. i do i do to pass the value that i want from the exit EXIT_SAPLVEDA_001 to be available in exit EXIT_SAPLVEDA_002 and then insert that value in the right place to fill vbak.