SAP FM4C_SET_LEVEL Function Module for
FM4C_SET_LEVEL is a standard fm4c set level 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 fm4c set level FM, simply by entering the name FM4C_SET_LEVEL into the relevant SAP transaction such as SE37 or SE38.
Function Group: FM4C
Program Name: SAPLFM4C
Main Program: SAPLFM4C
Appliation area: F
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function FM4C_SET_LEVEL 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 'FM4C_SET_LEVEL'".
EXPORTING
I_FIKRS = "
* I_SEND_POPUP = ' ' "
* I_CTR_LEV = ' ' "
* I_POS_LEV = ' ' "
* I_C_CTR_LEV = ' ' "
* I_C_POS_LEV = ' ' "
* I_NO_CARRIER = ' ' "
IMPORTING
E_CTR_LEV = "
E_POS_LEV = "
E_C_CTR_LEV = "
E_C_POS_LEV = "
IMPORTING Parameters details for FM4C_SET_LEVEL
I_FIKRS -
Data type: FM01C-FIKRSOptional: No
Call by Reference: No ( called with pass by value option)
I_SEND_POPUP -
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_CTR_LEV -
Data type: FM01C-CTR_LEVDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_POS_LEV -
Data type: FM01C-POS_LEVDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_C_CTR_LEV -
Data type: FM01C-C_CTR_LEVDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_C_POS_LEV -
Data type: FM01C-C_POS_LEVDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_NO_CARRIER -
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for FM4C_SET_LEVEL
E_CTR_LEV -
Data type: FM01C-CTR_LEVOptional: No
Call by Reference: No ( called with pass by value option)
E_POS_LEV -
Data type: FM01C-POS_LEVOptional: No
Call by Reference: No ( called with pass by value option)
E_C_CTR_LEV -
Data type: FM01C-C_CTR_LEVOptional: No
Call by Reference: No ( called with pass by value option)
E_C_POS_LEV -
Data type: FM01C-C_POS_LEVOptional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for FM4C_SET_LEVEL 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_i_fikrs | TYPE FM01C-FIKRS, " | |||
| lv_e_ctr_lev | TYPE FM01C-CTR_LEV, " | |||
| lv_e_pos_lev | TYPE FM01C-POS_LEV, " | |||
| lv_i_send_popup | TYPE FM01C, " SPACE | |||
| lv_i_ctr_lev | TYPE FM01C-CTR_LEV, " SPACE | |||
| lv_e_c_ctr_lev | TYPE FM01C-C_CTR_LEV, " | |||
| lv_i_pos_lev | TYPE FM01C-POS_LEV, " SPACE | |||
| lv_e_c_pos_lev | TYPE FM01C-C_POS_LEV, " | |||
| lv_i_c_ctr_lev | TYPE FM01C-C_CTR_LEV, " SPACE | |||
| lv_i_c_pos_lev | TYPE FM01C-C_POS_LEV, " SPACE | |||
| lv_i_no_carrier | TYPE FM01C. " SPACE |
|   CALL FUNCTION 'FM4C_SET_LEVEL' " |
| EXPORTING | ||
| I_FIKRS | = lv_i_fikrs | |
| I_SEND_POPUP | = lv_i_send_popup | |
| I_CTR_LEV | = lv_i_ctr_lev | |
| I_POS_LEV | = lv_i_pos_lev | |
| I_C_CTR_LEV | = lv_i_c_ctr_lev | |
| I_C_POS_LEV | = lv_i_c_pos_lev | |
| I_NO_CARRIER | = lv_i_no_carrier | |
| IMPORTING | ||
| E_CTR_LEV | = lv_e_ctr_lev | |
| E_POS_LEV | = lv_e_pos_lev | |
| E_C_CTR_LEV | = lv_e_c_ctr_lev | |
| E_C_POS_LEV | = lv_e_c_pos_lev | |
| . " FM4C_SET_LEVEL | ||
ABAP code using 7.40 inline data declarations to call FM FM4C_SET_LEVEL
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 FIKRS FROM FM01C INTO @DATA(ld_i_fikrs). | ||||
| "SELECT single CTR_LEV FROM FM01C INTO @DATA(ld_e_ctr_lev). | ||||
| "SELECT single POS_LEV FROM FM01C INTO @DATA(ld_e_pos_lev). | ||||
| DATA(ld_i_send_popup) | = ' '. | |||
| "SELECT single CTR_LEV FROM FM01C INTO @DATA(ld_i_ctr_lev). | ||||
| DATA(ld_i_ctr_lev) | = ' '. | |||
| "SELECT single C_CTR_LEV FROM FM01C INTO @DATA(ld_e_c_ctr_lev). | ||||
| "SELECT single POS_LEV FROM FM01C INTO @DATA(ld_i_pos_lev). | ||||
| DATA(ld_i_pos_lev) | = ' '. | |||
| "SELECT single C_POS_LEV FROM FM01C INTO @DATA(ld_e_c_pos_lev). | ||||
| "SELECT single C_CTR_LEV FROM FM01C INTO @DATA(ld_i_c_ctr_lev). | ||||
| DATA(ld_i_c_ctr_lev) | = ' '. | |||
| "SELECT single C_POS_LEV FROM FM01C INTO @DATA(ld_i_c_pos_lev). | ||||
| DATA(ld_i_c_pos_lev) | = ' '. | |||
| DATA(ld_i_no_carrier) | = ' '. | |||
Search for further information about these or an SAP related objects