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

Function SOTR_STRING_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_STRING_CREATE_CONCEPT'".
EXPORTING
PAKET = "Development class for Change and Transport Organizer
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 = "
IMPORTING
CONCEPT = "Key for Logical Object in the OTR
ALIAS = "Unique Alias Name for OTR Concept
EXCEPTIONS
PACKAGE_MISSING = 1 ERROR_IN_UPDATE = 10 NO_MASTER_LANGU = 11 ERROR_IN_CONCEPT_ID = 12 INTERNAL_ERROR = 13 CONCEPT_NOT_FOUND = 14 TADIR_ENTRY_CREATION_FAILED = 15 ERROR_IN_CORRECTION = 16 USER_CANCELLED = 17 NO_ENTRY_FOUND = 18 ALIAS_NOT_ALLOWED = 19 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_STRING_CREATE_CONCEPT
PAKET - Development class for Change and Transport Organizer
Data type: SOTR_PACKOptional: No
Call by Reference: Yes
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_TEXTL_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 -
Data type: AS4FLAGOptional: Yes
Call by Reference: Yes
EXPORTING Parameters details for SOTR_STRING_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)
ALIAS - Unique Alias Name for OTR Concept
Data type: SOTR_ALIASOptional: No
Call by Reference: Yes
EXCEPTIONS details
PACKAGE_MISSING -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
ERROR_IN_UPDATE -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_MASTER_LANGU -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
ERROR_IN_CONCEPT_ID -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
INTERNAL_ERROR -
Data type:Optional: No
Call by Reference: Yes
CONCEPT_NOT_FOUND -
Data type:Optional: No
Call by Reference: Yes
TADIR_ENTRY_CREATION_FAILED -
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
ALIAS_NOT_ALLOWED -
Data type:Optional: No
Call by Reference: Yes
CREA_LAN_MISSING -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
OBJECT_MISSING -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
PAKET_DOES_NOT_EXIST -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
ALIAS_ALREADY_EXIST -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
OBJECT_TYPE_NOT_FOUND -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
LANGU_MISSING -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
IDENTICAL_CONTEXT_NOT_ALLOWED -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
TEXT_TOO_LONG -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for SOTR_STRING_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_error_in_update | TYPE SOTR_TEXT, " | |||
| lv_no_master_langu | TYPE SOTR_TEXT, " | |||
| lv_error_in_concept_id | TYPE SOTR_TEXT, " | |||
| lv_internal_error | TYPE SOTR_TEXT, " | |||
| lv_concept_not_found | TYPE SOTR_TEXT, " | |||
| lv_tadir_entry_creation_failed | TYPE SOTR_TEXT, " | |||
| lv_error_in_correction | TYPE SOTR_TEXT, " | |||
| lv_user_cancelled | TYPE SOTR_TEXT, " | |||
| lv_no_entry_found | TYPE SOTR_TEXT, " | |||
| lv_alias_not_allowed | TYPE SOTR_TEXT, " | |||
| lv_alias | TYPE SOTR_ALIAS, " | |||
| lv_crea_lan | TYPE SY-LANGU, " | |||
| lv_crea_lan_missing | TYPE SY, " | |||
| 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_TEXTL_TT, " | |||
| lv_object_type_not_found | TYPE SOTR_TEXTL_TT, " | |||
| lv_langu_missing | TYPE SOTR_TEXTL_TT, " | |||
| lv_flag_correction_entry | TYPE AS4FLAG, " | |||
| lv_in_update_task | TYPE AS4FLAG, " | |||
| lv_identical_context_not_allowed | TYPE AS4FLAG, " | |||
| lv_text_too_long | TYPE AS4FLAG. " |
|   CALL FUNCTION 'SOTR_STRING_CREATE_CONCEPT' " |
| EXPORTING | ||
| PAKET | = lv_paket | |
| 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 | |
| IMPORTING | ||
| CONCEPT | = lv_concept | |
| ALIAS | = lv_alias | |
| EXCEPTIONS | ||
| PACKAGE_MISSING = 1 | ||
| ERROR_IN_UPDATE = 10 | ||
| NO_MASTER_LANGU = 11 | ||
| ERROR_IN_CONCEPT_ID = 12 | ||
| INTERNAL_ERROR = 13 | ||
| CONCEPT_NOT_FOUND = 14 | ||
| TADIR_ENTRY_CREATION_FAILED = 15 | ||
| ERROR_IN_CORRECTION = 16 | ||
| USER_CANCELLED = 17 | ||
| NO_ENTRY_FOUND = 18 | ||
| ALIAS_NOT_ALLOWED = 19 | ||
| 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_STRING_CREATE_CONCEPT | ||
ABAP code using 7.40 inline data declarations to call FM SOTR_STRING_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). | ||||
Search for further information about these or an SAP related objects