SAP MEREP_MOBILE_REGISTER Function Module for Register Mobile ID to Middleware









MEREP_MOBILE_REGISTER is a standard merep mobile register SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Register Mobile ID to Middleware 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 mobile register FM, simply by entering the name MEREP_MOBILE_REGISTER into the relevant SAP transaction such as SE37 or SE38.

Function Group: MEREP_REGISTRATION
Program Name: SAPLMEREP_REGISTRATION
Main Program: SAPLMEREP_REGISTRATION
Appliation area: S
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:



Function MEREP_MOBILE_REGISTER 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_MOBILE_REGISTER'"Register Mobile ID to Middleware
EXPORTING
MOBILEINFO = "SAP Mobile: structure for all device registration data

EXCEPTIONS
DUPLICATE_MOBILE_ID = 1 DUPLICATE_MOBILE_GUID = 2 INVALID_GROUP = 3 ENQUEUE_FAILURE = 4 MBLID_UPDATE_FAILURE = 5 MBLID_NOT_SPECIFIED = 6 MOBILEGUID_NOT_SPECIFIED = 7 INVALID_USER = 8
.



IMPORTING Parameters details for MEREP_MOBILE_REGISTER

MOBILEINFO - SAP Mobile: structure for all device registration data

Data type: MEREP_REGISTER_DEVICE
Optional: No
Call by Reference: No ( called with pass by value option)

EXCEPTIONS details

DUPLICATE_MOBILE_ID -

Data type:
Optional: No
Call by Reference: Yes

DUPLICATE_MOBILE_GUID -

Data type:
Optional: No
Call by Reference: Yes

INVALID_GROUP -

Data type:
Optional: No
Call by Reference: Yes

ENQUEUE_FAILURE -

Data type:
Optional: No
Call by Reference: Yes

MBLID_UPDATE_FAILURE -

Data type:
Optional: No
Call by Reference: Yes

MBLID_NOT_SPECIFIED -

Data type:
Optional: No
Call by Reference: Yes

MOBILEGUID_NOT_SPECIFIED -

Data type:
Optional: No
Call by Reference: Yes

INVALID_USER -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for MEREP_MOBILE_REGISTER 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_mobileinfo  TYPE MEREP_REGISTER_DEVICE, "   
lv_duplicate_mobile_id  TYPE MEREP_REGISTER_DEVICE, "   
lv_duplicate_mobile_guid  TYPE MEREP_REGISTER_DEVICE, "   
lv_invalid_group  TYPE MEREP_REGISTER_DEVICE, "   
lv_enqueue_failure  TYPE MEREP_REGISTER_DEVICE, "   
lv_mblid_update_failure  TYPE MEREP_REGISTER_DEVICE, "   
lv_mblid_not_specified  TYPE MEREP_REGISTER_DEVICE, "   
lv_mobileguid_not_specified  TYPE MEREP_REGISTER_DEVICE, "   
lv_invalid_user  TYPE MEREP_REGISTER_DEVICE. "   

  CALL FUNCTION 'MEREP_MOBILE_REGISTER'  "Register Mobile ID to Middleware
    EXPORTING
         MOBILEINFO = lv_mobileinfo
    EXCEPTIONS
        DUPLICATE_MOBILE_ID = 1
        DUPLICATE_MOBILE_GUID = 2
        INVALID_GROUP = 3
        ENQUEUE_FAILURE = 4
        MBLID_UPDATE_FAILURE = 5
        MBLID_NOT_SPECIFIED = 6
        MOBILEGUID_NOT_SPECIFIED = 7
        INVALID_USER = 8
. " MEREP_MOBILE_REGISTER




ABAP code using 7.40 inline data declarations to call FM MEREP_MOBILE_REGISTER

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



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!