SAP ST_STAGE_DELETE Function Module for NOTRANSL: Abschnitt: Existierenden Abschnitt löschen
ST_STAGE_DELETE is a standard st stage delete 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: Abschnitt: Existierenden Abschnitt löschen 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 st stage delete FM, simply by entering the name ST_STAGE_DELETE into the relevant SAP transaction such as SE37 or SE38.
Function Group: STAG
Program Name: SAPLSTAG
Main Program: SAPLSTAG
Appliation area: V
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function ST_STAGE_DELETE 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 'ST_STAGE_DELETE'"NOTRANSL: Abschnitt: Existierenden Abschnitt löschen.
EXPORTING
I_TKNUM = "Transport number
I_TSNUM = "
TABLES
C_XVTTS = "Stages
C_YVTTS = "Stages
C_XVTSP = "
C_YVTSP = "
C_XVBPA = "Partner
C_YVBPA = "Partner
C_XVBADR = "
C_YVBADR = "
EXCEPTIONS
DELETION_FAILED = 1 STAGE_DOES_NOT_EXIST = 2
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_SAPLSTAG_001 Shipment Stage: Determine Distance
EXIT_SAPLSTAG_002 Leg Determination: Generation of Location Identification
IMPORTING Parameters details for ST_STAGE_DELETE
I_TKNUM - Transport number
Data type: VTTS-TKNUMOptional: No
Call by Reference: No ( called with pass by value option)
I_TSNUM -
Data type: VTTS-TSNUMOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for ST_STAGE_DELETE
C_XVTTS - Stages
Data type: VTTSVBOptional: No
Call by Reference: No ( called with pass by value option)
C_YVTTS - Stages
Data type: VTTSVBOptional: No
Call by Reference: No ( called with pass by value option)
C_XVTSP -
Data type: VTSPVBOptional: No
Call by Reference: No ( called with pass by value option)
C_YVTSP -
Data type: VTSPVBOptional: No
Call by Reference: No ( called with pass by value option)
C_XVBPA - Partner
Data type: VBPAVBOptional: No
Call by Reference: No ( called with pass by value option)
C_YVBPA - Partner
Data type: VBPAVBOptional: No
Call by Reference: No ( called with pass by value option)
C_XVBADR -
Data type: SADRVBOptional: No
Call by Reference: No ( called with pass by value option)
C_YVBADR -
Data type: SADRVBOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
DELETION_FAILED - Delete failed
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
STAGE_DOES_NOT_EXIST -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for ST_STAGE_DELETE 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: | ||||
| lt_c_xvtts | TYPE STANDARD TABLE OF VTTSVB, " | |||
| lv_i_tknum | TYPE VTTS-TKNUM, " | |||
| lv_deletion_failed | TYPE VTTS, " | |||
| lt_c_yvtts | TYPE STANDARD TABLE OF VTTSVB, " | |||
| lv_i_tsnum | TYPE VTTS-TSNUM, " | |||
| lv_stage_does_not_exist | TYPE VTTS, " | |||
| lt_c_xvtsp | TYPE STANDARD TABLE OF VTSPVB, " | |||
| 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, " | |||
| lt_c_yvbadr | TYPE STANDARD TABLE OF SADRVB. " |
|   CALL FUNCTION 'ST_STAGE_DELETE' "NOTRANSL: Abschnitt: Existierenden Abschnitt löschen |
| EXPORTING | ||
| I_TKNUM | = lv_i_tknum | |
| I_TSNUM | = lv_i_tsnum | |
| TABLES | ||
| 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 | |
| C_YVBADR | = lt_c_yvbadr | |
| EXCEPTIONS | ||
| DELETION_FAILED = 1 | ||
| STAGE_DOES_NOT_EXIST = 2 | ||
| . " ST_STAGE_DELETE | ||
ABAP code using 7.40 inline data declarations to call FM ST_STAGE_DELETE
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 TKNUM FROM VTTS INTO @DATA(ld_i_tknum). | ||||
| "SELECT single TSNUM FROM VTTS INTO @DATA(ld_i_tsnum). | ||||
Search for further information about these or an SAP related objects