SAP RTP_US_DB_DEFAULTS_READ Function Module for Reads DB-table trtp_us_dflt









RTP_US_DB_DEFAULTS_READ is a standard rtp us db defaults read SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Reads DB-table trtp_us_dflt processing and below is the pattern details for this FM, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.


See here to view full function module documentation and code listing for rtp us db defaults read FM, simply by entering the name RTP_US_DB_DEFAULTS_READ into the relevant SAP transaction such as SE37 or SE38.

Function Group: RTP_US_DB_READ
Program Name: SAPLRTP_US_DB_READ
Main Program:
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function RTP_US_DB_DEFAULTS_READ pattern details

In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.
CALL FUNCTION 'RTP_US_DB_DEFAULTS_READ'"Reads DB-table trtp_us_dflt
EXPORTING
I_BDT_OBJ = "BDT: Application object
I_BDT_TAB_NAME = "BP: Table name (screen)
I_BDT_FIELD_NAME = "BP: Field name (screen)
I_BDT_FLDGRP = "Field Group
I_TYPE_CODE = "Type code for a retirement plan
I_BANK_AREA = "Bank Area

IMPORTING
E_FIELD_VALUE = "Field value

EXCEPTIONS
NOT_FOUND = 1
.



IMPORTING Parameters details for RTP_US_DB_DEFAULTS_READ

I_BDT_OBJ - BDT: Application object

Data type: TBZ3R-OBJAP
Optional: No
Call by Reference: Yes

I_BDT_TAB_NAME - BP: Table name (screen)

Data type: TBZ3R-TABNM
Optional: No
Call by Reference: Yes

I_BDT_FIELD_NAME - BP: Field name (screen)

Data type: TBZ3R-FLDNM
Optional: No
Call by Reference: Yes

I_BDT_FLDGRP - Field Group

Data type: TBZ3R-FLDGR
Optional: No
Call by Reference: Yes

I_TYPE_CODE - Type code for a retirement plan

Data type: TRTP_US_PLANTYPE-TYPE_CODE
Optional: No
Call by Reference: Yes

I_BANK_AREA - Bank Area

Data type: TRTP_US_FSTAT-BKKRS
Optional: No
Call by Reference: Yes

EXPORTING Parameters details for RTP_US_DB_DEFAULTS_READ

E_FIELD_VALUE - Field value

Data type: TRTP_US_DFLT-FIELD_VALUE
Optional: No
Call by Reference: Yes

EXCEPTIONS details

NOT_FOUND -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for RTP_US_DB_DEFAULTS_READ Function Module

The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than 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 newer method of declaring data variables on the fly. 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), which i why i have stuck to the origianl for this example.

DATA:
lv_i_bdt_obj  TYPE TBZ3R-OBJAP, "   
lv_not_found  TYPE TBZ3R, "   
lv_e_field_value  TYPE TRTP_US_DFLT-FIELD_VALUE, "   
lv_i_bdt_tab_name  TYPE TBZ3R-TABNM, "   
lv_i_bdt_field_name  TYPE TBZ3R-FLDNM, "   
lv_i_bdt_fldgrp  TYPE TBZ3R-FLDGR, "   
lv_i_type_code  TYPE TRTP_US_PLANTYPE-TYPE_CODE, "   
lv_i_bank_area  TYPE TRTP_US_FSTAT-BKKRS. "   

  CALL FUNCTION 'RTP_US_DB_DEFAULTS_READ'  "Reads DB-table trtp_us_dflt
    EXPORTING
         I_BDT_OBJ = lv_i_bdt_obj
         I_BDT_TAB_NAME = lv_i_bdt_tab_name
         I_BDT_FIELD_NAME = lv_i_bdt_field_name
         I_BDT_FLDGRP = lv_i_bdt_fldgrp
         I_TYPE_CODE = lv_i_type_code
         I_BANK_AREA = lv_i_bank_area
    IMPORTING
         E_FIELD_VALUE = lv_e_field_value
    EXCEPTIONS
        NOT_FOUND = 1
. " RTP_US_DB_DEFAULTS_READ




ABAP code using 7.40 inline data declarations to call FM RTP_US_DB_DEFAULTS_READ

The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.

"SELECT single OBJAP FROM TBZ3R INTO @DATA(ld_i_bdt_obj).
 
 
"SELECT single FIELD_VALUE FROM TRTP_US_DFLT INTO @DATA(ld_e_field_value).
 
"SELECT single TABNM FROM TBZ3R INTO @DATA(ld_i_bdt_tab_name).
 
"SELECT single FLDNM FROM TBZ3R INTO @DATA(ld_i_bdt_field_name).
 
"SELECT single FLDGR FROM TBZ3R INTO @DATA(ld_i_bdt_fldgrp).
 
"SELECT single TYPE_CODE FROM TRTP_US_PLANTYPE INTO @DATA(ld_i_type_code).
 
"SELECT single BKKRS FROM TRTP_US_FSTAT INTO @DATA(ld_i_bank_area).
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!