Ansicht
Dokumentation
SD_SHIPMENT_LEG_DETERMINATION - Leg Determination
RFUMSV00 - Advance Return for Tax on Sales/Purchases SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3upThis documentation is copyright by SAP AG.
Functionality
This function module implements automatic leg determination in the shipment document.
Parameters and tables:
Shipment header data relevant for leg determination
(these have a considerable influence on the results of the leg determination)
I_VTTK_TKNUM Shipment number
I_VTTK_STERM Leg determination indicator
I_VTTK_LAUFK Leg indicator
I_VTTK_ABFER Transportation processing indicator
I_VTTK_VSART Shipping type
I_VTTK_VSAVL Shipping type for preliminary leg
I_VTTK_VSANL Shipping type for subsequent leg
I_VTTK_TDLNR Forwarding agent number
Within a transportation chain departure/destination locations for the
deliveries can be re-defined, e.g. if a lorry only takes goods to
Hamburg harbor and not to the customer in America:
Target desination for leg determination in preliminary shipment (e.g: Hamburg harbor)
I_DESTINATION
Departure location for leg determination in subsequent shipment ('New York')
I_DEPARTURE
During leg determination dialog boxes appear, which can also be
suppressed:
OPT_DIALOG_DEP_SEQ Dialog for implementing pick-up sequence
OPT_DIALOG_DEP_DEST Dialog for implementing departure/ destination locations
OPT_DIALOG_DO_AGAIN Dialog for new leg determination
('Re-determine leg ?')
You can also control whether the dynamic part of table
C_XVTTS should be filled in (this included the descriptions
for locations, forwarding agent, etc.). Determining descriptions
takes time and can be omitted, e.g. if leg determination runs
in the background.
OPT_UPDATE_DYN_PART Update dynamic part of XVTTS
Both of the following parameters are only in the dynamic part of the
shipment header:
C_VTTKD_TSNUML Last number of shipment stage
C_VTTKD_TSRFOL Last assigned sequence number
Then the rest of the shipment tables appear (X and Y tables):
I_XVTTP Shipment items
C_XVTTS Stages
C_YVTTS Stages
C_XVTSP Assign stage/item
C_YVTSP Assign stage/item
C_XVBPA Partners
C_YVBPA Partners
C_XVBADR Addresses
C_YVBADR Addresses
I_FTRLK Delivery headers
If (within a stop-off shipment) there is more than one departure
location (in general various shipping points) during leg determination the system requests, via
a dialog box, the order in which these departure points should be visited (known as pick-up sequence). These can be defined here:
I_DEPARTURE_SEQUENCE Pick-up sequence
The system now explains the function method for leg determination:
Example
Notes
Further information
Parameters
C_XVBADRC_XVBPA
C_XVTSP
C_XVTTK_WA
C_XVTTS
C_YVBADR
C_YVBPA
C_YVTSP
C_YVTTS
I_DEPARTURE
I_DEPARTURE_SEQUENCE
I_DESTINATION
I_XTRLK
I_XVTTP
OPT_DIALOG
OPT_SEQUENCE_POPUP_ALWAYS
Exceptions
LEG_DETERMINATION_NOT_DONEFunction Group
V56SCPI1466 during Backup CPI1466 during Backup
This documentation is copyright by SAP AG.
Length: 3908 Date: 20240523 Time: 082605 sap01-206 ( 38 ms )