SAP SD_SCD_COST_INFO_SHIPMENT Function Module for NOTRANSL: Freight Cost Estimate for a shipment









SD_SCD_COST_INFO_SHIPMENT is a standard sd scd cost info shipment 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: Freight Cost Estimate for a shipment 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 cost info shipment FM, simply by entering the name SD_SCD_COST_INFO_SHIPMENT into the relevant SAP transaction such as SE37 or SE38.

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



Function SD_SCD_COST_INFO_SHIPMENT 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_COST_INFO_SHIPMENT'"NOTRANSL: Freight Cost Estimate for a shipment
EXPORTING
I_SHIPMENT_DATA = "DE-EN-LANG-SWITCH-NO-TRANSLATION
* I_OPT_DIALOG = ' ' "Generic Type
* I_OPT_BATCH_MODE = ' ' "Generic Type
* I_OPT_SIM = 2 "Predefined Type
* I_OPT_PRSDT = "Date for Pricing and Exchange Rate

IMPORTING
E_RESULT = "Total net value for all shipments in the program run
E_RESULT_WAERS = "Currency of total net value
E_ERRORS_OCCURED = "Generic Type

TABLES
* C_LOG_FILE = "Log Generation Interface
.




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_SAPLV54P_001 Shipment Cost Information: Define Customer-Specific Function Codes
EXIT_SAPLV54P_002 Shipment Cost Information: Execute Customer-Specific Functions

IMPORTING Parameters details for SD_SCD_COST_INFO_SHIPMENT

I_SHIPMENT_DATA - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

I_OPT_DIALOG - Generic Type

Data type: C
Default: SPACE
Optional: Yes
Call by Reference: Yes

I_OPT_BATCH_MODE - Generic Type

Data type: C
Default: SPACE
Optional: Yes
Call by Reference: Yes

I_OPT_SIM - Predefined Type

Data type: I
Default: 2
Optional: Yes
Call by Reference: Yes

I_OPT_PRSDT - Date for Pricing and Exchange Rate

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

EXPORTING Parameters details for SD_SCD_COST_INFO_SHIPMENT

E_RESULT - Total net value for all shipments in the program run

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

E_RESULT_WAERS - Currency of total net value

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

E_ERRORS_OCCURED - Generic Type

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

TABLES Parameters details for SD_SCD_COST_INFO_SHIPMENT

C_LOG_FILE - Log Generation Interface

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

Copy and paste ABAP code example for SD_SCD_COST_INFO_SHIPMENT 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_e_result  TYPE NETWR_ALL, "   
lt_c_log_file  TYPE STANDARD TABLE OF SPROT_U, "   
lv_i_shipment_data  TYPE VT04_SHIPMENT, "   
lv_i_opt_dialog  TYPE C, "   SPACE
lv_e_result_waers  TYPE WAERS_ALL, "   
lv_e_errors_occured  TYPE C, "   
lv_i_opt_batch_mode  TYPE C, "   SPACE
lv_i_opt_sim  TYPE I, "   2
lv_i_opt_prsdt  TYPE PRSDT. "   

  CALL FUNCTION 'SD_SCD_COST_INFO_SHIPMENT'  "NOTRANSL: Freight Cost Estimate for a shipment
    EXPORTING
         I_SHIPMENT_DATA = lv_i_shipment_data
         I_OPT_DIALOG = lv_i_opt_dialog
         I_OPT_BATCH_MODE = lv_i_opt_batch_mode
         I_OPT_SIM = lv_i_opt_sim
         I_OPT_PRSDT = lv_i_opt_prsdt
    IMPORTING
         E_RESULT = lv_e_result
         E_RESULT_WAERS = lv_e_result_waers
         E_ERRORS_OCCURED = lv_e_errors_occured
    TABLES
         C_LOG_FILE = lt_c_log_file
. " SD_SCD_COST_INFO_SHIPMENT




ABAP code using 7.40 inline data declarations to call FM SD_SCD_COST_INFO_SHIPMENT

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.

 
 
 
DATA(ld_i_opt_dialog) = ' '.
 
 
 
DATA(ld_i_opt_batch_mode) = ' '.
 
DATA(ld_i_opt_sim) = 2.
 
 


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!