SAP CSMD_HEADER_EVALUATE Function Module for NOTRANSL: Gültigkeit der Stücklistenpositionen prüfen









CSMD_HEADER_EVALUATE is a standard csmd header evaluate 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: Gültigkeit der Stücklistenpositionen prüfen 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 csmd header evaluate FM, simply by entering the name CSMD_HEADER_EVALUATE into the relevant SAP transaction such as SE37 or SE38.

Function Group: CSMD
Program Name: SAPLCSMD
Main Program: SAPLCSMD
Appliation area: C
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function CSMD_HEADER_EVALUATE 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 'CSMD_HEADER_EVALUATE'"NOTRANSL: Gültigkeit der Stücklistenpositionen prüfen
EXPORTING
* I_WERKS = "Plant
* I_DATUV = "ABAP System Field: Current Date of Application Server
* I_TECHS = "Parameter Variant/Standard Variant
* I_ALTSL = "Method for Selecting Alternative Bills of Material

IMPORTING
E_MDSKX = "View: BOM header for gross reqmts planning

TABLES
MDSKX = "View: BOM header for gross reqmts planning

EXCEPTIONS
BOM_NOT_VALID = 1
.



IMPORTING Parameters details for CSMD_HEADER_EVALUATE

I_WERKS - Plant

Data type: MAST-WERKS
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_DATUV - ABAP System Field: Current Date of Application Server

Data type: SY-DATUM
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_TECHS - Parameter Variant/Standard Variant

Data type: TECS-TECHS
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_ALTSL - Method for Selecting Alternative Bills of Material

Data type: MARC-ALTSL
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for CSMD_HEADER_EVALUATE

E_MDSKX - View: BOM header for gross reqmts planning

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

TABLES Parameters details for CSMD_HEADER_EVALUATE

MDSKX - View: BOM header for gross reqmts planning

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

EXCEPTIONS details

BOM_NOT_VALID - Bill of material is not valid

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for CSMD_HEADER_EVALUATE 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_mdskx  TYPE STANDARD TABLE OF MDSK, "   
lv_e_mdskx  TYPE MDSK, "   
lv_i_werks  TYPE MAST-WERKS, "   
lv_bom_not_valid  TYPE MAST, "   
lv_i_datuv  TYPE SY-DATUM, "   
lv_i_techs  TYPE TECS-TECHS, "   
lv_i_altsl  TYPE MARC-ALTSL. "   

  CALL FUNCTION 'CSMD_HEADER_EVALUATE'  "NOTRANSL: Gültigkeit der Stücklistenpositionen prüfen
    EXPORTING
         I_WERKS = lv_i_werks
         I_DATUV = lv_i_datuv
         I_TECHS = lv_i_techs
         I_ALTSL = lv_i_altsl
    IMPORTING
         E_MDSKX = lv_e_mdskx
    TABLES
         MDSKX = lt_mdskx
    EXCEPTIONS
        BOM_NOT_VALID = 1
. " CSMD_HEADER_EVALUATE




ABAP code using 7.40 inline data declarations to call FM CSMD_HEADER_EVALUATE

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 WERKS FROM MAST INTO @DATA(ld_i_werks).
 
 
"SELECT single DATUM FROM SY INTO @DATA(ld_i_datuv).
 
"SELECT single TECHS FROM TECS INTO @DATA(ld_i_techs).
 
"SELECT single ALTSL FROM MARC INTO @DATA(ld_i_altsl).
 


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!