SAP Function Modules

TRCA_LOAN_EXISTENCE_CHECK SAP Function module







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

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


Pattern for FM TRCA_LOAN_EXISTENCE_CHECK - TRCA LOAN EXISTENCE CHECK





CALL FUNCTION 'TRCA_LOAN_EXISTENCE_CHECK' "
  EXPORTING
    i_companycode =             " bukrs
    i_contract_no =             " ranl
*   i_arc_cat_indicator = SPACE  " sarchiv
  IMPORTING
    e_companycode =             " bukrs
    e_contract_no =             " ranl
    e_arc_cat_indicator =       " sarchiv
    e_product_type =            " vvsart
    e_product_category =        " sanlf
    e_state =                   " sstati
    e_partner =                 " bp_partnr_new
    e_loan_type_indicator =     " stitel
    e_object_no =               " j_objnr
    e_date_of_commitment =      " dzusage
  EXCEPTIONS
    CONTRACT_NOT_FOUND = 1      "
    .  "  TRCA_LOAN_EXISTENCE_CHECK

ABAP code example for Function Module TRCA_LOAN_EXISTENCE_CHECK





The ABAP code below is a full code listing to execute function module TRCA_LOAN_EXISTENCE_CHECK 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_e_companycode  TYPE BUKRS ,
ld_e_contract_no  TYPE RANL ,
ld_e_arc_cat_indicator  TYPE SARCHIV ,
ld_e_product_type  TYPE VVSART ,
ld_e_product_category  TYPE SANLF ,
ld_e_state  TYPE SSTATI ,
ld_e_partner  TYPE BP_PARTNR_NEW ,
ld_e_loan_type_indicator  TYPE STITEL ,
ld_e_object_no  TYPE J_OBJNR ,
ld_e_date_of_commitment  TYPE DZUSAGE .

DATA(ld_i_companycode) = 'Check type of data required'.
DATA(ld_i_contract_no) = 'Check type of data required'.
DATA(ld_i_arc_cat_indicator) = 'Check type of data required'. . CALL FUNCTION 'TRCA_LOAN_EXISTENCE_CHECK' EXPORTING i_companycode = ld_i_companycode i_contract_no = ld_i_contract_no * i_arc_cat_indicator = ld_i_arc_cat_indicator IMPORTING e_companycode = ld_e_companycode e_contract_no = ld_e_contract_no e_arc_cat_indicator = ld_e_arc_cat_indicator e_product_type = ld_e_product_type e_product_category = ld_e_product_category e_state = ld_e_state e_partner = ld_e_partner e_loan_type_indicator = ld_e_loan_type_indicator e_object_no = ld_e_object_no e_date_of_commitment = ld_e_date_of_commitment EXCEPTIONS CONTRACT_NOT_FOUND = 1 . " TRCA_LOAN_EXISTENCE_CHECK
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here 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_e_companycode  TYPE BUKRS ,
ld_i_companycode  TYPE BUKRS ,
ld_e_contract_no  TYPE RANL ,
ld_i_contract_no  TYPE RANL ,
ld_e_arc_cat_indicator  TYPE SARCHIV ,
ld_i_arc_cat_indicator  TYPE SARCHIV ,
ld_e_product_type  TYPE VVSART ,
ld_e_product_category  TYPE SANLF ,
ld_e_state  TYPE SSTATI ,
ld_e_partner  TYPE BP_PARTNR_NEW ,
ld_e_loan_type_indicator  TYPE STITEL ,
ld_e_object_no  TYPE J_OBJNR ,
ld_e_date_of_commitment  TYPE DZUSAGE .

ld_i_companycode = 'Check type of data required'.
ld_i_contract_no = 'Check type of data required'.
ld_i_arc_cat_indicator = '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 TRCA_LOAN_EXISTENCE_CHECK or its description.