SAP CKMH_F_SET_MSG_VARIABLE_MAT Function Module for









CKMH_F_SET_MSG_VARIABLE_MAT is a standard ckmh f set msg variable mat SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 ckmh f set msg variable mat FM, simply by entering the name CKMH_F_SET_MSG_VARIABLE_MAT into the relevant SAP transaction such as SE37 or SE38.

Function Group: CKMH
Program Name: SAPLCKMH
Main Program: SAPLCKMH
Appliation area: K
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function CKMH_F_SET_MSG_VARIABLE_MAT 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 'CKMH_F_SET_MSG_VARIABLE_MAT'"
EXPORTING
* I_KALNR = "Cost Estimate Number
* I_MATNR = "Material Number
* I_BWTAR = "Valuation Type
* I_BWKEY = "Valuation Area
* I_VBELN = "Sales and Distribution Document Number
* I_POSNR = "Item Number of the SD Document
* I_PSPNR = "Work Breakdown Structure Element (WBS Element)
* I_LIFNR = "Account Number of Vendor
* I_SOBKZ = "Special Stock Indicator

IMPORTING
E_VARIABLE_VALUES = "
E_VARIABLE_TEXTS = "
E_VALUES_LONG = "

EXCEPTIONS
MISSING_INPUT = 1 INCONSISTENT_INPUT = 2 INTERNAL_ERROR = 3
.



IMPORTING Parameters details for CKMH_F_SET_MSG_VARIABLE_MAT

I_KALNR - Cost Estimate Number

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

I_MATNR - Material Number

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

I_BWTAR - Valuation Type

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

I_BWKEY - Valuation Area

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

I_VBELN - Sales and Distribution Document Number

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

I_POSNR - Item Number of the SD Document

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

I_PSPNR - Work Breakdown Structure Element (WBS Element)

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

I_LIFNR - Account Number of Vendor

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

I_SOBKZ - Special Stock Indicator

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

EXPORTING Parameters details for CKMH_F_SET_MSG_VARIABLE_MAT

E_VARIABLE_VALUES -

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

E_VARIABLE_TEXTS -

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

E_VALUES_LONG -

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

EXCEPTIONS details

MISSING_INPUT - Incomplete entry

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

INCONSISTENT_INPUT - Inconsistent Entry

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

INTERNAL_ERROR - Internal error

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

Copy and paste ABAP code example for CKMH_F_SET_MSG_VARIABLE_MAT 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_i_kalnr  TYPE CK_KALNR, "   
lv_missing_input  TYPE CK_KALNR, "   
lv_e_variable_values  TYPE CHAR50, "   
lv_i_matnr  TYPE MATNR, "   
lv_e_variable_texts  TYPE CHAR50, "   
lv_inconsistent_input  TYPE CHAR50, "   
lv_i_bwtar  TYPE BWTAR_D, "   
lv_e_values_long  TYPE STRING, "   
lv_internal_error  TYPE STRING, "   
lv_i_bwkey  TYPE BWKEY, "   
lv_i_vbeln  TYPE VBELN, "   
lv_i_posnr  TYPE POSNR, "   
lv_i_pspnr  TYPE PS_PSP_PNR, "   
lv_i_lifnr  TYPE LIFNR, "   
lv_i_sobkz  TYPE SOBKZ. "   

  CALL FUNCTION 'CKMH_F_SET_MSG_VARIABLE_MAT'  "
    EXPORTING
         I_KALNR = lv_i_kalnr
         I_MATNR = lv_i_matnr
         I_BWTAR = lv_i_bwtar
         I_BWKEY = lv_i_bwkey
         I_VBELN = lv_i_vbeln
         I_POSNR = lv_i_posnr
         I_PSPNR = lv_i_pspnr
         I_LIFNR = lv_i_lifnr
         I_SOBKZ = lv_i_sobkz
    IMPORTING
         E_VARIABLE_VALUES = lv_e_variable_values
         E_VARIABLE_TEXTS = lv_e_variable_texts
         E_VALUES_LONG = lv_e_values_long
    EXCEPTIONS
        MISSING_INPUT = 1
        INCONSISTENT_INPUT = 2
        INTERNAL_ERROR = 3
. " CKMH_F_SET_MSG_VARIABLE_MAT




ABAP code using 7.40 inline data declarations to call FM CKMH_F_SET_MSG_VARIABLE_MAT

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.

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 


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!