SAP FKK_CREATE_CHARGE_DOCUMENT Function Module for









FKK_CREATE_CHARGE_DOCUMENT is a standard fkk create charge document 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 charge document FM, simply by entering the name FKK_CREATE_CHARGE_DOCUMENT into the relevant SAP transaction such as SE37 or SE38.

Function Group: FKCH
Program Name: SAPLFKCH
Main Program: SAPLFKCH
Appliation area: E
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function FKK_CREATE_CHARGE_DOCUMENT 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_CHARGE_DOCUMENT'"
EXPORTING
* I_HERKF = "
* I_OPEN_FIKEY = 'X' "
* I_BETRW = "Amount in Transaction Currency with +/- Sign
* I_CHGID = "
* I_CHGTY = "
I_FKKOP = "
* I_FKKVKP = "Contract Account
* I_FIKEY = "
* I_COMMIT = "
* I_XNETT = "
* I_UPDATE_TASK = "

IMPORTING
E_OPBEL = "

EXCEPTIONS
MISSING_FIELD = 1 WRONG_BLART = 10 ACC_BLOCKED = 11 E038 = 12 E039 = 13 E040 = 14 NO_AMOUNT_FOUND = 15 IU_ERROR = 2 SYSTEM_ERROR = 3 NO_ENTRY_IN_1110 = 4 NO_BLART = 5 NO_VORG = 6 NO_ACCOUNT = 7 NO_ENTRY_IN_X001 = 8 NO_POST_AUTHORITY = 9
.



IMPORTING Parameters details for FKK_CREATE_CHARGE_DOCUMENT

I_HERKF -

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

I_OPEN_FIKEY -

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

I_BETRW - Amount in Transaction Currency with +/- Sign

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

I_CHGID -

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

I_CHGTY -

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

I_FKKOP -

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

I_FKKVKP - Contract Account

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

I_FIKEY -

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

I_COMMIT -

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

I_XNETT -

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

I_UPDATE_TASK -

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

EXPORTING Parameters details for FKK_CREATE_CHARGE_DOCUMENT

E_OPBEL -

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

EXCEPTIONS details

MISSING_FIELD -

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

WRONG_BLART -

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

ACC_BLOCKED -

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

E038 -

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

E039 -

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

E040 -

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

NO_AMOUNT_FOUND -

Data type:
Optional: No
Call by Reference: Yes

IU_ERROR - Other error

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

SYSTEM_ERROR -

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

NO_ENTRY_IN_1110 -

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

NO_BLART -

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

NO_VORG -

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

NO_ACCOUNT -

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

NO_ENTRY_IN_X001 -

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

NO_POST_AUTHORITY -

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

Copy and paste ABAP code example for FKK_CREATE_CHARGE_DOCUMENT 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_herkf  TYPE FKKKO-HERKF, "   
lv_missing_field  TYPE FKKKO, "   
lv_wrong_blart  TYPE FKKKO, "   
lv_i_open_fikey  TYPE BOOLE-BOOLE, "   'X'
lv_i_betrw  TYPE FKKOP-BETRW, "   
lv_acc_blocked  TYPE FKKOP, "   
lv_e038  TYPE FKKOP, "   
lv_e039  TYPE FKKOP, "   
lv_e040  TYPE FKKOP, "   
lv_no_amount_found  TYPE FKKOP, "   
lv_i_chgid  TYPE TFK047E-CHGID, "   
lv_iu_error  TYPE TFK047E, "   
lv_i_chgty  TYPE TFK047H-CHGTY, "   
lv_system_error  TYPE TFK047H, "   
lv_i_fkkop  TYPE FKKOP, "   
lv_no_entry_in_1110  TYPE FKKOP, "   
lv_i_fkkvkp  TYPE FKKVKP, "   
lv_no_blart  TYPE FKKVKP, "   
lv_i_fikey  TYPE FKKKO-FIKEY, "   
lv_no_vorg  TYPE FKKKO, "   
lv_i_commit  TYPE BOOLE-BOOLE, "   
lv_no_account  TYPE BOOLE, "   
lv_i_xnett  TYPE BOOLE-BOOLE, "   
lv_no_entry_in_x001  TYPE BOOLE, "   
lv_i_update_task  TYPE BOOLE-BOOLE, "   
lv_no_post_authority  TYPE BOOLE. "   

  CALL FUNCTION 'FKK_CREATE_CHARGE_DOCUMENT'  "
    EXPORTING
         I_HERKF = lv_i_herkf
         I_OPEN_FIKEY = lv_i_open_fikey
         I_BETRW = lv_i_betrw
         I_CHGID = lv_i_chgid
         I_CHGTY = lv_i_chgty
         I_FKKOP = lv_i_fkkop
         I_FKKVKP = lv_i_fkkvkp
         I_FIKEY = lv_i_fikey
         I_COMMIT = lv_i_commit
         I_XNETT = lv_i_xnett
         I_UPDATE_TASK = lv_i_update_task
    IMPORTING
         E_OPBEL = lv_e_opbel
    EXCEPTIONS
        MISSING_FIELD = 1
        WRONG_BLART = 10
        ACC_BLOCKED = 11
        E038 = 12
        E039 = 13
        E040 = 14
        NO_AMOUNT_FOUND = 15
        IU_ERROR = 2
        SYSTEM_ERROR = 3
        NO_ENTRY_IN_1110 = 4
        NO_BLART = 5
        NO_VORG = 6
        NO_ACCOUNT = 7
        NO_ENTRY_IN_X001 = 8
        NO_POST_AUTHORITY = 9
. " FKK_CREATE_CHARGE_DOCUMENT




ABAP code using 7.40 inline data declarations to call FM FKK_CREATE_CHARGE_DOCUMENT

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).
 
"SELECT single HERKF FROM FKKKO INTO @DATA(ld_i_herkf).
 
 
 
"SELECT single BOOLE FROM BOOLE INTO @DATA(ld_i_open_fikey).
DATA(ld_i_open_fikey) = 'X'.
 
"SELECT single BETRW FROM FKKOP INTO @DATA(ld_i_betrw).
 
 
 
 
 
 
"SELECT single CHGID FROM TFK047E INTO @DATA(ld_i_chgid).
 
 
"SELECT single CHGTY FROM TFK047H INTO @DATA(ld_i_chgty).
 
 
 
 
 
 
"SELECT single FIKEY FROM FKKKO INTO @DATA(ld_i_fikey).
 
 
"SELECT single BOOLE FROM BOOLE INTO @DATA(ld_i_commit).
 
 
"SELECT single BOOLE FROM BOOLE INTO @DATA(ld_i_xnett).
 
 
"SELECT single BOOLE FROM BOOLE INTO @DATA(ld_i_update_task).
 
 


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!