SAP SD_SCD_VIEW Function Module for NOTRANSL: Lesen Frachtkosten und zugehörige Objekte
SD_SCD_VIEW is a standard sd scd view 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: Lesen Frachtkosten und zugehörige Objekte 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 scd view FM, simply by entering the name SD_SCD_VIEW into the relevant SAP transaction such as SE37 or SE38.
Function Group: V54T
Program Name: SAPLV54T
Main Program: SAPLV54T
Appliation area: V
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function SD_SCD_VIEW 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_SCD_VIEW'"NOTRANSL: Lesen Frachtkosten und zugehörige Objekte.
EXPORTING
I_FKNUM = "Shipment Cost Number
* I_OPT_TVTFT = ' ' "Selection flag
* I_OPT_REFOBJ = ' ' "Selection flag
* I_OPT_REFOBJ_LOCK = ' ' "Selection flag
* I_OPT_REFOBJ_REDUCED = ' ' "Selection flag
* I_OPT_SINGLE_PROC = ' ' "Selection flag
I_T180 = "Screen Sequence Control: Transaction Default Values
* I_LANGU = SY-LANGU "ABAP System Field: Language Key of Text Environment
* I_OPT_DOCUMENT_FLOW = 'X' "Selection flag
* I_OPT_COSTS = 'X' "Selection flag
* I_OPT_COSTS_COMPLETE = ' ' "Selection flag
* I_OPT_ACCOUNTS = 'X' "Selection flag
* I_OPT_PARTNERS = 'X' "Selection flag
* I_OPT_AUTH_CHECK = ' ' "Selection flag
IMPORTING
E_TVTFT = "Shipment Cost Types: Descriptions
CHANGING
C_SCD = "
* C_REFOBJ_TAB = "
EXCEPTIONS
SCD_NOT_FOUND = 1 NO_AUTHORITY = 2 TVTF_TYPE_NOT_VALID = 3 REFOBJ_LOCK = 4 REFOBJ_NOT_FOUND = 5 DELIVERY_MISSING = 6
IMPORTING Parameters details for SD_SCD_VIEW
I_FKNUM - Shipment Cost Number
Data type: VFKK-FKNUMOptional: No
Call by Reference: No ( called with pass by value option)
I_OPT_TVTFT - Selection flag
Data type: RV54A-SELKZDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_OPT_REFOBJ - Selection flag
Data type: RV54A-SELKZDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_OPT_REFOBJ_LOCK - Selection flag
Data type: RV54A-SELKZDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_OPT_REFOBJ_REDUCED - Selection flag
Data type: RV54A-SELKZDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_OPT_SINGLE_PROC - Selection flag
Data type: RV54A-SELKZDefault: SPACE
Optional: Yes
Call by Reference: Yes
I_T180 - Screen Sequence Control: Transaction Default Values
Data type: T180Optional: No
Call by Reference: No ( called with pass by value option)
I_LANGU - ABAP System Field: Language Key of Text Environment
Data type: SY-LANGUDefault: SY-LANGU
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_OPT_DOCUMENT_FLOW - Selection flag
Data type: RV54A-SELKZDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_OPT_COSTS - Selection flag
Data type: RV54A-SELKZDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_OPT_COSTS_COMPLETE - Selection flag
Data type: RV54A-SELKZDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_OPT_ACCOUNTS - Selection flag
Data type: RV54A-SELKZDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_OPT_PARTNERS - Selection flag
Data type: RV54A-SELKZDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_OPT_AUTH_CHECK - Selection flag
Data type: RV54A-SELKZDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for SD_SCD_VIEW
E_TVTFT - Shipment Cost Types: Descriptions
Data type: TVTFTOptional: No
Call by Reference: No ( called with pass by value option)
CHANGING Parameters details for SD_SCD_VIEW
C_SCD -
Data type: V54A0_SCDDOptional: No
Call by Reference: Yes
C_REFOBJ_TAB -
Data type: V54A0_REFOBJ_TABOptional: Yes
Call by Reference: Yes
EXCEPTIONS details
SCD_NOT_FOUND -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_AUTHORITY -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
TVTF_TYPE_NOT_VALID -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
REFOBJ_LOCK -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
REFOBJ_NOT_FOUND -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
DELIVERY_MISSING -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for SD_SCD_VIEW 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_c_scd | TYPE V54A0_SCDD, " | |||
| lv_e_tvtft | TYPE TVTFT, " | |||
| lv_i_fknum | TYPE VFKK-FKNUM, " | |||
| lv_scd_not_found | TYPE VFKK, " | |||
| lv_i_opt_tvtft | TYPE RV54A-SELKZ, " SPACE | |||
| lv_i_opt_refobj | TYPE RV54A-SELKZ, " SPACE | |||
| lv_i_opt_refobj_lock | TYPE RV54A-SELKZ, " SPACE | |||
| lv_i_opt_refobj_reduced | TYPE RV54A-SELKZ, " SPACE | |||
| lv_i_opt_single_proc | TYPE RV54A-SELKZ, " SPACE | |||
| lv_i_t180 | TYPE T180, " | |||
| lv_c_refobj_tab | TYPE V54A0_REFOBJ_TAB, " | |||
| lv_no_authority | TYPE V54A0_REFOBJ_TAB, " | |||
| lv_i_langu | TYPE SY-LANGU, " SY-LANGU | |||
| lv_tvtf_type_not_valid | TYPE SY, " | |||
| lv_refobj_lock | TYPE SY, " | |||
| lv_i_opt_document_flow | TYPE RV54A-SELKZ, " 'X' | |||
| lv_i_opt_costs | TYPE RV54A-SELKZ, " 'X' | |||
| lv_refobj_not_found | TYPE RV54A, " | |||
| lv_delivery_missing | TYPE RV54A, " | |||
| lv_i_opt_costs_complete | TYPE RV54A-SELKZ, " SPACE | |||
| lv_i_opt_accounts | TYPE RV54A-SELKZ, " 'X' | |||
| lv_i_opt_partners | TYPE RV54A-SELKZ, " 'X' | |||
| lv_i_opt_auth_check | TYPE RV54A-SELKZ. " SPACE |
|   CALL FUNCTION 'SD_SCD_VIEW' "NOTRANSL: Lesen Frachtkosten und zugehörige Objekte |
| EXPORTING | ||
| I_FKNUM | = lv_i_fknum | |
| I_OPT_TVTFT | = lv_i_opt_tvtft | |
| I_OPT_REFOBJ | = lv_i_opt_refobj | |
| I_OPT_REFOBJ_LOCK | = lv_i_opt_refobj_lock | |
| I_OPT_REFOBJ_REDUCED | = lv_i_opt_refobj_reduced | |
| I_OPT_SINGLE_PROC | = lv_i_opt_single_proc | |
| I_T180 | = lv_i_t180 | |
| I_LANGU | = lv_i_langu | |
| I_OPT_DOCUMENT_FLOW | = lv_i_opt_document_flow | |
| I_OPT_COSTS | = lv_i_opt_costs | |
| I_OPT_COSTS_COMPLETE | = lv_i_opt_costs_complete | |
| I_OPT_ACCOUNTS | = lv_i_opt_accounts | |
| I_OPT_PARTNERS | = lv_i_opt_partners | |
| I_OPT_AUTH_CHECK | = lv_i_opt_auth_check | |
| IMPORTING | ||
| E_TVTFT | = lv_e_tvtft | |
| CHANGING | ||
| C_SCD | = lv_c_scd | |
| C_REFOBJ_TAB | = lv_c_refobj_tab | |
| EXCEPTIONS | ||
| SCD_NOT_FOUND = 1 | ||
| NO_AUTHORITY = 2 | ||
| TVTF_TYPE_NOT_VALID = 3 | ||
| REFOBJ_LOCK = 4 | ||
| REFOBJ_NOT_FOUND = 5 | ||
| DELIVERY_MISSING = 6 | ||
| . " SD_SCD_VIEW | ||
ABAP code using 7.40 inline data declarations to call FM SD_SCD_VIEW
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 FKNUM FROM VFKK INTO @DATA(ld_i_fknum). | ||||
| "SELECT single SELKZ FROM RV54A INTO @DATA(ld_i_opt_tvtft). | ||||
| DATA(ld_i_opt_tvtft) | = ' '. | |||
| "SELECT single SELKZ FROM RV54A INTO @DATA(ld_i_opt_refobj). | ||||
| DATA(ld_i_opt_refobj) | = ' '. | |||
| "SELECT single SELKZ FROM RV54A INTO @DATA(ld_i_opt_refobj_lock). | ||||
| DATA(ld_i_opt_refobj_lock) | = ' '. | |||
| "SELECT single SELKZ FROM RV54A INTO @DATA(ld_i_opt_refobj_reduced). | ||||
| DATA(ld_i_opt_refobj_reduced) | = ' '. | |||
| "SELECT single SELKZ FROM RV54A INTO @DATA(ld_i_opt_single_proc). | ||||
| DATA(ld_i_opt_single_proc) | = ' '. | |||
| "SELECT single LANGU FROM SY INTO @DATA(ld_i_langu). | ||||
| DATA(ld_i_langu) | = SY-LANGU. | |||
| "SELECT single SELKZ FROM RV54A INTO @DATA(ld_i_opt_document_flow). | ||||
| DATA(ld_i_opt_document_flow) | = 'X'. | |||
| "SELECT single SELKZ FROM RV54A INTO @DATA(ld_i_opt_costs). | ||||
| DATA(ld_i_opt_costs) | = 'X'. | |||
| "SELECT single SELKZ FROM RV54A INTO @DATA(ld_i_opt_costs_complete). | ||||
| DATA(ld_i_opt_costs_complete) | = ' '. | |||
| "SELECT single SELKZ FROM RV54A INTO @DATA(ld_i_opt_accounts). | ||||
| DATA(ld_i_opt_accounts) | = 'X'. | |||
| "SELECT single SELKZ FROM RV54A INTO @DATA(ld_i_opt_partners). | ||||
| DATA(ld_i_opt_partners) | = 'X'. | |||
| "SELECT single SELKZ FROM RV54A INTO @DATA(ld_i_opt_auth_check). | ||||
| DATA(ld_i_opt_auth_check) | = ' '. | |||
Search for further information about these or an SAP related objects