SAP Function Modules

ISB_RM_NOT_AGGR_WP_METHODS SAP Function module - IS-B: RM Berechnungsmethoden für auf Index abgebildete Aktien/Aktienderi







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

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


Pattern for FM ISB_RM_NOT_AGGR_WP_METHODS - ISB RM NOT AGGR WP METHODS





CALL FUNCTION 'ISB_RM_NOT_AGGR_WP_METHODS' "IS-B: RM Berechnungsmethoden für auf Index abgebildete Aktien/Aktienderiv.
  EXPORTING
*   akt_datum = SY-DATUM        " sy-datum      aktuelles Datum
    i_jbrbest =                 " jbrbest       Feldleiste mit Kopfdaten der Option
    res_curr =                  " jbrbest-sbwhr  Währung des Ergebnises
    auswtyp =                   " atsyc-auswt   nicht benutzt
    i_jbrmseg =                 " jbrmseg       Marktdatenparameter
  TABLES
*   e_cashflow =                " vtvcashfl     Cashflowtabelle
    e_methoden =                " vtvmethod     Exportstruktur Ergebnisse
    i_methoden =                " vtvmethod     Tabelle zu rechnender Methoden, Ergebnistabelle
    i_jbrbeweg =                " jbrbeweg      Zusatzbewegungen (Prämienzahlungen!)
    i_jbropti =                 " jbropti
    i_jbrubeweg =               " jbrbeweg
*   e_exposure =                " vtvcashfl     Exposuretabelle
  EXCEPTIONS
    MARKET_DATA_RATES = 1       "               Fehler bei Marktdatenbesorgung Zinsen
    MARKET_DATA_SPOT = 2        "               Fehler bei Marktdatenbesorgung Kurse
    NO_CALC = 3                 "               Fehler beim Rechnen
    .  "  ISB_RM_NOT_AGGR_WP_METHODS

ABAP code example for Function Module ISB_RM_NOT_AGGR_WP_METHODS





The ABAP code below is a full code listing to execute function module ISB_RM_NOT_AGGR_WP_METHODS 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_cashflow  TYPE STANDARD TABLE OF VTVCASHFL,"TABLES PARAM
wa_e_cashflow  LIKE LINE OF it_e_cashflow ,
it_e_methoden  TYPE STANDARD TABLE OF VTVMETHOD,"TABLES PARAM
wa_e_methoden  LIKE LINE OF it_e_methoden ,
it_i_methoden  TYPE STANDARD TABLE OF VTVMETHOD,"TABLES PARAM
wa_i_methoden  LIKE LINE OF it_i_methoden ,
it_i_jbrbeweg  TYPE STANDARD TABLE OF JBRBEWEG,"TABLES PARAM
wa_i_jbrbeweg  LIKE LINE OF it_i_jbrbeweg ,
it_i_jbropti  TYPE STANDARD TABLE OF JBROPTI,"TABLES PARAM
wa_i_jbropti  LIKE LINE OF it_i_jbropti ,
it_i_jbrubeweg  TYPE STANDARD TABLE OF JBRBEWEG,"TABLES PARAM
wa_i_jbrubeweg  LIKE LINE OF it_i_jbrubeweg ,
it_e_exposure  TYPE STANDARD TABLE OF VTVCASHFL,"TABLES PARAM
wa_e_exposure  LIKE LINE OF it_e_exposure .

DATA(ld_akt_datum) = '20210129'.
DATA(ld_i_jbrbest) = '20210129'.

DATA(ld_res_curr) = Check type of data required

SELECT single AUSWT
FROM ATSYC
INTO @DATA(ld_auswtyp).

DATA(ld_i_jbrmseg) = '20210129'.

"populate fields of struture and append to itab
append wa_e_cashflow to it_e_cashflow.

"populate fields of struture and append to itab
append wa_e_methoden to it_e_methoden.

"populate fields of struture and append to itab
append wa_i_methoden to it_i_methoden.

"populate fields of struture and append to itab
append wa_i_jbrbeweg to it_i_jbrbeweg.

"populate fields of struture and append to itab
append wa_i_jbropti to it_i_jbropti.

"populate fields of struture and append to itab
append wa_i_jbrubeweg to it_i_jbrubeweg.

"populate fields of struture and append to itab
append wa_e_exposure to it_e_exposure. . CALL FUNCTION 'ISB_RM_NOT_AGGR_WP_METHODS' EXPORTING * akt_datum = ld_akt_datum i_jbrbest = ld_i_jbrbest res_curr = ld_res_curr auswtyp = ld_auswtyp i_jbrmseg = ld_i_jbrmseg TABLES * e_cashflow = it_e_cashflow e_methoden = it_e_methoden i_methoden = it_i_methoden i_jbrbeweg = it_i_jbrbeweg i_jbropti = it_i_jbropti i_jbrubeweg = it_i_jbrubeweg * e_exposure = it_e_exposure EXCEPTIONS MARKET_DATA_RATES = 1 MARKET_DATA_SPOT = 2 NO_CALC = 3 . " ISB_RM_NOT_AGGR_WP_METHODS
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 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_akt_datum  TYPE SY-DATUM ,
it_e_cashflow  TYPE STANDARD TABLE OF VTVCASHFL ,
wa_e_cashflow  LIKE LINE OF it_e_cashflow,
ld_i_jbrbest  TYPE JBRBEST ,
it_e_methoden  TYPE STANDARD TABLE OF VTVMETHOD ,
wa_e_methoden  LIKE LINE OF it_e_methoden,
ld_res_curr  TYPE JBRBEST-SBWHR ,
it_i_methoden  TYPE STANDARD TABLE OF VTVMETHOD ,
wa_i_methoden  LIKE LINE OF it_i_methoden,
ld_auswtyp  TYPE ATSYC-AUSWT ,
it_i_jbrbeweg  TYPE STANDARD TABLE OF JBRBEWEG ,
wa_i_jbrbeweg  LIKE LINE OF it_i_jbrbeweg,
ld_i_jbrmseg  TYPE JBRMSEG ,
it_i_jbropti  TYPE STANDARD TABLE OF JBROPTI ,
wa_i_jbropti  LIKE LINE OF it_i_jbropti,
it_i_jbrubeweg  TYPE STANDARD TABLE OF JBRBEWEG ,
wa_i_jbrubeweg  LIKE LINE OF it_i_jbrubeweg,
it_e_exposure  TYPE STANDARD TABLE OF VTVCASHFL ,
wa_e_exposure  LIKE LINE OF it_e_exposure.

ld_akt_datum = '20210129'.

"populate fields of struture and append to itab
append wa_e_cashflow to it_e_cashflow.
ld_i_jbrbest = '20210129'.

"populate fields of struture and append to itab
append wa_e_methoden to it_e_methoden.

ld_res_curr = Check type of data required

"populate fields of struture and append to itab
append wa_i_methoden to it_i_methoden.

SELECT single AUSWT
FROM ATSYC
INTO ld_auswtyp.


"populate fields of struture and append to itab
append wa_i_jbrbeweg to it_i_jbrbeweg.
ld_i_jbrmseg = '20210129'.

"populate fields of struture and append to itab
append wa_i_jbropti to it_i_jbropti.

"populate fields of struture and append to itab
append wa_i_jbrubeweg to it_i_jbrubeweg.

"populate fields of struture and append to itab
append wa_e_exposure to it_e_exposure.

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