SAP Function Modules

FVD_DEFCAP_OL_RELEASE SAP Function module - Release of Payment Agreement







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

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


Pattern for FM FVD_DEFCAP_OL_RELEASE - FVD DEFCAP OL RELEASE





CALL FUNCTION 'FVD_DEFCAP_OL_RELEASE' "Release of Payment Agreement
  EXPORTING
    i_s_vdarl_key =             " vdarl_key     VDARL Schlussel-Struktur
    i_rbo =                     " vdbohead-rbo  Business operation number (loans)
*   i_s_post_info =             " rdefcap_post  CAPTR: Save Information of Capital Transfer
    i_okcode =                  " sy-ucomm      Screens, Function Code That Triggered PAI
    i_sworkid =                 " sworkid       Processing Unit in the Business Operations
*   i_loghandle =               " balloghndl    Application Log: Log Handle
*   i_s_gdisplay_profile =      " bal_s_prof    Application Log: Log Output Format Profile
*   i_s_rcaptr_api =            " rcaptr_api_struct  Screen Fields for Capital Transfer (API)
    i_sbo_cat =                 " sbo_cat       Geschäftsvorfalltyp
  IMPORTING
    e_exitcode =                " syucomm       Exit Code
    e_db_mode =                 " char1         (C)ommit, (R)ollback or SPACE
  EXCEPTIONS
    FAILED = 1                  "               Release Not Possible
    FATAL_ERROR = 2             "               Internal Error
    .  "  FVD_DEFCAP_OL_RELEASE

ABAP code example for Function Module FVD_DEFCAP_OL_RELEASE





The ABAP code below is a full code listing to execute function module FVD_DEFCAP_OL_RELEASE 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_exitcode  TYPE SYUCOMM ,
ld_e_db_mode  TYPE CHAR1 .

DATA(ld_i_s_vdarl_key) = 'Check type of data required'.

SELECT single RBO
FROM VDBOHEAD
INTO @DATA(ld_i_rbo).

DATA(ld_i_s_post_info) = 'Check type of data required'.
DATA(ld_i_okcode) = 'some text here'.
DATA(ld_i_sworkid) = 'some text here'.
DATA(ld_i_loghandle) = 'some text here'.
DATA(ld_i_s_gdisplay_profile) = 'some text here'.
DATA(ld_i_s_rcaptr_api) = 'some text here'.
DATA(ld_i_sbo_cat) = 'some text here'. . CALL FUNCTION 'FVD_DEFCAP_OL_RELEASE' EXPORTING i_s_vdarl_key = ld_i_s_vdarl_key i_rbo = ld_i_rbo * i_s_post_info = ld_i_s_post_info i_okcode = ld_i_okcode i_sworkid = ld_i_sworkid * i_loghandle = ld_i_loghandle * i_s_gdisplay_profile = ld_i_s_gdisplay_profile * i_s_rcaptr_api = ld_i_s_rcaptr_api i_sbo_cat = ld_i_sbo_cat IMPORTING e_exitcode = ld_e_exitcode e_db_mode = ld_e_db_mode EXCEPTIONS FAILED = 1 FATAL_ERROR = 2 . " FVD_DEFCAP_OL_RELEASE
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 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_exitcode  TYPE SYUCOMM ,
ld_i_s_vdarl_key  TYPE VDARL_KEY ,
ld_e_db_mode  TYPE CHAR1 ,
ld_i_rbo  TYPE VDBOHEAD-RBO ,
ld_i_s_post_info  TYPE RDEFCAP_POST ,
ld_i_okcode  TYPE SY-UCOMM ,
ld_i_sworkid  TYPE SWORKID ,
ld_i_loghandle  TYPE BALLOGHNDL ,
ld_i_s_gdisplay_profile  TYPE BAL_S_PROF ,
ld_i_s_rcaptr_api  TYPE RCAPTR_API_STRUCT ,
ld_i_sbo_cat  TYPE SBO_CAT .

ld_i_s_vdarl_key = 'some text here'.

SELECT single RBO
FROM VDBOHEAD
INTO ld_i_rbo.

ld_i_s_post_info = 'some text here'.
ld_i_okcode = 'some text here'.
ld_i_sworkid = 'some text here'.
ld_i_loghandle = 'some text here'.
ld_i_s_gdisplay_profile = 'some text here'.
ld_i_s_rcaptr_api = 'some text here'.
ld_i_sbo_cat = 'some text here'.

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