SAP Function Modules

FVD_RFC_CONTRACT_GETDETAIL SAP Function module - Display Loan Contract







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

Associated Function Group: FVD_RFC_CONTRACT
Released Date: Not Released
Processing type: Remote-Enabled
remote enabled module settings


Pattern for FM FVD_RFC_CONTRACT_GETDETAIL - FVD RFC CONTRACT GETDETAIL





CALL FUNCTION 'FVD_RFC_CONTRACT_GETDETAIL' "Display Loan Contract
  EXPORTING
    companycode =               " bapiloan_get-comp_code  Company Code
    loannumber =                " bapiloan_get-contract_no  Contract Number
*   archive = SPACE             " bapiloan_get-archive  Archiving Category Indicator
*   i_calln_appln = 'INT'       " tb_callng_appln  Calling Application
  IMPORTING
    loan =                      " bapiloan_get  Display of Loan Contract Data
    correspondence =            " bapiloancor_get  Display of Correspondence Data
    userfields =                " bapiloan_userfields  User Fields
    error =                     " bapiloan_common-error  Error Indicator in BAPIs
* TABLES
*   partner =                   " bapirel_bpobj  Assignment of Partner to Contract
*   conditionheader =           " bapicondhead_get  Display of Condition Header Data
*   conditions =                " bapicondition_get  Display of Condition Items
*   formula =                   " bapiconddetail_get  Display of Condition Details
*   objects =                   " bapiloanobj_get  Display of Object Relationship Data
*   collaterals =               " bapiloancol_get  Display of Collateral Relationship Data
*   clerks =                    " bapiloanclerks_get  Display of Clerk Relationship Data
*   files =                     " bapiloan_vdakte  Med. Record Data
*   file_documents =            " bapiloan_vduntr  Loan Documents in a File
*   payment_advices =           " bapiloan_vdavis  Payt Adv
*   encumbrances =              " bapiloan_vdhgrpf  Encumbrances
*   return =                    " bapiret2      Confirmation of Results
    .  "  FVD_RFC_CONTRACT_GETDETAIL

ABAP code example for Function Module FVD_RFC_CONTRACT_GETDETAIL





The ABAP code below is a full code listing to execute function module FVD_RFC_CONTRACT_GETDETAIL 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_loan  TYPE BAPILOAN_GET ,
ld_correspondence  TYPE BAPILOANCOR_GET ,
ld_userfields  TYPE BAPILOAN_USERFIELDS ,
ld_error  TYPE BAPILOAN_COMMON-ERROR ,
it_partner  TYPE STANDARD TABLE OF BAPIREL_BPOBJ,"TABLES PARAM
wa_partner  LIKE LINE OF it_partner ,
it_conditionheader  TYPE STANDARD TABLE OF BAPICONDHEAD_GET,"TABLES PARAM
wa_conditionheader  LIKE LINE OF it_conditionheader ,
it_conditions  TYPE STANDARD TABLE OF BAPICONDITION_GET,"TABLES PARAM
wa_conditions  LIKE LINE OF it_conditions ,
it_formula  TYPE STANDARD TABLE OF BAPICONDDETAIL_GET,"TABLES PARAM
wa_formula  LIKE LINE OF it_formula ,
it_objects  TYPE STANDARD TABLE OF BAPILOANOBJ_GET,"TABLES PARAM
wa_objects  LIKE LINE OF it_objects ,
it_collaterals  TYPE STANDARD TABLE OF BAPILOANCOL_GET,"TABLES PARAM
wa_collaterals  LIKE LINE OF it_collaterals ,
it_clerks  TYPE STANDARD TABLE OF BAPILOANCLERKS_GET,"TABLES PARAM
wa_clerks  LIKE LINE OF it_clerks ,
it_files  TYPE STANDARD TABLE OF BAPILOAN_VDAKTE,"TABLES PARAM
wa_files  LIKE LINE OF it_files ,
it_file_documents  TYPE STANDARD TABLE OF BAPILOAN_VDUNTR,"TABLES PARAM
wa_file_documents  LIKE LINE OF it_file_documents ,
it_payment_advices  TYPE STANDARD TABLE OF BAPILOAN_VDAVIS,"TABLES PARAM
wa_payment_advices  LIKE LINE OF it_payment_advices ,
it_encumbrances  TYPE STANDARD TABLE OF BAPILOAN_VDHGRPF,"TABLES PARAM
wa_encumbrances  LIKE LINE OF it_encumbrances ,
it_return  TYPE STANDARD TABLE OF BAPIRET2,"TABLES PARAM
wa_return  LIKE LINE OF it_return .


DATA(ld_companycode) = some text here

DATA(ld_loannumber) = some text here

DATA(ld_archive) = some text here
DATA(ld_i_calln_appln) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_partner to it_partner.

"populate fields of struture and append to itab
append wa_conditionheader to it_conditionheader.

"populate fields of struture and append to itab
append wa_conditions to it_conditions.

"populate fields of struture and append to itab
append wa_formula to it_formula.

"populate fields of struture and append to itab
append wa_objects to it_objects.

"populate fields of struture and append to itab
append wa_collaterals to it_collaterals.

"populate fields of struture and append to itab
append wa_clerks to it_clerks.

"populate fields of struture and append to itab
append wa_files to it_files.

"populate fields of struture and append to itab
append wa_file_documents to it_file_documents.

"populate fields of struture and append to itab
append wa_payment_advices to it_payment_advices.

"populate fields of struture and append to itab
append wa_encumbrances to it_encumbrances.

"populate fields of struture and append to itab
append wa_return to it_return. . CALL FUNCTION 'FVD_RFC_CONTRACT_GETDETAIL' EXPORTING companycode = ld_companycode loannumber = ld_loannumber * archive = ld_archive * i_calln_appln = ld_i_calln_appln IMPORTING loan = ld_loan correspondence = ld_correspondence userfields = ld_userfields error = ld_error * TABLES * partner = it_partner * conditionheader = it_conditionheader * conditions = it_conditions * formula = it_formula * objects = it_objects * collaterals = it_collaterals * clerks = it_clerks * files = it_files * file_documents = it_file_documents * payment_advices = it_payment_advices * encumbrances = it_encumbrances * return = it_return . " FVD_RFC_CONTRACT_GETDETAIL
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_loan  TYPE BAPILOAN_GET ,
ld_companycode  TYPE BAPILOAN_GET-COMP_CODE ,
it_partner  TYPE STANDARD TABLE OF BAPIREL_BPOBJ ,
wa_partner  LIKE LINE OF it_partner,
ld_correspondence  TYPE BAPILOANCOR_GET ,
ld_loannumber  TYPE BAPILOAN_GET-CONTRACT_NO ,
it_conditionheader  TYPE STANDARD TABLE OF BAPICONDHEAD_GET ,
wa_conditionheader  LIKE LINE OF it_conditionheader,
ld_userfields  TYPE BAPILOAN_USERFIELDS ,
ld_archive  TYPE BAPILOAN_GET-ARCHIVE ,
it_conditions  TYPE STANDARD TABLE OF BAPICONDITION_GET ,
wa_conditions  LIKE LINE OF it_conditions,
ld_error  TYPE BAPILOAN_COMMON-ERROR ,
ld_i_calln_appln  TYPE TB_CALLNG_APPLN ,
it_formula  TYPE STANDARD TABLE OF BAPICONDDETAIL_GET ,
wa_formula  LIKE LINE OF it_formula,
it_objects  TYPE STANDARD TABLE OF BAPILOANOBJ_GET ,
wa_objects  LIKE LINE OF it_objects,
it_collaterals  TYPE STANDARD TABLE OF BAPILOANCOL_GET ,
wa_collaterals  LIKE LINE OF it_collaterals,
it_clerks  TYPE STANDARD TABLE OF BAPILOANCLERKS_GET ,
wa_clerks  LIKE LINE OF it_clerks,
it_files  TYPE STANDARD TABLE OF BAPILOAN_VDAKTE ,
wa_files  LIKE LINE OF it_files,
it_file_documents  TYPE STANDARD TABLE OF BAPILOAN_VDUNTR ,
wa_file_documents  LIKE LINE OF it_file_documents,
it_payment_advices  TYPE STANDARD TABLE OF BAPILOAN_VDAVIS ,
wa_payment_advices  LIKE LINE OF it_payment_advices,
it_encumbrances  TYPE STANDARD TABLE OF BAPILOAN_VDHGRPF ,
wa_encumbrances  LIKE LINE OF it_encumbrances,
it_return  TYPE STANDARD TABLE OF BAPIRET2 ,
wa_return  LIKE LINE OF it_return.


ld_companycode = some text here

"populate fields of struture and append to itab
append wa_partner to it_partner.

ld_loannumber = some text here

"populate fields of struture and append to itab
append wa_conditionheader to it_conditionheader.

ld_archive = some text here

"populate fields of struture and append to itab
append wa_conditions to it_conditions.
ld_i_calln_appln = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_formula to it_formula.

"populate fields of struture and append to itab
append wa_objects to it_objects.

"populate fields of struture and append to itab
append wa_collaterals to it_collaterals.

"populate fields of struture and append to itab
append wa_clerks to it_clerks.

"populate fields of struture and append to itab
append wa_files to it_files.

"populate fields of struture and append to itab
append wa_file_documents to it_file_documents.

"populate fields of struture and append to itab
append wa_payment_advices to it_payment_advices.

"populate fields of struture and append to itab
append wa_encumbrances to it_encumbrances.

"populate fields of struture and append to itab
append wa_return to it_return.

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