SAP SD_SCD_READ Function Module for NOTRANSL: Frachtkosten lesen









SD_SCD_READ is a standard sd scd read 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: Frachtkosten lesen 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 read FM, simply by entering the name SD_SCD_READ 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_READ 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_READ'"NOTRANSL: Frachtkosten lesen
EXPORTING
I_FKNUM = "Shipment Cost Number
* I_OPT_REFOBJ_REDUCED = 'X' "Selection flag
I_T180 = "Screen Sequence Control: Transaction Default Values
* 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_REFOBJ = ' ' "Selection flag
* I_OPT_REFOBJ_LOCK = ' ' "Selection flag

CHANGING
C_SCD = "
* C_REFOBJ_TAB = "

EXCEPTIONS
SCD_NOT_FOUND = 1 REFOBJ_NOT_FOUND = 2 REFOBJ_LOCK = 3 DELIVERY_MISSING = 4
.



IMPORTING Parameters details for SD_SCD_READ

I_FKNUM - Shipment Cost Number

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

I_OPT_REFOBJ_REDUCED - Selection flag

Data type: RV54A-SELKZ
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_T180 - Screen Sequence Control: Transaction Default Values

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

I_OPT_DOCUMENT_FLOW - Selection flag

Data type: RV54A-SELKZ
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_OPT_COSTS - Selection flag

Data type: RV54A-SELKZ
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_OPT_COSTS_COMPLETE - Selection flag

Data type: RV54A-SELKZ
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_OPT_ACCOUNTS - Selection flag

Data type: RV54A-SELKZ
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_OPT_PARTNERS - Selection flag

Data type: RV54A-SELKZ
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_OPT_REFOBJ - Selection flag

Data type: RV54A-SELKZ
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_OPT_REFOBJ_LOCK - Selection flag

Data type: RV54A-SELKZ
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

CHANGING Parameters details for SD_SCD_READ

C_SCD -

Data type: V54A0_SCD
Optional: No
Call by Reference: Yes

C_REFOBJ_TAB -

Data type: V54A0_REFOBJ_TAB
Optional: Yes
Call by Reference: Yes

EXCEPTIONS details

SCD_NOT_FOUND -

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)

REFOBJ_LOCK -

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_READ 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_SCD, "   
lv_i_fknum  TYPE VFKK-FKNUM, "   
lv_scd_not_found  TYPE VFKK, "   
lv_i_opt_refobj_reduced  TYPE RV54A-SELKZ, "   'X'
lv_i_t180  TYPE T180, "   
lv_c_refobj_tab  TYPE V54A0_REFOBJ_TAB, "   
lv_refobj_not_found  TYPE V54A0_REFOBJ_TAB, "   
lv_refobj_lock  TYPE V54A0_REFOBJ_TAB, "   
lv_i_opt_document_flow  TYPE RV54A-SELKZ, "   'X'
lv_i_opt_costs  TYPE RV54A-SELKZ, "   'X'
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_refobj  TYPE RV54A-SELKZ, "   SPACE
lv_i_opt_refobj_lock  TYPE RV54A-SELKZ. "   SPACE

  CALL FUNCTION 'SD_SCD_READ'  "NOTRANSL: Frachtkosten lesen
    EXPORTING
         I_FKNUM = lv_i_fknum
         I_OPT_REFOBJ_REDUCED = lv_i_opt_refobj_reduced
         I_T180 = lv_i_t180
         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_REFOBJ = lv_i_opt_refobj
         I_OPT_REFOBJ_LOCK = lv_i_opt_refobj_lock
    CHANGING
         C_SCD = lv_c_scd
         C_REFOBJ_TAB = lv_c_refobj_tab
    EXCEPTIONS
        SCD_NOT_FOUND = 1
        REFOBJ_NOT_FOUND = 2
        REFOBJ_LOCK = 3
        DELIVERY_MISSING = 4
. " SD_SCD_READ




ABAP code using 7.40 inline data declarations to call FM SD_SCD_READ

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_refobj_reduced).
DATA(ld_i_opt_refobj_reduced) = 'X'.
 
 
 
 
 
"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_refobj).
DATA(ld_i_opt_refobj) = ' '.
 
"SELECT single SELKZ FROM RV54A INTO @DATA(ld_i_opt_refobj_lock).
DATA(ld_i_opt_refobj_lock) = ' '.
 


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!