SAP Function Modules

RM_SELECT_AUSWT_DATA SAP Function module - Reads all tables for evaluation type







RM_SELECT_AUSWT_DATA 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 RM_SELECT_AUSWT_DATA into the relevant SAP transaction such as SE37 or SE80.

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


Pattern for FM RM_SELECT_AUSWT_DATA - RM SELECT AUSWT DATA





CALL FUNCTION 'RM_SELECT_AUSWT_DATA' "Reads all tables for evaluation type
  TABLES
    e_tab_jbreval =             " jbreval       Risk Management evaluation type - definition
    e_tab_jbrevalt =            " jbrevalt      Risk Management evaluation type - texts
    e_tab_atsyc =               " atsyc         Default Settings for Risk Evaluations
    e_tab_atsycii =             " atsycii       Additional Default Settings for Risk Evaluations
    e_tab_afwkfpa_val =         " afwkfpa_val   Valuation Rules that Deviate from the Evaluation Type
    e_tab_atrmo =               " atrmo         Valuation Control
    e_tab_jbrbv1 =              " jbrbv1        VaR - Local Control
    e_tab_jbrbewregt =          " jbrbewregt    Valuation Rules for Evaluations (Texts)
  EXCEPTIONS
    READ_ERROR = 1              "               Error Reading Data
    .  "  RM_SELECT_AUSWT_DATA

ABAP code example for Function Module RM_SELECT_AUSWT_DATA





The ABAP code below is a full code listing to execute function module RM_SELECT_AUSWT_DATA 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:
it_e_tab_jbreval  TYPE STANDARD TABLE OF JBREVAL,"TABLES PARAM
wa_e_tab_jbreval  LIKE LINE OF it_e_tab_jbreval ,
it_e_tab_jbrevalt  TYPE STANDARD TABLE OF JBREVALT,"TABLES PARAM
wa_e_tab_jbrevalt  LIKE LINE OF it_e_tab_jbrevalt ,
it_e_tab_atsyc  TYPE STANDARD TABLE OF ATSYC,"TABLES PARAM
wa_e_tab_atsyc  LIKE LINE OF it_e_tab_atsyc ,
it_e_tab_atsycii  TYPE STANDARD TABLE OF ATSYCII,"TABLES PARAM
wa_e_tab_atsycii  LIKE LINE OF it_e_tab_atsycii ,
it_e_tab_afwkfpa_val  TYPE STANDARD TABLE OF AFWKFPA_VAL,"TABLES PARAM
wa_e_tab_afwkfpa_val  LIKE LINE OF it_e_tab_afwkfpa_val ,
it_e_tab_atrmo  TYPE STANDARD TABLE OF ATRMO,"TABLES PARAM
wa_e_tab_atrmo  LIKE LINE OF it_e_tab_atrmo ,
it_e_tab_jbrbv1  TYPE STANDARD TABLE OF JBRBV1,"TABLES PARAM
wa_e_tab_jbrbv1  LIKE LINE OF it_e_tab_jbrbv1 ,
it_e_tab_jbrbewregt  TYPE STANDARD TABLE OF JBRBEWREGT,"TABLES PARAM
wa_e_tab_jbrbewregt  LIKE LINE OF it_e_tab_jbrbewregt .


"populate fields of struture and append to itab
append wa_e_tab_jbreval to it_e_tab_jbreval.

"populate fields of struture and append to itab
append wa_e_tab_jbrevalt to it_e_tab_jbrevalt.

"populate fields of struture and append to itab
append wa_e_tab_atsyc to it_e_tab_atsyc.

"populate fields of struture and append to itab
append wa_e_tab_atsycii to it_e_tab_atsycii.

"populate fields of struture and append to itab
append wa_e_tab_afwkfpa_val to it_e_tab_afwkfpa_val.

"populate fields of struture and append to itab
append wa_e_tab_atrmo to it_e_tab_atrmo.

"populate fields of struture and append to itab
append wa_e_tab_jbrbv1 to it_e_tab_jbrbv1.

"populate fields of struture and append to itab
append wa_e_tab_jbrbewregt to it_e_tab_jbrbewregt. . CALL FUNCTION 'RM_SELECT_AUSWT_DATA' TABLES e_tab_jbreval = it_e_tab_jbreval e_tab_jbrevalt = it_e_tab_jbrevalt e_tab_atsyc = it_e_tab_atsyc e_tab_atsycii = it_e_tab_atsycii e_tab_afwkfpa_val = it_e_tab_afwkfpa_val e_tab_atrmo = it_e_tab_atrmo e_tab_jbrbv1 = it_e_tab_jbrbv1 e_tab_jbrbewregt = it_e_tab_jbrbewregt EXCEPTIONS READ_ERROR = 1 . " RM_SELECT_AUSWT_DATA
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "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:
it_e_tab_jbreval  TYPE STANDARD TABLE OF JBREVAL ,
wa_e_tab_jbreval  LIKE LINE OF it_e_tab_jbreval,
it_e_tab_jbrevalt  TYPE STANDARD TABLE OF JBREVALT ,
wa_e_tab_jbrevalt  LIKE LINE OF it_e_tab_jbrevalt,
it_e_tab_atsyc  TYPE STANDARD TABLE OF ATSYC ,
wa_e_tab_atsyc  LIKE LINE OF it_e_tab_atsyc,
it_e_tab_atsycii  TYPE STANDARD TABLE OF ATSYCII ,
wa_e_tab_atsycii  LIKE LINE OF it_e_tab_atsycii,
it_e_tab_afwkfpa_val  TYPE STANDARD TABLE OF AFWKFPA_VAL ,
wa_e_tab_afwkfpa_val  LIKE LINE OF it_e_tab_afwkfpa_val,
it_e_tab_atrmo  TYPE STANDARD TABLE OF ATRMO ,
wa_e_tab_atrmo  LIKE LINE OF it_e_tab_atrmo,
it_e_tab_jbrbv1  TYPE STANDARD TABLE OF JBRBV1 ,
wa_e_tab_jbrbv1  LIKE LINE OF it_e_tab_jbrbv1,
it_e_tab_jbrbewregt  TYPE STANDARD TABLE OF JBRBEWREGT ,
wa_e_tab_jbrbewregt  LIKE LINE OF it_e_tab_jbrbewregt.


"populate fields of struture and append to itab
append wa_e_tab_jbreval to it_e_tab_jbreval.

"populate fields of struture and append to itab
append wa_e_tab_jbrevalt to it_e_tab_jbrevalt.

"populate fields of struture and append to itab
append wa_e_tab_atsyc to it_e_tab_atsyc.

"populate fields of struture and append to itab
append wa_e_tab_atsycii to it_e_tab_atsycii.

"populate fields of struture and append to itab
append wa_e_tab_afwkfpa_val to it_e_tab_afwkfpa_val.

"populate fields of struture and append to itab
append wa_e_tab_atrmo to it_e_tab_atrmo.

"populate fields of struture and append to itab
append wa_e_tab_jbrbv1 to it_e_tab_jbrbv1.

"populate fields of struture and append to itab
append wa_e_tab_jbrbewregt to it_e_tab_jbrbewregt.

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 RM_SELECT_AUSWT_DATA or its description.