SAP FKK2_AR_INIT_MASSIVE_SELECTION Function Module for Argentinat: Global data initialization for legal report massive selection









FKK2_AR_INIT_MASSIVE_SELECTION is a standard fkk2 ar init massive selection SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Argentinat: Global data initialization for legal report massive selection 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 fkk2 ar init massive selection FM, simply by entering the name FKK2_AR_INIT_MASSIVE_SELECTION into the relevant SAP transaction such as SE37 or SE38.

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



Function FKK2_AR_INIT_MASSIVE_SELECTION 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 'FKK2_AR_INIT_MASSIVE_SELECTION'"Argentinat: Global data initialization for legal report massive selection
EXPORTING
I_BUKRS = "Company code
I_FROM_DATE = "Date and time, current (application server) date
I_TO_DATE = "Date and time, current (application server) date
I_LIMIT = "DB operations, number of table lines processed
I_REPORT_TYPE = "Report type
* I_PROCESS_WAY = "Processing way
* I_GROUP = "Argentina: Tax Reporting Grouping

TABLES
* T_KTOSL = "ARGENTINA: Legal report KTOSL transfer structure
T_XBLNR_RANGE = "Range Structure for Reference Doc No. (FI-CA)
* T_TFKARMZPKT_C = "ARGENTINA: Legal report selection variant definition
* T_GITYP = "ARGENTINA: Legal reporting interface structure for function

EXCEPTIONS
INVALID_PARAMETERS = 1
.



IMPORTING Parameters details for FKK2_AR_INIT_MASSIVE_SELECTION

I_BUKRS - Company code

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

I_FROM_DATE - Date and time, current (application server) date

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

I_TO_DATE - Date and time, current (application server) date

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

I_LIMIT - DB operations, number of table lines processed

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

I_REPORT_TYPE - Report type

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

I_PROCESS_WAY - Processing way

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

I_GROUP - Argentina: Tax Reporting Grouping

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

TABLES Parameters details for FKK2_AR_INIT_MASSIVE_SELECTION

T_KTOSL - ARGENTINA: Legal report KTOSL transfer structure

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

T_XBLNR_RANGE - Range Structure for Reference Doc No. (FI-CA)

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

T_TFKARMZPKT_C - ARGENTINA: Legal report selection variant definition

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

T_GITYP - ARGENTINA: Legal reporting interface structure for function

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

EXCEPTIONS details

INVALID_PARAMETERS -

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

Copy and paste ABAP code example for FKK2_AR_INIT_MASSIVE_SELECTION 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_bukrs  TYPE DFKKREP06-BUKRS, "   
lt_t_ktosl  TYPE STANDARD TABLE OF FKKAR_KTOSL, "   
lv_invalid_parameters  TYPE FKKAR_KTOSL, "   
lv_i_from_date  TYPE DFKKREP06-VMDAT, "   
lt_t_xblnr_range  TYPE STANDARD TABLE OF FKKR_XBLNR, "   
lv_i_to_date  TYPE DFKKREP06-VMDAT, "   
lt_t_tfkarmzpkt_c  TYPE STANDARD TABLE OF TFKARMZPKT_C, "   
lv_i_limit  TYPE SY-DBCNT, "   
lt_t_gityp  TYPE STANDARD TABLE OF FKKAR_GITYP, "   
lv_i_report_type  TYPE CHAR2, "   
lv_i_process_way  TYPE J_1ADRVER-J_1APROC, "   
lv_i_group  TYPE TFKARGROUP_C-AR_KK_GRP. "   

  CALL FUNCTION 'FKK2_AR_INIT_MASSIVE_SELECTION'  "Argentinat: Global data initialization for legal report massive selection
    EXPORTING
         I_BUKRS = lv_i_bukrs
         I_FROM_DATE = lv_i_from_date
         I_TO_DATE = lv_i_to_date
         I_LIMIT = lv_i_limit
         I_REPORT_TYPE = lv_i_report_type
         I_PROCESS_WAY = lv_i_process_way
         I_GROUP = lv_i_group
    TABLES
         T_KTOSL = lt_t_ktosl
         T_XBLNR_RANGE = lt_t_xblnr_range
         T_TFKARMZPKT_C = lt_t_tfkarmzpkt_c
         T_GITYP = lt_t_gityp
    EXCEPTIONS
        INVALID_PARAMETERS = 1
. " FKK2_AR_INIT_MASSIVE_SELECTION




ABAP code using 7.40 inline data declarations to call FM FKK2_AR_INIT_MASSIVE_SELECTION

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 BUKRS FROM DFKKREP06 INTO @DATA(ld_i_bukrs).
 
 
 
"SELECT single VMDAT FROM DFKKREP06 INTO @DATA(ld_i_from_date).
 
 
"SELECT single VMDAT FROM DFKKREP06 INTO @DATA(ld_i_to_date).
 
 
"SELECT single DBCNT FROM SY INTO @DATA(ld_i_limit).
 
 
 
"SELECT single J_1APROC FROM J_1ADRVER INTO @DATA(ld_i_process_way).
 
"SELECT single AR_KK_GRP FROM TFKARGROUP_C INTO @DATA(ld_i_group).
 


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!