SAP Function Modules

TB_DATAFEED_GET_COMM_DCS_ALL SAP Function module







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

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


Pattern for FM TB_DATAFEED_GET_COMM_DCS_ALL - TB DATAFEED GET COMM DCS ALL





CALL FUNCTION 'TB_DATAFEED_GET_COMM_DCS_ALL' "
  EXPORTING
    feedname =                  " vtbdff-rfeedname
*   source = 'F'                "
  TABLES
    sap_cust =                  " vtb_dfcu
    rkey1 =                     " trgfm_range_key1
    rkey2 =                     " trgfm_range_key2
    sinstrumnt =                " trgfm_range_instr
*   keydate =                   " tbar_key_date
*   pricedate =                 " tbar_pricedate
    .  "  TB_DATAFEED_GET_COMM_DCS_ALL

ABAP code example for Function Module TB_DATAFEED_GET_COMM_DCS_ALL





The ABAP code below is a full code listing to execute function module TB_DATAFEED_GET_COMM_DCS_ALL 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_sap_cust  TYPE STANDARD TABLE OF VTB_DFCU,"TABLES PARAM
wa_sap_cust  LIKE LINE OF it_sap_cust ,
it_rkey1  TYPE STANDARD TABLE OF TRGFM_RANGE_KEY1,"TABLES PARAM
wa_rkey1  LIKE LINE OF it_rkey1 ,
it_rkey2  TYPE STANDARD TABLE OF TRGFM_RANGE_KEY2,"TABLES PARAM
wa_rkey2  LIKE LINE OF it_rkey2 ,
it_sinstrumnt  TYPE STANDARD TABLE OF TRGFM_RANGE_INSTR,"TABLES PARAM
wa_sinstrumnt  LIKE LINE OF it_sinstrumnt ,
it_keydate  TYPE STANDARD TABLE OF TBAR_KEY_DATE,"TABLES PARAM
wa_keydate  LIKE LINE OF it_keydate ,
it_pricedate  TYPE STANDARD TABLE OF TBAR_PRICEDATE,"TABLES PARAM
wa_pricedate  LIKE LINE OF it_pricedate .


SELECT single RFEEDNAME
FROM VTBDFF
INTO @DATA(ld_feedname).

DATA(ld_source) = 'some text here'.

"populate fields of struture and append to itab
append wa_sap_cust to it_sap_cust.

"populate fields of struture and append to itab
append wa_rkey1 to it_rkey1.

"populate fields of struture and append to itab
append wa_rkey2 to it_rkey2.

"populate fields of struture and append to itab
append wa_sinstrumnt to it_sinstrumnt.

"populate fields of struture and append to itab
append wa_keydate to it_keydate.

"populate fields of struture and append to itab
append wa_pricedate to it_pricedate. . CALL FUNCTION 'TB_DATAFEED_GET_COMM_DCS_ALL' EXPORTING feedname = ld_feedname * source = ld_source TABLES sap_cust = it_sap_cust rkey1 = it_rkey1 rkey2 = it_rkey2 sinstrumnt = it_sinstrumnt * keydate = it_keydate * pricedate = it_pricedate . " TB_DATAFEED_GET_COMM_DCS_ALL
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_feedname  TYPE VTBDFF-RFEEDNAME ,
it_sap_cust  TYPE STANDARD TABLE OF VTB_DFCU ,
wa_sap_cust  LIKE LINE OF it_sap_cust,
ld_source  TYPE STRING ,
it_rkey1  TYPE STANDARD TABLE OF TRGFM_RANGE_KEY1 ,
wa_rkey1  LIKE LINE OF it_rkey1,
it_rkey2  TYPE STANDARD TABLE OF TRGFM_RANGE_KEY2 ,
wa_rkey2  LIKE LINE OF it_rkey2,
it_sinstrumnt  TYPE STANDARD TABLE OF TRGFM_RANGE_INSTR ,
wa_sinstrumnt  LIKE LINE OF it_sinstrumnt,
it_keydate  TYPE STANDARD TABLE OF TBAR_KEY_DATE ,
wa_keydate  LIKE LINE OF it_keydate,
it_pricedate  TYPE STANDARD TABLE OF TBAR_PRICEDATE ,
wa_pricedate  LIKE LINE OF it_pricedate.


SELECT single RFEEDNAME
FROM VTBDFF
INTO ld_feedname.


"populate fields of struture and append to itab
append wa_sap_cust to it_sap_cust.
ld_source = 'some text here'.

"populate fields of struture and append to itab
append wa_rkey1 to it_rkey1.

"populate fields of struture and append to itab
append wa_rkey2 to it_rkey2.

"populate fields of struture and append to itab
append wa_sinstrumnt to it_sinstrumnt.

"populate fields of struture and append to itab
append wa_keydate to it_keydate.

"populate fields of struture and append to itab
append wa_pricedate to it_pricedate.

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