SAP FKK_AR_PROGRAM_CLOSE Function Module for Generic routines for end of Argentina legal reports









FKK_AR_PROGRAM_CLOSE is a standard fkk ar program close SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Generic routines for end of Argentina legal reports 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 ar program close FM, simply by entering the name FKK_AR_PROGRAM_CLOSE into the relevant SAP transaction such as SE37 or SE38.

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



Function FKK_AR_PROGRAM_CLOSE 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_AR_PROGRAM_CLOSE'"Generic routines for end of  Argentina legal reports
EXPORTING
I_BUKRS = "Company code
I_EARUPTODATE = "ARGENTINA: Legal report tax reported up to date
I_FROMDATE = "ARGENTINA: Legal report tax reported from date
I_REPORT_TYPE = "Version number components
* I_FREGIO = "Single-character flag
* I_FCOUNC = "Version number components
* I_LAND1 = "Country key
I_TEST = "Single-character flag

TABLES
* T_J_1ATAXID = "KTOSL
* T_REGIO = "ARGENTINA: Legal reporting interface structure for function
* T_COUNC = "ARGENTINA: Legal reporting interface structure for function

EXCEPTIONS
ERROR_UPDATE_TEARREPCONT = 1 RECORD_NOT_FOUND_TEARREPCONT = 2
.



IMPORTING Parameters details for FKK_AR_PROGRAM_CLOSE

I_BUKRS - Company code

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

I_EARUPTODATE - ARGENTINA: Legal report tax reported up to date

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

I_FROMDATE - ARGENTINA: Legal report tax reported from date

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

I_REPORT_TYPE - Version number components

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

I_FREGIO - Single-character flag

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

I_FCOUNC - Version number components

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

I_LAND1 - Country key

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

I_TEST - Single-character flag

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

TABLES Parameters details for FKK_AR_PROGRAM_CLOSE

T_J_1ATAXID - KTOSL

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

T_REGIO - ARGENTINA: Legal reporting interface structure for function

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

T_COUNC - ARGENTINA: Legal reporting interface structure for function

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

EXCEPTIONS details

ERROR_UPDATE_TEARREPCONT -

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

RECORD_NOT_FOUND_TEARREPCONT - Record was not found in table TEARREPCONT

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

Copy and paste ABAP code example for FKK_AR_PROGRAM_CLOSE 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 T001-BUKRS, "   
lt_t_j_1ataxid  TYPE STANDARD TABLE OF FKKAR_KTOSL, "   
lv_error_update_tearrepcont  TYPE FKKAR_KTOSL, "   
lt_t_regio  TYPE STANDARD TABLE OF FKKAR_REGIO, "   
lv_i_earuptodate  TYPE DFKKARREPCONTST-EARUPTODATE, "   
lv_record_not_found_tearrepcont  TYPE DFKKARREPCONTST, "   
lt_t_counc  TYPE STANDARD TABLE OF FKKAR_COUNC, "   
lv_i_fromdate  TYPE DFKKARREPCONTST-EARUPTODATE, "   
lv_i_report_type  TYPE CHAR2, "   
lv_i_fregio  TYPE CHAR1, "   
lv_i_fcounc  TYPE CHAR1, "   
lv_i_land1  TYPE T001-LAND1, "   
lv_i_test  TYPE CHAR1. "   

  CALL FUNCTION 'FKK_AR_PROGRAM_CLOSE'  "Generic routines for end of Argentina legal reports
    EXPORTING
         I_BUKRS = lv_i_bukrs
         I_EARUPTODATE = lv_i_earuptodate
         I_FROMDATE = lv_i_fromdate
         I_REPORT_TYPE = lv_i_report_type
         I_FREGIO = lv_i_fregio
         I_FCOUNC = lv_i_fcounc
         I_LAND1 = lv_i_land1
         I_TEST = lv_i_test
    TABLES
         T_J_1ATAXID = lt_t_j_1ataxid
         T_REGIO = lt_t_regio
         T_COUNC = lt_t_counc
    EXCEPTIONS
        ERROR_UPDATE_TEARREPCONT = 1
        RECORD_NOT_FOUND_TEARREPCONT = 2
. " FKK_AR_PROGRAM_CLOSE




ABAP code using 7.40 inline data declarations to call FM FKK_AR_PROGRAM_CLOSE

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 T001 INTO @DATA(ld_i_bukrs).
 
 
 
 
"SELECT single EARUPTODATE FROM DFKKARREPCONTST INTO @DATA(ld_i_earuptodate).
 
 
 
"SELECT single EARUPTODATE FROM DFKKARREPCONTST INTO @DATA(ld_i_fromdate).
 
 
 
 
"SELECT single LAND1 FROM T001 INTO @DATA(ld_i_land1).
 
 


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!