SAP Function Modules

FVD_API_EXP_GET_CONTRACT SAP Function module - API: Read Detailed Data for a Contract (Master Data)







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

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


Pattern for FM FVD_API_EXP_GET_CONTRACT - FVD API EXP GET CONTRACT





CALL FUNCTION 'FVD_API_EXP_GET_CONTRACT' "API: Read Detailed Data for a Contract (Master Data)
  EXPORTING
    i_bukrs =                   " bukrs         Company Code
    i_ranl =                    " ranl          Contract Number
*   i_get_all_conditions = SPACE  " c           Konditionshistorie lesen: X = Ja
*   i_calln_appln = 'INT'       " tb_callng_appln  Calling Application
*   i_actvt = '03'              " tp105-aktyp   Activity Category for Business Partner Management
  IMPORTING
    e_str_vdarl =               " vdarl         Loan
    e_tab_vdgpo =               " trty_vdgpo    Business Partner Assignment
    e_tab_vzzkoko =             " trty_vzzkoko  Table Type for Table VZZKOKO
    e_tab_vzzkopo =             " trty_vzzkopo  Table Type for Table VZZKOPO
    e_tab_vzzkopa =             " trty_vzzkopa  Table Type for Table VZZKOPA
    e_tab_vdarlobj =            " trty_vdarlobj  Table Type Objects   VDARLOBJ
    e_tab_vdarlsic =            " trty_vdarlsic  Table Type Collaterals VDARLSIC
    e_str_vdarldvs_ext =        " vdarldvs_ext  Enhancement Print and Dispatch Ctrl Data for BAPI CONTRACT
    e_str_vzsort =              " vzsort        Sort Values for Object
    e_str_vdlink_dd2sf =        " vdlink_dd2sf  Drawdowns for sub-facility
    e_tab_vdzsb =               " trty_vdzsb    Table Type for Table VDZSB
    e_str_vdakte =              " vdakte        File with documents for loan allocation
    e_tab_vduntr =              " trty_vduntr   Table Type for Table VDUNTR
    e_tab_vdavis =              " trty_vdavis   Table Type for VDAVIS
    e_tab_vdhgrpf =             " trty_vdhgrpf  Table Type for Table VDHGRPF
    e_tab_vdsonsi =             " trty_vdsonsi  Special arrangements
    e_tab_vdgpo_son =           " trty_vdgpo    Geschäftspartnerzuordnung der Sondervereinbarungen
    e_tab_vdsubfacility =       " trty_vdsubfacility  Table Type for VDSUBFACILITY
    e_flg_cms_data =            " xfeld
  EXCEPTIONS
    COMPANY_CODE_NOT_FOUND = 1  "               Company Code was not Found
    CONTRACT_NOT_FOUND = 2      "               Contract not found
    NO_AUTH_FOR_SF = 3          "               No Authorization for structured finance
    .  "  FVD_API_EXP_GET_CONTRACT

ABAP code example for Function Module FVD_API_EXP_GET_CONTRACT





The ABAP code below is a full code listing to execute function module FVD_API_EXP_GET_CONTRACT 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_str_vdarl  TYPE VDARL ,
ld_e_tab_vdgpo  TYPE TRTY_VDGPO ,
ld_e_tab_vzzkoko  TYPE TRTY_VZZKOKO ,
ld_e_tab_vzzkopo  TYPE TRTY_VZZKOPO ,
ld_e_tab_vzzkopa  TYPE TRTY_VZZKOPA ,
ld_e_tab_vdarlobj  TYPE TRTY_VDARLOBJ ,
ld_e_tab_vdarlsic  TYPE TRTY_VDARLSIC ,
ld_e_str_vdarldvs_ext  TYPE VDARLDVS_EXT ,
ld_e_str_vzsort  TYPE VZSORT ,
ld_e_str_vdlink_dd2sf  TYPE VDLINK_DD2SF ,
ld_e_tab_vdzsb  TYPE TRTY_VDZSB ,
ld_e_str_vdakte  TYPE VDAKTE ,
ld_e_tab_vduntr  TYPE TRTY_VDUNTR ,
ld_e_tab_vdavis  TYPE TRTY_VDAVIS ,
ld_e_tab_vdhgrpf  TYPE TRTY_VDHGRPF ,
ld_e_tab_vdsonsi  TYPE TRTY_VDSONSI ,
ld_e_tab_vdgpo_son  TYPE TRTY_VDGPO ,
ld_e_tab_vdsubfacility  TYPE TRTY_VDSUBFACILITY ,
ld_e_flg_cms_data  TYPE XFELD .

DATA(ld_i_bukrs) = 'Check type of data required'.
DATA(ld_i_ranl) = 'Check type of data required'.
DATA(ld_i_get_all_conditions) = 'Check type of data required'.
DATA(ld_i_calln_appln) = 'Check type of data required'.

SELECT single AKTYP
FROM TP105
INTO @DATA(ld_i_actvt).
. CALL FUNCTION 'FVD_API_EXP_GET_CONTRACT' EXPORTING i_bukrs = ld_i_bukrs i_ranl = ld_i_ranl * i_get_all_conditions = ld_i_get_all_conditions * i_calln_appln = ld_i_calln_appln * i_actvt = ld_i_actvt IMPORTING e_str_vdarl = ld_e_str_vdarl e_tab_vdgpo = ld_e_tab_vdgpo e_tab_vzzkoko = ld_e_tab_vzzkoko e_tab_vzzkopo = ld_e_tab_vzzkopo e_tab_vzzkopa = ld_e_tab_vzzkopa e_tab_vdarlobj = ld_e_tab_vdarlobj e_tab_vdarlsic = ld_e_tab_vdarlsic e_str_vdarldvs_ext = ld_e_str_vdarldvs_ext e_str_vzsort = ld_e_str_vzsort e_str_vdlink_dd2sf = ld_e_str_vdlink_dd2sf e_tab_vdzsb = ld_e_tab_vdzsb e_str_vdakte = ld_e_str_vdakte e_tab_vduntr = ld_e_tab_vduntr e_tab_vdavis = ld_e_tab_vdavis e_tab_vdhgrpf = ld_e_tab_vdhgrpf e_tab_vdsonsi = ld_e_tab_vdsonsi e_tab_vdgpo_son = ld_e_tab_vdgpo_son e_tab_vdsubfacility = ld_e_tab_vdsubfacility e_flg_cms_data = ld_e_flg_cms_data EXCEPTIONS COMPANY_CODE_NOT_FOUND = 1 CONTRACT_NOT_FOUND = 2 NO_AUTH_FOR_SF = 3 . " FVD_API_EXP_GET_CONTRACT
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 2. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 3. "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_str_vdarl  TYPE VDARL ,
ld_i_bukrs  TYPE BUKRS ,
ld_e_tab_vdgpo  TYPE TRTY_VDGPO ,
ld_i_ranl  TYPE RANL ,
ld_e_tab_vzzkoko  TYPE TRTY_VZZKOKO ,
ld_i_get_all_conditions  TYPE C ,
ld_e_tab_vzzkopo  TYPE TRTY_VZZKOPO ,
ld_i_calln_appln  TYPE TB_CALLNG_APPLN ,
ld_e_tab_vzzkopa  TYPE TRTY_VZZKOPA ,
ld_i_actvt  TYPE TP105-AKTYP ,
ld_e_tab_vdarlobj  TYPE TRTY_VDARLOBJ ,
ld_e_tab_vdarlsic  TYPE TRTY_VDARLSIC ,
ld_e_str_vdarldvs_ext  TYPE VDARLDVS_EXT ,
ld_e_str_vzsort  TYPE VZSORT ,
ld_e_str_vdlink_dd2sf  TYPE VDLINK_DD2SF ,
ld_e_tab_vdzsb  TYPE TRTY_VDZSB ,
ld_e_str_vdakte  TYPE VDAKTE ,
ld_e_tab_vduntr  TYPE TRTY_VDUNTR ,
ld_e_tab_vdavis  TYPE TRTY_VDAVIS ,
ld_e_tab_vdhgrpf  TYPE TRTY_VDHGRPF ,
ld_e_tab_vdsonsi  TYPE TRTY_VDSONSI ,
ld_e_tab_vdgpo_son  TYPE TRTY_VDGPO ,
ld_e_tab_vdsubfacility  TYPE TRTY_VDSUBFACILITY ,
ld_e_flg_cms_data  TYPE XFELD .

ld_i_bukrs = 'Check type of data required'.
ld_i_ranl = 'Check type of data required'.
ld_i_get_all_conditions = 'Check type of data required'.
ld_i_calln_appln = 'Check type of data required'.

SELECT single AKTYP
FROM TP105
INTO ld_i_actvt.

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