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
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
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).
| 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 . |
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 . |
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.