SAP /BA1/F4_API_INTSPRD_UPDATE Function Module for Write Interest Rates
/BA1/F4_API_INTSPRD_UPDATE is a standard /ba1/f4 api intsprd update 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 Interest Rates 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 api intsprd update FM, simply by entering the name /BA1/F4_API_INTSPRD_UPDATE into the relevant SAP transaction such as SE37 or SE38.
Function Group: /BA1/F4_API_INTSPRD
Program Name: /BA1/SAPLF4_API_INTSPRD
Main Program: /BA1/SAPLF4_API_INTSPRD
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function /BA1/F4_API_INTSPRD_UPDATE 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_API_INTSPRD_UPDATE'"Write Interest Rates.
EXPORTING
I_MDCODE = "Market Data Area
I_CUST_SETTING = "Structure f.Overriding Customizing Settings in Mass Correctn
I_REF_RATE = "Reference Interest Rate
I_SPRDTYPE = "Spread Type
I_VALID_DATE = "Date
I_INT_SPREAD = "Interest Rate Spread in Percentage
I_STATUS = "Status of Market Data
* I_TEST_RUN = CON_OFF "Run Data Import as Test Run
* I_FLG_MODIFY = CON_OFF "CON_ON = Create or Change, CON_OFF = Change
* I_CORR_SERV_ACT = CON_CORR_SERV_OFF "Correction Activity for Automatic Corrections
EXCEPTIONS
FUNCTION_FAILED = 1 NO_AUTHORIZATION = 2 ENQUEUE_FAILED = 3 OBJECT_ALREADY_EXISTS = 4 PARAMETER_ERROR = 5
IMPORTING Parameters details for /BA1/F4_API_INTSPRD_UPDATE
I_MDCODE - Market Data Area
Data type: /BA1/F4_DTE_MDCODEOptional: No
Call by Reference: Yes
I_CUST_SETTING - Structure f.Overriding Customizing Settings in Mass Correctn
Data type: /BA1/F4_STR_CUST_SETTINGOptional: No
Call by Reference: Yes
I_REF_RATE - Reference Interest Rate
Data type: /BA1/F4_DTE_REFERENCEOptional: No
Call by Reference: Yes
I_SPRDTYPE - Spread Type
Data type: /BA1/F4_DTE_SPRDTYPEOptional: No
Call by Reference: Yes
I_VALID_DATE - Date
Data type: DATUMOptional: No
Call by Reference: Yes
I_INT_SPREAD - Interest Rate Spread in Percentage
Data type: /BA1/F4_DTE_INT_SPREADOptional: No
Call by Reference: Yes
I_STATUS - Status of Market Data
Data type: /BA1/F4_DTE_STATUSOptional: No
Call by Reference: Yes
I_TEST_RUN - Run Data Import as Test Run
Data type: /BA1/F4_DTE_TEST_RUNDefault: CON_OFF
Optional: No
Call by Reference: Yes
I_FLG_MODIFY - CON_ON = Create or Change, CON_OFF = Change
Data type: /BA1/F4_DTE_BOOLEDefault: CON_OFF
Optional: No
Call by Reference: Yes
I_CORR_SERV_ACT - Correction Activity for Automatic Corrections
Data type: /BA1/F4_DTE_CORR_SERV_ACTDefault: CON_CORR_SERV_OFF
Optional: No
Call by Reference: Yes
EXCEPTIONS details
FUNCTION_FAILED - Internal Error
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_AUTHORIZATION - Missing Authorization
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
ENQUEUE_FAILED - Lock not possible
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
OBJECT_ALREADY_EXISTS - Object Already Exists
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
PARAMETER_ERROR - Parameter has been transferred incorrectly
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for /BA1/F4_API_INTSPRD_UPDATE 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_mdcode | TYPE /BA1/F4_DTE_MDCODE, " | |||
| lv_function_failed | TYPE /BA1/F4_DTE_MDCODE, " | |||
| lv_i_cust_setting | TYPE /BA1/F4_STR_CUST_SETTING, " | |||
| lv_i_ref_rate | TYPE /BA1/F4_DTE_REFERENCE, " | |||
| lv_no_authorization | TYPE /BA1/F4_DTE_REFERENCE, " | |||
| lv_i_sprdtype | TYPE /BA1/F4_DTE_SPRDTYPE, " | |||
| lv_enqueue_failed | TYPE /BA1/F4_DTE_SPRDTYPE, " | |||
| lv_i_valid_date | TYPE DATUM, " | |||
| lv_object_already_exists | TYPE DATUM, " | |||
| lv_i_int_spread | TYPE /BA1/F4_DTE_INT_SPREAD, " | |||
| lv_parameter_error | TYPE /BA1/F4_DTE_INT_SPREAD, " | |||
| lv_i_status | TYPE /BA1/F4_DTE_STATUS, " | |||
| lv_i_test_run | TYPE /BA1/F4_DTE_TEST_RUN, " CON_OFF | |||
| lv_i_flg_modify | TYPE /BA1/F4_DTE_BOOLE, " CON_OFF | |||
| lv_i_corr_serv_act | TYPE /BA1/F4_DTE_CORR_SERV_ACT. " CON_CORR_SERV_OFF |
|   CALL FUNCTION '/BA1/F4_API_INTSPRD_UPDATE' "Write Interest Rates |
| EXPORTING | ||
| I_MDCODE | = lv_i_mdcode | |
| I_CUST_SETTING | = lv_i_cust_setting | |
| I_REF_RATE | = lv_i_ref_rate | |
| I_SPRDTYPE | = lv_i_sprdtype | |
| I_VALID_DATE | = lv_i_valid_date | |
| I_INT_SPREAD | = lv_i_int_spread | |
| I_STATUS | = lv_i_status | |
| I_TEST_RUN | = lv_i_test_run | |
| I_FLG_MODIFY | = lv_i_flg_modify | |
| I_CORR_SERV_ACT | = lv_i_corr_serv_act | |
| EXCEPTIONS | ||
| FUNCTION_FAILED = 1 | ||
| NO_AUTHORIZATION = 2 | ||
| ENQUEUE_FAILED = 3 | ||
| OBJECT_ALREADY_EXISTS = 4 | ||
| PARAMETER_ERROR = 5 | ||
| . " /BA1/F4_API_INTSPRD_UPDATE | ||
ABAP code using 7.40 inline data declarations to call FM /BA1/F4_API_INTSPRD_UPDATE
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_test_run) | = CON_OFF. | |||
| DATA(ld_i_flg_modify) | = CON_OFF. | |||
| DATA(ld_i_corr_serv_act) | = CON_CORR_SERV_OFF. | |||
Search for further information about these or an SAP related objects