SAP /BA1/F4_MAPI_SEC_MODIFY Function Module for MAPI Interface: Create or Change Security Prices









/BA1/F4_MAPI_SEC_MODIFY is a standard /ba1/f4 mapi sec 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 Security Prices 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 sec modify FM, simply by entering the name /BA1/F4_MAPI_SEC_MODIFY into the relevant SAP transaction such as SE37 or SE38.

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



Function /BA1/F4_MAPI_SEC_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_SEC_MODIFY'"MAPI Interface: Create or Change Security Prices
EXPORTING
MDCODE = "Market Data Area
* STATUS = ' ' "Market Date Status
* TESTRUN = ' ' "Import Data as a Test Run
* CORRECTIONSERVERACTIV = '0' "Correction Activity for Automatic Corrections
* CUSTOMIZINGSETTINGS = "Structure for Overriding Customizing Settings in Mass Correction
EXTNUMBER = "External Number
EXCHANGE = "Exchange
PRTYPE = "Exchange Rate Category
VALIDDATE = "Date
* ADDON = "Price Symbol
UNIT = "Unit
* PRICE = "Exchange Rate
DIRTYFLAG = "Boolean Values TRUE (='X') and FALSE (= ' ')

TABLES
* RETURN = "Table with BAPI Return Information
.



IMPORTING Parameters details for /BA1/F4_MAPI_SEC_MODIFY

MDCODE - Market Data Area

Data type: /BA1/F4_STR_SEC_MAPIPARA-MDCODE
Optional: No
Call by Reference: Yes

STATUS - Market Date Status

Data type: /BA1/F4_STR_SEC_MAPIPARA-STATUS
Default: SPACE
Optional: Yes
Call by Reference: Yes

TESTRUN - Import Data as a Test Run

Data type: /BA1/F4_STR_SEC_MAPIPARA-TESTRUN
Default: SPACE
Optional: Yes
Call by Reference: Yes

CORRECTIONSERVERACTIV - Correction Activity for Automatic Corrections

Data type: /BA1/F4_STR_SEC_MAPIPARA-CORRECTIONSERVERACTIV
Default: '0'
Optional: Yes
Call by Reference: Yes

CUSTOMIZINGSETTINGS - Structure for Overriding Customizing Settings in Mass Correction

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

EXTNUMBER - External Number

Data type: /BA1/F4_STR_SEC_MAPIPARA-EXTNUMBER
Optional: No
Call by Reference: Yes

EXCHANGE - Exchange

Data type: /BA1/F4_STR_SEC_MAPIPARA-EXCHANGE
Optional: No
Call by Reference: Yes

PRTYPE - Exchange Rate Category

Data type: /BA1/F4_STR_SEC_MAPIPARA-PRTYPE
Optional: No
Call by Reference: Yes

VALIDDATE - Date

Data type: /BA1/F4_STR_SEC_MAPIPARA-VALIDDATE
Optional: No
Call by Reference: Yes

ADDON - Price Symbol

Data type: /BA1/F4_STR_SEC_MAPIPARA-ADDON
Optional: Yes
Call by Reference: Yes

UNIT - Unit

Data type: /BA1/F4_STR_SEC_MAPIPARA-UNIT
Optional: No
Call by Reference: Yes

PRICE - Exchange Rate

Data type: /BA1/F4_STR_SEC_MAPIPARA-PRICE
Optional: Yes
Call by Reference: Yes

DIRTYFLAG - Boolean Values TRUE (='X') and FALSE (= ' ')

Data type: /BA1/F4_STR_SEC_MAPIPARA-DIRTYFLAG
Optional: No
Call by Reference: Yes

TABLES Parameters details for /BA1/F4_MAPI_SEC_MODIFY

RETURN - Table with BAPI Return Information

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

Copy and paste ABAP code example for /BA1/F4_MAPI_SEC_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_SEC_MAPIPARA-MDCODE, "   
lt_return  TYPE STANDARD TABLE OF BAPIRET2, "   
lv_status  TYPE /BA1/F4_STR_SEC_MAPIPARA-STATUS, "   SPACE
lv_testrun  TYPE /BA1/F4_STR_SEC_MAPIPARA-TESTRUN, "   SPACE
lv_correctionserveractiv  TYPE /BA1/F4_STR_SEC_MAPIPARA-CORRECTIONSERVERACTIV, "   '0'
lv_customizingsettings  TYPE /BA1/F4_STR_CUST_SETTING, "   
lv_extnumber  TYPE /BA1/F4_STR_SEC_MAPIPARA-EXTNUMBER, "   
lv_exchange  TYPE /BA1/F4_STR_SEC_MAPIPARA-EXCHANGE, "   
lv_prtype  TYPE /BA1/F4_STR_SEC_MAPIPARA-PRTYPE, "   
lv_validdate  TYPE /BA1/F4_STR_SEC_MAPIPARA-VALIDDATE, "   
lv_addon  TYPE /BA1/F4_STR_SEC_MAPIPARA-ADDON, "   
lv_unit  TYPE /BA1/F4_STR_SEC_MAPIPARA-UNIT, "   
lv_price  TYPE /BA1/F4_STR_SEC_MAPIPARA-PRICE, "   
lv_dirtyflag  TYPE /BA1/F4_STR_SEC_MAPIPARA-DIRTYFLAG. "   

  CALL FUNCTION '/BA1/F4_MAPI_SEC_MODIFY'  "MAPI Interface: Create or Change Security Prices
    EXPORTING
         MDCODE = lv_mdcode
         STATUS = lv_status
         TESTRUN = lv_testrun
         CORRECTIONSERVERACTIV = lv_correctionserveractiv
         CUSTOMIZINGSETTINGS = lv_customizingsettings
         EXTNUMBER = lv_extnumber
         EXCHANGE = lv_exchange
         PRTYPE = lv_prtype
         VALIDDATE = lv_validdate
         ADDON = lv_addon
         UNIT = lv_unit
         PRICE = lv_price
         DIRTYFLAG = lv_dirtyflag
    TABLES
         RETURN = lt_return
. " /BA1/F4_MAPI_SEC_MODIFY




ABAP code using 7.40 inline data declarations to call FM /BA1/F4_MAPI_SEC_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_SEC_MAPIPARA INTO @DATA(ld_mdcode).
 
 
"SELECT single STATUS FROM /BA1/F4_STR_SEC_MAPIPARA INTO @DATA(ld_status).
DATA(ld_status) = ' '.
 
"SELECT single TESTRUN FROM /BA1/F4_STR_SEC_MAPIPARA INTO @DATA(ld_testrun).
DATA(ld_testrun) = ' '.
 
"SELECT single CORRECTIONSERVERACTIV FROM /BA1/F4_STR_SEC_MAPIPARA INTO @DATA(ld_correctionserveractiv).
DATA(ld_correctionserveractiv) = '0'.
 
 
"SELECT single EXTNUMBER FROM /BA1/F4_STR_SEC_MAPIPARA INTO @DATA(ld_extnumber).
 
"SELECT single EXCHANGE FROM /BA1/F4_STR_SEC_MAPIPARA INTO @DATA(ld_exchange).
 
"SELECT single PRTYPE FROM /BA1/F4_STR_SEC_MAPIPARA INTO @DATA(ld_prtype).
 
"SELECT single VALIDDATE FROM /BA1/F4_STR_SEC_MAPIPARA INTO @DATA(ld_validdate).
 
"SELECT single ADDON FROM /BA1/F4_STR_SEC_MAPIPARA INTO @DATA(ld_addon).
 
"SELECT single UNIT FROM /BA1/F4_STR_SEC_MAPIPARA INTO @DATA(ld_unit).
 
"SELECT single PRICE FROM /BA1/F4_STR_SEC_MAPIPARA INTO @DATA(ld_price).
 
"SELECT single DIRTYFLAG FROM /BA1/F4_STR_SEC_MAPIPARA INTO @DATA(ld_dirtyflag).
 


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!