SAP MEREP_FIX_INT_TO_EXT_CONVERT Function Module for Convert Fixed Format: Internal to External
MEREP_FIX_INT_TO_EXT_CONVERT is a standard merep fix int to ext convert SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Convert Fixed Format: Internal to External 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 fix int to ext convert FM, simply by entering the name MEREP_FIX_INT_TO_EXT_CONVERT into the relevant SAP transaction such as SE37 or SE38.
Function Group: MEREP_RUNTIME
Program Name: SAPLMEREP_RUNTIME
Main Program: SAPLMEREP_RUNTIME
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function MEREP_FIX_INT_TO_EXT_CONVERT 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_FIX_INT_TO_EXT_CONVERT'"Convert Fixed Format: Internal to External.
EXPORTING
DATA_IMPORT = "
MBL_ID = "ME Replica: ID of a mobile
* SCENARIO_ROOT = "SyncBO ID
* SCENARIO_CHILD = "SyncBO ID
* PARENT_SYNC_KEY = "Synchronization Key
IMPORTING
DATA_EXPORT = "ME Replica: Character 2048
RETURN = "Return Parameter
CHANGING
* SYNC_KEY_ROOT = "Synchronization Key
TABLES
I_METADATA = "SAP Mobile: Metadata structure for scenario
* IE_CASCADE_DATA = "Cascade data
* IE_CASCADE_HEADER = "Container of Sync Key for TOP Structure
* IE_CASCADE_ITEM = "Container of Sync Key for Item Structure
* IE_REFERENCE = "Reference Recording
* IE_REFERENCE_CUR = "Reference Recording
* IE_REFERENCE_TMP = "Reference Recording
IMPORTING Parameters details for MEREP_FIX_INT_TO_EXT_CONVERT
DATA_IMPORT -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
MBL_ID - ME Replica: ID of a mobile
Data type: MEREP_MBL_IDOptional: No
Call by Reference: Yes
SCENARIO_ROOT - SyncBO ID
Data type: MEREP_SCENARIOOptional: Yes
Call by Reference: Yes
SCENARIO_CHILD - SyncBO ID
Data type: MEREP_SCENARIOOptional: Yes
Call by Reference: No ( called with pass by value option)
PARENT_SYNC_KEY - Synchronization Key
Data type: MEREP_SYNC_KEYOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for MEREP_FIX_INT_TO_EXT_CONVERT
DATA_EXPORT - ME Replica: Character 2048
Data type: MEREP_CHAR2048Optional: No
Call by Reference: No ( called with pass by value option)
RETURN - Return Parameter
Data type: BAPIRETURN1Optional: No
Call by Reference: No ( called with pass by value option)
CHANGING Parameters details for MEREP_FIX_INT_TO_EXT_CONVERT
SYNC_KEY_ROOT - Synchronization Key
Data type: MEREP_SYNC_KEYOptional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for MEREP_FIX_INT_TO_EXT_CONVERT
I_METADATA - SAP Mobile: Metadata structure for scenario
Data type: MEREP_SCEN_METADATAOptional: No
Call by Reference: Yes
IE_CASCADE_DATA - Cascade data
Data type: MEREP_CASCADE_DATAOptional: Yes
Call by Reference: Yes
IE_CASCADE_HEADER - Container of Sync Key for TOP Structure
Data type: MEREP_TOP_CONTAINEROptional: Yes
Call by Reference: Yes
IE_CASCADE_ITEM - Container of Sync Key for Item Structure
Data type: MEREP_ITEM_CONTAINEROptional: Yes
Call by Reference: Yes
IE_REFERENCE - Reference Recording
Data type: MEREP_108Optional: Yes
Call by Reference: Yes
IE_REFERENCE_CUR - Reference Recording
Data type: MEREP_108Optional: Yes
Call by Reference: Yes
IE_REFERENCE_TMP - Reference Recording
Data type: MEREP_108Optional: Yes
Call by Reference: Yes
Copy and paste ABAP code example for MEREP_FIX_INT_TO_EXT_CONVERT 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: | ||||
| lt_i_metadata | TYPE STANDARD TABLE OF MEREP_SCEN_METADATA, " | |||
| lv_data_export | TYPE MEREP_CHAR2048, " | |||
| lv_data_import | TYPE MEREP_CHAR2048, " | |||
| lv_sync_key_root | TYPE MEREP_SYNC_KEY, " | |||
| lv_mbl_id | TYPE MEREP_MBL_ID, " | |||
| lv_return | TYPE BAPIRETURN1, " | |||
| lt_ie_cascade_data | TYPE STANDARD TABLE OF MEREP_CASCADE_DATA, " | |||
| lv_scenario_root | TYPE MEREP_SCENARIO, " | |||
| lt_ie_cascade_header | TYPE STANDARD TABLE OF MEREP_TOP_CONTAINER, " | |||
| lv_scenario_child | TYPE MEREP_SCENARIO, " | |||
| lt_ie_cascade_item | TYPE STANDARD TABLE OF MEREP_ITEM_CONTAINER, " | |||
| lt_ie_reference | TYPE STANDARD TABLE OF MEREP_108, " | |||
| lv_parent_sync_key | TYPE MEREP_SYNC_KEY, " | |||
| lt_ie_reference_cur | TYPE STANDARD TABLE OF MEREP_108, " | |||
| lt_ie_reference_tmp | TYPE STANDARD TABLE OF MEREP_108. " |
|   CALL FUNCTION 'MEREP_FIX_INT_TO_EXT_CONVERT' "Convert Fixed Format: Internal to External |
| EXPORTING | ||
| DATA_IMPORT | = lv_data_import | |
| MBL_ID | = lv_mbl_id | |
| SCENARIO_ROOT | = lv_scenario_root | |
| SCENARIO_CHILD | = lv_scenario_child | |
| PARENT_SYNC_KEY | = lv_parent_sync_key | |
| IMPORTING | ||
| DATA_EXPORT | = lv_data_export | |
| RETURN | = lv_return | |
| CHANGING | ||
| SYNC_KEY_ROOT | = lv_sync_key_root | |
| TABLES | ||
| I_METADATA | = lt_i_metadata | |
| IE_CASCADE_DATA | = lt_ie_cascade_data | |
| IE_CASCADE_HEADER | = lt_ie_cascade_header | |
| IE_CASCADE_ITEM | = lt_ie_cascade_item | |
| IE_REFERENCE | = lt_ie_reference | |
| IE_REFERENCE_CUR | = lt_ie_reference_cur | |
| IE_REFERENCE_TMP | = lt_ie_reference_tmp | |
| . " MEREP_FIX_INT_TO_EXT_CONVERT | ||
ABAP code using 7.40 inline data declarations to call FM MEREP_FIX_INT_TO_EXT_CONVERT
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