on 04-21-2008 3:26 PM
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks!! I will try this one. It seems to work.
Marcelo.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
99 | |
11 | |
11 | |
6 | |
6 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.