SAP SZDM_CC_CR_CREATE_DEFINITION Function Module for Creates new version of defintions for a category using provided definition









SZDM_CC_CR_CREATE_DEFINITION is a standard szdm cc cr create definition SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Creates new version of defintions for a category using provided definition 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 szdm cc cr create definition FM, simply by entering the name SZDM_CC_CR_CREATE_DEFINITION into the relevant SAP transaction such as SE37 or SE38.

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



Function SZDM_CC_CR_CREATE_DEFINITION 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 'SZDM_CC_CR_CREATE_DEFINITION'"Creates new version of defintions for a category using provided definition
EXPORTING
* IV_ERROR_HANDLING_TYPE = 'M' "Error handling type in central repository
IV_CATEGORY = "Category in central repository
IV_NEW_DEFINTION = "Information about versioning of definitions

IMPORTING
EV_GENERATED_VERSION = "Version of definition in central repository
EV_RC = "Natural number
ET_ERROR = "Table Type of central repository for error texts

EXCEPTIONS
NO_WRITE_AUTHORIZATION = 1 ERROR_CREATE_DEFINITION = 2 ERROR_REQUESTING_LOCK = 3
.



IMPORTING Parameters details for SZDM_CC_CR_CREATE_DEFINITION

IV_ERROR_HANDLING_TYPE - Error handling type in central repository

Data type: SZDM_CC_CR_ERROR_HANDLING_TYPE
Default: 'M'
Optional: Yes
Call by Reference: No ( called with pass by value option)

IV_CATEGORY - Category in central repository

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

IV_NEW_DEFINTION - Information about versioning of definitions

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

EXPORTING Parameters details for SZDM_CC_CR_CREATE_DEFINITION

EV_GENERATED_VERSION - Version of definition in central repository

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

EV_RC - Natural number

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

ET_ERROR - Table Type of central repository for error texts

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

EXCEPTIONS details

NO_WRITE_AUTHORIZATION - User has no authorization to create definitions

Data type:
Optional: No
Call by Reference: Yes

ERROR_CREATE_DEFINITION - An error occured while creating definition

Data type:
Optional: No
Call by Reference: Yes

ERROR_REQUESTING_LOCK - Unable to get enqueue to create definition

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for SZDM_CC_CR_CREATE_DEFINITION 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_ev_generated_version  TYPE SZDM_CC_CR_VERSION, "   
lv_iv_error_handling_type  TYPE SZDM_CC_CR_ERROR_HANDLING_TYPE, "   'M'
lv_no_write_authorization  TYPE SZDM_CC_CR_ERROR_HANDLING_TYPE, "   
lv_ev_rc  TYPE INT4, "   
lv_iv_category  TYPE SZDM_CC_CR_CATEGORY, "   
lv_error_create_definition  TYPE SZDM_CC_CR_CATEGORY, "   
lv_et_error  TYPE SZDM_CC_CR_ERROR_T, "   
lv_iv_new_defintion  TYPE SZDM_CC_CR_DEFINITION, "   
lv_error_requesting_lock  TYPE SZDM_CC_CR_DEFINITION. "   

  CALL FUNCTION 'SZDM_CC_CR_CREATE_DEFINITION'  "Creates new version of defintions for a category using provided definition
    EXPORTING
         IV_ERROR_HANDLING_TYPE = lv_iv_error_handling_type
         IV_CATEGORY = lv_iv_category
         IV_NEW_DEFINTION = lv_iv_new_defintion
    IMPORTING
         EV_GENERATED_VERSION = lv_ev_generated_version
         EV_RC = lv_ev_rc
         ET_ERROR = lv_et_error
    EXCEPTIONS
        NO_WRITE_AUTHORIZATION = 1
        ERROR_CREATE_DEFINITION = 2
        ERROR_REQUESTING_LOCK = 3
. " SZDM_CC_CR_CREATE_DEFINITION




ABAP code using 7.40 inline data declarations to call FM SZDM_CC_CR_CREATE_DEFINITION

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_iv_error_handling_type) = 'M'.
 
 
 
 
 
 
 
 


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!