on 05-06-2015 4:28 PM
Hi folks,
SAP note 67442 and experience tell that the transportation planning status of an inbound delivery is only determined by the delivery type ('EL') and not by delivery item category or the route.
I cannot imagine an understandable conceptual reason for this "standard" system behaviour.
Anyway, do you have any enhancement idea how to overrule this rough default process?
Thanks in advance and regards,
Volker
Yes, as I see the inbound delivery considers only the transportation relevancy of the delivery type (item category and route are ignored).
If you cannot solve it via configuration, you can change the transportation status (VBUK-TRSTA) in 'form USEREXIT_SET_STATUS_VBUK of program RV45PFZA.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Volker,
You are correct - it is standard behaviour. I am not sure why the system was designed in this way. According to SCM611 (transportation documentation), the route setting does not apply to inbound deliveries as these do not require a route.
Looking at the code, the transportation status gets set here:
SAPLV45P / FORM TRANSPORTSTATUS_LIEFERUNG
********************************
IF NOT ( TVLK-VBTYP CA VBTYP_LIAV ).
Falls Lieferschein (und nicht Lieferavis) vorliegt:
PERFORM DATEN_BESORGEN_ROUTE.
Is Route transportrelevant ?
IF ( TVRO-TDIIX EQ SPACE ).
VBUK-TRSTA = SPACE.
EXIT.
ENDIF.
ENDIF.
Lieferart und Route transportrelevant, daher:
VBUK-TRSTA = CHARA.
ENDFORM.
********************************
In English, this code basically states that if it is not an inbound delivery, check the relevance of the route. If the route is not transportation relevant, then set the status to space. Otherwise, set the transportation status to A (VBUK-TRSTA = CHARA).
To over-write this standard behaviour, you could use the user exit suggested by Csaba. You could also use BADI BADI_SD_SALES_BASIC, Method HEADER_STATUS. This method allows you to over-write the VBUK-TRSTA value with your own logic. Both the user exit and BADI are suitable for this purpose as they are called after the above code.
Hope this helps.
Noel
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.