SAP FKK_SAMPLE_0793 Function Module for FI-CA Correspondence: Generate Individual Correspondence









FKK_SAMPLE_0793 is a standard fkk sample 0793 SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for FI-CA Correspondence: Generate Individual Correspondence 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 0793 FM, simply by entering the name FKK_SAMPLE_0793 into the relevant SAP transaction such as SE37 or SE38.

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



Function FKK_SAMPLE_0793 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_0793'"FI-CA Correspondence: Generate Individual Correspondence
EXPORTING
* I_COTYP = "Correspondence Type
* I_AMOUNT = "Amount in Transaction Currency with +/- Sign
* I_CURR = "Transaction Currency
* I_SIMILAR_PAYFORMS = '1' "Number of Payment Slips to which a Payment is Distributed
* I_VKONT = "Contract Account Number
* I_GPART = "Business Partner Number
* I_VTREF = "Reference Specifications from Contract
* I_OPBEL = "Number of a Contract Accounts Receivable and Payable Document
* I_DIALOG = "Lead Dialog for Business Partner
* I_PAYH = "Payment program - data for payment
* I_PAYHX = "Payment Medium: Payment Data Format
* I_AMOUNT_TYPE = "Amount Type of Payment Form

CHANGING
C_BASICS = "Bases Parameters of Correspondence
C_ADDONS = "Additional Parameters of Correspondence
C_LAYOUT = "Desired Layout

TABLES
* T_FKKEPOS = "Aggregated Individual Items
* T_FKKEPOS_ALL = "All Line Items
* T_SEL_KEYS = "Account Balance: Restrictions
* T_SEL_FIELDS = "Account Balance: Selected Fields
* T_SEL_VALUES = "Account Balance: Selected Values
* T_FKKOP = "Payment Slip: Basic Items
* T_FKKOPK = "Items in contract account document
.



IMPORTING Parameters details for FKK_SAMPLE_0793

I_COTYP - Correspondence Type

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

I_AMOUNT - Amount in Transaction Currency with +/- Sign

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

I_CURR - Transaction Currency

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

I_SIMILAR_PAYFORMS - Number of Payment Slips to which a Payment is Distributed

Data type: SIMILAR_PAYFORMS_KK
Default: '1'
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_VKONT - Contract Account Number

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

I_GPART - Business Partner Number

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

I_VTREF - Reference Specifications from Contract

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

I_OPBEL - Number of a Contract Accounts Receivable and Payable Document

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

I_DIALOG - Lead Dialog for Business Partner

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

I_PAYH - Payment program - data for payment

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

I_PAYHX - Payment Medium: Payment Data Format

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

I_AMOUNT_TYPE - Amount Type of Payment Form

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

CHANGING Parameters details for FKK_SAMPLE_0793

C_BASICS - Bases Parameters of Correspondence

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

C_ADDONS - Additional Parameters of Correspondence

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

C_LAYOUT - Desired Layout

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

TABLES Parameters details for FKK_SAMPLE_0793

T_FKKEPOS - Aggregated Individual Items

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

T_FKKEPOS_ALL - All Line Items

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

T_SEL_KEYS - Account Balance: Restrictions

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

T_SEL_FIELDS - Account Balance: Selected Fields

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

T_SEL_VALUES - Account Balance: Selected Values

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

T_FKKOP - Payment Slip: Basic Items

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

T_FKKOPK - Items in contract account document

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

Copy and paste ABAP code example for FKK_SAMPLE_0793 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_cotyp  TYPE COTYP_KK, "   
lv_c_basics  TYPE FKK_MAD_BASICS, "   
lt_t_fkkepos  TYPE STANDARD TABLE OF FKKEPOS, "   
lv_i_amount  TYPE BETRW_KK, "   
lv_i_curr  TYPE BLWAE_KK, "   
lv_i_similar_payforms  TYPE SIMILAR_PAYFORMS_KK, "   '1'
lv_i_vkont  TYPE VKONT_KK, "   
lv_c_addons  TYPE FKK_CORR_SINGLE, "   
lt_t_fkkepos_all  TYPE STANDARD TABLE OF FKKEPOS, "   
lv_i_gpart  TYPE GPART_KK, "   
lv_c_layout  TYPE TAB_LAYOUT, "   
lt_t_sel_keys  TYPE STANDARD TABLE OF FKKL1, "   
lv_i_vtref  TYPE VTREF_KK, "   
lt_t_sel_fields  TYPE STANDARD TABLE OF FKL0_SEF, "   
lv_i_opbel  TYPE OPBEL_KK, "   
lt_t_sel_values  TYPE STANDARD TABLE OF FKL0_SEL, "   
lt_t_fkkop  TYPE STANDARD TABLE OF FKKOP, "   
lv_i_dialog  TYPE XFELD, "   
lv_i_payh  TYPE PAYH, "   
lt_t_fkkopk  TYPE STANDARD TABLE OF FKKOPK, "   
lv_i_payhx  TYPE PAYHX, "   
lv_i_amount_type  TYPE PAYF_AMOUNT_TYPE_KK. "   

  CALL FUNCTION 'FKK_SAMPLE_0793'  "FI-CA Correspondence: Generate Individual Correspondence
    EXPORTING
         I_COTYP = lv_i_cotyp
         I_AMOUNT = lv_i_amount
         I_CURR = lv_i_curr
         I_SIMILAR_PAYFORMS = lv_i_similar_payforms
         I_VKONT = lv_i_vkont
         I_GPART = lv_i_gpart
         I_VTREF = lv_i_vtref
         I_OPBEL = lv_i_opbel
         I_DIALOG = lv_i_dialog
         I_PAYH = lv_i_payh
         I_PAYHX = lv_i_payhx
         I_AMOUNT_TYPE = lv_i_amount_type
    CHANGING
         C_BASICS = lv_c_basics
         C_ADDONS = lv_c_addons
         C_LAYOUT = lv_c_layout
    TABLES
         T_FKKEPOS = lt_t_fkkepos
         T_FKKEPOS_ALL = lt_t_fkkepos_all
         T_SEL_KEYS = lt_t_sel_keys
         T_SEL_FIELDS = lt_t_sel_fields
         T_SEL_VALUES = lt_t_sel_values
         T_FKKOP = lt_t_fkkop
         T_FKKOPK = lt_t_fkkopk
. " FKK_SAMPLE_0793




ABAP code using 7.40 inline data declarations to call FM FKK_SAMPLE_0793

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.

 
 
 
 
 
DATA(ld_i_similar_payforms) = '1'.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 


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!