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

Function ST_STAGE_MAINTAIN_SCI 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_MAINTAIN_SCI'"NOTRANSL: Abschnitt: Alle pflegen bei Frachtauskunft.
EXPORTING
I_TKNUM = "Transport number
I_TSNUM = "Stage of transport number
* I_OPT_DISPLAY = 'X' "Selection Indicator
IMPORTING
E_PRESSED_FCODE = "Screens, Function Code That Triggered PAI
TABLES
I_XVTTP = "Shipment Item for Logging
I_VTRLK = "Delivery in Shipment: Header
C_XVTTS = "Stage of Shipment
C_YVTTS = "Stage of Shipment
C_XVTSP = "Stage of Transport / Item: Logging
C_YVTSP = "Stage of Transport / Item: Logging
C_XVBPA = "Reference structure for XVBPA/YVBPA
C_YVBPA = "Reference structure for XVBPA/YVBPA
C_XVBADR = "Reference structure for XSADR/YSADR
C_YVBADR = "Reference structure for XSADR/YSADR
EXCEPTIONS
STAGE_DATA_MISSING = 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_SAPLSTAG_001 Shipment Stage: Determine Distance
EXIT_SAPLSTAG_002 Leg Determination: Generation of Location Identification
IMPORTING Parameters details for ST_STAGE_MAINTAIN_SCI
I_TKNUM - Transport number
Data type: VTTK-TKNUMOptional: No
Call by Reference: No ( called with pass by value option)
I_TSNUM - Stage of transport number
Data type: VTTS-TSNUMOptional: No
Call by Reference: No ( called with pass by value option)
I_OPT_DISPLAY - Selection Indicator
Data type: RV56A-SELKZDefault: 'X'
Optional: Yes
Call by Reference: Yes
EXPORTING Parameters details for ST_STAGE_MAINTAIN_SCI
E_PRESSED_FCODE - Screens, Function Code That Triggered PAI
Data type: SY-UCOMMOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for ST_STAGE_MAINTAIN_SCI
I_XVTTP - Shipment Item for Logging
Data type: VTTPVBOptional: No
Call by Reference: Yes
I_VTRLK - Delivery in Shipment: Header
Data type: VTRLKOptional: No
Call by Reference: Yes
C_XVTTS - Stage of Shipment
Data type: VTTSVBOptional: No
Call by Reference: Yes
C_YVTTS - Stage of Shipment
Data type: VTTSVBOptional: No
Call by Reference: Yes
C_XVTSP - Stage of Transport / Item: Logging
Data type: VTSPVBOptional: No
Call by Reference: Yes
C_YVTSP - Stage of Transport / Item: Logging
Data type: VTSPVBOptional: No
Call by Reference: Yes
C_XVBPA - Reference structure for XVBPA/YVBPA
Data type: VBPAVBOptional: No
Call by Reference: Yes
C_YVBPA - Reference structure for XVBPA/YVBPA
Data type: VBPAVBOptional: No
Call by Reference: Yes
C_XVBADR - Reference structure for XSADR/YSADR
Data type: SADRVBOptional: No
Call by Reference: Yes
C_YVBADR - Reference structure for XSADR/YSADR
Data type: SADRVBOptional: No
Call by Reference: Yes
EXCEPTIONS details
STAGE_DATA_MISSING -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for ST_STAGE_MAINTAIN_SCI 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_i_tknum | TYPE VTTK-TKNUM, " | |||
| lt_i_xvttp | TYPE STANDARD TABLE OF VTTPVB, " | |||
| lv_e_pressed_fcode | TYPE SY-UCOMM, " | |||
| lv_stage_data_missing | TYPE SY, " | |||
| lt_i_vtrlk | TYPE STANDARD TABLE OF VTRLK, " | |||
| lt_c_xvtts | TYPE STANDARD TABLE OF VTTSVB, " | |||
| lv_i_tsnum | TYPE VTTS-TSNUM, " | |||
| lt_c_yvtts | TYPE STANDARD TABLE OF VTTSVB, " | |||
| lv_i_opt_display | TYPE RV56A-SELKZ, " 'X' | |||
| 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_MAINTAIN_SCI' "NOTRANSL: Abschnitt: Alle pflegen bei Frachtauskunft |
| EXPORTING | ||
| I_TKNUM | = lv_i_tknum | |
| I_TSNUM | = lv_i_tsnum | |
| I_OPT_DISPLAY | = lv_i_opt_display | |
| IMPORTING | ||
| E_PRESSED_FCODE | = lv_e_pressed_fcode | |
| TABLES | ||
| I_XVTTP | = lt_i_xvttp | |
| I_VTRLK | = lt_i_vtrlk | |
| 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 | ||
| STAGE_DATA_MISSING = 1 | ||
| . " ST_STAGE_MAINTAIN_SCI | ||
ABAP code using 7.40 inline data declarations to call FM ST_STAGE_MAINTAIN_SCI
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 VTTK INTO @DATA(ld_i_tknum). | ||||
| "SELECT single UCOMM FROM SY INTO @DATA(ld_e_pressed_fcode). | ||||
| "SELECT single TSNUM FROM VTTS INTO @DATA(ld_i_tsnum). | ||||
| "SELECT single SELKZ FROM RV56A INTO @DATA(ld_i_opt_display). | ||||
| DATA(ld_i_opt_display) | = 'X'. | |||
Search for further information about these or an SAP related objects