SAP Function Modules

FTR_GET_CLEARING_DATA SAP Function module - Get data for central clearing







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

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


Pattern for FM FTR_GET_CLEARING_DATA - FTR GET CLEARING DATA





CALL FUNCTION 'FTR_GET_CLEARING_DATA' "Get data for central clearing
  EXPORTING
    pi_companycode =            " bukrs         Company Code
    pi_productcategory =        " sanlf         Product Category
    pi_producttype =            " vvsart        Product Type
    pi_transactiontype =        " tb_sfhaart    Financial Transaction Type
    pi_counterparty =           " tb_kontrh     Counterparty
    pi_commodity_id =           " trco_comm_id  Commodity ID
  IMPORTING
    pe_clearing_option =        " tpm_trea_clearing_opt  Treasury: TREA Clearing Option
    pe_clearing_status =        " tpm_trea_clearing_status  Treasury: TREA Clearing Status
    pe_clearing_date =          " tpm_trea_clearing_date  Planned clearing date
    pe_ext_account =            " tpm_ext_account  Treasury: External Account
    .  "  FTR_GET_CLEARING_DATA

ABAP code example for Function Module FTR_GET_CLEARING_DATA





The ABAP code below is a full code listing to execute function module FTR_GET_CLEARING_DATA 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_pe_clearing_option  TYPE TPM_TREA_CLEARING_OPT ,
ld_pe_clearing_status  TYPE TPM_TREA_CLEARING_STATUS ,
ld_pe_clearing_date  TYPE TPM_TREA_CLEARING_DATE ,
ld_pe_ext_account  TYPE TPM_EXT_ACCOUNT .

DATA(ld_pi_companycode) = 'Check type of data required'.
DATA(ld_pi_productcategory) = 'Check type of data required'.
DATA(ld_pi_producttype) = 'Check type of data required'.
DATA(ld_pi_transactiontype) = 'Check type of data required'.
DATA(ld_pi_counterparty) = 'Check type of data required'.
DATA(ld_pi_commodity_id) = 'Check type of data required'. . CALL FUNCTION 'FTR_GET_CLEARING_DATA' EXPORTING pi_companycode = ld_pi_companycode pi_productcategory = ld_pi_productcategory pi_producttype = ld_pi_producttype pi_transactiontype = ld_pi_transactiontype pi_counterparty = ld_pi_counterparty pi_commodity_id = ld_pi_commodity_id IMPORTING pe_clearing_option = ld_pe_clearing_option pe_clearing_status = ld_pe_clearing_status pe_clearing_date = ld_pe_clearing_date pe_ext_account = ld_pe_ext_account . " FTR_GET_CLEARING_DATA
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_pe_clearing_option  TYPE TPM_TREA_CLEARING_OPT ,
ld_pi_companycode  TYPE BUKRS ,
ld_pe_clearing_status  TYPE TPM_TREA_CLEARING_STATUS ,
ld_pi_productcategory  TYPE SANLF ,
ld_pe_clearing_date  TYPE TPM_TREA_CLEARING_DATE ,
ld_pi_producttype  TYPE VVSART ,
ld_pe_ext_account  TYPE TPM_EXT_ACCOUNT ,
ld_pi_transactiontype  TYPE TB_SFHAART ,
ld_pi_counterparty  TYPE TB_KONTRH ,
ld_pi_commodity_id  TYPE TRCO_COMM_ID .

ld_pi_companycode = 'Check type of data required'.
ld_pi_productcategory = 'Check type of data required'.
ld_pi_producttype = 'Check type of data required'.
ld_pi_transactiontype = 'Check type of data required'.
ld_pi_counterparty = 'Check type of data required'.
ld_pi_commodity_id = '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 FTR_GET_CLEARING_DATA or its description.