SAP Function Modules

FRML173_CONV_FRML_AGGR_INDEP SAP Function module







FRML173_CONV_FRML_AGGR_INDEP is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.

See here to view full function module documentation and code listing, simply by entering the name FRML173_CONV_FRML_AGGR_INDEP into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: FRML173
Released Date: Not Released
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM FRML173_CONV_FRML_AGGR_INDEP - FRML173 CONV FRML AGGR INDEP





CALL FUNCTION 'FRML173_CONV_FRML_AGGR_INDEP' "
  EXPORTING
    i_frml_recn =               " frmle_recn
    it_api_aggr =               " frm31_aggr_tab_type
*   it_rcp_frml =               " frmlty_rcp_frml_aggr
    i_valdat =                  " sydatum
*   i_lom_req =                 " flag
*   i_lors_req =                " flag
  IMPORTING
    et_aggr_scr_lom =           " frmlty_iot_aggr
    et_aggr_scr_lors =          " frmlty_iot_aggr
    et_scr_lom =                " frm10_iot_scr_tab
    et_scr_lors =               " frm10_iot_scr_tab
    et_stream =                 " frmlty_stream_recn
  EXCEPTIONS
    NO_REF_QTY_MAINTAIN = 1     "
    NO_PRIMARY_OUTPUT = 2       "
    NO_DEF_UNIT_FLOAT = 3       "
    UNIT_CONVERSION = 4         "
    NO_API_AGGR_VAL = 5         "
    NO_OUT_IN_START_FRML = 6    "
    .  "  FRML173_CONV_FRML_AGGR_INDEP

ABAP code example for Function Module FRML173_CONV_FRML_AGGR_INDEP





The ABAP code below is a full code listing to execute function module FRML173_CONV_FRML_AGGR_INDEP including all data declarations. The code uses 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 original method of declaring data variables up front. 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).

DATA:
ld_et_aggr_scr_lom  TYPE FRMLTY_IOT_AGGR ,
ld_et_aggr_scr_lors  TYPE FRMLTY_IOT_AGGR ,
ld_et_scr_lom  TYPE FRM10_IOT_SCR_TAB ,
ld_et_scr_lors  TYPE FRM10_IOT_SCR_TAB ,
ld_et_stream  TYPE FRMLTY_STREAM_RECN .

DATA(ld_i_frml_recn) = 'Check type of data required'.
DATA(ld_it_api_aggr) = 'Check type of data required'.
DATA(ld_it_rcp_frml) = 'Check type of data required'.
DATA(ld_i_valdat) = '20210129'.
DATA(ld_i_lom_req) = '20210129'.
DATA(ld_i_lors_req) = '20210129'. . CALL FUNCTION 'FRML173_CONV_FRML_AGGR_INDEP' EXPORTING i_frml_recn = ld_i_frml_recn it_api_aggr = ld_it_api_aggr * it_rcp_frml = ld_it_rcp_frml i_valdat = ld_i_valdat * i_lom_req = ld_i_lom_req * i_lors_req = ld_i_lors_req IMPORTING et_aggr_scr_lom = ld_et_aggr_scr_lom et_aggr_scr_lors = ld_et_aggr_scr_lors et_scr_lom = ld_et_scr_lom et_scr_lors = ld_et_scr_lors et_stream = ld_et_stream EXCEPTIONS NO_REF_QTY_MAINTAIN = 1 NO_PRIMARY_OUTPUT = 2 NO_DEF_UNIT_FLOAT = 3 UNIT_CONVERSION = 4 NO_API_AGGR_VAL = 5 NO_OUT_IN_START_FRML = 6 . " FRML173_CONV_FRML_AGGR_INDEP
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 2. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 3. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 4. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 5. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 6. "Exception "Add code for exception here ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.

DATA:
ld_et_aggr_scr_lom  TYPE FRMLTY_IOT_AGGR ,
ld_i_frml_recn  TYPE FRMLE_RECN ,
ld_et_aggr_scr_lors  TYPE FRMLTY_IOT_AGGR ,
ld_it_api_aggr  TYPE FRM31_AGGR_TAB_TYPE ,
ld_et_scr_lom  TYPE FRM10_IOT_SCR_TAB ,
ld_it_rcp_frml  TYPE FRMLTY_RCP_FRML_AGGR ,
ld_et_scr_lors  TYPE FRM10_IOT_SCR_TAB ,
ld_i_valdat  TYPE SYDATUM ,
ld_et_stream  TYPE FRMLTY_STREAM_RECN ,
ld_i_lom_req  TYPE FLAG ,
ld_i_lors_req  TYPE FLAG .

ld_i_frml_recn = '20210129'.
ld_it_api_aggr = '20210129'.
ld_it_rcp_frml = '20210129'.
ld_i_valdat = '20210129'.
ld_i_lom_req = '20210129'.
ld_i_lors_req = '20210129'.

Contribute (Add Comments)

Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name FRML173_CONV_FRML_AGGR_INDEP or its description.