SAP SD_STAGE_FREIGHT_CODES Function Module for NOTRANSL: Show the freight codes for a shipment stage
SD_STAGE_FREIGHT_CODES is a standard sd stage freight codes 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: Show the freight codes for a shipment stage 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 stage freight codes FM, simply by entering the name SD_STAGE_FREIGHT_CODES into the relevant SAP transaction such as SE37 or SE38.
Function Group: V56J
Program Name: SAPLV56J
Main Program:
Appliation area: V
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function SD_STAGE_FREIGHT_CODES 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_STAGE_FREIGHT_CODES'"NOTRANSL: Show the freight codes for a shipment stage.
EXPORTING
I_VTTS = "
I_VTTK = "
IMPORTING
E_GARVZ = "
E_GARVZ_BEZ = "
TABLES
I_VTRLP = "
C_VTTS_FCS = "
EXCEPTIONS
NO_FREIGHT_CODE_SET_FOUND = 1
IMPORTING Parameters details for SD_STAGE_FREIGHT_CODES
I_VTTS -
Data type: VTTSOptional: No
Call by Reference: Yes
I_VTTK -
Data type: VTTKVBOptional: No
Call by Reference: Yes
EXPORTING Parameters details for SD_STAGE_FREIGHT_CODES
E_GARVZ -
Data type: TGAV-GARVZOptional: No
Call by Reference: Yes
E_GARVZ_BEZ -
Data type: TGAVT-BEZEIOptional: No
Call by Reference: Yes
TABLES Parameters details for SD_STAGE_FREIGHT_CODES
I_VTRLP -
Data type: VTRLPOptional: No
Call by Reference: No ( called with pass by value option)
C_VTTS_FCS -
Data type: VTTS_FCSOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
NO_FREIGHT_CODE_SET_FOUND -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for SD_STAGE_FREIGHT_CODES 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_vtts | TYPE VTTS, " | |||
| lv_e_garvz | TYPE TGAV-GARVZ, " | |||
| lt_i_vtrlp | TYPE STANDARD TABLE OF VTRLP, " | |||
| lv_no_freight_code_set_found | TYPE VTRLP, " | |||
| lv_i_vttk | TYPE VTTKVB, " | |||
| lt_c_vtts_fcs | TYPE STANDARD TABLE OF VTTS_FCS, " | |||
| lv_e_garvz_bez | TYPE TGAVT-BEZEI. " |
|   CALL FUNCTION 'SD_STAGE_FREIGHT_CODES' "NOTRANSL: Show the freight codes for a shipment stage |
| EXPORTING | ||
| I_VTTS | = lv_i_vtts | |
| I_VTTK | = lv_i_vttk | |
| IMPORTING | ||
| E_GARVZ | = lv_e_garvz | |
| E_GARVZ_BEZ | = lv_e_garvz_bez | |
| TABLES | ||
| I_VTRLP | = lt_i_vtrlp | |
| C_VTTS_FCS | = lt_c_vtts_fcs | |
| EXCEPTIONS | ||
| NO_FREIGHT_CODE_SET_FOUND = 1 | ||
| . " SD_STAGE_FREIGHT_CODES | ||
ABAP code using 7.40 inline data declarations to call FM SD_STAGE_FREIGHT_CODES
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 GARVZ FROM TGAV INTO @DATA(ld_e_garvz). | ||||
| "SELECT single BEZEI FROM TGAVT INTO @DATA(ld_e_garvz_bez). | ||||
Search for further information about these or an SAP related objects