SAP FKK_SAMPLE_8039 Function Module for BILL: Monitoring of Billing Account Facts: Customer-Specific Actions
FKK_SAMPLE_8039 is a standard fkk sample 8039 SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for BILL: Monitoring of Billing Account Facts: Customer-Specific Actions processing and below is the pattern details for this FM, 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 8039 FM, simply by entering the name FKK_SAMPLE_8039 into the relevant SAP transaction such as SE37 or SE38.
Function Group: FKKBI_EDR_EVENT
Program Name: SAPLFKKBI_EDR_EVENT
Main Program: SAPLFKKBI_EDR_EVENT
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function FKK_SAMPLE_8039 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_8039'"BILL: Monitoring of Billing Account Facts: Customer-Specific Actions.
EXPORTING
I_COLUMNNAME = "ALV Control: Field Name of Internal Table Field
I_VALUE = "ALV Control: Cell Contents
I_HEAD = "Display Billing Account Facts Header
* I_AMOUNT = "Display BA Facts with Period-Independent Operand Values
* I_AMOUNTP = "Display Billing Acct Facts w/ Period-Based Operand Values
* I_AMOUNTT = "Display Billing Acct Facts w/ Event-Based Operand Values
IMPORTING Parameters details for FKK_SAMPLE_8039
I_COLUMNNAME - ALV Control: Field Name of Internal Table Field
Data type: LVC_FNAMEOptional: No
Call by Reference: Yes
I_VALUE - ALV Control: Cell Contents
Data type: LVC_VALUEOptional: No
Call by Reference: Yes
I_HEAD - Display Billing Account Facts Header
Data type: FKKBIBAFACT_H_DISPOptional: No
Call by Reference: Yes
I_AMOUNT - Display BA Facts with Period-Independent Operand Values
Data type: FKKBIBAFACTV_AMOUNT_DISPOptional: Yes
Call by Reference: Yes
I_AMOUNTP - Display Billing Acct Facts w/ Period-Based Operand Values
Data type: FKKBIBAFACTV_AMOUNTP_DISPOptional: Yes
Call by Reference: Yes
I_AMOUNTT - Display Billing Acct Facts w/ Event-Based Operand Values
Data type: FKKBIBAFACTV_AMOUNTT_DISPOptional: Yes
Call by Reference: Yes
Copy and paste ABAP code example for FKK_SAMPLE_8039 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_i_columnname | TYPE LVC_FNAME, " | |||
| lv_i_value | TYPE LVC_VALUE, " | |||
| lv_i_head | TYPE FKKBIBAFACT_H_DISP, " | |||
| lv_i_amount | TYPE FKKBIBAFACTV_AMOUNT_DISP, " | |||
| lv_i_amountp | TYPE FKKBIBAFACTV_AMOUNTP_DISP, " | |||
| lv_i_amountt | TYPE FKKBIBAFACTV_AMOUNTT_DISP. " |
|   CALL FUNCTION 'FKK_SAMPLE_8039' "BILL: Monitoring of Billing Account Facts: Customer-Specific Actions |
| EXPORTING | ||
| I_COLUMNNAME | = lv_i_columnname | |
| I_VALUE | = lv_i_value | |
| I_HEAD | = lv_i_head | |
| I_AMOUNT | = lv_i_amount | |
| I_AMOUNTP | = lv_i_amountp | |
| I_AMOUNTT | = lv_i_amountt | |
| . " FKK_SAMPLE_8039 | ||
ABAP code using 7.40 inline data declarations to call FM FKK_SAMPLE_8039
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.Search for further information about these or an SAP related objects