SAP SD_SCD_UPDATE Function Module for Update Shipment Costs
SD_SCD_UPDATE is a standard sd scd update SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Update Shipment Costs 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 update FM, simply by entering the name SD_SCD_UPDATE into the relevant SAP transaction such as SE37 or SE38.
Function Group: V54U
Program Name: SAPLV54U
Main Program: SAPLV54U
Appliation area: V
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function SD_SCD_UPDATE 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_UPDATE'"Update Shipment Costs.
EXPORTING
* I_OPT_UPDATE_TASK = 'X' "Selection flag
I_T180 = "Screen Sequence Control: Transaction Default Values
TABLES
I_XVFKK = "Shipping costs: Header data (for logging)
I_YVFKN = "Account Assignment Shipment Cost Item: (for logging)
I_XVBPA = "Reference structure for XVBPA/YVBPA
I_YVBPA = "Reference structure for XVBPA/YVBPA
I_XVBADR = "Reference structure for XSADR/YSADR
I_YVBADR = "Reference structure for XSADR/YSADR
I_XVTFA = "Update Structure VTFA with Dynamic Division
I_YVTFA = "Update Structure VTFA with Dynamic Division
I_XKOMV = "Pricing Communications-Condition Record
I_YKOMV = "
I_XVFKOMV = "(Freight) Conditions
I_YVFKK = "Shipping costs: Header data (for logging)
I_YVFKOMV = "(Freight) Conditions
I_XVFKP = "Shipment Costs: Item Data (for Logging)
I_YVFKP = "Shipment Costs: Item Data (for Logging)
I_XVFSI = "Shipment Costs: Sub-item Data (for Logging)
I_YVFSI = "Shipment Costs: Sub-item Data (for Logging)
I_XVFZP = "Shipment Costs: Assignment (for Logging)
I_YVFZP = "Shipment Costs: Assignment (for Logging)
I_XVFKN = "Account Assignment Shipment Cost Item: (for logging)
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_SAPLV54U_001 Review of Shipment Costs for Changes
EXIT_SAPLV54U_002 Review of Shipment Costs for Completeness
EXIT_SAPLV54U_003 Specification of shipment cost number
EXIT_SAPLV54U_004 Shipment Cost Processing: Prepare New Objects for Saving
EXIT_SAPLV54U_005 Shipment Cost Processing: Save New Objects
EXIT_SAPLV54U_006 Shipment Purchase Order - Sales Data (Header)
EXIT_SAPLV54U_007 Shipment Purchase Order - Sales Data (Item)
IMPORTING Parameters details for SD_SCD_UPDATE
I_OPT_UPDATE_TASK - Selection flag
Data type: RV54A-SELKZDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_T180 - Screen Sequence Control: Transaction Default Values
Data type: T180Optional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for SD_SCD_UPDATE
I_XVFKK - Shipping costs: Header data (for logging)
Data type: VFKKVBOptional: No
Call by Reference: No ( called with pass by value option)
I_YVFKN - Account Assignment Shipment Cost Item: (for logging)
Data type: VFKNVBOptional: No
Call by Reference: No ( called with pass by value option)
I_XVBPA - Reference structure for XVBPA/YVBPA
Data type: VBPAVBOptional: No
Call by Reference: No ( called with pass by value option)
I_YVBPA - Reference structure for XVBPA/YVBPA
Data type: VBPAVBOptional: No
Call by Reference: No ( called with pass by value option)
I_XVBADR - Reference structure for XSADR/YSADR
Data type: SADRVBOptional: No
Call by Reference: No ( called with pass by value option)
I_YVBADR - Reference structure for XSADR/YSADR
Data type: SADRVBOptional: No
Call by Reference: No ( called with pass by value option)
I_XVTFA - Update Structure VTFA with Dynamic Division
Data type: VTFAVBOptional: No
Call by Reference: No ( called with pass by value option)
I_YVTFA - Update Structure VTFA with Dynamic Division
Data type: VTFAVBOptional: No
Call by Reference: No ( called with pass by value option)
I_XKOMV - Pricing Communications-Condition Record
Data type: KOMVOptional: No
Call by Reference: No ( called with pass by value option)
I_YKOMV -
Data type: V54A0_YKOMV_TABOptional: No
Call by Reference: Yes
I_XVFKOMV - (Freight) Conditions
Data type: VFKOMVOptional: No
Call by Reference: No ( called with pass by value option)
I_YVFKK - Shipping costs: Header data (for logging)
Data type: VFKKVBOptional: No
Call by Reference: No ( called with pass by value option)
I_YVFKOMV - (Freight) Conditions
Data type: VFKOMVOptional: No
Call by Reference: Yes
I_XVFKP - Shipment Costs: Item Data (for Logging)
Data type: VFKPVBOptional: No
Call by Reference: No ( called with pass by value option)
I_YVFKP - Shipment Costs: Item Data (for Logging)
Data type: VFKPVBOptional: No
Call by Reference: No ( called with pass by value option)
I_XVFSI - Shipment Costs: Sub-item Data (for Logging)
Data type: VFSIVBOptional: No
Call by Reference: No ( called with pass by value option)
I_YVFSI - Shipment Costs: Sub-item Data (for Logging)
Data type: VFSIVBOptional: No
Call by Reference: No ( called with pass by value option)
I_XVFZP - Shipment Costs: Assignment (for Logging)
Data type: VFZPVBOptional: No
Call by Reference: No ( called with pass by value option)
I_YVFZP - Shipment Costs: Assignment (for Logging)
Data type: VFZPVBOptional: No
Call by Reference: No ( called with pass by value option)
I_XVFKN - Account Assignment Shipment Cost Item: (for logging)
Data type: VFKNVBOptional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for SD_SCD_UPDATE 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: | ||||
| lt_i_xvfkk | TYPE STANDARD TABLE OF VFKKVB, " | |||
| lv_i_opt_update_task | TYPE RV54A-SELKZ, " 'X' | |||
| lt_i_yvfkn | TYPE STANDARD TABLE OF VFKNVB, " | |||
| lt_i_xvbpa | TYPE STANDARD TABLE OF VBPAVB, " | |||
| lt_i_yvbpa | TYPE STANDARD TABLE OF VBPAVB, " | |||
| lt_i_xvbadr | TYPE STANDARD TABLE OF SADRVB, " | |||
| lt_i_yvbadr | TYPE STANDARD TABLE OF SADRVB, " | |||
| lt_i_xvtfa | TYPE STANDARD TABLE OF VTFAVB, " | |||
| lt_i_yvtfa | TYPE STANDARD TABLE OF VTFAVB, " | |||
| lt_i_xkomv | TYPE STANDARD TABLE OF KOMV, " | |||
| lt_i_ykomv | TYPE STANDARD TABLE OF V54A0_YKOMV_TAB, " | |||
| lt_i_xvfkomv | TYPE STANDARD TABLE OF VFKOMV, " | |||
| lv_i_t180 | TYPE T180, " | |||
| lt_i_yvfkk | TYPE STANDARD TABLE OF VFKKVB, " | |||
| lt_i_yvfkomv | TYPE STANDARD TABLE OF VFKOMV, " | |||
| lt_i_xvfkp | TYPE STANDARD TABLE OF VFKPVB, " | |||
| lt_i_yvfkp | TYPE STANDARD TABLE OF VFKPVB, " | |||
| lt_i_xvfsi | TYPE STANDARD TABLE OF VFSIVB, " | |||
| lt_i_yvfsi | TYPE STANDARD TABLE OF VFSIVB, " | |||
| lt_i_xvfzp | TYPE STANDARD TABLE OF VFZPVB, " | |||
| lt_i_yvfzp | TYPE STANDARD TABLE OF VFZPVB, " | |||
| lt_i_xvfkn | TYPE STANDARD TABLE OF VFKNVB. " |
|   CALL FUNCTION 'SD_SCD_UPDATE' "Update Shipment Costs |
| EXPORTING | ||
| I_OPT_UPDATE_TASK | = lv_i_opt_update_task | |
| I_T180 | = lv_i_t180 | |
| TABLES | ||
| I_XVFKK | = lt_i_xvfkk | |
| I_YVFKN | = lt_i_yvfkn | |
| I_XVBPA | = lt_i_xvbpa | |
| I_YVBPA | = lt_i_yvbpa | |
| I_XVBADR | = lt_i_xvbadr | |
| I_YVBADR | = lt_i_yvbadr | |
| I_XVTFA | = lt_i_xvtfa | |
| I_YVTFA | = lt_i_yvtfa | |
| I_XKOMV | = lt_i_xkomv | |
| I_YKOMV | = lt_i_ykomv | |
| I_XVFKOMV | = lt_i_xvfkomv | |
| I_YVFKK | = lt_i_yvfkk | |
| I_YVFKOMV | = lt_i_yvfkomv | |
| I_XVFKP | = lt_i_xvfkp | |
| I_YVFKP | = lt_i_yvfkp | |
| I_XVFSI | = lt_i_xvfsi | |
| I_YVFSI | = lt_i_yvfsi | |
| I_XVFZP | = lt_i_xvfzp | |
| I_YVFZP | = lt_i_yvfzp | |
| I_XVFKN | = lt_i_xvfkn | |
| . " SD_SCD_UPDATE | ||
ABAP code using 7.40 inline data declarations to call FM SD_SCD_UPDATE
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_update_task). | ||||
| DATA(ld_i_opt_update_task) | = 'X'. | |||
Search for further information about these or an SAP related objects