SAP /BA1/F4_API_INTSPRD_INSERT Function Module for Write Interest Rates









/BA1/F4_API_INTSPRD_INSERT is a standard /ba1/f4 api intsprd insert 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 insert FM, simply by entering the name /BA1/F4_API_INTSPRD_INSERT 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_INSERT 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_INSERT'"Write Interest Rates
EXPORTING
I_MDCODE = "Market Data Area
I_REF_RATE = "Reference Interest Rate
I_SPRDTYPE = "Spread Type
I_VALID_DATE = "Date
I_INT_SPREAD = "Interest Rate Spread in Percentage
* I_TEST_RUN = CON_OFF "Run Data Import as Test Run
* I_CORR_SERV_ACT = CON_CORR_SERV_OFF "Correction Activity for Automatic Corrections
I_CUST_SETTING = "Structure f.Overriding Customizing Settings in Mass Correctn

EXCEPTIONS
FUNCTION_FAILED = 1 NO_AUTHORIZATION = 2 ENQUEUE_FAILED = 3 OBJECT_DOES_NOT_EXISTS = 4 PARAMETER_ERROR = 5
.



IMPORTING Parameters details for /BA1/F4_API_INTSPRD_INSERT

I_MDCODE - Market Data Area

Data type: /BA1/F4_DTE_MDCODE
Optional: No
Call by Reference: Yes

I_REF_RATE - Reference Interest Rate

Data type: /BA1/F4_DTE_REFERENCE
Optional: No
Call by Reference: Yes

I_SPRDTYPE - Spread Type

Data type: /BA1/F4_DTE_SPRDTYPE
Optional: No
Call by Reference: Yes

I_VALID_DATE - Date

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

I_INT_SPREAD - Interest Rate Spread in Percentage

Data type: /BA1/F4_DTE_INT_SPREAD
Optional: No
Call by Reference: Yes

I_TEST_RUN - Run Data Import as Test Run

Data type: /BA1/F4_DTE_TEST_RUN
Default: CON_OFF
Optional: No
Call by Reference: Yes

I_CORR_SERV_ACT - Correction Activity for Automatic Corrections

Data type: /BA1/F4_DTE_CORR_SERV_ACT
Default: CON_CORR_SERV_OFF
Optional: No
Call by Reference: Yes

I_CUST_SETTING - Structure f.Overriding Customizing Settings in Mass Correctn

Data type: /BA1/F4_STR_CUST_SETTING
Optional: No
Call by Reference: Yes

EXCEPTIONS details

FUNCTION_FAILED - Internal Error

Data type:
Optional: No
Call by Reference: Yes

NO_AUTHORIZATION - Missing Authorization

Data type:
Optional: No
Call by Reference: Yes

ENQUEUE_FAILED - Lock not possible

Data type:
Optional: No
Call by Reference: Yes

OBJECT_DOES_NOT_EXISTS - Object Does Not Exist

Data type:
Optional: No
Call by Reference: Yes

PARAMETER_ERROR - Parameter has been transferred incorrectly

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for /BA1/F4_API_INTSPRD_INSERT 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_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_does_not_exists  TYPE DATUM, "   
lv_i_int_spread  TYPE /BA1/F4_DTE_INT_SPREAD, "   
lv_parameter_error  TYPE /BA1/F4_DTE_INT_SPREAD, "   
lv_i_test_run  TYPE /BA1/F4_DTE_TEST_RUN, "   CON_OFF
lv_i_corr_serv_act  TYPE /BA1/F4_DTE_CORR_SERV_ACT, "   CON_CORR_SERV_OFF
lv_i_cust_setting  TYPE /BA1/F4_STR_CUST_SETTING. "   

  CALL FUNCTION '/BA1/F4_API_INTSPRD_INSERT'  "Write Interest Rates
    EXPORTING
         I_MDCODE = lv_i_mdcode
         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_TEST_RUN = lv_i_test_run
         I_CORR_SERV_ACT = lv_i_corr_serv_act
         I_CUST_SETTING = lv_i_cust_setting
    EXCEPTIONS
        FUNCTION_FAILED = 1
        NO_AUTHORIZATION = 2
        ENQUEUE_FAILED = 3
        OBJECT_DOES_NOT_EXISTS = 4
        PARAMETER_ERROR = 5
. " /BA1/F4_API_INTSPRD_INSERT




ABAP code using 7.40 inline data declarations to call FM /BA1/F4_API_INTSPRD_INSERT

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_corr_serv_act) = CON_CORR_SERV_OFF.
 
 


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!