SAP FKK_REFUSAL_POST Function Module for









FKK_REFUSAL_POST is a standard fkk refusal post 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 refusal post FM, simply by entering the name FKK_REFUSAL_POST 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_REFUSAL_POST 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_REFUSAL_POST'"
EXPORTING
* I_OPBEL = "Number of Payment Document
* I_STUDT = "Deferral Date, if Required
* I_MANSP = "Dunning Lock, if Required
* I_SPZAH = "Payment Lock, if Required
* I_WAERS = "Currency (Only Required for RL_MODUS 3)
* I_OPUPK = "Number of Bank Item of Failed Payment
* I_UPDATE_TASK = "Indicator: Update via Update Task
* I_RESOB = "Reserved Object Class for Reconciliation Key
* I_RESKY = "Reserved Object Key for Reconciliation Key
* I_RL_MODUS = "Returns Posting Type
* I_PAY_REF = "Reference for Payment from Legacy System
I_BLART = "Returns Document Type
I_AUGRD = "Clearing Reason
I_RLGRD = "Returns Reason
* I_VOIDR = "Reason for Check Voiding
I_FIKEY = "Reconciliation Key of Returns Document
I_HERKF = "Origin Key of Returns Document
* I_STODT = "Alternative Reversal Date, if Required
* I_BLDAT = "Document Date of Returns Document

IMPORTING
E_OPBEL = "Number of the Returns Document
E_BUDAT = "Posting Date Used
E_BLDAT = "

TABLES
* T_FKKOP = "New FKKOP (Example: For Charges)
T_FKKOPK = "New FKKOPK (Example: For Returns Account)
* T_RL1TAB = "Returns Data per Partner/Account
* T_RL2TAB = "Amounts per Partner/Account/Company Code
* T_RL6TAB = "Posting Data for Mode 3
* T_PREP_RETURNED = "

EXCEPTIONS
CLEARED_ITEMS_IN_PAYMENT = 1 NON_REVERSED_CLARIFICATION = 2
.



IMPORTING Parameters details for FKK_REFUSAL_POST

I_OPBEL - Number of Payment Document

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

I_STUDT - Deferral Date, if Required

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

I_MANSP - Dunning Lock, if Required

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

I_SPZAH - Payment Lock, if Required

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

I_WAERS - Currency (Only Required for RL_MODUS 3)

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

I_OPUPK - Number of Bank Item of Failed Payment

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

I_UPDATE_TASK - Indicator: Update via 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_RL_MODUS - Returns Posting Type

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

I_PAY_REF - Reference for Payment from Legacy System

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

I_BLART - Returns Document Type

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

I_AUGRD - Clearing Reason

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

I_RLGRD - Returns Reason

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

I_VOIDR - Reason for Check Voiding

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

I_FIKEY - Reconciliation Key of Returns Document

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

I_HERKF - Origin Key of Returns Document

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

I_STODT - Alternative Reversal Date, if Required

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

I_BLDAT - Document Date of Returns Document

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

EXPORTING Parameters details for FKK_REFUSAL_POST

E_OPBEL - Number of the Returns Document

Data type: FKKKO-OPBEL
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_REFUSAL_POST

T_FKKOP - New FKKOP (Example: For Charges)

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

T_FKKOPK - New FKKOPK (Example: For Returns Account)

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

T_RL1TAB - Returns Data per Partner/Account

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

T_RL2TAB - Amounts per Partner/Account/Company Code

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

T_RL6TAB - Posting Data for Mode 3

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

T_PREP_RETURNED -

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

EXCEPTIONS details

CLEARED_ITEMS_IN_PAYMENT - Payment Document Has Cleared Items

Data type:
Optional: No
Call by Reference: Yes

NON_REVERSED_CLARIFICATION - Partial Clarifications Not Reversed

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for FKK_REFUSAL_POST 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_opbel  TYPE FKKKO-OPBEL, "   
lt_t_fkkop  TYPE STANDARD TABLE OF FKKOP, "   
lv_cleared_items_in_payment  TYPE FKKOP, "   
lv_i_studt  TYPE FKKOP-STUDT, "   
lv_i_mansp  TYPE FKKOP-MANSP, "   
lv_i_spzah  TYPE FKKOP-SPZAH, "   
lv_i_waers  TYPE FKKKO-WAERS, "   
lv_i_opupk  TYPE FKKOPK-OPUPK, "   
lv_i_update_task  TYPE BOOLE-BOOLE, "   
lv_i_resob  TYPE DFKKSUMC-RESOB, "   
lv_i_resky  TYPE DFKKSUMC-RESKY, "   
lv_i_rl_modus  TYPE DFKKRK-RLMOD, "   
lv_i_pay_ref  TYPE DFKKRP-SELW1, "   
lv_e_budat  TYPE BUDAT_KK, "   
lv_i_blart  TYPE FKKKO-BLART, "   
lt_t_fkkopk  TYPE STANDARD TABLE OF FKKOPK, "   
lv_non_reversed_clarification  TYPE FKKOPK, "   
lv_e_bldat  TYPE BLDAT, "   
lv_i_augrd  TYPE FKKOP-AUGRD, "   
lt_t_rl1tab  TYPE STANDARD TABLE OF IRL1TAB, "   
lv_i_rlgrd  TYPE FKKKO-RLGRD, "   
lt_t_rl2tab  TYPE STANDARD TABLE OF IRL2TAB, "   
lv_i_voidr  TYPE VOIDREAS_KK, "   
lt_t_rl6tab  TYPE STANDARD TABLE OF IRL6TAB, "   
lv_i_fikey  TYPE FKKKO-FIKEY, "   
lt_t_prep_returned  TYPE STANDARD TABLE OF FKK_PREP_RETURNED, "   
lv_i_herkf  TYPE FKKKO-HERKF, "   
lv_i_stodt  TYPE FKKKO-BUDAT, "   
lv_i_bldat  TYPE FKKKO-BLDAT. "   

  CALL FUNCTION 'FKK_REFUSAL_POST'  "
    EXPORTING
         I_OPBEL = lv_i_opbel
         I_STUDT = lv_i_studt
         I_MANSP = lv_i_mansp
         I_SPZAH = lv_i_spzah
         I_WAERS = lv_i_waers
         I_OPUPK = lv_i_opupk
         I_UPDATE_TASK = lv_i_update_task
         I_RESOB = lv_i_resob
         I_RESKY = lv_i_resky
         I_RL_MODUS = lv_i_rl_modus
         I_PAY_REF = lv_i_pay_ref
         I_BLART = lv_i_blart
         I_AUGRD = lv_i_augrd
         I_RLGRD = lv_i_rlgrd
         I_VOIDR = lv_i_voidr
         I_FIKEY = lv_i_fikey
         I_HERKF = lv_i_herkf
         I_STODT = lv_i_stodt
         I_BLDAT = lv_i_bldat
    IMPORTING
         E_OPBEL = lv_e_opbel
         E_BUDAT = lv_e_budat
         E_BLDAT = lv_e_bldat
    TABLES
         T_FKKOP = lt_t_fkkop
         T_FKKOPK = lt_t_fkkopk
         T_RL1TAB = lt_t_rl1tab
         T_RL2TAB = lt_t_rl2tab
         T_RL6TAB = lt_t_rl6tab
         T_PREP_RETURNED = lt_t_prep_returned
    EXCEPTIONS
        CLEARED_ITEMS_IN_PAYMENT = 1
        NON_REVERSED_CLARIFICATION = 2
. " FKK_REFUSAL_POST




ABAP code using 7.40 inline data declarations to call FM FKK_REFUSAL_POST

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 OPBEL FROM FKKKO INTO @DATA(ld_i_opbel).
 
 
 
"SELECT single STUDT FROM FKKOP INTO @DATA(ld_i_studt).
 
"SELECT single MANSP FROM FKKOP INTO @DATA(ld_i_mansp).
 
"SELECT single SPZAH FROM FKKOP INTO @DATA(ld_i_spzah).
 
"SELECT single WAERS FROM FKKKO INTO @DATA(ld_i_waers).
 
"SELECT single OPUPK FROM FKKOPK INTO @DATA(ld_i_opupk).
 
"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 RLMOD FROM DFKKRK INTO @DATA(ld_i_rl_modus).
 
"SELECT single SELW1 FROM DFKKRP INTO @DATA(ld_i_pay_ref).
 
 
"SELECT single BLART FROM FKKKO INTO @DATA(ld_i_blart).
 
 
 
 
"SELECT single AUGRD FROM FKKOP INTO @DATA(ld_i_augrd).
 
 
"SELECT single RLGRD FROM FKKKO INTO @DATA(ld_i_rlgrd).
 
 
 
 
"SELECT single FIKEY FROM FKKKO INTO @DATA(ld_i_fikey).
 
 
"SELECT single HERKF FROM FKKKO INTO @DATA(ld_i_herkf).
 
"SELECT single BUDAT FROM FKKKO INTO @DATA(ld_i_stodt).
 
"SELECT single BLDAT FROM FKKKO INTO @DATA(ld_i_bldat).
 


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!