SAP TB_DATAFEED_R3TABLES_UPDATE Function Module for Datafeed: Update of Tables for Exchange Rates, Securities, etc









TB_DATAFEED_R3TABLES_UPDATE is a standard tb datafeed r3tables update SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Datafeed: Update of Tables for Exchange Rates, Securities, etc 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 tb datafeed r3tables update FM, simply by entering the name TB_DATAFEED_R3TABLES_UPDATE into the relevant SAP transaction such as SE37 or SE38.

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



Function TB_DATAFEED_R3TABLES_UPDATE 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 'TB_DATAFEED_R3TABLES_UPDATE'"Datafeed: Update of Tables for Exchange Rates, Securities, etc
EXPORTING
* FILESOURCE = ' ' "File = 'X', Datafeed = ' '
* TEST_ONLY = ' ' "'X' Test only, ' ' Default
* MESSAGE_COLLECT = ' ' "'X' Message collector activated, ' ' Def.
* HISTORY = ' ' "Will historical data be posted?

TABLES
SAP_ANSWER = "Datafeed reply structure

EXCEPTIONS
UPDATE_ERROR = 1
.




Customer Function user exits

Below is a list of CUSTOMER FUNCTION exit user exits that are available within this program and maybe relevant for this FM.
EXIT_SAPLTBDF_001 Market Data: Interface for Reading Saved Rates
EXIT_SAPLTBDF_002 Market Data: Rate/Price Interface to Market Data Buffer VTB_MARKET

IMPORTING Parameters details for TB_DATAFEED_R3TABLES_UPDATE

FILESOURCE - File = 'X', Datafeed = ' '

Data type: VTBDFHI-RHISTORY
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

TEST_ONLY - 'X' Test only, ' ' Default

Data type:
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

MESSAGE_COLLECT - 'X' Message collector activated, ' ' Def.

Data type: VTB_DFCU-RUPDHIST
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

HISTORY - Will historical data be posted?

Data type: VTBDFHI-RHISTORY
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for TB_DATAFEED_R3TABLES_UPDATE

SAP_ANSWER - Datafeed reply structure

Data type: VTB_MARKET
Optional: No
Call by Reference: No ( called with pass by value option)

EXCEPTIONS details

UPDATE_ERROR - Error in update of master data

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for TB_DATAFEED_R3TABLES_UPDATE 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_filesource  TYPE VTBDFHI-RHISTORY, "   ' '
lt_sap_answer  TYPE STANDARD TABLE OF VTB_MARKET, "   
lv_update_error  TYPE VTB_MARKET, "   
lv_test_only  TYPE VTB_MARKET, "   ' '
lv_message_collect  TYPE VTB_DFCU-RUPDHIST, "   ' '
lv_history  TYPE VTBDFHI-RHISTORY. "   ' '

  CALL FUNCTION 'TB_DATAFEED_R3TABLES_UPDATE'  "Datafeed: Update of Tables for Exchange Rates, Securities, etc
    EXPORTING
         FILESOURCE = lv_filesource
         TEST_ONLY = lv_test_only
         MESSAGE_COLLECT = lv_message_collect
         HISTORY = lv_history
    TABLES
         SAP_ANSWER = lt_sap_answer
    EXCEPTIONS
        UPDATE_ERROR = 1
. " TB_DATAFEED_R3TABLES_UPDATE




ABAP code using 7.40 inline data declarations to call FM TB_DATAFEED_R3TABLES_UPDATE

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 RHISTORY FROM VTBDFHI INTO @DATA(ld_filesource).
DATA(ld_filesource) = ' '.
 
 
 
DATA(ld_test_only) = ' '.
 
"SELECT single RUPDHIST FROM VTB_DFCU INTO @DATA(ld_message_collect).
DATA(ld_message_collect) = ' '.
 
"SELECT single RHISTORY FROM VTBDFHI INTO @DATA(ld_history).
DATA(ld_history) = ' '.
 


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!