SAP Function Modules

TRSPA_OPEN_BEARER SAP Function module - Open Transaction for Security Price Adjustment Object







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

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


Pattern for FM TRSPA_OPEN_BEARER - TRSPA OPEN BEARER





CALL FUNCTION 'TRSPA_OPEN_BEARER' "Open Transaction for Security Price Adjustment Object
  EXPORTING
    im_modus =                  " tb_ira_open_mod  Editing mode
    im_open_for =               " tb_ira_opened_for  Geöffnet zum Fixieren o. Registrieren
    im_bearer_cat =             " tb_spa_bearer_cat  Security Price Adjustment Category
*   im_bearer_id =              " tb_spa_bearer_id  Security Price Adjustment Bearer ID
*   im_dfix =                   " tb_spa_date   Security Price Fixing Date
*   im_trigger =                " tb_spa_trigger  Security Price  Adjustment Trigger
  IMPORTING
    re_bearer_ref =             " if_spa_bearer  Treasury: Security Price Adjustment for Bearer
  EXCEPTIONS
    REFERENCE_EXISTS = 1        "               Referenz auf Zinsanpassungsträger exstiert
    OPENING_ERROR = 2           "               OPEN wurde unsinnig aufgerufen
    .  "  TRSPA_OPEN_BEARER

ABAP code example for Function Module TRSPA_OPEN_BEARER





The ABAP code below is a full code listing to execute function module TRSPA_OPEN_BEARER 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_re_bearer_ref  TYPE IF_SPA_BEARER .

DATA(ld_im_modus) = 'Check type of data required'.
DATA(ld_im_open_for) = 'Check type of data required'.
DATA(ld_im_bearer_cat) = 'Check type of data required'.
DATA(ld_im_bearer_id) = 'Check type of data required'.
DATA(ld_im_dfix) = 'Check type of data required'.
DATA(ld_im_trigger) = 'Check type of data required'. . CALL FUNCTION 'TRSPA_OPEN_BEARER' EXPORTING im_modus = ld_im_modus im_open_for = ld_im_open_for im_bearer_cat = ld_im_bearer_cat * im_bearer_id = ld_im_bearer_id * im_dfix = ld_im_dfix * im_trigger = ld_im_trigger IMPORTING re_bearer_ref = ld_re_bearer_ref EXCEPTIONS REFERENCE_EXISTS = 1 OPENING_ERROR = 2 . " TRSPA_OPEN_BEARER
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 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_re_bearer_ref  TYPE IF_SPA_BEARER ,
ld_im_modus  TYPE TB_IRA_OPEN_MOD ,
ld_im_open_for  TYPE TB_IRA_OPENED_FOR ,
ld_im_bearer_cat  TYPE TB_SPA_BEARER_CAT ,
ld_im_bearer_id  TYPE TB_SPA_BEARER_ID ,
ld_im_dfix  TYPE TB_SPA_DATE ,
ld_im_trigger  TYPE TB_SPA_TRIGGER .

ld_im_modus = 'Check type of data required'.
ld_im_open_for = 'Check type of data required'.
ld_im_bearer_cat = 'Check type of data required'.
ld_im_bearer_id = 'Check type of data required'.
ld_im_dfix = 'Check type of data required'.
ld_im_trigger = 'Check type of data required'.

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