SAP FKK_SAMPLE_2412 Function Module for









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

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



Function FKK_SAMPLE_2412 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_SAMPLE_2412'"
CHANGING
* C_FAEDN_HIGH = "Due Date for Net Payment
* C_LIMIT = "Minimum Block Size for Mass Selection
* C_PREFETCH = "Data Element for BOOLE Domain: TRUE (='X') and FALSE (=' ')
* C_OBJECT = "Object for Distribution into Intervals
* C_FAEDN_LOW = "Due Date for Net Payment
* C_FAEDS_HIGH = "Due Date for Cash Discount
* C_FAEDS_LOW = "Due Date for Cash Discount
* C_CHECK_ABWBL = "Data Element for BOOLE Domain: TRUE (='X') and FALSE (=' ')
* C_CHECK_XMANL = "Data Element for BOOLE Domain: TRUE (='X') and FALSE (=' ')
* C_WITHHTAX_OUT = "Data Element for BOOLE Domain: TRUE (='X') and FALSE (=' ')
* C_WITHHTAX_IN = "Data Element for BOOLE Domain: TRUE (='X') and FALSE (=' ')
* C_CLEARING_DATE = "Posting Date in the Document

TABLES
* T_BUKRS = "
* T_AGRTAB = "
.




Customer Function user exits

Below is a list of CUSTOMER FUNCTION exit user exits that are available within this program and maybe relevant for this FM.
EXIT_SAPLFKEBS_BILLINFO_001
EXIT_SAPLFKEBS_BILLINFO_002
EXIT_SAPLFKEBS_BILLINFO_003

CHANGING Parameters details for FKK_SAMPLE_2412

C_FAEDN_HIGH - Due Date for Net Payment

Data type: FKKOP-FAEDN
Optional: Yes
Call by Reference: Yes

C_LIMIT - Minimum Block Size for Mass Selection

Data type: FKKPY_PARA-LIMIT
Optional: Yes
Call by Reference: Yes

C_PREFETCH - Data Element for BOOLE Domain: TRUE (='X') and FALSE (=' ')

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

C_OBJECT - Object for Distribution into Intervals

Data type: TFKDIT-OBJECT
Optional: Yes
Call by Reference: Yes

C_FAEDN_LOW - Due Date for Net Payment

Data type: FKKOP-FAEDN
Optional: Yes
Call by Reference: Yes

C_FAEDS_HIGH - Due Date for Cash Discount

Data type: FKKOP-FAEDS
Optional: Yes
Call by Reference: Yes

C_FAEDS_LOW - Due Date for Cash Discount

Data type: FKKOP-FAEDS
Optional: Yes
Call by Reference: Yes

C_CHECK_ABWBL - Data Element for BOOLE Domain: TRUE (='X') and FALSE (=' ')

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

C_CHECK_XMANL - Data Element for BOOLE Domain: TRUE (='X') and FALSE (=' ')

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

C_WITHHTAX_OUT - Data Element for BOOLE Domain: TRUE (='X') and FALSE (=' ')

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

C_WITHHTAX_IN - Data Element for BOOLE Domain: TRUE (='X') and FALSE (=' ')

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

C_CLEARING_DATE - Posting Date in the Document

Data type: FKKKO-BUDAT
Optional: Yes
Call by Reference: Yes

TABLES Parameters details for FKK_SAMPLE_2412

T_BUKRS -

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

T_AGRTAB -

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

Copy and paste ABAP code example for FKK_SAMPLE_2412 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:
lt_t_bukrs  TYPE STANDARD TABLE OF IBUKRS, "   
lv_c_faedn_high  TYPE FKKOP-FAEDN, "   
lv_c_limit  TYPE FKKPY_PARA-LIMIT, "   
lv_c_prefetch  TYPE BOOLE-BOOLE, "   
lv_c_object  TYPE TFKDIT-OBJECT, "   
lt_t_agrtab  TYPE STANDARD TABLE OF IAGRTAB, "   
lv_c_faedn_low  TYPE FKKOP-FAEDN, "   
lv_c_faeds_high  TYPE FKKOP-FAEDS, "   
lv_c_faeds_low  TYPE FKKOP-FAEDS, "   
lv_c_check_abwbl  TYPE BOOLE-BOOLE, "   
lv_c_check_xmanl  TYPE BOOLE-BOOLE, "   
lv_c_withhtax_out  TYPE BOOLE-BOOLE, "   
lv_c_withhtax_in  TYPE BOOLE-BOOLE, "   
lv_c_clearing_date  TYPE FKKKO-BUDAT. "   

  CALL FUNCTION 'FKK_SAMPLE_2412'  "
    CHANGING
         C_FAEDN_HIGH = lv_c_faedn_high
         C_LIMIT = lv_c_limit
         C_PREFETCH = lv_c_prefetch
         C_OBJECT = lv_c_object
         C_FAEDN_LOW = lv_c_faedn_low
         C_FAEDS_HIGH = lv_c_faeds_high
         C_FAEDS_LOW = lv_c_faeds_low
         C_CHECK_ABWBL = lv_c_check_abwbl
         C_CHECK_XMANL = lv_c_check_xmanl
         C_WITHHTAX_OUT = lv_c_withhtax_out
         C_WITHHTAX_IN = lv_c_withhtax_in
         C_CLEARING_DATE = lv_c_clearing_date
    TABLES
         T_BUKRS = lt_t_bukrs
         T_AGRTAB = lt_t_agrtab
. " FKK_SAMPLE_2412




ABAP code using 7.40 inline data declarations to call FM FKK_SAMPLE_2412

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 FAEDN FROM FKKOP INTO @DATA(ld_c_faedn_high).
 
"SELECT single LIMIT FROM FKKPY_PARA INTO @DATA(ld_c_limit).
 
"SELECT single BOOLE FROM BOOLE INTO @DATA(ld_c_prefetch).
 
"SELECT single OBJECT FROM TFKDIT INTO @DATA(ld_c_object).
 
 
"SELECT single FAEDN FROM FKKOP INTO @DATA(ld_c_faedn_low).
 
"SELECT single FAEDS FROM FKKOP INTO @DATA(ld_c_faeds_high).
 
"SELECT single FAEDS FROM FKKOP INTO @DATA(ld_c_faeds_low).
 
"SELECT single BOOLE FROM BOOLE INTO @DATA(ld_c_check_abwbl).
 
"SELECT single BOOLE FROM BOOLE INTO @DATA(ld_c_check_xmanl).
 
"SELECT single BOOLE FROM BOOLE INTO @DATA(ld_c_withhtax_out).
 
"SELECT single BOOLE FROM BOOLE INTO @DATA(ld_c_withhtax_in).
 
"SELECT single BUDAT FROM FKKKO INTO @DATA(ld_c_clearing_date).
 


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!