SAP /BA1/F4_MAPI_INTSPRD_MODIFY Function Module for MAPI Interface: Create or Change Interest Rate Spread
/BA1/F4_MAPI_INTSPRD_MODIFY is a standard /ba1/f4 mapi intsprd modify SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for MAPI Interface: Create or Change Interest Rate Spread 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 /ba1/f4 mapi intsprd modify FM, simply by entering the name /BA1/F4_MAPI_INTSPRD_MODIFY into the relevant SAP transaction such as SE37 or SE38.
Function Group: /BA1/F4_MAPI_INTRATES
Program Name: /BA1/SAPLF4_MAPI_INTRATES
Main Program: /BA1/SAPLF4_MAPI_INTRATES
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function /BA1/F4_MAPI_INTSPRD_MODIFY 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 '/BA1/F4_MAPI_INTSPRD_MODIFY'"MAPI Interface: Create or Change Interest Rate Spread.
EXPORTING
MDCODE = "Market Data Area
REFRATE = "Reference Interest Rate
SPRDTYPE = "Spread Type
VALIDDATE = "Date
* INTSPREAD = "Interest Rate Spread in Percentage
* STATUS = ' ' "Status of Market Data
* TESTRUN = ' ' "Run Data Import as Test Run
* CORRECTIONSERVERACTIV = '0' "Correction Activity for Automatic Corrections
* CUSTOMIZINGSETTINGS = "Structure f.Overriding Customizing Settings in Mass Correctn
TABLES
* RETURN = "Table with BAPI Return Information
IMPORTING Parameters details for /BA1/F4_MAPI_INTSPRD_MODIFY
MDCODE - Market Data Area
Data type: /BA1/F4_STR_IR_MAPIPARA-MDCODEOptional: No
Call by Reference: Yes
REFRATE - Reference Interest Rate
Data type: /BA1/F4_STR_IR_MAPIPARA-REFRATEOptional: No
Call by Reference: Yes
SPRDTYPE - Spread Type
Data type: /BA1/F4_STR_IR_MAPIPARA-SPREADTYPEOptional: No
Call by Reference: Yes
VALIDDATE - Date
Data type: /BA1/F4_STR_IR_MAPIPARA-VALIDDATEOptional: No
Call by Reference: Yes
INTSPREAD - Interest Rate Spread in Percentage
Data type: /BA1/F4_STR_IR_MAPIPARA-INTSPREADOptional: Yes
Call by Reference: Yes
STATUS - Status of Market Data
Data type: /BA1/F4_STR_IR_MAPIPARA-STATUSDefault: SPACE
Optional: Yes
Call by Reference: Yes
TESTRUN - Run Data Import as Test Run
Data type: /BA1/F4_STR_IR_MAPIPARA-TESTRUNDefault: SPACE
Optional: Yes
Call by Reference: Yes
CORRECTIONSERVERACTIV - Correction Activity for Automatic Corrections
Data type: /BA1/F4_STR_IR_MAPIPARA-CORRECTIONSERVERACTIVDefault: '0'
Optional: Yes
Call by Reference: Yes
CUSTOMIZINGSETTINGS - Structure f.Overriding Customizing Settings in Mass Correctn
Data type: /BA1/F4_STR_CUST_SETTINGOptional: Yes
Call by Reference: Yes
TABLES Parameters details for /BA1/F4_MAPI_INTSPRD_MODIFY
RETURN - Table with BAPI Return Information
Data type: BAPIRET2Optional: Yes
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for /BA1/F4_MAPI_INTSPRD_MODIFY 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_mdcode | TYPE /BA1/F4_STR_IR_MAPIPARA-MDCODE, " | |||
| lt_return | TYPE STANDARD TABLE OF BAPIRET2, " | |||
| lv_refrate | TYPE /BA1/F4_STR_IR_MAPIPARA-REFRATE, " | |||
| lv_sprdtype | TYPE /BA1/F4_STR_IR_MAPIPARA-SPREADTYPE, " | |||
| lv_validdate | TYPE /BA1/F4_STR_IR_MAPIPARA-VALIDDATE, " | |||
| lv_intspread | TYPE /BA1/F4_STR_IR_MAPIPARA-INTSPREAD, " | |||
| lv_status | TYPE /BA1/F4_STR_IR_MAPIPARA-STATUS, " SPACE | |||
| lv_testrun | TYPE /BA1/F4_STR_IR_MAPIPARA-TESTRUN, " SPACE | |||
| lv_correctionserveractiv | TYPE /BA1/F4_STR_IR_MAPIPARA-CORRECTIONSERVERACTIV, " '0' | |||
| lv_customizingsettings | TYPE /BA1/F4_STR_CUST_SETTING. " |
|   CALL FUNCTION '/BA1/F4_MAPI_INTSPRD_MODIFY' "MAPI Interface: Create or Change Interest Rate Spread |
| EXPORTING | ||
| MDCODE | = lv_mdcode | |
| REFRATE | = lv_refrate | |
| SPRDTYPE | = lv_sprdtype | |
| VALIDDATE | = lv_validdate | |
| INTSPREAD | = lv_intspread | |
| STATUS | = lv_status | |
| TESTRUN | = lv_testrun | |
| CORRECTIONSERVERACTIV | = lv_correctionserveractiv | |
| CUSTOMIZINGSETTINGS | = lv_customizingsettings | |
| TABLES | ||
| RETURN | = lt_return | |
| . " /BA1/F4_MAPI_INTSPRD_MODIFY | ||
ABAP code using 7.40 inline data declarations to call FM /BA1/F4_MAPI_INTSPRD_MODIFY
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 MDCODE FROM /BA1/F4_STR_IR_MAPIPARA INTO @DATA(ld_mdcode). | ||||
| "SELECT single REFRATE FROM /BA1/F4_STR_IR_MAPIPARA INTO @DATA(ld_refrate). | ||||
| "SELECT single SPREADTYPE FROM /BA1/F4_STR_IR_MAPIPARA INTO @DATA(ld_sprdtype). | ||||
| "SELECT single VALIDDATE FROM /BA1/F4_STR_IR_MAPIPARA INTO @DATA(ld_validdate). | ||||
| "SELECT single INTSPREAD FROM /BA1/F4_STR_IR_MAPIPARA INTO @DATA(ld_intspread). | ||||
| "SELECT single STATUS FROM /BA1/F4_STR_IR_MAPIPARA INTO @DATA(ld_status). | ||||
| DATA(ld_status) | = ' '. | |||
| "SELECT single TESTRUN FROM /BA1/F4_STR_IR_MAPIPARA INTO @DATA(ld_testrun). | ||||
| DATA(ld_testrun) | = ' '. | |||
| "SELECT single CORRECTIONSERVERACTIV FROM /BA1/F4_STR_IR_MAPIPARA INTO @DATA(ld_correctionserveractiv). | ||||
| DATA(ld_correctionserveractiv) | = '0'. | |||
Search for further information about these or an SAP related objects