SAP SDOK_M_ENT_PROPS_SET Function Module for
SDOK_M_ENT_PROPS_SET is a standard sdok m ent props set 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 sdok m ent props set FM, simply by entering the name SDOK_M_ENT_PROPS_SET into the relevant SAP transaction such as SE37 or SE38.
Function Group: SDC_MODEL
Program Name: SAPLSDC_MODEL
Main Program: SAPLSDC_MODEL
Appliation area: S
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function SDOK_M_ENT_PROPS_SET 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 'SDOK_M_ENT_PROPS_SET'".
EXPORTING
ENTITY = "SDOK/Modell: Model Entity
* LANGUAGE = SY-LANGU "SAP R/3 System, Current Language
* X_ONLY_CHECK = ' ' "
* X_REPLACE_A = ' ' "
* X_REPLACE_P = ' ' "
* AVOID_TR_RECORD = ' ' "
IMPORTING
X_CST_ERROR = "
TABLES
* ATTRIBUTES = "
* PROPERTIES = "
* CST_ATTRIBUTES = "
* BAD_PROPERTIES = "
EXCEPTIONS
BAD_ENTITY = 1 BAD_ATTRIBUTE = 2 MULTIPLE_ATTRIBUTE = 3 CTS_FAILED = 4
IMPORTING Parameters details for SDOK_M_ENT_PROPS_SET
ENTITY - SDOK/Modell: Model Entity
Data type: SDOKMENTOptional: No
Call by Reference: No ( called with pass by value option)
LANGUAGE - SAP R/3 System, Current Language
Data type: SY-LANGUDefault: SY-LANGU
Optional: Yes
Call by Reference: No ( called with pass by value option)
X_ONLY_CHECK -
Data type: SY-DATARDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
X_REPLACE_A -
Data type: SY-DATARDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
X_REPLACE_P -
Data type: SY-DATARDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
AVOID_TR_RECORD -
Data type: SDOK_SGLFLDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for SDOK_M_ENT_PROPS_SET
X_CST_ERROR -
Data type: SY-DATAROptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for SDOK_M_ENT_PROPS_SET
ATTRIBUTES -
Data type: SDOKEATOptional: Yes
Call by Reference: Yes
PROPERTIES -
Data type: SDOKEPROptional: Yes
Call by Reference: Yes
CST_ATTRIBUTES -
Data type: SDOKPROPTNOptional: Yes
Call by Reference: Yes
BAD_PROPERTIES -
Data type: SDOKPRERROptional: Yes
Call by Reference: Yes
EXCEPTIONS details
BAD_ENTITY -
Data type:Optional: No
Call by Reference: Yes
BAD_ATTRIBUTE - Invalid Attribute
Data type:Optional: No
Call by Reference: Yes
MULTIPLE_ATTRIBUTE - Multiple Attribute
Data type:Optional: No
Call by Reference: Yes
CTS_FAILED -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for SDOK_M_ENT_PROPS_SET 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_entity | TYPE SDOKMENT, " | |||
| lt_attributes | TYPE STANDARD TABLE OF SDOKEAT, " | |||
| lv_bad_entity | TYPE SDOKEAT, " | |||
| lv_x_cst_error | TYPE SY-DATAR, " | |||
| lv_language | TYPE SY-LANGU, " SY-LANGU | |||
| lt_properties | TYPE STANDARD TABLE OF SDOKEPR, " | |||
| lv_bad_attribute | TYPE SDOKEPR, " | |||
| lv_x_only_check | TYPE SY-DATAR, " SPACE | |||
| lt_cst_attributes | TYPE STANDARD TABLE OF SDOKPROPTN, " | |||
| lv_multiple_attribute | TYPE SDOKPROPTN, " | |||
| lv_cts_failed | TYPE SDOKPROPTN, " | |||
| lv_x_replace_a | TYPE SY-DATAR, " SPACE | |||
| lt_bad_properties | TYPE STANDARD TABLE OF SDOKPRERR, " | |||
| lv_x_replace_p | TYPE SY-DATAR, " SPACE | |||
| lv_avoid_tr_record | TYPE SDOK_SGLFL. " SPACE |
|   CALL FUNCTION 'SDOK_M_ENT_PROPS_SET' " |
| EXPORTING | ||
| ENTITY | = lv_entity | |
| LANGUAGE | = lv_language | |
| X_ONLY_CHECK | = lv_x_only_check | |
| X_REPLACE_A | = lv_x_replace_a | |
| X_REPLACE_P | = lv_x_replace_p | |
| AVOID_TR_RECORD | = lv_avoid_tr_record | |
| IMPORTING | ||
| X_CST_ERROR | = lv_x_cst_error | |
| TABLES | ||
| ATTRIBUTES | = lt_attributes | |
| PROPERTIES | = lt_properties | |
| CST_ATTRIBUTES | = lt_cst_attributes | |
| BAD_PROPERTIES | = lt_bad_properties | |
| EXCEPTIONS | ||
| BAD_ENTITY = 1 | ||
| BAD_ATTRIBUTE = 2 | ||
| MULTIPLE_ATTRIBUTE = 3 | ||
| CTS_FAILED = 4 | ||
| . " SDOK_M_ENT_PROPS_SET | ||
ABAP code using 7.40 inline data declarations to call FM SDOK_M_ENT_PROPS_SET
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 DATAR FROM SY INTO @DATA(ld_x_cst_error). | ||||
| "SELECT single LANGU FROM SY INTO @DATA(ld_language). | ||||
| DATA(ld_language) | = SY-LANGU. | |||
| "SELECT single DATAR FROM SY INTO @DATA(ld_x_only_check). | ||||
| DATA(ld_x_only_check) | = ' '. | |||
| "SELECT single DATAR FROM SY INTO @DATA(ld_x_replace_a). | ||||
| DATA(ld_x_replace_a) | = ' '. | |||
| "SELECT single DATAR FROM SY INTO @DATA(ld_x_replace_p). | ||||
| DATA(ld_x_replace_p) | = ' '. | |||
| DATA(ld_avoid_tr_record) | = ' '. | |||
Search for further information about these or an SAP related objects