SAP SOTR_CREATE_CONCEPT Function Module for
SOTR_CREATE_CONCEPT is a standard sotr create concept 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 sotr create concept FM, simply by entering the name SOTR_CREATE_CONCEPT into the relevant SAP transaction such as SE37 or SE38.
Function Group: SOTR_DB
Program Name: SAPLSOTR_DB
Main Program: SAPLSOTR_DB
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function SOTR_CREATE_CONCEPT 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 'SOTR_CREATE_CONCEPT'".
EXPORTING
PAKET = "Development class for Change and Transport Organizer
* FLAG_COPY_TEXT = "
CREA_LAN = "SAP R/3 System, Current Language
* ALIAS_NAME = "Unique Alias Name for OTR Concept
* CATEGORY = "Semantic Category in OTR
OBJECT = "Object Type
ENTRIES = "OTR Texts
* FLAG_CORRECTION_ENTRY = "Flag (X or blank)
* IN_UPDATE_TASK = "Indicator
* CONCEPT_DEFAULT = "Key for Logical Object in the OTR
IMPORTING
CONCEPT = "Key for Logical Object in the OTR
NEW_ENTRIES = "
EXCEPTIONS
PACKAGE_MISSING = 1 ERROR_IN_UPDATE = 10 NO_MASTER_LANGU = 11 ERROR_IN_CONCEPT_ID = 12 ALIAS_NOT_ALLOWED = 13 TADIR_ENTRY_CREATION_FAILED = 14 INTERNAL_ERROR = 15 ERROR_IN_CORRECTION = 16 USER_CANCELLED = 17 NO_ENTRY_FOUND = 18 CREA_LAN_MISSING = 2 OBJECT_MISSING = 3 PAKET_DOES_NOT_EXIST = 4 ALIAS_ALREADY_EXIST = 5 OBJECT_TYPE_NOT_FOUND = 6 LANGU_MISSING = 7 IDENTICAL_CONTEXT_NOT_ALLOWED = 8 TEXT_TOO_LONG = 9
IMPORTING Parameters details for SOTR_CREATE_CONCEPT
PAKET - Development class for Change and Transport Organizer
Data type: SOTR_PACKOptional: No
Call by Reference: Yes
FLAG_COPY_TEXT -
Data type: BTFR_FLAGOptional: Yes
Call by Reference: No ( called with pass by value option)
CREA_LAN - SAP R/3 System, Current Language
Data type: SY-LANGUOptional: No
Call by Reference: Yes
ALIAS_NAME - Unique Alias Name for OTR Concept
Data type: SOTR_ALIASOptional: Yes
Call by Reference: Yes
CATEGORY - Semantic Category in OTR
Data type: SOTR_CATYOptional: Yes
Call by Reference: Yes
OBJECT - Object Type
Data type: TROBJTYPEOptional: No
Call by Reference: Yes
ENTRIES - OTR Texts
Data type: SOTR_TEXT_TTOptional: No
Call by Reference: No ( called with pass by value option)
FLAG_CORRECTION_ENTRY - Flag (X or blank)
Data type: AS4FLAGOptional: Yes
Call by Reference: Yes
IN_UPDATE_TASK - Indicator
Data type: BAPIFLAGOptional: Yes
Call by Reference: Yes
CONCEPT_DEFAULT - Key for Logical Object in the OTR
Data type: SOTR_TEXT-CONCEPTOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for SOTR_CREATE_CONCEPT
CONCEPT - Key for Logical Object in the OTR
Data type: SOTR_TEXT-CONCEPTOptional: No
Call by Reference: No ( called with pass by value option)
NEW_ENTRIES -
Data type: SOTR_TEXT_TTOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
PACKAGE_MISSING -
Data type:Optional: No
Call by Reference: Yes
ERROR_IN_UPDATE -
Data type:Optional: No
Call by Reference: Yes
NO_MASTER_LANGU -
Data type:Optional: No
Call by Reference: Yes
ERROR_IN_CONCEPT_ID -
Data type:Optional: No
Call by Reference: Yes
ALIAS_NOT_ALLOWED -
Data type:Optional: No
Call by Reference: Yes
TADIR_ENTRY_CREATION_FAILED -
Data type:Optional: No
Call by Reference: Yes
INTERNAL_ERROR -
Data type:Optional: No
Call by Reference: Yes
ERROR_IN_CORRECTION -
Data type:Optional: No
Call by Reference: Yes
USER_CANCELLED -
Data type:Optional: No
Call by Reference: Yes
NO_ENTRY_FOUND -
Data type:Optional: No
Call by Reference: Yes
CREA_LAN_MISSING -
Data type:Optional: No
Call by Reference: Yes
OBJECT_MISSING -
Data type:Optional: No
Call by Reference: Yes
PAKET_DOES_NOT_EXIST -
Data type:Optional: No
Call by Reference: Yes
ALIAS_ALREADY_EXIST -
Data type:Optional: No
Call by Reference: Yes
OBJECT_TYPE_NOT_FOUND -
Data type:Optional: No
Call by Reference: Yes
LANGU_MISSING -
Data type:Optional: No
Call by Reference: Yes
IDENTICAL_CONTEXT_NOT_ALLOWED -
Data type:Optional: No
Call by Reference: Yes
TEXT_TOO_LONG -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for SOTR_CREATE_CONCEPT 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_paket | TYPE SOTR_PACK, " | |||
| lv_concept | TYPE SOTR_TEXT-CONCEPT, " | |||
| lv_package_missing | TYPE SOTR_TEXT, " | |||
| lv_flag_copy_text | TYPE BTFR_FLAG, " | |||
| lv_error_in_update | TYPE BTFR_FLAG, " | |||
| lv_no_master_langu | TYPE BTFR_FLAG, " | |||
| lv_error_in_concept_id | TYPE BTFR_FLAG, " | |||
| lv_alias_not_allowed | TYPE BTFR_FLAG, " | |||
| lv_tadir_entry_creation_failed | TYPE BTFR_FLAG, " | |||
| lv_internal_error | TYPE BTFR_FLAG, " | |||
| lv_error_in_correction | TYPE BTFR_FLAG, " | |||
| lv_user_cancelled | TYPE BTFR_FLAG, " | |||
| lv_no_entry_found | TYPE BTFR_FLAG, " | |||
| lv_crea_lan | TYPE SY-LANGU, " | |||
| lv_new_entries | TYPE SOTR_TEXT_TT, " | |||
| lv_crea_lan_missing | TYPE SOTR_TEXT_TT, " | |||
| lv_alias_name | TYPE SOTR_ALIAS, " | |||
| lv_object_missing | TYPE SOTR_ALIAS, " | |||
| lv_category | TYPE SOTR_CATY, " | |||
| lv_paket_does_not_exist | TYPE SOTR_CATY, " | |||
| lv_object | TYPE TROBJTYPE, " | |||
| lv_alias_already_exist | TYPE TROBJTYPE, " | |||
| lv_entries | TYPE SOTR_TEXT_TT, " | |||
| lv_object_type_not_found | TYPE SOTR_TEXT_TT, " | |||
| lv_langu_missing | TYPE SOTR_TEXT_TT, " | |||
| lv_flag_correction_entry | TYPE AS4FLAG, " | |||
| lv_in_update_task | TYPE BAPIFLAG, " | |||
| lv_identical_context_not_allowed | TYPE BAPIFLAG, " | |||
| lv_text_too_long | TYPE BAPIFLAG, " | |||
| lv_concept_default | TYPE SOTR_TEXT-CONCEPT. " |
|   CALL FUNCTION 'SOTR_CREATE_CONCEPT' " |
| EXPORTING | ||
| PAKET | = lv_paket | |
| FLAG_COPY_TEXT | = lv_flag_copy_text | |
| CREA_LAN | = lv_crea_lan | |
| ALIAS_NAME | = lv_alias_name | |
| CATEGORY | = lv_category | |
| OBJECT | = lv_object | |
| ENTRIES | = lv_entries | |
| FLAG_CORRECTION_ENTRY | = lv_flag_correction_entry | |
| IN_UPDATE_TASK | = lv_in_update_task | |
| CONCEPT_DEFAULT | = lv_concept_default | |
| IMPORTING | ||
| CONCEPT | = lv_concept | |
| NEW_ENTRIES | = lv_new_entries | |
| EXCEPTIONS | ||
| PACKAGE_MISSING = 1 | ||
| ERROR_IN_UPDATE = 10 | ||
| NO_MASTER_LANGU = 11 | ||
| ERROR_IN_CONCEPT_ID = 12 | ||
| ALIAS_NOT_ALLOWED = 13 | ||
| TADIR_ENTRY_CREATION_FAILED = 14 | ||
| INTERNAL_ERROR = 15 | ||
| ERROR_IN_CORRECTION = 16 | ||
| USER_CANCELLED = 17 | ||
| NO_ENTRY_FOUND = 18 | ||
| CREA_LAN_MISSING = 2 | ||
| OBJECT_MISSING = 3 | ||
| PAKET_DOES_NOT_EXIST = 4 | ||
| ALIAS_ALREADY_EXIST = 5 | ||
| OBJECT_TYPE_NOT_FOUND = 6 | ||
| LANGU_MISSING = 7 | ||
| IDENTICAL_CONTEXT_NOT_ALLOWED = 8 | ||
| TEXT_TOO_LONG = 9 | ||
| . " SOTR_CREATE_CONCEPT | ||
ABAP code using 7.40 inline data declarations to call FM SOTR_CREATE_CONCEPT
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 CONCEPT FROM SOTR_TEXT INTO @DATA(ld_concept). | ||||
| "SELECT single LANGU FROM SY INTO @DATA(ld_crea_lan). | ||||
| "SELECT single CONCEPT FROM SOTR_TEXT INTO @DATA(ld_concept_default). | ||||
Search for further information about these or an SAP related objects