SAP SD_DELIVERY_FOR_TPS Function Module for NOTRANSL: Lieferungen selektieren zum Versand an externes Transportsystem









SD_DELIVERY_FOR_TPS is a standard sd delivery for tps SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for NOTRANSL: Lieferungen selektieren zum Versand an externes Transportsystem processing and below is the pattern details for this FM, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.


See here to view full function module documentation and code listing for sd delivery for tps FM, simply by entering the name SD_DELIVERY_FOR_TPS into the relevant SAP transaction such as SE37 or SE38.

Function Group: V56L
Program Name: SAPLV56L
Main Program: SAPLV56L
Appliation area: V
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function SD_DELIVERY_FOR_TPS pattern details

In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.
CALL FUNCTION 'SD_DELIVERY_FOR_TPS'"NOTRANSL: Lieferungen selektieren zum Versand an externes Transportsystem
EXPORTING
* SELECTION_SET = ' ' "Selection variant for report
* EXTERNAL_DESTINATION = "Identification of external transportation system
* OPTION_SELECTION_SCREEN = 'X' "Option: Transmit selection screen
* OPTION_SEARCH_STRATEGY = 'I' "Option: Search strategy (I=Index, L=Delivery)
* SHIPMENT_PROCESSING_TYPE = 1 "Transportation processing type
* NO_DISPOSITION = ' ' "Prevent automatic transportation planning
* BLOCK_SIZE = 0 "
* NO_ENQUEUE = ' ' "
TRANS_PLANNING_POINT = "

IMPORTING
NUMBER_OF_DELIVERIES = "
NUMBER_OF_ERRORS = "
ERROR_OCCURED = "Error when determining delivery

TABLES
SELECT_OPTIONS = "--> Selection parameters
DELIVERY_HEADER = "<-- Selected delivery headers
DELIVERY_ITEM = "<-- Selected delivery items
* PACK_HEADER = "<-- Selected packing headers
* PACK_ITEM = "<-- Selected packing items
* PACK_SUM = "<-- Selected packing summary data

EXCEPTIONS
WRONG_CALL = 1
.




Customer Function user exits

Below is a list of CUSTOMER FUNCTION exit user exits that are available within this program and maybe relevant for this FM.
EXIT_SAPLV56L_001 Status of Shipments for a Delivery
EXIT_SAPLV56L_002 Reading of Delivery Data for Shipment Processing
EXIT_SAPLV56L_007 Switch Off Multiple Transmission Block for Deliveries to TPS

IMPORTING Parameters details for SD_DELIVERY_FOR_TPS

SELECTION_SET - Selection variant for report

Data type: TVTK-SVTRA
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXTERNAL_DESTINATION - Identification of external transportation system

Data type: TTDS-TPSID
Optional: Yes
Call by Reference: No ( called with pass by value option)

OPTION_SELECTION_SCREEN - Option: Transmit selection screen

Data type: RV56A-SELKZ
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

OPTION_SEARCH_STRATEGY - Option: Search strategy (I=Index, L=Delivery)

Data type: RV56A-SELKZ
Default: 'I'
Optional: Yes
Call by Reference: No ( called with pass by value option)

SHIPMENT_PROCESSING_TYPE - Transportation processing type

Data type: VTTK-ABFER
Default: 1
Optional: Yes
Call by Reference: No ( called with pass by value option)

NO_DISPOSITION - Prevent automatic transportation planning

Data type: RV56A-SELKZ
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

BLOCK_SIZE -

Data type: I
Optional: Yes
Call by Reference: No ( called with pass by value option)

NO_ENQUEUE -

Data type: RV56A-SELKZ
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

TRANS_PLANNING_POINT -

Data type: TTDS-TPLST
Optional: No
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for SD_DELIVERY_FOR_TPS

NUMBER_OF_DELIVERIES -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

NUMBER_OF_ERRORS -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

ERROR_OCCURED - Error when determining delivery

Data type: RV56A-SELKZ
Optional: No
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for SD_DELIVERY_FOR_TPS

SELECT_OPTIONS - --> Selection parameters

Data type: RSPARAMS
Optional: No
Call by Reference: No ( called with pass by value option)

DELIVERY_HEADER - <-- Selected delivery headers

Data type: VTRLK
Optional: No
Call by Reference: No ( called with pass by value option)

DELIVERY_ITEM - <-- Selected delivery items

Data type: VTRLP
Optional: No
Call by Reference: No ( called with pass by value option)

PACK_HEADER - <-- Selected packing headers

Data type: VBPLK
Optional: Yes
Call by Reference: No ( called with pass by value option)

PACK_ITEM - <-- Selected packing items

Data type: VBPLP
Optional: Yes
Call by Reference: No ( called with pass by value option)

PACK_SUM - <-- Selected packing summary data

Data type: VBPLS1
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXCEPTIONS details

WRONG_CALL - Incorrect call

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for SD_DELIVERY_FOR_TPS Function Module

The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the newer method of declaring data variables on the fly. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8), which i why i have stuck to the origianl for this example.

DATA:
lv_wrong_call  TYPE STRING, "   
lv_selection_set  TYPE TVTK-SVTRA, "   SPACE
lt_select_options  TYPE STANDARD TABLE OF RSPARAMS, "   
lv_number_of_deliveries  TYPE RSPARAMS, "   
lt_delivery_header  TYPE STANDARD TABLE OF VTRLK, "   
lv_number_of_errors  TYPE VTRLK, "   
lv_external_destination  TYPE TTDS-TPSID, "   
lt_delivery_item  TYPE STANDARD TABLE OF VTRLP, "   
lv_error_occured  TYPE RV56A-SELKZ, "   
lv_option_selection_screen  TYPE RV56A-SELKZ, "   'X'
lt_pack_header  TYPE STANDARD TABLE OF VBPLK, "   
lv_option_search_strategy  TYPE RV56A-SELKZ, "   'I'
lt_pack_item  TYPE STANDARD TABLE OF VBPLP, "   
lv_shipment_processing_type  TYPE VTTK-ABFER, "   1
lt_pack_sum  TYPE STANDARD TABLE OF VBPLS1, "   
lv_no_disposition  TYPE RV56A-SELKZ, "   SPACE
lv_block_size  TYPE I, "   0
lv_no_enqueue  TYPE RV56A-SELKZ, "   SPACE
lv_trans_planning_point  TYPE TTDS-TPLST. "   

  CALL FUNCTION 'SD_DELIVERY_FOR_TPS'  "NOTRANSL: Lieferungen selektieren zum Versand an externes Transportsystem
    EXPORTING
         SELECTION_SET = lv_selection_set
         EXTERNAL_DESTINATION = lv_external_destination
         OPTION_SELECTION_SCREEN = lv_option_selection_screen
         OPTION_SEARCH_STRATEGY = lv_option_search_strategy
         SHIPMENT_PROCESSING_TYPE = lv_shipment_processing_type
         NO_DISPOSITION = lv_no_disposition
         BLOCK_SIZE = lv_block_size
         NO_ENQUEUE = lv_no_enqueue
         TRANS_PLANNING_POINT = lv_trans_planning_point
    IMPORTING
         NUMBER_OF_DELIVERIES = lv_number_of_deliveries
         NUMBER_OF_ERRORS = lv_number_of_errors
         ERROR_OCCURED = lv_error_occured
    TABLES
         SELECT_OPTIONS = lt_select_options
         DELIVERY_HEADER = lt_delivery_header
         DELIVERY_ITEM = lt_delivery_item
         PACK_HEADER = lt_pack_header
         PACK_ITEM = lt_pack_item
         PACK_SUM = lt_pack_sum
    EXCEPTIONS
        WRONG_CALL = 1
. " SD_DELIVERY_FOR_TPS




ABAP code using 7.40 inline data declarations to call FM SD_DELIVERY_FOR_TPS

The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.

 
"SELECT single SVTRA FROM TVTK INTO @DATA(ld_selection_set).
DATA(ld_selection_set) = ' '.
 
 
 
 
 
"SELECT single TPSID FROM TTDS INTO @DATA(ld_external_destination).
 
 
"SELECT single SELKZ FROM RV56A INTO @DATA(ld_error_occured).
 
"SELECT single SELKZ FROM RV56A INTO @DATA(ld_option_selection_screen).
DATA(ld_option_selection_screen) = 'X'.
 
 
"SELECT single SELKZ FROM RV56A INTO @DATA(ld_option_search_strategy).
DATA(ld_option_search_strategy) = 'I'.
 
 
"SELECT single ABFER FROM VTTK INTO @DATA(ld_shipment_processing_type).
DATA(ld_shipment_processing_type) = 1.
 
 
"SELECT single SELKZ FROM RV56A INTO @DATA(ld_no_disposition).
DATA(ld_no_disposition) = ' '.
 
 
"SELECT single SELKZ FROM RV56A INTO @DATA(ld_no_enqueue).
DATA(ld_no_enqueue) = ' '.
 
"SELECT single TPLST FROM TTDS INTO @DATA(ld_trans_planning_point).
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!