SAP FRML173_FRML_EXPL2AGGR_SCR Function Module for NOTRANSL: RMS-FRM: Rezeptformel auflösen und aggregieren
FRML173_FRML_EXPL2AGGR_SCR is a standard frml173 frml expl2aggr scr SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for NOTRANSL: RMS-FRM: Rezeptformel auflösen und aggregieren 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 frml173 frml expl2aggr scr FM, simply by entering the name FRML173_FRML_EXPL2AGGR_SCR into the relevant SAP transaction such as SE37 or SE38.
Function Group: FRML173
Program Name: SAPLFRML173
Main Program: SAPLFRML173
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function FRML173_FRML_EXPL2AGGR_SCR 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 'FRML173_FRML_EXPL2AGGR_SCR'"NOTRANSL: RMS-FRM: Rezeptformel auflösen und aggregieren.
EXPORTING
I_VALDAT = "Date and Time, Current (Application Server) Date
IMPORTING
ET_AGGR_SCR_LOM = "RMS-FRM:Table Type for Aggregation View
ET_SCR_LOM = "
ET_AGGR_SCR_LORS = "RMS-FRM:Table Type for Aggregation View
ET_SCR_LORS = "
ET_RCP_FRML = "RMS-FRM: Table Type for Explosion (Recipe with Formulas)
ET_STREAMS_LOM = "DE-EN-LANG-SWITCH-NO-TRANSLATION
ET_STREAMS_LORS = "DE-EN-LANG-SWITCH-NO-TRANSLATION
ET_LOG = "RMS-FRM: Messages for Application Log
CHANGING
XT_RCP_FRML = "RMS-FRM: Table Type for Explosion (Recipe with Formulas)
EXCEPTIONS
FRML_EXPL_ERROR = 1 DIFF_STREAM_LOM_QTY = 10 DIFF_STREAM_LORS_QTY = 11 NO_UNIQUE_START_FORMULA = 12 NOT_ALL_FORMULAS_INVOLVED = 13 NO_OUT_IN_START_FRML = 14 PARAMETER_ERROR = 2 CONVERSION_ERROR = 3 NO_REF_QTY_MAINTAIN = 4 NO_PRIMARY_OUTPUT = 5 NO_DEF_UNIT_FLOAT = 6 UNIT_CONVERSION = 7 NO_API_AGGR_VAL = 8 STREAM_ERROR = 9
IMPORTING Parameters details for FRML173_FRML_EXPL2AGGR_SCR
I_VALDAT - Date and Time, Current (Application Server) Date
Data type: SYDATUMOptional: No
Call by Reference: Yes
EXPORTING Parameters details for FRML173_FRML_EXPL2AGGR_SCR
ET_AGGR_SCR_LOM - RMS-FRM:Table Type for Aggregation View
Data type: FRMLTY_IOT_AGGROptional: No
Call by Reference: Yes
ET_SCR_LOM -
Data type: FRM10_IOT_SCR_TABOptional: No
Call by Reference: Yes
ET_AGGR_SCR_LORS - RMS-FRM:Table Type for Aggregation View
Data type: FRMLTY_IOT_AGGROptional: No
Call by Reference: Yes
ET_SCR_LORS -
Data type: FRM10_IOT_SCR_TABOptional: No
Call by Reference: Yes
ET_RCP_FRML - RMS-FRM: Table Type for Explosion (Recipe with Formulas)
Data type: FRMLTY_RCP_FRML_AGGROptional: No
Call by Reference: Yes
ET_STREAMS_LOM - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type: FRMLTY_STREAM_RECNOptional: No
Call by Reference: Yes
ET_STREAMS_LORS - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type: FRMLTY_STREAM_RECNOptional: No
Call by Reference: Yes
ET_LOG - RMS-FRM: Messages for Application Log
Data type: FRMLTY_LOG_RECOptional: No
Call by Reference: Yes
CHANGING Parameters details for FRML173_FRML_EXPL2AGGR_SCR
XT_RCP_FRML - RMS-FRM: Table Type for Explosion (Recipe with Formulas)
Data type: FRMLTY_RCP_FRML_AGGROptional: No
Call by Reference: Yes
EXCEPTIONS details
FRML_EXPL_ERROR -
Data type:Optional: No
Call by Reference: Yes
DIFF_STREAM_LOM_QTY -
Data type:Optional: No
Call by Reference: Yes
DIFF_STREAM_LORS_QTY -
Data type:Optional: No
Call by Reference: Yes
NO_UNIQUE_START_FORMULA -
Data type:Optional: No
Call by Reference: Yes
NOT_ALL_FORMULAS_INVOLVED -
Data type:Optional: No
Call by Reference: Yes
NO_OUT_IN_START_FRML -
Data type:Optional: No
Call by Reference: Yes
PARAMETER_ERROR -
Data type:Optional: No
Call by Reference: Yes
CONVERSION_ERROR -
Data type:Optional: No
Call by Reference: Yes
NO_REF_QTY_MAINTAIN -
Data type:Optional: No
Call by Reference: Yes
NO_PRIMARY_OUTPUT -
Data type:Optional: No
Call by Reference: Yes
NO_DEF_UNIT_FLOAT -
Data type:Optional: No
Call by Reference: Yes
UNIT_CONVERSION -
Data type:Optional: No
Call by Reference: Yes
NO_API_AGGR_VAL -
Data type:Optional: No
Call by Reference: Yes
STREAM_ERROR -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for FRML173_FRML_EXPL2AGGR_SCR 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_valdat | TYPE SYDATUM, " | |||
| lv_xt_rcp_frml | TYPE FRMLTY_RCP_FRML_AGGR, " | |||
| lv_et_aggr_scr_lom | TYPE FRMLTY_IOT_AGGR, " | |||
| lv_frml_expl_error | TYPE FRMLTY_IOT_AGGR, " | |||
| lv_diff_stream_lom_qty | TYPE FRMLTY_IOT_AGGR, " | |||
| lv_diff_stream_lors_qty | TYPE FRMLTY_IOT_AGGR, " | |||
| lv_no_unique_start_formula | TYPE FRMLTY_IOT_AGGR, " | |||
| lv_not_all_formulas_involved | TYPE FRMLTY_IOT_AGGR, " | |||
| lv_no_out_in_start_frml | TYPE FRMLTY_IOT_AGGR, " | |||
| lv_et_scr_lom | TYPE FRM10_IOT_SCR_TAB, " | |||
| lv_parameter_error | TYPE FRM10_IOT_SCR_TAB, " | |||
| lv_conversion_error | TYPE FRM10_IOT_SCR_TAB, " | |||
| lv_et_aggr_scr_lors | TYPE FRMLTY_IOT_AGGR, " | |||
| lv_et_scr_lors | TYPE FRM10_IOT_SCR_TAB, " | |||
| lv_no_ref_qty_maintain | TYPE FRM10_IOT_SCR_TAB, " | |||
| lv_et_rcp_frml | TYPE FRMLTY_RCP_FRML_AGGR, " | |||
| lv_no_primary_output | TYPE FRMLTY_RCP_FRML_AGGR, " | |||
| lv_et_streams_lom | TYPE FRMLTY_STREAM_RECN, " | |||
| lv_no_def_unit_float | TYPE FRMLTY_STREAM_RECN, " | |||
| lv_et_streams_lors | TYPE FRMLTY_STREAM_RECN, " | |||
| lv_unit_conversion | TYPE FRMLTY_STREAM_RECN, " | |||
| lv_et_log | TYPE FRMLTY_LOG_REC, " | |||
| lv_no_api_aggr_val | TYPE FRMLTY_LOG_REC, " | |||
| lv_stream_error | TYPE FRMLTY_LOG_REC. " |
|   CALL FUNCTION 'FRML173_FRML_EXPL2AGGR_SCR' "NOTRANSL: RMS-FRM: Rezeptformel auflösen und aggregieren |
| EXPORTING | ||
| I_VALDAT | = lv_i_valdat | |
| IMPORTING | ||
| ET_AGGR_SCR_LOM | = lv_et_aggr_scr_lom | |
| ET_SCR_LOM | = lv_et_scr_lom | |
| ET_AGGR_SCR_LORS | = lv_et_aggr_scr_lors | |
| ET_SCR_LORS | = lv_et_scr_lors | |
| ET_RCP_FRML | = lv_et_rcp_frml | |
| ET_STREAMS_LOM | = lv_et_streams_lom | |
| ET_STREAMS_LORS | = lv_et_streams_lors | |
| ET_LOG | = lv_et_log | |
| CHANGING | ||
| XT_RCP_FRML | = lv_xt_rcp_frml | |
| EXCEPTIONS | ||
| FRML_EXPL_ERROR = 1 | ||
| DIFF_STREAM_LOM_QTY = 10 | ||
| DIFF_STREAM_LORS_QTY = 11 | ||
| NO_UNIQUE_START_FORMULA = 12 | ||
| NOT_ALL_FORMULAS_INVOLVED = 13 | ||
| NO_OUT_IN_START_FRML = 14 | ||
| PARAMETER_ERROR = 2 | ||
| CONVERSION_ERROR = 3 | ||
| NO_REF_QTY_MAINTAIN = 4 | ||
| NO_PRIMARY_OUTPUT = 5 | ||
| NO_DEF_UNIT_FLOAT = 6 | ||
| UNIT_CONVERSION = 7 | ||
| NO_API_AGGR_VAL = 8 | ||
| STREAM_ERROR = 9 | ||
| . " FRML173_FRML_EXPL2AGGR_SCR | ||
ABAP code using 7.40 inline data declarations to call FM FRML173_FRML_EXPL2AGGR_SCR
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.Search for further information about these or an SAP related objects