SAP FKK_CREATE_DOC_AND_CLEAR Function Module for









FKK_CREATE_DOC_AND_CLEAR is a standard fkk create doc and clear SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.


See here to view full function module documentation and code listing for fkk create doc and clear FM, simply by entering the name FKK_CREATE_DOC_AND_CLEAR into the relevant SAP transaction such as SE37 or SE38.

Function Group: FKB0
Program Name: SAPLFKB0
Main Program: SAPLFKB0
Appliation area: F
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function FKK_CREATE_DOC_AND_CLEAR pattern details

In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.
CALL FUNCTION 'FKK_CREATE_DOC_AND_CLEAR'"
EXPORTING
I_FKKKO = "Document Header ->
* I_RESTRICT_NEGPO = "'X' Negative Posting Only for Selected Items
* I_ORIG_BUDAT = "Comparison Date as Supplement to I_RESTRICT_NEGPO
* I_LDGRP = "
* I_NR_GROUP = '000' "
* I_UPDATE_TASK = "Indicator: Database Update in Update Task ->
* I_RESOB = "Reserved Object Class for Reconciliation Key
* I_RESKY = "Reserved Object Key for Reconciliation Key
* I_ADD_DOC = "'X' Additional Document
* I_DIFFB = "Amount to Be Posted as Payment Difference
* I_AUGVD = "Value date for clearing
* I_FKKOPL_CF = "'X' FKKOPL Only for Cash Forecast
* I_DIALOG = "'X' Dialog Boxes Permitted

IMPORTING
E_OPBEL = "Document Number Assigned <-
E_C4EYE = "Reason for Required Confirmation
E_BUDAT = "Posting Date Used
E_BLDAT = "

TABLES
* T_FKKOP = "New Line Items (Open Items) ->
* T_FKKCL_NEW = "
* T_USTIN = "Basic Data for Tax Calculation - Telco Tax (U.S.A.)
* T_USTOUT = "Tax Details - Telecommunications Tax (U.S.A.)
* T_FKKOPWH = "Withholding Tax Data for Business Partner Item
* T_FKKOPK = "New Line Items (Offsetting Items) ->
* T_FKKOPL = "Locking of Business Partner Items
T_FKKCL = "Items to Be Cleared ->
* T_ZAMTAB = "Payment Notices Explicitly Requested
* T_FKKOPKC = "Data for Payment Card
* T_FKKOPREL = "Object Relations for DFKKKO and DFKKOP
* T_FKKOP_ESR = "
.



IMPORTING Parameters details for FKK_CREATE_DOC_AND_CLEAR

I_FKKKO - Document Header ->

Data type: FKKKO
Optional: No
Call by Reference: No ( called with pass by value option)

I_RESTRICT_NEGPO - 'X' Negative Posting Only for Selected Items

Data type: XFELD
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_ORIG_BUDAT - Comparison Date as Supplement to I_RESTRICT_NEGPO

Data type: D
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_LDGRP -

Data type: LDGRP_KK
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_NR_GROUP -

Data type: NUMC3
Default: '000'
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_UPDATE_TASK - Indicator: Database Update in Update Task ->

Data type: BOOLE-BOOLE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_RESOB - Reserved Object Class for Reconciliation Key

Data type: DFKKSUMC-RESOB
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_RESKY - Reserved Object Key for Reconciliation Key

Data type: DFKKSUMC-RESKY
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_ADD_DOC - 'X' Additional Document

Data type: BOOLE-BOOLE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_DIFFB - Amount to Be Posted as Payment Difference

Data type: RFKB4-DIFFB
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_AUGVD - Value date for clearing

Data type: AUGVD_KK
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_FKKOPL_CF - 'X' FKKOPL Only for Cash Forecast

Data type: BOOLE-BOOLE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_DIALOG - 'X' Dialog Boxes Permitted

Data type: BOOLE-BOOLE
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for FKK_CREATE_DOC_AND_CLEAR

E_OPBEL - Document Number Assigned <-

Data type: FKKKO-OPBEL
Optional: No
Call by Reference: No ( called with pass by value option)

E_C4EYE - Reason for Required Confirmation

Data type: C4EYE_KK
Optional: No
Call by Reference: No ( called with pass by value option)

E_BUDAT - Posting Date Used

Data type: BUDAT_KK
Optional: No
Call by Reference: No ( called with pass by value option)

E_BLDAT -

Data type: BLDAT
Optional: No
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for FKK_CREATE_DOC_AND_CLEAR

T_FKKOP - New Line Items (Open Items) ->

Data type: FKKOP
Optional: Yes
Call by Reference: No ( called with pass by value option)

T_FKKCL_NEW -

Data type: FKKCL
Optional: Yes
Call by Reference: Yes

T_USTIN - Basic Data for Tax Calculation - Telco Tax (U.S.A.)

Data type: DFKKOPUSTAXIN00
Optional: Yes
Call by Reference: Yes

T_USTOUT - Tax Details - Telecommunications Tax (U.S.A.)

Data type: DFKKOPUSTAXOUT00
Optional: Yes
Call by Reference: Yes

T_FKKOPWH - Withholding Tax Data for Business Partner Item

Data type: DFKKOPWH
Optional: Yes
Call by Reference: Yes

T_FKKOPK - New Line Items (Offsetting Items) ->

Data type: FKKOPK
Optional: Yes
Call by Reference: No ( called with pass by value option)

T_FKKOPL - Locking of Business Partner Items

Data type: FKKOPL
Optional: Yes
Call by Reference: No ( called with pass by value option)

T_FKKCL - Items to Be Cleared ->

Data type: FKKCL
Optional: No
Call by Reference: No ( called with pass by value option)

T_ZAMTAB - Payment Notices Explicitly Requested

Data type: FKKBUPASEL
Optional: Yes
Call by Reference: No ( called with pass by value option)

T_FKKOPKC - Data for Payment Card

Data type: DFKKOPKC
Optional: Yes
Call by Reference: Yes

T_FKKOPREL - Object Relations for DFKKKO and DFKKOP

Data type: FKKOPREL
Optional: Yes
Call by Reference: Yes

T_FKKOP_ESR -

Data type: FKKOP_ESR
Optional: Yes
Call by Reference: Yes

Copy and paste ABAP code example for FKK_CREATE_DOC_AND_CLEAR Function Module

The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than 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 newer method of declaring data variables on the fly. 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), which i why i have stuck to the origianl for this example.

DATA:
lv_e_opbel  TYPE FKKKO-OPBEL, "   
lv_i_fkkko  TYPE FKKKO, "   
lt_t_fkkop  TYPE STANDARD TABLE OF FKKOP, "   
lt_t_fkkcl_new  TYPE STANDARD TABLE OF FKKCL, "   
lv_i_restrict_negpo  TYPE XFELD, "   
lt_t_ustin  TYPE STANDARD TABLE OF DFKKOPUSTAXIN00, "   
lv_i_orig_budat  TYPE D, "   
lv_i_ldgrp  TYPE LDGRP_KK, "   
lt_t_ustout  TYPE STANDARD TABLE OF DFKKOPUSTAXOUT00, "   
lv_i_nr_group  TYPE NUMC3, "   '000'
lv_e_c4eye  TYPE C4EYE_KK, "   
lt_t_fkkopwh  TYPE STANDARD TABLE OF DFKKOPWH, "   
lv_i_update_task  TYPE BOOLE-BOOLE, "   
lv_e_budat  TYPE BUDAT_KK, "   
lv_i_resob  TYPE DFKKSUMC-RESOB, "   
lt_t_fkkopk  TYPE STANDARD TABLE OF FKKOPK, "   
lv_e_bldat  TYPE BLDAT, "   
lv_i_resky  TYPE DFKKSUMC-RESKY, "   
lt_t_fkkopl  TYPE STANDARD TABLE OF FKKOPL, "   
lt_t_fkkcl  TYPE STANDARD TABLE OF FKKCL, "   
lv_i_add_doc  TYPE BOOLE-BOOLE, "   
lv_i_diffb  TYPE RFKB4-DIFFB, "   
lt_t_zamtab  TYPE STANDARD TABLE OF FKKBUPASEL, "   
lv_i_augvd  TYPE AUGVD_KK, "   
lt_t_fkkopkc  TYPE STANDARD TABLE OF DFKKOPKC, "   
lt_t_fkkoprel  TYPE STANDARD TABLE OF FKKOPREL, "   
lv_i_fkkopl_cf  TYPE BOOLE-BOOLE, "   
lv_i_dialog  TYPE BOOLE-BOOLE, "   
lt_t_fkkop_esr  TYPE STANDARD TABLE OF FKKOP_ESR. "   

  CALL FUNCTION 'FKK_CREATE_DOC_AND_CLEAR'  "
    EXPORTING
         I_FKKKO = lv_i_fkkko
         I_RESTRICT_NEGPO = lv_i_restrict_negpo
         I_ORIG_BUDAT = lv_i_orig_budat
         I_LDGRP = lv_i_ldgrp
         I_NR_GROUP = lv_i_nr_group
         I_UPDATE_TASK = lv_i_update_task
         I_RESOB = lv_i_resob
         I_RESKY = lv_i_resky
         I_ADD_DOC = lv_i_add_doc
         I_DIFFB = lv_i_diffb
         I_AUGVD = lv_i_augvd
         I_FKKOPL_CF = lv_i_fkkopl_cf
         I_DIALOG = lv_i_dialog
    IMPORTING
         E_OPBEL = lv_e_opbel
         E_C4EYE = lv_e_c4eye
         E_BUDAT = lv_e_budat
         E_BLDAT = lv_e_bldat
    TABLES
         T_FKKOP = lt_t_fkkop
         T_FKKCL_NEW = lt_t_fkkcl_new
         T_USTIN = lt_t_ustin
         T_USTOUT = lt_t_ustout
         T_FKKOPWH = lt_t_fkkopwh
         T_FKKOPK = lt_t_fkkopk
         T_FKKOPL = lt_t_fkkopl
         T_FKKCL = lt_t_fkkcl
         T_ZAMTAB = lt_t_zamtab
         T_FKKOPKC = lt_t_fkkopkc
         T_FKKOPREL = lt_t_fkkoprel
         T_FKKOP_ESR = lt_t_fkkop_esr
. " FKK_CREATE_DOC_AND_CLEAR




ABAP code using 7.40 inline data declarations to call FM FKK_CREATE_DOC_AND_CLEAR

The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.

"SELECT single OPBEL FROM FKKKO INTO @DATA(ld_e_opbel).
 
 
 
 
 
 
 
 
 
DATA(ld_i_nr_group) = '000'.
 
 
 
"SELECT single BOOLE FROM BOOLE INTO @DATA(ld_i_update_task).
 
 
"SELECT single RESOB FROM DFKKSUMC INTO @DATA(ld_i_resob).
 
 
 
"SELECT single RESKY FROM DFKKSUMC INTO @DATA(ld_i_resky).
 
 
 
"SELECT single BOOLE FROM BOOLE INTO @DATA(ld_i_add_doc).
 
"SELECT single DIFFB FROM RFKB4 INTO @DATA(ld_i_diffb).
 
 
 
 
 
"SELECT single BOOLE FROM BOOLE INTO @DATA(ld_i_fkkopl_cf).
 
"SELECT single BOOLE FROM BOOLE INTO @DATA(ld_i_dialog).
 
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!