SAP BAPI_FORMULA_GETDETAILMULTIPLE Function Module for Reading Formulas
BAPI_FORMULA_GETDETAILMULTIPLE is a standard bapi formula getdetailmultiple SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Reading Formulas 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 bapi formula getdetailmultiple FM, simply by entering the name BAPI_FORMULA_GETDETAILMULTIPLE into the relevant SAP transaction such as SE37 or SE38.
Function Group: FRML991
Program Name: SAPLFRML991
Main Program: SAPLFRML991
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function BAPI_FORMULA_GETDETAILMULTIPLE 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 'BAPI_FORMULA_GETDETAILMULTIPLE'"Reading Formulas.
EXPORTING
* SCENARIO = "Scenario for Access to Formula Data (BAPI)
* VALID_DATE = SY-DATUM "Key Date
* FILTER = "General Filter Criteria for Access to Formula
* ENTITIES = "Access Identification of Entity Types
TABLES
KEYNR_TAB = "Object ID
* OUTPUT_ALT = "RMS-FRM: API Output Alternative
* OUTPUT_MAT = "RMS-FRM: Output Item LoM (Material)
* OUTPUT_SUB = "RMS-FRM: Output Item LoRS (Substance)
* OUTPUT_STR = "RMS-FRM: API LoM Input Item (Stream)
* OUTPUT_STR_TEXT = "RMS-FRM: API Output Item Stream Texts
* COMPOSITION = "RMS-FRM: Component Lists (Composition Lists)
* COMPONENT = "RMS-FRM: Components of Composition
* APPLICATION_SCOPE = "RMS-FRM: Scope of Application of Formula
* CHAR_CAT_ALLOC = "Assignment of Specification - Value Assignment Type
* CHAR_VALUE = "Value Assignment
* FILTER_SUBCHACAT = "Filter for Assignment of Specification - Value Assignment Type
* CHARACTERISTICS = "Interface for Value of a Characteristic (Internal Format)
* CHAR_USAGE = "Additional Information - Value Assignment Usage
* IDENTIFIER = "Identifier (Numbers, Names, Chemical Formulas)
* IDENT_LONGTEXT = "Identifier long texts
RETURN = "Return Parameters
* HEADER = "RMS-FRM: Formula Header
* INPUT_POS = "RMS-FRM: API, General Data of Input Item
* INPUT_ALT = "RMS-FRM: Input Alternative
* INPUT_MAT = "RMS-FRM: Input Item LoM (Material)
* INPUT_SUB = "RMS-FRM: Input Item LoRS (Substance)
* INPUT_STR = "RMS-FRM: API LoM Input Item (Stream)
* OUTPUT_POS = "RMS-FRM: API Output Item
IMPORTING Parameters details for BAPI_FORMULA_GETDETAILMULTIPLE
SCENARIO - Scenario for Access to Formula Data (BAPI)
Data type: BAPIFRML_SCENARIOOptional: Yes
Call by Reference: No ( called with pass by value option)
VALID_DATE - Key Date
Data type: BAPIFRML_STATUS-VALID_DATEDefault: SY-DATUM
Optional: Yes
Call by Reference: No ( called with pass by value option)
FILTER - General Filter Criteria for Access to Formula
Data type: BAPIFRML_FILTEROptional: Yes
Call by Reference: No ( called with pass by value option)
ENTITIES - Access Identification of Entity Types
Data type: BAPIFRML_ENTITY_FLAGSOptional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for BAPI_FORMULA_GETDETAILMULTIPLE
KEYNR_TAB - Object ID
Data type: BAPIFRML_KEYSOptional: No
Call by Reference: Yes
OUTPUT_ALT - RMS-FRM: API Output Alternative
Data type: BAPIFRML_OUTPUT_ALTOptional: Yes
Call by Reference: Yes
OUTPUT_MAT - RMS-FRM: Output Item LoM (Material)
Data type: BAPIFRML_OUTPUT_MATOptional: Yes
Call by Reference: Yes
OUTPUT_SUB - RMS-FRM: Output Item LoRS (Substance)
Data type: BAPIFRML_OUTPUT_SUBOptional: Yes
Call by Reference: Yes
OUTPUT_STR - RMS-FRM: API LoM Input Item (Stream)
Data type: BAPIFRML_OUTPUT_STROptional: Yes
Call by Reference: Yes
OUTPUT_STR_TEXT - RMS-FRM: API Output Item Stream Texts
Data type: BAPIFRML_OUTPUT_STR_TEXTOptional: Yes
Call by Reference: Yes
COMPOSITION - RMS-FRM: Component Lists (Composition Lists)
Data type: BAPIFRML_COMPOSITIONOptional: Yes
Call by Reference: Yes
COMPONENT - RMS-FRM: Components of Composition
Data type: BAPIFRML_COMPONENTOptional: Yes
Call by Reference: Yes
APPLICATION_SCOPE - RMS-FRM: Scope of Application of Formula
Data type: BAPIFRML_APPLICATION_SCOPEOptional: Yes
Call by Reference: Yes
CHAR_CAT_ALLOC - Assignment of Specification - Value Assignment Type
Data type: BAPIFRML_CHAR_CAT_ALLOCOptional: Yes
Call by Reference: Yes
CHAR_VALUE - Value Assignment
Data type: BAPIFRML_CHAR_VALUEOptional: Yes
Call by Reference: Yes
FILTER_SUBCHACAT - Filter for Assignment of Specification - Value Assignment Type
Data type: BAPIFRML_FILTER_SUBCHACATOptional: Yes
Call by Reference: Yes
CHARACTERISTICS - Interface for Value of a Characteristic (Internal Format)
Data type: BAPIFRML_CHARACTERISTICSOptional: Yes
Call by Reference: Yes
CHAR_USAGE - Additional Information - Value Assignment Usage
Data type: BAPIFRML_CHAR_USAGEOptional: Yes
Call by Reference: Yes
IDENTIFIER - Identifier (Numbers, Names, Chemical Formulas)
Data type: BAPIFRML_IDENTIFIEROptional: Yes
Call by Reference: Yes
IDENT_LONGTEXT - Identifier long texts
Data type: BAPIFRML_IDENT_LONGTEXTOptional: Yes
Call by Reference: Yes
RETURN - Return Parameters
Data type: BAPIRET2Optional: No
Call by Reference: Yes
HEADER - RMS-FRM: Formula Header
Data type: BAPIFRML_HEADEROptional: Yes
Call by Reference: Yes
INPUT_POS - RMS-FRM: API, General Data of Input Item
Data type: BAPIFRML_INPUT_POSOptional: Yes
Call by Reference: Yes
INPUT_ALT - RMS-FRM: Input Alternative
Data type: BAPIFRML_INPUT_ALTOptional: Yes
Call by Reference: Yes
INPUT_MAT - RMS-FRM: Input Item LoM (Material)
Data type: BAPIFRML_INPUT_MATOptional: Yes
Call by Reference: Yes
INPUT_SUB - RMS-FRM: Input Item LoRS (Substance)
Data type: BAPIFRML_INPUT_SUBOptional: Yes
Call by Reference: Yes
INPUT_STR - RMS-FRM: API LoM Input Item (Stream)
Data type: BAPIFRML_INPUT_STROptional: Yes
Call by Reference: Yes
OUTPUT_POS - RMS-FRM: API Output Item
Data type: BAPIFRML_OUTPUT_POSOptional: Yes
Call by Reference: Yes
Copy and paste ABAP code example for BAPI_FORMULA_GETDETAILMULTIPLE 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_scenario | TYPE BAPIFRML_SCENARIO, " | |||
| lt_keynr_tab | TYPE STANDARD TABLE OF BAPIFRML_KEYS, " | |||
| lt_output_alt | TYPE STANDARD TABLE OF BAPIFRML_OUTPUT_ALT, " | |||
| lt_output_mat | TYPE STANDARD TABLE OF BAPIFRML_OUTPUT_MAT, " | |||
| lt_output_sub | TYPE STANDARD TABLE OF BAPIFRML_OUTPUT_SUB, " | |||
| lt_output_str | TYPE STANDARD TABLE OF BAPIFRML_OUTPUT_STR, " | |||
| lt_output_str_text | TYPE STANDARD TABLE OF BAPIFRML_OUTPUT_STR_TEXT, " | |||
| lt_composition | TYPE STANDARD TABLE OF BAPIFRML_COMPOSITION, " | |||
| lt_component | TYPE STANDARD TABLE OF BAPIFRML_COMPONENT, " | |||
| lt_application_scope | TYPE STANDARD TABLE OF BAPIFRML_APPLICATION_SCOPE, " | |||
| lt_char_cat_alloc | TYPE STANDARD TABLE OF BAPIFRML_CHAR_CAT_ALLOC, " | |||
| lt_char_value | TYPE STANDARD TABLE OF BAPIFRML_CHAR_VALUE, " | |||
| lv_valid_date | TYPE BAPIFRML_STATUS-VALID_DATE, " SY-DATUM | |||
| lt_filter_subchacat | TYPE STANDARD TABLE OF BAPIFRML_FILTER_SUBCHACAT, " | |||
| lt_characteristics | TYPE STANDARD TABLE OF BAPIFRML_CHARACTERISTICS, " | |||
| lt_char_usage | TYPE STANDARD TABLE OF BAPIFRML_CHAR_USAGE, " | |||
| lt_identifier | TYPE STANDARD TABLE OF BAPIFRML_IDENTIFIER, " | |||
| lt_ident_longtext | TYPE STANDARD TABLE OF BAPIFRML_IDENT_LONGTEXT, " | |||
| lt_return | TYPE STANDARD TABLE OF BAPIRET2, " | |||
| lv_filter | TYPE BAPIFRML_FILTER, " | |||
| lt_header | TYPE STANDARD TABLE OF BAPIFRML_HEADER, " | |||
| lv_entities | TYPE BAPIFRML_ENTITY_FLAGS, " | |||
| lt_input_pos | TYPE STANDARD TABLE OF BAPIFRML_INPUT_POS, " | |||
| lt_input_alt | TYPE STANDARD TABLE OF BAPIFRML_INPUT_ALT, " | |||
| lt_input_mat | TYPE STANDARD TABLE OF BAPIFRML_INPUT_MAT, " | |||
| lt_input_sub | TYPE STANDARD TABLE OF BAPIFRML_INPUT_SUB, " | |||
| lt_input_str | TYPE STANDARD TABLE OF BAPIFRML_INPUT_STR, " | |||
| lt_output_pos | TYPE STANDARD TABLE OF BAPIFRML_OUTPUT_POS. " |
|   CALL FUNCTION 'BAPI_FORMULA_GETDETAILMULTIPLE' "Reading Formulas |
| EXPORTING | ||
| SCENARIO | = lv_scenario | |
| VALID_DATE | = lv_valid_date | |
| FILTER | = lv_filter | |
| ENTITIES | = lv_entities | |
| TABLES | ||
| KEYNR_TAB | = lt_keynr_tab | |
| OUTPUT_ALT | = lt_output_alt | |
| OUTPUT_MAT | = lt_output_mat | |
| OUTPUT_SUB | = lt_output_sub | |
| OUTPUT_STR | = lt_output_str | |
| OUTPUT_STR_TEXT | = lt_output_str_text | |
| COMPOSITION | = lt_composition | |
| COMPONENT | = lt_component | |
| APPLICATION_SCOPE | = lt_application_scope | |
| CHAR_CAT_ALLOC | = lt_char_cat_alloc | |
| CHAR_VALUE | = lt_char_value | |
| FILTER_SUBCHACAT | = lt_filter_subchacat | |
| CHARACTERISTICS | = lt_characteristics | |
| CHAR_USAGE | = lt_char_usage | |
| IDENTIFIER | = lt_identifier | |
| IDENT_LONGTEXT | = lt_ident_longtext | |
| RETURN | = lt_return | |
| HEADER | = lt_header | |
| INPUT_POS | = lt_input_pos | |
| INPUT_ALT | = lt_input_alt | |
| INPUT_MAT | = lt_input_mat | |
| INPUT_SUB | = lt_input_sub | |
| INPUT_STR | = lt_input_str | |
| OUTPUT_POS | = lt_output_pos | |
| . " BAPI_FORMULA_GETDETAILMULTIPLE | ||
ABAP code using 7.40 inline data declarations to call FM BAPI_FORMULA_GETDETAILMULTIPLE
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 VALID_DATE FROM BAPIFRML_STATUS INTO @DATA(ld_valid_date). | ||||
| DATA(ld_valid_date) | = SY-DATUM. | |||
Search for further information about these or an SAP related objects