SAP MEREP_SMAPI_PARAM_STORE Function Module for Write BAPI Wrapper Parameters on Local File of Server
MEREP_SMAPI_PARAM_STORE is a standard merep smapi param store SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Write BAPI Wrapper Parameters on Local File of Server 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 merep smapi param store FM, simply by entering the name MEREP_SMAPI_PARAM_STORE into the relevant SAP transaction such as SE37 or SE38.
Function Group: MEREP_RUN_UTILITY
Program Name: SAPLMEREP_RUN_UTILITY
Main Program: SAPLMEREP_RUN_UTILITY
Appliation area: S
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function MEREP_SMAPI_PARAM_STORE 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 'MEREP_SMAPI_PARAM_STORE'"Write BAPI Wrapper Parameters on Local File of Server.
EXPORTING
* I_DIRECTION = 'P' "'P':Pre / 'A':After
* I_VAL004 = "Input #004
* I_VAL005 = "Input #005
* I_VAL006 = "Input #006
* I_VAL007 = "Input #007
* I_VAL008 = "Input #008
* I_VAL009 = "Input #009
* I_VAL010 = "Input #010
* I_VAL011 = "Input #011
* I_VAL012 = "Input #012
* I_VAL013 = "Input #013
* I_DEVICE = '__________' "Device Name (Mobile ID)
* I_VAL014 = "Input #014
* I_VAL015 = "Input #015
* I_VAL016 = "Input #016
* I_VAL017 = "Input #017
* I_VAL018 = "Input #018
* I_VAL019 = "Input #019
* I_VAL020 = "Input #020
* I_VAL021 = "Input #021
* I_VAL022 = "Input #022
* I_VAL023 = "Input #023
I_SCENARIO = "Scenario Name
* I_VAL024 = "Input #024
* I_VAL025 = "Input #025
* I_VAL026 = "Input #026
* I_VAL027 = "Input #027
* I_VAL028 = "Input #028
* I_VAL029 = "Input #029
* I_VAL030 = "Input #030
* I_VAL031 = "Input #031
* I_VAL032 = "Input #032
* I_VAL033 = "Input #033
I_LOG_LEVEL = "Log level('7' or NOT)
* I_VAL034 = "Input #034
* I_VAL035 = "Input #035
* I_VAL036 = "Input #036
* I_VAL037 = "Input #037
* I_VAL038 = "Input #038
* I_VAL039 = "Input #039
* I_VAL040 = "Input #040
* I_VAL041 = "Input #041
* I_VAL042 = "Input #042
* I_VAL043 = "Input #043
I_EXEC_FUNC = "Called Function Name just after this function module
* I_VAL044 = "Input #044
* I_VAL045 = "Input #045
* I_VAL046 = "Input #046
* I_VAL047 = "Input #047
* I_VAL048 = "Input #048
* I_VAL049 = "Input #049
* I_VAL050 = "Input #050
* I_MARKS = 'line.000000' "Marks to Identify 'Where to be called?'
* I_VAL001 = "Input #001
* I_VAL002 = "Input #002
* I_VAL003 = "Input #003
IMPORTING Parameters details for MEREP_SMAPI_PARAM_STORE
I_DIRECTION - 'P':Pre / 'A':After
Data type: CDefault: 'P'
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_VAL004 - Input #004
Data type: ANYOptional: Yes
Call by Reference: Yes
I_VAL005 - Input #005
Data type: ANYOptional: Yes
Call by Reference: Yes
I_VAL006 - Input #006
Data type: ANYOptional: Yes
Call by Reference: Yes
I_VAL007 - Input #007
Data type: ANYOptional: Yes
Call by Reference: Yes
I_VAL008 - Input #008
Data type: ANYOptional: Yes
Call by Reference: Yes
I_VAL009 - Input #009
Data type: ANYOptional: Yes
Call by Reference: Yes
I_VAL010 - Input #010
Data type: ANYOptional: Yes
Call by Reference: Yes
I_VAL011 - Input #011
Data type: ANYOptional: Yes
Call by Reference: Yes
I_VAL012 - Input #012
Data type: ANYOptional: Yes
Call by Reference: Yes
I_VAL013 - Input #013
Data type: ANYOptional: Yes
Call by Reference: Yes
I_DEVICE - Device Name (Mobile ID)
Data type: MEREP_MBL_IDDefault: '__________'
Optional: Yes
Call by Reference: Yes
I_VAL014 - Input #014
Data type: ANYOptional: Yes
Call by Reference: Yes
I_VAL015 - Input #015
Data type: ANYOptional: Yes
Call by Reference: Yes
I_VAL016 - Input #016
Data type: ANYOptional: Yes
Call by Reference: Yes
I_VAL017 - Input #017
Data type: ANYOptional: Yes
Call by Reference: Yes
I_VAL018 - Input #018
Data type: ANYOptional: Yes
Call by Reference: Yes
I_VAL019 - Input #019
Data type: ANYOptional: Yes
Call by Reference: Yes
I_VAL020 - Input #020
Data type: ANYOptional: Yes
Call by Reference: Yes
I_VAL021 - Input #021
Data type: ANYOptional: Yes
Call by Reference: Yes
I_VAL022 - Input #022
Data type: ANYOptional: Yes
Call by Reference: Yes
I_VAL023 - Input #023
Data type: ANYOptional: Yes
Call by Reference: Yes
I_SCENARIO - Scenario Name
Data type: MEREP_SCENARIOOptional: No
Call by Reference: Yes
I_VAL024 - Input #024
Data type: ANYOptional: Yes
Call by Reference: Yes
I_VAL025 - Input #025
Data type: ANYOptional: Yes
Call by Reference: Yes
I_VAL026 - Input #026
Data type: ANYOptional: Yes
Call by Reference: Yes
I_VAL027 - Input #027
Data type: ANYOptional: Yes
Call by Reference: Yes
I_VAL028 - Input #028
Data type: ANYOptional: Yes
Call by Reference: Yes
I_VAL029 - Input #029
Data type: ANYOptional: Yes
Call by Reference: Yes
I_VAL030 - Input #030
Data type: ANYOptional: Yes
Call by Reference: Yes
I_VAL031 - Input #031
Data type: ANYOptional: Yes
Call by Reference: Yes
I_VAL032 - Input #032
Data type: ANYOptional: Yes
Call by Reference: Yes
I_VAL033 - Input #033
Data type: ANYOptional: Yes
Call by Reference: Yes
I_LOG_LEVEL - Log level('7' or NOT)
Data type: MEREP_LOG_LEVELOptional: No
Call by Reference: Yes
I_VAL034 - Input #034
Data type: ANYOptional: Yes
Call by Reference: Yes
I_VAL035 - Input #035
Data type: ANYOptional: Yes
Call by Reference: Yes
I_VAL036 - Input #036
Data type: ANYOptional: Yes
Call by Reference: Yes
I_VAL037 - Input #037
Data type: ANYOptional: Yes
Call by Reference: Yes
I_VAL038 - Input #038
Data type: ANYOptional: Yes
Call by Reference: Yes
I_VAL039 - Input #039
Data type: ANYOptional: Yes
Call by Reference: Yes
I_VAL040 - Input #040
Data type: ANYOptional: Yes
Call by Reference: Yes
I_VAL041 - Input #041
Data type: ANYOptional: Yes
Call by Reference: Yes
I_VAL042 - Input #042
Data type: ANYOptional: Yes
Call by Reference: Yes
I_VAL043 - Input #043
Data type: ANYOptional: Yes
Call by Reference: Yes
I_EXEC_FUNC - Called Function Name just after this function module
Data type: RS38L_FNAMOptional: No
Call by Reference: Yes
I_VAL044 - Input #044
Data type: ANYOptional: Yes
Call by Reference: Yes
I_VAL045 - Input #045
Data type: ANYOptional: Yes
Call by Reference: Yes
I_VAL046 - Input #046
Data type: ANYOptional: Yes
Call by Reference: Yes
I_VAL047 - Input #047
Data type: ANYOptional: Yes
Call by Reference: Yes
I_VAL048 - Input #048
Data type: ANYOptional: Yes
Call by Reference: Yes
I_VAL049 - Input #049
Data type: ANYOptional: Yes
Call by Reference: Yes
I_VAL050 - Input #050
Data type: ANYOptional: Yes
Call by Reference: Yes
I_MARKS - Marks to Identify 'Where to be called?'
Data type: CDefault: 'line.000000'
Optional: Yes
Call by Reference: Yes
I_VAL001 - Input #001
Data type: ANYOptional: Yes
Call by Reference: Yes
I_VAL002 - Input #002
Data type: ANYOptional: Yes
Call by Reference: Yes
I_VAL003 - Input #003
Data type: ANYOptional: Yes
Call by Reference: Yes
Copy and paste ABAP code example for MEREP_SMAPI_PARAM_STORE 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_direction | TYPE C, " 'P' | |||
| lv_i_val004 | TYPE ANY, " | |||
| lv_i_val005 | TYPE ANY, " | |||
| lv_i_val006 | TYPE ANY, " | |||
| lv_i_val007 | TYPE ANY, " | |||
| lv_i_val008 | TYPE ANY, " | |||
| lv_i_val009 | TYPE ANY, " | |||
| lv_i_val010 | TYPE ANY, " | |||
| lv_i_val011 | TYPE ANY, " | |||
| lv_i_val012 | TYPE ANY, " | |||
| lv_i_val013 | TYPE ANY, " | |||
| lv_i_device | TYPE MEREP_MBL_ID, " '__________' | |||
| lv_i_val014 | TYPE ANY, " | |||
| lv_i_val015 | TYPE ANY, " | |||
| lv_i_val016 | TYPE ANY, " | |||
| lv_i_val017 | TYPE ANY, " | |||
| lv_i_val018 | TYPE ANY, " | |||
| lv_i_val019 | TYPE ANY, " | |||
| lv_i_val020 | TYPE ANY, " | |||
| lv_i_val021 | TYPE ANY, " | |||
| lv_i_val022 | TYPE ANY, " | |||
| lv_i_val023 | TYPE ANY, " | |||
| lv_i_scenario | TYPE MEREP_SCENARIO, " | |||
| lv_i_val024 | TYPE ANY, " | |||
| lv_i_val025 | TYPE ANY, " | |||
| lv_i_val026 | TYPE ANY, " | |||
| lv_i_val027 | TYPE ANY, " | |||
| lv_i_val028 | TYPE ANY, " | |||
| lv_i_val029 | TYPE ANY, " | |||
| lv_i_val030 | TYPE ANY, " | |||
| lv_i_val031 | TYPE ANY, " | |||
| lv_i_val032 | TYPE ANY, " | |||
| lv_i_val033 | TYPE ANY, " | |||
| lv_i_log_level | TYPE MEREP_LOG_LEVEL, " | |||
| lv_i_val034 | TYPE ANY, " | |||
| lv_i_val035 | TYPE ANY, " | |||
| lv_i_val036 | TYPE ANY, " | |||
| lv_i_val037 | TYPE ANY, " | |||
| lv_i_val038 | TYPE ANY, " | |||
| lv_i_val039 | TYPE ANY, " | |||
| lv_i_val040 | TYPE ANY, " | |||
| lv_i_val041 | TYPE ANY, " | |||
| lv_i_val042 | TYPE ANY, " | |||
| lv_i_val043 | TYPE ANY, " | |||
| lv_i_exec_func | TYPE RS38L_FNAM, " | |||
| lv_i_val044 | TYPE ANY, " | |||
| lv_i_val045 | TYPE ANY, " | |||
| lv_i_val046 | TYPE ANY, " | |||
| lv_i_val047 | TYPE ANY, " | |||
| lv_i_val048 | TYPE ANY, " | |||
| lv_i_val049 | TYPE ANY, " | |||
| lv_i_val050 | TYPE ANY, " | |||
| lv_i_marks | TYPE C, " 'line,000000' | |||
| lv_i_val001 | TYPE ANY, " | |||
| lv_i_val002 | TYPE ANY, " | |||
| lv_i_val003 | TYPE ANY. " |
|   CALL FUNCTION 'MEREP_SMAPI_PARAM_STORE' "Write BAPI Wrapper Parameters on Local File of Server |
| EXPORTING | ||
| I_DIRECTION | = lv_i_direction | |
| I_VAL004 | = lv_i_val004 | |
| I_VAL005 | = lv_i_val005 | |
| I_VAL006 | = lv_i_val006 | |
| I_VAL007 | = lv_i_val007 | |
| I_VAL008 | = lv_i_val008 | |
| I_VAL009 | = lv_i_val009 | |
| I_VAL010 | = lv_i_val010 | |
| I_VAL011 | = lv_i_val011 | |
| I_VAL012 | = lv_i_val012 | |
| I_VAL013 | = lv_i_val013 | |
| I_DEVICE | = lv_i_device | |
| I_VAL014 | = lv_i_val014 | |
| I_VAL015 | = lv_i_val015 | |
| I_VAL016 | = lv_i_val016 | |
| I_VAL017 | = lv_i_val017 | |
| I_VAL018 | = lv_i_val018 | |
| I_VAL019 | = lv_i_val019 | |
| I_VAL020 | = lv_i_val020 | |
| I_VAL021 | = lv_i_val021 | |
| I_VAL022 | = lv_i_val022 | |
| I_VAL023 | = lv_i_val023 | |
| I_SCENARIO | = lv_i_scenario | |
| I_VAL024 | = lv_i_val024 | |
| I_VAL025 | = lv_i_val025 | |
| I_VAL026 | = lv_i_val026 | |
| I_VAL027 | = lv_i_val027 | |
| I_VAL028 | = lv_i_val028 | |
| I_VAL029 | = lv_i_val029 | |
| I_VAL030 | = lv_i_val030 | |
| I_VAL031 | = lv_i_val031 | |
| I_VAL032 | = lv_i_val032 | |
| I_VAL033 | = lv_i_val033 | |
| I_LOG_LEVEL | = lv_i_log_level | |
| I_VAL034 | = lv_i_val034 | |
| I_VAL035 | = lv_i_val035 | |
| I_VAL036 | = lv_i_val036 | |
| I_VAL037 | = lv_i_val037 | |
| I_VAL038 | = lv_i_val038 | |
| I_VAL039 | = lv_i_val039 | |
| I_VAL040 | = lv_i_val040 | |
| I_VAL041 | = lv_i_val041 | |
| I_VAL042 | = lv_i_val042 | |
| I_VAL043 | = lv_i_val043 | |
| I_EXEC_FUNC | = lv_i_exec_func | |
| I_VAL044 | = lv_i_val044 | |
| I_VAL045 | = lv_i_val045 | |
| I_VAL046 | = lv_i_val046 | |
| I_VAL047 | = lv_i_val047 | |
| I_VAL048 | = lv_i_val048 | |
| I_VAL049 | = lv_i_val049 | |
| I_VAL050 | = lv_i_val050 | |
| I_MARKS | = lv_i_marks | |
| I_VAL001 | = lv_i_val001 | |
| I_VAL002 | = lv_i_val002 | |
| I_VAL003 | = lv_i_val003 | |
| . " MEREP_SMAPI_PARAM_STORE | ||
ABAP code using 7.40 inline data declarations to call FM MEREP_SMAPI_PARAM_STORE
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.| DATA(ld_i_direction) | = 'P'. | |||
| DATA(ld_i_device) | = '__________'. | |||
| DATA(ld_i_marks) | = 'line.000000'. | |||
Search for further information about these or an SAP related objects