SAP SRTFT_SET_SYSTEM_META_DATA Function Module for Set System Settings
SRTFT_SET_SYSTEM_META_DATA is a standard srtft set system meta data SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Set System Settings 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 srtft set system meta data FM, simply by entering the name SRTFT_SET_SYSTEM_META_DATA into the relevant SAP transaction such as SE37 or SE38.
Function Group: SRTFT_SYSTEM_META_DATA
Program Name: SAPLSRTFT_SYSTEM_META_DATA
Main Program: SAPLSRTFT_SYSTEM_META_DATA
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function SRTFT_SET_SYSTEM_META_DATA 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 'SRTFT_SET_SYSTEM_META_DATA'"Set System Settings.
EXPORTING
FUNCTION = "Qualified Name
OPTIONS = "Function-Dependent Options
META_DATA_BINARY = "Binary Metadata
META_DATA_CHAR = "Character-Like Metadata
IMPORTING
RETURN_CODE = "Execution State (0 = OK)
MESSAGES = "List of Messages for Configuration Operation
EXCEPTIONS
UNKNOWN_FUNCTION = 1
IMPORTING Parameters details for SRTFT_SET_SYSTEM_META_DATA
FUNCTION - Qualified Name
Data type: QNAMEOptional: No
Call by Reference: No ( called with pass by value option)
OPTIONS - Function-Dependent Options
Data type: SRTFT_NAMED_VALUE_LIST_CHAROptional: No
Call by Reference: No ( called with pass by value option)
META_DATA_BINARY - Binary Metadata
Data type: SRTFT_NAMED_VALUE_LIST_BINARYOptional: No
Call by Reference: No ( called with pass by value option)
META_DATA_CHAR - Character-Like Metadata
Data type: SRTFT_NAMED_VALUE_LIST_CHAROptional: No
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for SRTFT_SET_SYSTEM_META_DATA
RETURN_CODE - Execution State (0 = OK)
Data type: IOptional: No
Call by Reference: No ( called with pass by value option)
MESSAGES - List of Messages for Configuration Operation
Data type: SRTFT_MESSAGE_LISTOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
UNKNOWN_FUNCTION - Unknown function
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for SRTFT_SET_SYSTEM_META_DATA 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_function | TYPE QNAME, " | |||
| lv_return_code | TYPE I, " | |||
| lv_unknown_function | TYPE I, " | |||
| lv_options | TYPE SRTFT_NAMED_VALUE_LIST_CHAR, " | |||
| lv_messages | TYPE SRTFT_MESSAGE_LIST, " | |||
| lv_meta_data_binary | TYPE SRTFT_NAMED_VALUE_LIST_BINARY, " | |||
| lv_meta_data_char | TYPE SRTFT_NAMED_VALUE_LIST_CHAR. " |
|   CALL FUNCTION 'SRTFT_SET_SYSTEM_META_DATA' "Set System Settings |
| EXPORTING | ||
| FUNCTION | = lv_function | |
| OPTIONS | = lv_options | |
| META_DATA_BINARY | = lv_meta_data_binary | |
| META_DATA_CHAR | = lv_meta_data_char | |
| IMPORTING | ||
| RETURN_CODE | = lv_return_code | |
| MESSAGES | = lv_messages | |
| EXCEPTIONS | ||
| UNKNOWN_FUNCTION = 1 | ||
| . " SRTFT_SET_SYSTEM_META_DATA | ||
ABAP code using 7.40 inline data declarations to call FM SRTFT_SET_SYSTEM_META_DATA
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