SAP AREAS_OPEN_IN_YEAR Function Module for
AREAS_OPEN_IN_YEAR is a standard areas open in year SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 areas open in year FM, simply by entering the name AREAS_OPEN_IN_YEAR into the relevant SAP transaction such as SE37 or SE38.
Function Group: ACUT
Program Name: SAPLACUT
Main Program: SAPLACUT
Appliation area: A
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function AREAS_OPEN_IN_YEAR 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 'AREAS_OPEN_IN_YEAR'".
EXPORTING
I_CCODE = "
I_YEAR = "
TABLES
T_AREAS = "
EXCEPTIONS
CCODE_NOT_DEFINED = 1 NO_AREAS_ARE_OPEN = 2 NO_INPUT_FOR_YEAR = 3 OPEN_YEAR_FALSE = 4
IMPORTING Parameters details for AREAS_OPEN_IN_YEAR
I_CCODE -
Data type: T093B-BUKRSOptional: No
Call by Reference: No ( called with pass by value option)
I_YEAR -
Data type: T093B-ABGJAOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for AREAS_OPEN_IN_YEAR
T_AREAS -
Data type: RAFABEOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
CCODE_NOT_DEFINED - Company code is not defined
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_AREAS_ARE_OPEN -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_INPUT_FOR_YEAR -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
OPEN_YEAR_FALSE -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for AREAS_OPEN_IN_YEAR 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_ccode | TYPE T093B-BUKRS, " | |||
| lt_t_areas | TYPE STANDARD TABLE OF RAFABE, " | |||
| lv_ccode_not_defined | TYPE RAFABE, " | |||
| lv_i_year | TYPE T093B-ABGJA, " | |||
| lv_no_areas_are_open | TYPE T093B, " | |||
| lv_no_input_for_year | TYPE T093B, " | |||
| lv_open_year_false | TYPE T093B. " |
|   CALL FUNCTION 'AREAS_OPEN_IN_YEAR' " |
| EXPORTING | ||
| I_CCODE | = lv_i_ccode | |
| I_YEAR | = lv_i_year | |
| TABLES | ||
| T_AREAS | = lt_t_areas | |
| EXCEPTIONS | ||
| CCODE_NOT_DEFINED = 1 | ||
| NO_AREAS_ARE_OPEN = 2 | ||
| NO_INPUT_FOR_YEAR = 3 | ||
| OPEN_YEAR_FALSE = 4 | ||
| . " AREAS_OPEN_IN_YEAR | ||
ABAP code using 7.40 inline data declarations to call FM AREAS_OPEN_IN_YEAR
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 T093B INTO @DATA(ld_i_ccode). | ||||
| "SELECT single ABGJA FROM T093B INTO @DATA(ld_i_year). | ||||
Search for further information about these or an SAP related objects