SAP FKK_SAMPLE_2822 Function Module for ICWC Documents: Correspondence Category Dependent Data









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

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



Function FKK_SAMPLE_2822 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_2822'"ICWC Documents: Correspondence Category Dependent Data
EXPORTING
* IS_FKKEPOSC = "Account Balance: Control Fields (Interface for Callers)

CHANGING
CS_CORR_CREATE = "Correspondence Generation
C_BASICS = "Mass Activities: Global Values for All Mass Activities
C_ADDONS = "Parameters for Individual Creation of Correspondence
C_LAYOUT = "Tab in master records: Tab layout

TABLES
RT_ACTION_ITEM = "FI-CA Items for Action
* RT_FKKEPOS = "Account Balance: All Item Data
* RT_FKKEPOS_ALL = "Account Balance: All Item Data
* RT_SEL_KEYS = "Account Balance: Work Fields
* RT_SEL_FIELDS = "
* RT_SEL_VALUES = "
* RT_FKKOP = "Business Partner Items in Contract Account Document
* RT_FKKOPK = "G/L Account Items in Open Item Account Document
* RT_BAPI_RET = "Return Parameter(s)
.



IMPORTING Parameters details for FKK_SAMPLE_2822

IS_FKKEPOSC - Account Balance: Control Fields (Interface for Callers)

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

CHANGING Parameters details for FKK_SAMPLE_2822

CS_CORR_CREATE - Correspondence Generation

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

C_BASICS - Mass Activities: Global Values for All Mass Activities

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

C_ADDONS - Parameters for Individual Creation of Correspondence

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

C_LAYOUT - Tab in master records: Tab layout

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

TABLES Parameters details for FKK_SAMPLE_2822

RT_ACTION_ITEM - FI-CA Items for Action

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

RT_FKKEPOS - Account Balance: All Item Data

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

RT_FKKEPOS_ALL - Account Balance: All Item Data

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

RT_SEL_KEYS - Account Balance: Work Fields

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

RT_SEL_FIELDS -

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

RT_SEL_VALUES -

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

RT_FKKOP - Business Partner Items in Contract Account Document

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

RT_FKKOPK - G/L Account Items in Open Item Account Document

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

RT_BAPI_RET - Return Parameter(s)

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

Copy and paste ABAP code example for FKK_SAMPLE_2822 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_is_fkkeposc  TYPE FKKEPOSC, "   
lv_cs_corr_create  TYPE FKK_CRM_CORR_CREATE, "   
lt_rt_action_item  TYPE STANDARD TABLE OF FKK_CRM_ACCOUNT_ACTION_ITEM, "   
lv_c_basics  TYPE FKK_MAD_BASICS, "   
lt_rt_fkkepos  TYPE STANDARD TABLE OF FKKEPOS, "   
lv_c_addons  TYPE FKK_CORR_SINGLE, "   
lt_rt_fkkepos_all  TYPE STANDARD TABLE OF FKKEPOS, "   
lv_c_layout  TYPE TAB_LAYOUT, "   
lt_rt_sel_keys  TYPE STANDARD TABLE OF FKKL1, "   
lt_rt_sel_fields  TYPE STANDARD TABLE OF FKL0_SEF, "   
lt_rt_sel_values  TYPE STANDARD TABLE OF FKL0_SEL, "   
lt_rt_fkkop  TYPE STANDARD TABLE OF FKKOP, "   
lt_rt_fkkopk  TYPE STANDARD TABLE OF FKKOPK, "   
lt_rt_bapi_ret  TYPE STANDARD TABLE OF BAPIRET2. "   

  CALL FUNCTION 'FKK_SAMPLE_2822'  "ICWC Documents: Correspondence Category Dependent Data
    EXPORTING
         IS_FKKEPOSC = lv_is_fkkeposc
    CHANGING
         CS_CORR_CREATE = lv_cs_corr_create
         C_BASICS = lv_c_basics
         C_ADDONS = lv_c_addons
         C_LAYOUT = lv_c_layout
    TABLES
         RT_ACTION_ITEM = lt_rt_action_item
         RT_FKKEPOS = lt_rt_fkkepos
         RT_FKKEPOS_ALL = lt_rt_fkkepos_all
         RT_SEL_KEYS = lt_rt_sel_keys
         RT_SEL_FIELDS = lt_rt_sel_fields
         RT_SEL_VALUES = lt_rt_sel_values
         RT_FKKOP = lt_rt_fkkop
         RT_FKKOPK = lt_rt_fkkopk
         RT_BAPI_RET = lt_rt_bapi_ret
. " FKK_SAMPLE_2822




ABAP code using 7.40 inline data declarations to call FM FKK_SAMPLE_2822

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



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!