SAP Function Modules

FVD_CHK_CONDITION_INSERT SAP Function module - Insert Contract Conditions







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

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


Pattern for FM FVD_CHK_CONDITION_INSERT - FVD CHK CONDITION INSERT





CALL FUNCTION 'FVD_CHK_CONDITION_INSERT' "Insert Contract Conditions
  EXPORTING
    conditionheaderkey =        " fvd_condheader_key  Condition Header Key Fields
    condition =                 " bapicondition_create  Creation of Condition Items
*   formula =                   " bapiconddetail_create  Creation of Condition Details
*   testrun = SPACE             " bapiloan_common-testrun  Switch to Simulation Session for Write BAPIs
  IMPORTING
    flg_error =                 " bapiloan_common-error  Error Indicator in BAPIs
    wrk_vzzkopo_new =           " vzzkopo       Table condition items
    wrk_vzzkopa_new =           " vzzkopa       Alternative condition item - conditions
    wrk_vvzzkopo_new =          " vvzzkopo      View of VZZKOPO with additional info. from VKOPOSTEU
* TABLES
*   return =                    " bapiret2      Return Parameter
    .  "  FVD_CHK_CONDITION_INSERT

ABAP code example for Function Module FVD_CHK_CONDITION_INSERT





The ABAP code below is a full code listing to execute function module FVD_CHK_CONDITION_INSERT 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_flg_error  TYPE BAPILOAN_COMMON-ERROR ,
ld_wrk_vzzkopo_new  TYPE VZZKOPO ,
ld_wrk_vzzkopa_new  TYPE VZZKOPA ,
ld_wrk_vvzzkopo_new  TYPE VVZZKOPO ,
it_return  TYPE STANDARD TABLE OF BAPIRET2,"TABLES PARAM
wa_return  LIKE LINE OF it_return .

DATA(ld_conditionheaderkey) = 'Check type of data required'.
DATA(ld_condition) = 'Check type of data required'.
DATA(ld_formula) = 'Check type of data required'.

DATA(ld_testrun) = some text here

"populate fields of struture and append to itab
append wa_return to it_return. . CALL FUNCTION 'FVD_CHK_CONDITION_INSERT' EXPORTING conditionheaderkey = ld_conditionheaderkey condition = ld_condition * formula = ld_formula * testrun = ld_testrun IMPORTING flg_error = ld_flg_error wrk_vzzkopo_new = ld_wrk_vzzkopo_new wrk_vzzkopa_new = ld_wrk_vzzkopa_new wrk_vvzzkopo_new = ld_wrk_vvzzkopo_new * TABLES * return = it_return . " FVD_CHK_CONDITION_INSERT
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_flg_error  TYPE BAPILOAN_COMMON-ERROR ,
ld_conditionheaderkey  TYPE FVD_CONDHEADER_KEY ,
it_return  TYPE STANDARD TABLE OF BAPIRET2 ,
wa_return  LIKE LINE OF it_return,
ld_wrk_vzzkopo_new  TYPE VZZKOPO ,
ld_condition  TYPE BAPICONDITION_CREATE ,
ld_wrk_vzzkopa_new  TYPE VZZKOPA ,
ld_formula  TYPE BAPICONDDETAIL_CREATE ,
ld_wrk_vvzzkopo_new  TYPE VVZZKOPO ,
ld_testrun  TYPE BAPILOAN_COMMON-TESTRUN .

ld_conditionheaderkey = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_return to it_return.
ld_condition = 'Check type of data required'.
ld_formula = 'Check type of data required'.

ld_testrun = 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_CHK_CONDITION_INSERT or its description.