cancel
Showing results for 
Search instead for 
Did you mean: 

VA01: Align Good issue dates existing on Schedule line table.

Former Member
0 Kudos

Hi Experts,

I will exemplify my question in order to make easier to understand it. I have a sales order with two lines. Both lines will have different routes determination due to those products have different classification (the first is non-dangerous and second on is dangerous). Dangerous items will have more transit time to get the customer than non-dangerous items. When we have different routes per line items in the sales order, the system will calculate schedule line dates (good issue date, material availability date) differently. However, what the Business wants is to deliver the goods at the same good issue date (VBEP-WADAT). So to get this approach we will have to:

- Check field “complete delivery indicator).

- Set the route for non-dangerous good as same as dangerous good.

Both changes described above, it would be performed via USEREXIT. However, my problem is: When the non-dangerous item is the first item of the sales order, the system does not trigger again the calculation of the schedule line dates based on the new route (XVBAP[1]-ROUTE).

I have found out the routine that changes the schedule line dates, but I do not know how to use it. Do you have any other solution?

PERFORM VERSANDTERMINIERUNG_NEU

USING DA_MBDAT DA_MBUHR

DA_TDDAT DA_TDUHR

DA_LDDAT DA_LDUHR

DA_WADAT DA_WAUHR

DA_EDATU DA_EZEIT

TVAK-TRTRM TVAK-VSTRM

TVAK-TENUR

DA_BRGEW XVBAP-GEWEI

DA_GRULG MAEPV-LADGR

XVBAP-VSTEL XVBAP-ROUTE

XVBAP-LPRIO

  • XVBAP-POSNR XVBEP-ABART "DELETE HP_322509

XVBAP-POSNR "INSERT HP_322509

XVBAP-VBELN "INSERT HP_322509

XVBEP-ABART "INSERT HP_322509

XVBEP-BDART XVBEP-PLART "P40K039864

DA_SUBRC

VBAK-VSBED

MAEPV-TRAGR

TVAK-RFPA_SW

XVBAP-MATNR "INSERT HP_322509

XVBAP-WERKS "INSERT HP_322509

XVBAP-SOBKZ

LF_MENGE "INSERT HP_322509

XVBAP-LOGSYS

CHANGING DA_AULWE.

Accepted Solutions (1)

Accepted Solutions (1)

mandar_shete
Active Participant
0 Kudos

Hi Marcelo,

You can try with User Exit MV45AFZZ (USEREXIT_SAVE_DOCUMENT_PREPARE).

Try with XVBEP. Loop at this table and copy the WADAT into EDATU.

Thanks,

Mandar

Answers (1)

Answers (1)

Former Member
0 Kudos

Thanks!! I will try this one. It seems to work.

Marcelo.