SAP EXIT_SAPLV56F_012 Function Module for Shipment Processing: Activities for Setting a Status, Time 2









EXIT_SAPLV56F_012 is a standard exit saplv56f 012 SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Shipment Processing: Activities for Setting a Status, Time 2 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 exit saplv56f 012 FM, simply by entering the name EXIT_SAPLV56F_012 into the relevant SAP transaction such as SE37 or SE38.

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



Function EXIT_SAPLV56F_012 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 'EXIT_SAPLV56F_012'"Shipment Processing: Activities for Setting a Status, Time 2
EXPORTING
I_STATUS = "What Status ? (Planned, End Loading, etc.)
* I_NEW_STATUS_DATE = "Date to be Set
* I_NEW_STATUS_TIME = "Time to be Set
I_TVTK = "Shipment Type
OPT_DIALOG = "Dialog?

CHANGING
C_XVTTK = "Shipment Header

TABLES
C_XVTTP = "Shipment Items
I_XTRLK = "Delivery Headers
I_XTRLP = "Delivery Headers
C_YVTTP = "Shipment Items
C_XVTTS = "Stages
C_YVTTS = "Stages
C_XVTSP = "Assign Stage/Item
C_YVTSP = "Assign Stage/Item
C_XVBPA = "Partner
C_YVBPA = "Partner
C_XVBADR = "Addresses

EXCEPTIONS
ERROR = 1
.



Related Function Modules

Below is a list of related SAP function modules this CUSTOMER FUNCTION exit / user exit is relevant for.
LE_SHIPMENT_COPYDATE_CONFIRM NOTRANSL: Bestätigung der zu kopierenden Data aus Lieferungen
SD_SHIPMENT_COPY_DELIVERY_DATA NOTRANSL: Kopieren von Daten der Lieferung in den Transport
SD_SHIPMENT_CREATE_INVOICE NOTRANSL: Fakturieren für einen Transport
SD_SHIPMENT_EXECUTE_FUNCTIONS1 NOTRANSL: Ausführen von in einem Profil hinterlegten Funktionen vor dem Si
SD_SHIPMENT_EXECUTE_FUNCTIONS2 NOTRANSL: Ausführen von in einem Profil hinterlegten Funktionen nach dem S
SD_SHIPMENT_EXECUTE_FUNCTIONS3 NOTRANSL: Activites after saving, but not in update task
SD_SHIPMENT_GET_KNREF NOTRANSL: Ergänzen VTPA mit KNREF aus Vtrlk
SD_SHIPMENT_MAINTAIN_POPUP Field Selection for Quick Entry Dialog Box
SD_SHIPMENT_MEASUREMENT_DETERM NOTRANSL: Sum up measurements in stages for shipment header
SD_SHIPMENT_POST_GOODS_ISSUE NOTRANSL: Warenausgang für einen Transport buchen
SD_SHIPMENT_PRF_ACTIVITY_READ NOTRANSL: Aktivitätenprofil für Transport lesen (gepuffert)
SD_SHIPMENT_STATUS_COMPLETION NOTRANSL: Funktionen bei Setzen des Status 'Abfertigen' im Transportkopf
SD_SHIPMENT_STATUS_LOAD_END NOTRANSL: Funktionen bei Setzen des Status 'Laden Ende' im Transportkopf
SD_SHIPMENT_STATUS_LOAD_START NOTRANSL: Funktionen bei Setzen des Status 'Laden Beginn' im Transportkopf
SD_SHIPMENT_STATUS_PLANNED NOTRANSL: Funktionen bei Setzen des Status 'Disponiert' im Transportkopf
SD_SHIPMENT_STATUS_REGISTRATED NOTRANSL: Funktionen bei Setzen des Status 'Registriert' im Transportkopf
SD_SHIPMENT_STATUS_SHIPM_END NOTRANSL: Funktionen bei Setzen des Status 'Transport Ende' im Transportko
SD_SHIPMENT_STATUS_SHIPM_START NOTRANSL: Funktionen bei Setzen des Status 'Transport Beginn' im Transport

IMPORTING Parameters details for EXIT_SAPLV56F_012

I_STATUS - What Status ? (Planned, End Loading, etc.)

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

I_NEW_STATUS_DATE - Date to be Set

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

I_NEW_STATUS_TIME - Time to be Set

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

I_TVTK - Shipment Type

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

OPT_DIALOG - Dialog?

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

CHANGING Parameters details for EXIT_SAPLV56F_012

C_XVTTK - Shipment Header

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

TABLES Parameters details for EXIT_SAPLV56F_012

C_XVTTP - Shipment Items

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

I_XTRLK - Delivery Headers

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

I_XTRLP - Delivery Headers

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

C_YVTTP - Shipment Items

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

C_XVTTS - Stages

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

C_YVTTS - Stages

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

C_XVTSP - Assign Stage/Item

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

C_YVTSP - Assign Stage/Item

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

C_XVBPA - Partner

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

C_YVBPA - Partner

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

C_XVBADR - Addresses

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

EXCEPTIONS details

ERROR - Activity Not Successful, Do Not Set Status

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

Copy and paste ABAP code example for EXIT_SAPLV56F_012 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_error  TYPE STRING, "   
lv_c_xvttk  TYPE VTTKVB, "   
lt_c_xvttp  TYPE STANDARD TABLE OF VTTPVB, "   
lv_i_status  TYPE VTTK-STTRG, "   
lt_i_xtrlk  TYPE STANDARD TABLE OF VTRLK, "   
lt_i_xtrlp  TYPE STANDARD TABLE OF VTRLP, "   
lt_c_yvttp  TYPE STANDARD TABLE OF VTTPVB, "   
lv_i_new_status_date  TYPE VTTK-DTABF, "   
lt_c_xvtts  TYPE STANDARD TABLE OF VTTSVB, "   
lv_i_new_status_time  TYPE VTTK-UZABF, "   
lv_i_tvtk  TYPE TVTK, "   
lt_c_yvtts  TYPE STANDARD TABLE OF VTTSVB, "   
lt_c_xvtsp  TYPE STANDARD TABLE OF VTSPVB, "   
lv_opt_dialog  TYPE RV56A-SELKZ, "   
lt_c_yvtsp  TYPE STANDARD TABLE OF VTSPVB, "   
lt_c_xvbpa  TYPE STANDARD TABLE OF VBPAVB, "   
lt_c_yvbpa  TYPE STANDARD TABLE OF VBPAVB, "   
lt_c_xvbadr  TYPE STANDARD TABLE OF SADRVB. "   

  CALL FUNCTION 'EXIT_SAPLV56F_012'  "Shipment Processing: Activities for Setting a Status, Time 2
    EXPORTING
         I_STATUS = lv_i_status
         I_NEW_STATUS_DATE = lv_i_new_status_date
         I_NEW_STATUS_TIME = lv_i_new_status_time
         I_TVTK = lv_i_tvtk
         OPT_DIALOG = lv_opt_dialog
    CHANGING
         C_XVTTK = lv_c_xvttk
    TABLES
         C_XVTTP = lt_c_xvttp
         I_XTRLK = lt_i_xtrlk
         I_XTRLP = lt_i_xtrlp
         C_YVTTP = lt_c_yvttp
         C_XVTTS = lt_c_xvtts
         C_YVTTS = lt_c_yvtts
         C_XVTSP = lt_c_xvtsp
         C_YVTSP = lt_c_yvtsp
         C_XVBPA = lt_c_xvbpa
         C_YVBPA = lt_c_yvbpa
         C_XVBADR = lt_c_xvbadr
    EXCEPTIONS
        ERROR = 1
. " EXIT_SAPLV56F_012




ABAP code using 7.40 inline data declarations to call FM EXIT_SAPLV56F_012

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 STTRG FROM VTTK INTO @DATA(ld_i_status).
 
 
 
 
"SELECT single DTABF FROM VTTK INTO @DATA(ld_i_new_status_date).
 
 
"SELECT single UZABF FROM VTTK INTO @DATA(ld_i_new_status_time).
 
 
 
 
"SELECT single SELKZ FROM RV56A INTO @DATA(ld_opt_dialog).
 
 
 
 
 


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!