SAP SD_SCD_ITEM_CHECK Function Module for NOTRANSL: Überprüfung der Daten einer Frachtkostenposition









SD_SCD_ITEM_CHECK is a standard sd scd item check 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: Überprüfung der Daten einer Frachtkostenposition 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 item check FM, simply by entering the name SD_SCD_ITEM_CHECK into the relevant SAP transaction such as SE37 or SE38.

Function Group: V54I
Program Name: SAPLV54I
Main Program:
Appliation area: V
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function SD_SCD_ITEM_CHECK 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_ITEM_CHECK'"NOTRANSL: Überprüfung der Daten einer Frachtkostenposition
EXPORTING
I_VFKP = "Shipment Costs: Item Data
I_VFKPD = "Shipment Costs: Item Data (Dynamic Part)
* I_SCD_ITEM_TAB = "
* I_OPT_CHECK_ALL = 'X' "Selection flag
* I_OPT_STOP_AFTER_FIRST_ERROR = 'X' "Selection flag
* I_OPT_EXCHANGE_RATE_TYPE = ' ' "Selection flag
* I_OPT_CHECK_DATE = ' ' "Selection flag
* I_OPT_CHECK_FLAGS = ' ' "Selection flag
* I_OPT_CHECK_CURRENCY = ' ' "Selection Indicator

CHANGING
* C_VFKP = "Shipment Costs: Item Data

EXCEPTIONS
WRONG_EXCHANGE_RATE_TYPE = 1 DATE_INVALID = 2 TIME_INVALID = 3 FLAG_COMBINATION_INVALID = 4 COMPANY_CODE_NOT_UNIQUE = 5 DATES_NOT_UNIQUE = 6 CURRENCY_ERROR = 7
.



IMPORTING Parameters details for SD_SCD_ITEM_CHECK

I_VFKP - Shipment Costs: Item Data

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

I_VFKPD - Shipment Costs: Item Data (Dynamic Part)

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

I_SCD_ITEM_TAB -

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

I_OPT_CHECK_ALL - Selection flag

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

I_OPT_STOP_AFTER_FIRST_ERROR - Selection flag

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

I_OPT_EXCHANGE_RATE_TYPE - Selection flag

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

I_OPT_CHECK_DATE - Selection flag

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

I_OPT_CHECK_FLAGS - Selection flag

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

I_OPT_CHECK_CURRENCY - Selection Indicator

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

CHANGING Parameters details for SD_SCD_ITEM_CHECK

C_VFKP - Shipment Costs: Item Data

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

EXCEPTIONS details

WRONG_EXCHANGE_RATE_TYPE -

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

DATE_INVALID -

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

TIME_INVALID -

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

FLAG_COMBINATION_INVALID -

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

COMPANY_CODE_NOT_UNIQUE -

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

DATES_NOT_UNIQUE -

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

CURRENCY_ERROR -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for SD_SCD_ITEM_CHECK 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_vfkp  TYPE V54A0_VFKP, "   
lv_i_vfkp  TYPE VFKP, "   
lv_wrong_exchange_rate_type  TYPE VFKP, "   
lv_i_vfkpd  TYPE VFKPD, "   
lv_date_invalid  TYPE VFKPD, "   
lv_time_invalid  TYPE VFKPD, "   
lv_i_scd_item_tab  TYPE V54A0_SCD_ITEM_TAB, "   
lv_i_opt_check_all  TYPE RV54A-SELKZ, "   'X'
lv_flag_combination_invalid  TYPE RV54A, "   
lv_company_code_not_unique  TYPE RV54A, "   
lv_i_opt_stop_after_first_error  TYPE RV54A-SELKZ, "   'X'
lv_dates_not_unique  TYPE RV54A, "   
lv_i_opt_exchange_rate_type  TYPE RV54A-SELKZ, "   SPACE
lv_currency_error  TYPE RV54A, "   
lv_i_opt_check_date  TYPE RV54A-SELKZ, "   SPACE
lv_i_opt_check_flags  TYPE RV54A-SELKZ, "   SPACE
lv_i_opt_check_currency  TYPE RV54A-SELKZ. "   SPACE

  CALL FUNCTION 'SD_SCD_ITEM_CHECK'  "NOTRANSL: Überprüfung der Daten einer Frachtkostenposition
    EXPORTING
         I_VFKP = lv_i_vfkp
         I_VFKPD = lv_i_vfkpd
         I_SCD_ITEM_TAB = lv_i_scd_item_tab
         I_OPT_CHECK_ALL = lv_i_opt_check_all
         I_OPT_STOP_AFTER_FIRST_ERROR = lv_i_opt_stop_after_first_error
         I_OPT_EXCHANGE_RATE_TYPE = lv_i_opt_exchange_rate_type
         I_OPT_CHECK_DATE = lv_i_opt_check_date
         I_OPT_CHECK_FLAGS = lv_i_opt_check_flags
         I_OPT_CHECK_CURRENCY = lv_i_opt_check_currency
    CHANGING
         C_VFKP = lv_c_vfkp
    EXCEPTIONS
        WRONG_EXCHANGE_RATE_TYPE = 1
        DATE_INVALID = 2
        TIME_INVALID = 3
        FLAG_COMBINATION_INVALID = 4
        COMPANY_CODE_NOT_UNIQUE = 5
        DATES_NOT_UNIQUE = 6
        CURRENCY_ERROR = 7
. " SD_SCD_ITEM_CHECK




ABAP code using 7.40 inline data declarations to call FM SD_SCD_ITEM_CHECK

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 SELKZ FROM RV54A INTO @DATA(ld_i_opt_check_all).
DATA(ld_i_opt_check_all) = 'X'.
 
 
 
"SELECT single SELKZ FROM RV54A INTO @DATA(ld_i_opt_stop_after_first_error).
DATA(ld_i_opt_stop_after_first_error) = 'X'.
 
 
"SELECT single SELKZ FROM RV54A INTO @DATA(ld_i_opt_exchange_rate_type).
DATA(ld_i_opt_exchange_rate_type) = ' '.
 
 
"SELECT single SELKZ FROM RV54A INTO @DATA(ld_i_opt_check_date).
DATA(ld_i_opt_check_date) = ' '.
 
"SELECT single SELKZ FROM RV54A INTO @DATA(ld_i_opt_check_flags).
DATA(ld_i_opt_check_flags) = ' '.
 
"SELECT single SELKZ FROM RV54A INTO @DATA(ld_i_opt_check_currency).
DATA(ld_i_opt_check_currency) = ' '.
 


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!