SAP Function Modules

FKK_S_INSTPLAN_CREATE SAP Function module







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

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


Pattern for FM FKK_S_INSTPLAN_CREATE - FKK S INSTPLAN CREATE





CALL FUNCTION 'FKK_S_INSTPLAN_CREATE' "
  EXPORTING
    i_waers =                   " rfkn1-waers   Currency Key
*   i_budat =                   " rfkn1-budat   Posting Date
*   i_bldat =                   " rfkn1-bldat   Document Date
*   i_gpart =                   " rfkn1-gpart   Business Partner
*   i_vkont =                   " rfkn1-vkont   Contract Account
*   i_vtref =                   " rfkn1-vtref   Reference Specifications from Contract
*   i_opbel =                   " rfkn1-opbel   Document Number
*   i_blart =                   " rfkn1-blart   Document Type
*   i_rbetr =                   " rfkn1-rbetr
*   i_rptyp =                   " rfkn1-rptyp
*   i_gebuehr =                 " rfkn1-gebuehr
*   i_sttdt =                   " rfkn1-sttdt   Start Date of Installment Plan
*   i_anzrt =                   " rfkn1-anzrt   Number of Installments
*   i_divam =                   " rfkn1-divam
*   i_absrt =                   " rfkn1-absrt   Installment interval
*   i_kennz =                   " rfkn1-kennz
*   i_hvorg =                   " fkkop-hvorg
*   i_tvorg =                   " fkkop-tvorg
*   i_loan =                    " boole-boole
*   i_nomirate =                " rfkn1-nomirate  Interest Rate for Loan Interest Calculation
*   i_iblar =                   " rfkn1-iblar   Document Type for Installment Plan Interest
*   i_inkey =                   " rfkn1-inkey   Interest Key
*   i_sttin =                   " rfkn1-sttin
*   i_xdzins =                  " rfkn1-xdzins  Calculate Interest from Original Items
*   i_bukrs =                   " rfkn1-bukrs
*   i_allpo =                   " rfkn1-allpo   Display Account Balances
*   i_rpcat = SPACE             " rfkn1-rpcat   Installment Plan Category
*   i_subap = SPACE             " rfkn1-subap   Subapplication in Contract Accounts Receivable and Payable
  IMPORTING
    e_opbel =                   " fkkop-opbel   Installment Plan Document Number
    e_idnum =                   " fkkop-opbel   Document number of interest document
    e_okcode =                  " sy-ucomm
    e_print =                   " boole-boole
* TABLES
*   t_fkkop =                   " fkkop         Document Items
*   t_fkkopkey =                " fkkopkey
*   t_status_tab =              " rsmpe
  EXCEPTIONS
    NO_ITEMS_FOUND = 1          "
    .  "  FKK_S_INSTPLAN_CREATE

ABAP code example for Function Module FKK_S_INSTPLAN_CREATE





The ABAP code below is a full code listing to execute function module FKK_S_INSTPLAN_CREATE 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_opbel  TYPE FKKOP-OPBEL ,
ld_e_idnum  TYPE FKKOP-OPBEL ,
ld_e_okcode  TYPE SY-UCOMM ,
ld_e_print  TYPE BOOLE-BOOLE ,
it_t_fkkop  TYPE STANDARD TABLE OF FKKOP,"TABLES PARAM
wa_t_fkkop  LIKE LINE OF it_t_fkkop ,
it_t_fkkopkey  TYPE STANDARD TABLE OF FKKOPKEY,"TABLES PARAM
wa_t_fkkopkey  LIKE LINE OF it_t_fkkopkey ,
it_t_status_tab  TYPE STANDARD TABLE OF RSMPE,"TABLES PARAM
wa_t_status_tab  LIKE LINE OF it_t_status_tab .


DATA(ld_i_waers) = Check type of data required

DATA(ld_i_budat) = 20210129

DATA(ld_i_bldat) = 20210129

DATA(ld_i_gpart) = some text here

DATA(ld_i_vkont) = some text here

DATA(ld_i_vtref) = some text here

DATA(ld_i_opbel) = some text here

DATA(ld_i_blart) = some text here

DATA(ld_i_rbetr) = 20.50

DATA(ld_i_rptyp) = some text here

DATA(ld_i_gebuehr) = 20.50

DATA(ld_i_sttdt) = 20210129

DATA(ld_i_anzrt) = Check type of data required

DATA(ld_i_divam) = 20.50

DATA(ld_i_absrt) = Check type of data required

DATA(ld_i_kennz) = some text here

DATA(ld_i_hvorg) = some text here

DATA(ld_i_tvorg) = some text here

DATA(ld_i_loan) = some text here

DATA(ld_i_nomirate) = Check type of data required

DATA(ld_i_iblar) = some text here

DATA(ld_i_inkey) = some text here

DATA(ld_i_sttin) = 20210129

DATA(ld_i_xdzins) = some text here

DATA(ld_i_bukrs) = some text here

DATA(ld_i_allpo) = some text here

DATA(ld_i_rpcat) = some text here

DATA(ld_i_subap) = some text here

"populate fields of struture and append to itab
append wa_t_fkkop to it_t_fkkop.

"populate fields of struture and append to itab
append wa_t_fkkopkey to it_t_fkkopkey.

"populate fields of struture and append to itab
append wa_t_status_tab to it_t_status_tab. . CALL FUNCTION 'FKK_S_INSTPLAN_CREATE' EXPORTING i_waers = ld_i_waers * i_budat = ld_i_budat * i_bldat = ld_i_bldat * i_gpart = ld_i_gpart * i_vkont = ld_i_vkont * i_vtref = ld_i_vtref * i_opbel = ld_i_opbel * i_blart = ld_i_blart * i_rbetr = ld_i_rbetr * i_rptyp = ld_i_rptyp * i_gebuehr = ld_i_gebuehr * i_sttdt = ld_i_sttdt * i_anzrt = ld_i_anzrt * i_divam = ld_i_divam * i_absrt = ld_i_absrt * i_kennz = ld_i_kennz * i_hvorg = ld_i_hvorg * i_tvorg = ld_i_tvorg * i_loan = ld_i_loan * i_nomirate = ld_i_nomirate * i_iblar = ld_i_iblar * i_inkey = ld_i_inkey * i_sttin = ld_i_sttin * i_xdzins = ld_i_xdzins * i_bukrs = ld_i_bukrs * i_allpo = ld_i_allpo * i_rpcat = ld_i_rpcat * i_subap = ld_i_subap IMPORTING e_opbel = ld_e_opbel e_idnum = ld_e_idnum e_okcode = ld_e_okcode e_print = ld_e_print * TABLES * t_fkkop = it_t_fkkop * t_fkkopkey = it_t_fkkopkey * t_status_tab = it_t_status_tab EXCEPTIONS NO_ITEMS_FOUND = 1 . " FKK_S_INSTPLAN_CREATE
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_opbel  TYPE FKKOP-OPBEL ,
ld_i_waers  TYPE RFKN1-WAERS ,
it_t_fkkop  TYPE STANDARD TABLE OF FKKOP ,
wa_t_fkkop  LIKE LINE OF it_t_fkkop,
ld_e_idnum  TYPE FKKOP-OPBEL ,
ld_i_budat  TYPE RFKN1-BUDAT ,
it_t_fkkopkey  TYPE STANDARD TABLE OF FKKOPKEY ,
wa_t_fkkopkey  LIKE LINE OF it_t_fkkopkey,
ld_e_okcode  TYPE SY-UCOMM ,
ld_i_bldat  TYPE RFKN1-BLDAT ,
it_t_status_tab  TYPE STANDARD TABLE OF RSMPE ,
wa_t_status_tab  LIKE LINE OF it_t_status_tab,
ld_e_print  TYPE BOOLE-BOOLE ,
ld_i_gpart  TYPE RFKN1-GPART ,
ld_i_vkont  TYPE RFKN1-VKONT ,
ld_i_vtref  TYPE RFKN1-VTREF ,
ld_i_opbel  TYPE RFKN1-OPBEL ,
ld_i_blart  TYPE RFKN1-BLART ,
ld_i_rbetr  TYPE RFKN1-RBETR ,
ld_i_rptyp  TYPE RFKN1-RPTYP ,
ld_i_gebuehr  TYPE RFKN1-GEBUEHR ,
ld_i_sttdt  TYPE RFKN1-STTDT ,
ld_i_anzrt  TYPE RFKN1-ANZRT ,
ld_i_divam  TYPE RFKN1-DIVAM ,
ld_i_absrt  TYPE RFKN1-ABSRT ,
ld_i_kennz  TYPE RFKN1-KENNZ ,
ld_i_hvorg  TYPE FKKOP-HVORG ,
ld_i_tvorg  TYPE FKKOP-TVORG ,
ld_i_loan  TYPE BOOLE-BOOLE ,
ld_i_nomirate  TYPE RFKN1-NOMIRATE ,
ld_i_iblar  TYPE RFKN1-IBLAR ,
ld_i_inkey  TYPE RFKN1-INKEY ,
ld_i_sttin  TYPE RFKN1-STTIN ,
ld_i_xdzins  TYPE RFKN1-XDZINS ,
ld_i_bukrs  TYPE RFKN1-BUKRS ,
ld_i_allpo  TYPE RFKN1-ALLPO ,
ld_i_rpcat  TYPE RFKN1-RPCAT ,
ld_i_subap  TYPE RFKN1-SUBAP .


ld_i_waers = Check type of data required

"populate fields of struture and append to itab
append wa_t_fkkop to it_t_fkkop.

ld_i_budat = 20210129

"populate fields of struture and append to itab
append wa_t_fkkopkey to it_t_fkkopkey.

ld_i_bldat = 20210129

"populate fields of struture and append to itab
append wa_t_status_tab to it_t_status_tab.

ld_i_gpart = some text here

ld_i_vkont = some text here

ld_i_vtref = some text here

ld_i_opbel = some text here

ld_i_blart = some text here

ld_i_rbetr = 20.50

ld_i_rptyp = some text here

ld_i_gebuehr = 20.50

ld_i_sttdt = 20210129

ld_i_anzrt = Check type of data required

ld_i_divam = 20.50

ld_i_absrt = Check type of data required

ld_i_kennz = some text here

ld_i_hvorg = some text here

ld_i_tvorg = some text here

ld_i_loan = some text here

ld_i_nomirate = Check type of data required

ld_i_iblar = some text here

ld_i_inkey = some text here

ld_i_sttin = 20210129

ld_i_xdzins = some text here

ld_i_bukrs = some text here

ld_i_allpo = some text here

ld_i_rpcat = some text here

ld_i_subap = 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 FKK_S_INSTPLAN_CREATE or its description.