SAP FKK_READ_DUNNING_HISTORY Function Module for









FKK_READ_DUNNING_HISTORY is a standard fkk read dunning history 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 read dunning history FM, simply by entering the name FKK_READ_DUNNING_HISTORY into the relevant SAP transaction such as SE37 or SE38.

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



Function FKK_READ_DUNNING_HISTORY 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_READ_DUNNING_HISTORY'"
EXPORTING
GPART = "Business Partner Number
* OLD_DUNNING_PROC_ONLY = "
* I_MIN_AUSDT = '00010101' "Lower Limit for Issue Date
* I_SUBAP = ' ' "Subapplication in Contract Accounts Receivable and Payable
* VKONT = ' ' "Contract Account Number
* I_VTREF = ' ' "Reference Specifications from Contract
* CANCELLED_ALSO = ' ' "
* HEADERS_ONLY = ' ' "
* DIRECT_DUNNING = ' ' "
* DISPLAY_ITEM = "
* FAST_DUNNING = "
* FLEXIBLE_DUNNING_ONLY = "

TABLES
I_FKKMAKO = "
* I_FKKMAZE = "
* I_FKKMAREDUCT = "

EXCEPTIONS
NOT_FOUND = 1
.



IMPORTING Parameters details for FKK_READ_DUNNING_HISTORY

GPART - Business Partner Number

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

OLD_DUNNING_PROC_ONLY -

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

I_MIN_AUSDT - Lower Limit for Issue Date

Data type: AUSDT_KK
Default: '00010101'
Optional: Yes
Call by Reference: Yes

I_SUBAP - Subapplication in Contract Accounts Receivable and Payable

Data type: FKKMAKO-SUBAP
Default: SPACE
Optional: Yes
Call by Reference: Yes

VKONT - Contract Account Number

Data type: FKKMAKO-VKONT
Default: SPACE
Optional: Yes
Call by Reference: Yes

I_VTREF - Reference Specifications from Contract

Data type: FKKMAKO-VTREF
Default: SPACE
Optional: Yes
Call by Reference: Yes

CANCELLED_ALSO -

Data type: C
Default: SPACE
Optional: Yes
Call by Reference: Yes

HEADERS_ONLY -

Data type: C
Default: SPACE
Optional: Yes
Call by Reference: Yes

DIRECT_DUNNING -

Data type: C
Default: SPACE
Optional: Yes
Call by Reference: Yes

DISPLAY_ITEM -

Data type: BOOLE-BOOLE
Optional: Yes
Call by Reference: Yes

FAST_DUNNING -

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

FLEXIBLE_DUNNING_ONLY -

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

TABLES Parameters details for FKK_READ_DUNNING_HISTORY

I_FKKMAKO -

Data type: FKKMAKO
Optional: No
Call by Reference: Yes

I_FKKMAZE -

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

I_FKKMAREDUCT -

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

EXCEPTIONS details

NOT_FOUND -

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

Copy and paste ABAP code example for FKK_READ_DUNNING_HISTORY 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_gpart  TYPE FKKMAKO-GPART, "   
lt_i_fkkmako  TYPE STANDARD TABLE OF FKKMAKO, "   
lv_not_found  TYPE FKKMAKO, "   
lv_old_dunning_proc_only  TYPE XFELD, "   
lv_i_min_ausdt  TYPE AUSDT_KK, "   '00010101'
lv_i_subap  TYPE FKKMAKO-SUBAP, "   SPACE
lv_vkont  TYPE FKKMAKO-VKONT, "   SPACE
lt_i_fkkmaze  TYPE STANDARD TABLE OF FKKMAZE, "   
lv_i_vtref  TYPE FKKMAKO-VTREF, "   SPACE
lt_i_fkkmareduct  TYPE STANDARD TABLE OF FKKMAREDUCT, "   
lv_cancelled_also  TYPE C, "   SPACE
lv_headers_only  TYPE C, "   SPACE
lv_direct_dunning  TYPE C, "   SPACE
lv_display_item  TYPE BOOLE-BOOLE, "   
lv_fast_dunning  TYPE C, "   
lv_flexible_dunning_only  TYPE XFELD. "   

  CALL FUNCTION 'FKK_READ_DUNNING_HISTORY'  "
    EXPORTING
         GPART = lv_gpart
         OLD_DUNNING_PROC_ONLY = lv_old_dunning_proc_only
         I_MIN_AUSDT = lv_i_min_ausdt
         I_SUBAP = lv_i_subap
         VKONT = lv_vkont
         I_VTREF = lv_i_vtref
         CANCELLED_ALSO = lv_cancelled_also
         HEADERS_ONLY = lv_headers_only
         DIRECT_DUNNING = lv_direct_dunning
         DISPLAY_ITEM = lv_display_item
         FAST_DUNNING = lv_fast_dunning
         FLEXIBLE_DUNNING_ONLY = lv_flexible_dunning_only
    TABLES
         I_FKKMAKO = lt_i_fkkmako
         I_FKKMAZE = lt_i_fkkmaze
         I_FKKMAREDUCT = lt_i_fkkmareduct
    EXCEPTIONS
        NOT_FOUND = 1
. " FKK_READ_DUNNING_HISTORY




ABAP code using 7.40 inline data declarations to call FM FKK_READ_DUNNING_HISTORY

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 GPART FROM FKKMAKO INTO @DATA(ld_gpart).
 
 
 
 
DATA(ld_i_min_ausdt) = '00010101'.
 
"SELECT single SUBAP FROM FKKMAKO INTO @DATA(ld_i_subap).
DATA(ld_i_subap) = ' '.
 
"SELECT single VKONT FROM FKKMAKO INTO @DATA(ld_vkont).
DATA(ld_vkont) = ' '.
 
 
"SELECT single VTREF FROM FKKMAKO INTO @DATA(ld_i_vtref).
DATA(ld_i_vtref) = ' '.
 
 
DATA(ld_cancelled_also) = ' '.
 
DATA(ld_headers_only) = ' '.
 
DATA(ld_direct_dunning) = ' '.
 
"SELECT single BOOLE FROM BOOLE INTO @DATA(ld_display_item).
 
 
 


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!