SAP CDESK_SRV_CREATE_MATERIAL Function Module for Create Material









CDESK_SRV_CREATE_MATERIAL is a standard cdesk srv create material SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Create Material 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 cdesk srv create material FM, simply by entering the name CDESK_SRV_CREATE_MATERIAL into the relevant SAP transaction such as SE37 or SE38.

Function Group: CDESK_SRV
Program Name: SAPLCDESK_SRV
Main Program: SAPLCDESK_SRV
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:



Function CDESK_SRV_CREATE_MATERIAL 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 'CDESK_SRV_CREATE_MATERIAL'"Create Material
TABLES
IT_OBJ_ID_MAT_KEY = "Structure for Object ID & Material Key
* IT_MATERIAL_ATTR = "Flexible Data Transfer - Object ID & Data
* IT_DESCRIPTION = "Flexible Data Transfer - Object ID & Description
* ET_OBJ_ID_MAT_KEY = "Structure for Object ID & Material Key
ET_OBJ_ID_MAT_EXT_KEY = "Structure for Object ID & Material External Key
* ET_MESSAGE = "Message: Object
* ET_MESSAGE_CREATE = "Message: Object
* ET_RUNTIME = "Runtime(s)
.



TABLES Parameters details for CDESK_SRV_CREATE_MATERIAL

IT_OBJ_ID_MAT_KEY - Structure for Object ID & Material Key

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

IT_MATERIAL_ATTR - Flexible Data Transfer - Object ID & Data

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

IT_DESCRIPTION - Flexible Data Transfer - Object ID & Description

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

ET_OBJ_ID_MAT_KEY - Structure for Object ID & Material Key

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

ET_OBJ_ID_MAT_EXT_KEY - Structure for Object ID & Material External Key

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

ET_MESSAGE - Message: Object

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

ET_MESSAGE_CREATE - Message: Object

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

ET_RUNTIME - Runtime(s)

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

Copy and paste ABAP code example for CDESK_SRV_CREATE_MATERIAL 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_it_obj_id_mat_key  TYPE STANDARD TABLE OF CDESK_SRV_S_ID_MAT_KEY, "   
lt_it_material_attr  TYPE STANDARD TABLE OF CDESK_SRV_S_FDT_ID_DATA, "   
lt_it_description  TYPE STANDARD TABLE OF CDESK_SRV_S_FDT_ID_DESC, "   
lt_et_obj_id_mat_key  TYPE STANDARD TABLE OF CDESK_SRV_S_ID_MAT_KEY, "   
lt_et_obj_id_mat_ext_key  TYPE STANDARD TABLE OF CDESK_SRV_S_ID_MAT_KEY, "   
lt_et_message  TYPE STANDARD TABLE OF CDESK_SRV_S_MSG_OBJ_ACTION, "   
lt_et_message_create  TYPE STANDARD TABLE OF CDESK_SRV_S_MSG_OBJ_ACTION, "   
lt_et_runtime  TYPE STANDARD TABLE OF CDESK_SRV_S_RUNTIME. "   

  CALL FUNCTION 'CDESK_SRV_CREATE_MATERIAL'  "Create Material
    TABLES
         IT_OBJ_ID_MAT_KEY = lt_it_obj_id_mat_key
         IT_MATERIAL_ATTR = lt_it_material_attr
         IT_DESCRIPTION = lt_it_description
         ET_OBJ_ID_MAT_KEY = lt_et_obj_id_mat_key
         ET_OBJ_ID_MAT_EXT_KEY = lt_et_obj_id_mat_ext_key
         ET_MESSAGE = lt_et_message
         ET_MESSAGE_CREATE = lt_et_message_create
         ET_RUNTIME = lt_et_runtime
. " CDESK_SRV_CREATE_MATERIAL




ABAP code using 7.40 inline data declarations to call FM CDESK_SRV_CREATE_MATERIAL

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!