SAP API_RE_MN_CHANGE Function Module for Change Mandate









API_RE_MN_CHANGE is a standard api re mn change SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Change Mandate 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 api re mn change FM, simply by entering the name API_RE_MN_CHANGE into the relevant SAP transaction such as SE37 or SE38.

Function Group: REMM_API_MANDATE
Program Name: SAPLREMM_API_MANDATE
Main Program: SAPLREMM_API_MANDATE
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function API_RE_MN_CHANGE 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 'API_RE_MN_CHANGE'"Change Mandate
EXPORTING
* ID_MANDATEID = "Mandate
* IT_PARTNER = "Partner
* IT_RESUBM_RULE = "Reminder Rules
* IT_RESUBM_DATE = "Reminder Dates
* IT_STATUS = "Status
* IS_CI_DATA = "Data of CI Include
* IF_CI_DATA_X = ' ' "
* IT_EXT_DATA = "Enhancements: Data
* ID_TRANS = "Business Transaction
* IF_TEST_RUN = ' ' "
* IF_MSGLIST_INSTEAD_OF_EXC = ' ' "
* ID_OBJNR = "Object Number
* IO_MSGLIST = "
* ID_INTRENO = "Internal Key of Real Estate Object
* IO_OBJECT = "
* IS_MANDATE = "Mandate
* IS_MANDATE_X = "
* IS_OBJECT_ADDRESS = "Address
* IS_OBJECT_ADDRESS_X = "Address Change
* IT_HOUSEBANK = "House Bank

IMPORTING
EF_STORED = "

EXCEPTIONS
ERROR = 1
.



IMPORTING Parameters details for API_RE_MN_CHANGE

ID_MANDATEID - Mandate

Data type: BAPI_RE_MANDATE_INTK-MANDATEID
Optional: Yes
Call by Reference: Yes

IT_PARTNER - Partner

Data type: BAPI_RE_T_PARTNER_INTC
Optional: Yes
Call by Reference: Yes

IT_RESUBM_RULE - Reminder Rules

Data type: BAPI_RE_T_RESUBM_RULE_INTC
Optional: Yes
Call by Reference: Yes

IT_RESUBM_DATE - Reminder Dates

Data type: BAPI_RE_T_RESUBM_DATE_INTC
Optional: Yes
Call by Reference: Yes

IT_STATUS - Status

Data type: BAPI_RE_T_STATUS_INTC
Optional: Yes
Call by Reference: Yes

IS_CI_DATA - Data of CI Include

Data type: REMM_MANDATE_CI
Optional: Yes
Call by Reference: Yes

IF_CI_DATA_X -

Data type: RECABOOL
Default: ' '
Optional: Yes
Call by Reference: Yes

IT_EXT_DATA - Enhancements: Data

Data type: RE_T_EXT_DATA
Optional: Yes
Call by Reference: Yes

ID_TRANS - Business Transaction

Data type: BAPI_RE_ADDITIONAL_FIELDS-TRANS
Optional: Yes
Call by Reference: Yes

IF_TEST_RUN -

Data type: BAPI_RE_ADDITIONAL_FIELDS-TESTRUN
Default: ' '
Optional: Yes
Call by Reference: Yes

IF_MSGLIST_INSTEAD_OF_EXC -

Data type: RECABOOL
Default: ' '
Optional: Yes
Call by Reference: Yes

ID_OBJNR - Object Number

Data type: RECAOBJNR
Optional: Yes
Call by Reference: Yes

IO_MSGLIST -

Data type: OBJECT
Optional: Yes
Call by Reference: Yes

ID_INTRENO - Internal Key of Real Estate Object

Data type: RECAINTRENO
Optional: Yes
Call by Reference: Yes

IO_OBJECT -

Data type: OBJECT
Optional: Yes
Call by Reference: Yes

IS_MANDATE - Mandate

Data type: BAPI_RE_MANDATE_INT
Optional: Yes
Call by Reference: Yes

IS_MANDATE_X -

Data type: BAPI_RE_MANDATE_INTX
Optional: Yes
Call by Reference: Yes

IS_OBJECT_ADDRESS - Address

Data type: BAPI_RE_OBJ_ADDRESS_INT
Optional: Yes
Call by Reference: Yes

IS_OBJECT_ADDRESS_X - Address Change

Data type: BAPI_RE_OBJ_ADDRESS_INTX
Optional: Yes
Call by Reference: Yes

IT_HOUSEBANK - House Bank

Data type: BAPI_RE_T_HOUSEBANK_INTC
Optional: Yes
Call by Reference: Yes

EXPORTING Parameters details for API_RE_MN_CHANGE

EF_STORED -

Data type: RECABOOL
Optional: No
Call by Reference: Yes

EXCEPTIONS details

ERROR - Change Error

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

Copy and paste ABAP code example for API_RE_MN_CHANGE 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_error  TYPE STRING, "   
lv_ef_stored  TYPE RECABOOL, "   
lv_id_mandateid  TYPE BAPI_RE_MANDATE_INTK-MANDATEID, "   
lv_it_partner  TYPE BAPI_RE_T_PARTNER_INTC, "   
lv_it_resubm_rule  TYPE BAPI_RE_T_RESUBM_RULE_INTC, "   
lv_it_resubm_date  TYPE BAPI_RE_T_RESUBM_DATE_INTC, "   
lv_it_status  TYPE BAPI_RE_T_STATUS_INTC, "   
lv_is_ci_data  TYPE REMM_MANDATE_CI, "   
lv_if_ci_data_x  TYPE RECABOOL, "   ' '
lv_it_ext_data  TYPE RE_T_EXT_DATA, "   
lv_id_trans  TYPE BAPI_RE_ADDITIONAL_FIELDS-TRANS, "   
lv_if_test_run  TYPE BAPI_RE_ADDITIONAL_FIELDS-TESTRUN, "   ' '
lv_if_msglist_instead_of_exc  TYPE RECABOOL, "   ' '
lv_id_objnr  TYPE RECAOBJNR, "   
lv_io_msglist  TYPE OBJECT, "   
lv_id_intreno  TYPE RECAINTRENO, "   
lv_io_object  TYPE OBJECT, "   
lv_is_mandate  TYPE BAPI_RE_MANDATE_INT, "   
lv_is_mandate_x  TYPE BAPI_RE_MANDATE_INTX, "   
lv_is_object_address  TYPE BAPI_RE_OBJ_ADDRESS_INT, "   
lv_is_object_address_x  TYPE BAPI_RE_OBJ_ADDRESS_INTX, "   
lv_it_housebank  TYPE BAPI_RE_T_HOUSEBANK_INTC. "   

  CALL FUNCTION 'API_RE_MN_CHANGE'  "Change Mandate
    EXPORTING
         ID_MANDATEID = lv_id_mandateid
         IT_PARTNER = lv_it_partner
         IT_RESUBM_RULE = lv_it_resubm_rule
         IT_RESUBM_DATE = lv_it_resubm_date
         IT_STATUS = lv_it_status
         IS_CI_DATA = lv_is_ci_data
         IF_CI_DATA_X = lv_if_ci_data_x
         IT_EXT_DATA = lv_it_ext_data
         ID_TRANS = lv_id_trans
         IF_TEST_RUN = lv_if_test_run
         IF_MSGLIST_INSTEAD_OF_EXC = lv_if_msglist_instead_of_exc
         ID_OBJNR = lv_id_objnr
         IO_MSGLIST = lv_io_msglist
         ID_INTRENO = lv_id_intreno
         IO_OBJECT = lv_io_object
         IS_MANDATE = lv_is_mandate
         IS_MANDATE_X = lv_is_mandate_x
         IS_OBJECT_ADDRESS = lv_is_object_address
         IS_OBJECT_ADDRESS_X = lv_is_object_address_x
         IT_HOUSEBANK = lv_it_housebank
    IMPORTING
         EF_STORED = lv_ef_stored
    EXCEPTIONS
        ERROR = 1
. " API_RE_MN_CHANGE




ABAP code using 7.40 inline data declarations to call FM API_RE_MN_CHANGE

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 MANDATEID FROM BAPI_RE_MANDATE_INTK INTO @DATA(ld_id_mandateid).
 
 
 
 
 
 
DATA(ld_if_ci_data_x) = ' '.
 
 
"SELECT single TRANS FROM BAPI_RE_ADDITIONAL_FIELDS INTO @DATA(ld_id_trans).
 
"SELECT single TESTRUN FROM BAPI_RE_ADDITIONAL_FIELDS INTO @DATA(ld_if_test_run).
DATA(ld_if_test_run) = ' '.
 
DATA(ld_if_msglist_instead_of_exc) = ' '.
 
 
 
 
 
 
 
 
 
 


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!