SAP Function Modules

RTP_US_DB_TOT_FMV_READ_REP SAP Function module - Reads the fmv from the database table rtp_us_tot







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

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


Pattern for FM RTP_US_DB_TOT_FMV_READ_REP - RTP US DB TOT FMV READ REP





CALL FUNCTION 'RTP_US_DB_TOT_FMV_READ_REP' "Reads the fmv from the database table rtp_us_tot
  EXPORTING
    i_tax_year =                " rtp_us_tot-tax_year  Tax-year
  TABLES
*   t_rng_bkkrs =               " ibkk_rng_bkkrs  BCA: Structure bank area (RANGE)
*   t_rng_plnb =                " irtp_us_rng_plannumber  Structure for range of a plannumber
    t_tot =                     " rtp_us_tot    Total amounts for a retirement plan
    .  "  RTP_US_DB_TOT_FMV_READ_REP

ABAP code example for Function Module RTP_US_DB_TOT_FMV_READ_REP





The ABAP code below is a full code listing to execute function module RTP_US_DB_TOT_FMV_READ_REP 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_t_rng_bkkrs  TYPE STANDARD TABLE OF IBKK_RNG_BKKRS,"TABLES PARAM
wa_t_rng_bkkrs  LIKE LINE OF it_t_rng_bkkrs ,
it_t_rng_plnb  TYPE STANDARD TABLE OF IRTP_US_RNG_PLANNUMBER,"TABLES PARAM
wa_t_rng_plnb  LIKE LINE OF it_t_rng_plnb ,
it_t_tot  TYPE STANDARD TABLE OF RTP_US_TOT,"TABLES PARAM
wa_t_tot  LIKE LINE OF it_t_tot .


SELECT single TAX_YEAR
FROM RTP_US_TOT
INTO @DATA(ld_i_tax_year).


"populate fields of struture and append to itab
append wa_t_rng_bkkrs to it_t_rng_bkkrs.

"populate fields of struture and append to itab
append wa_t_rng_plnb to it_t_rng_plnb.

"populate fields of struture and append to itab
append wa_t_tot to it_t_tot. . CALL FUNCTION 'RTP_US_DB_TOT_FMV_READ_REP' EXPORTING i_tax_year = ld_i_tax_year TABLES * t_rng_bkkrs = it_t_rng_bkkrs * t_rng_plnb = it_t_rng_plnb t_tot = it_t_tot . " RTP_US_DB_TOT_FMV_READ_REP
IF SY-SUBRC EQ 0. "All OK 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_i_tax_year  TYPE RTP_US_TOT-TAX_YEAR ,
it_t_rng_bkkrs  TYPE STANDARD TABLE OF IBKK_RNG_BKKRS ,
wa_t_rng_bkkrs  LIKE LINE OF it_t_rng_bkkrs,
it_t_rng_plnb  TYPE STANDARD TABLE OF IRTP_US_RNG_PLANNUMBER ,
wa_t_rng_plnb  LIKE LINE OF it_t_rng_plnb,
it_t_tot  TYPE STANDARD TABLE OF RTP_US_TOT ,
wa_t_tot  LIKE LINE OF it_t_tot.


SELECT single TAX_YEAR
FROM RTP_US_TOT
INTO ld_i_tax_year.


"populate fields of struture and append to itab
append wa_t_rng_bkkrs to it_t_rng_bkkrs.

"populate fields of struture and append to itab
append wa_t_rng_plnb to it_t_rng_plnb.

"populate fields of struture and append to itab
append wa_t_tot to it_t_tot.

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