SAP RE_AREA_HIST_FOR_CONDITION Function Module for
RE_AREA_HIST_FOR_CONDITION is a standard re area hist for condition 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 re area hist for condition FM, simply by entering the name RE_AREA_HIST_FOR_CONDITION into the relevant SAP transaction such as SE37 or SE38.
Function Group: FVI2
Program Name: SAPLFVI2
Main Program:
Appliation area: F
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:
Function RE_AREA_HIST_FOR_CONDITION 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 'RE_AREA_HIST_FOR_CONDITION'".
EXPORTING
I_BUKRS = "
I_SWENR = "
I_SMENR = "
* I_DATEAB = "
I_SKOART = "
* I_VIMI01 = "
TABLES
E_T_AREA_COND = "
EXCEPTIONS
ERROR_READING_OBJECT = 1 WRONG_CALL = 2
IMPORTING Parameters details for RE_AREA_HIST_FOR_CONDITION
I_BUKRS -
Data type: VIMI01-BUKRSOptional: No
Call by Reference: No ( called with pass by value option)
I_SWENR -
Data type: VIMI01-SWENROptional: No
Call by Reference: No ( called with pass by value option)
I_SMENR -
Data type: VIMI01-SMENROptional: No
Call by Reference: No ( called with pass by value option)
I_DATEAB -
Data type: SY-DATUMOptional: Yes
Call by Reference: No ( called with pass by value option)
I_SKOART -
Data type: TZK01-SKOARTOptional: No
Call by Reference: No ( called with pass by value option)
I_VIMI01 -
Data type: VIMI01Optional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for RE_AREA_HIST_FOR_CONDITION
E_T_AREA_COND -
Data type: RFVIARCONDOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
ERROR_READING_OBJECT -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
WRONG_CALL -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for RE_AREA_HIST_FOR_CONDITION 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 VIMI01-BUKRS, " | |||
lt_e_t_area_cond | TYPE STANDARD TABLE OF RFVIARCOND, " | |||
lv_error_reading_object | TYPE RFVIARCOND, " | |||
lv_i_swenr | TYPE VIMI01-SWENR, " | |||
lv_wrong_call | TYPE VIMI01, " | |||
lv_i_smenr | TYPE VIMI01-SMENR, " | |||
lv_i_dateab | TYPE SY-DATUM, " | |||
lv_i_skoart | TYPE TZK01-SKOART, " | |||
lv_i_vimi01 | TYPE VIMI01. " |
  CALL FUNCTION 'RE_AREA_HIST_FOR_CONDITION' " |
EXPORTING | ||
I_BUKRS | = lv_i_bukrs | |
I_SWENR | = lv_i_swenr | |
I_SMENR | = lv_i_smenr | |
I_DATEAB | = lv_i_dateab | |
I_SKOART | = lv_i_skoart | |
I_VIMI01 | = lv_i_vimi01 | |
TABLES | ||
E_T_AREA_COND | = lt_e_t_area_cond | |
EXCEPTIONS | ||
ERROR_READING_OBJECT = 1 | ||
WRONG_CALL = 2 | ||
. " RE_AREA_HIST_FOR_CONDITION |
ABAP code using 7.40 inline data declarations to call FM RE_AREA_HIST_FOR_CONDITION
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 VIMI01 INTO @DATA(ld_i_bukrs). | ||||
"SELECT single SWENR FROM VIMI01 INTO @DATA(ld_i_swenr). | ||||
"SELECT single SMENR FROM VIMI01 INTO @DATA(ld_i_smenr). | ||||
"SELECT single DATUM FROM SY INTO @DATA(ld_i_dateab). | ||||
"SELECT single SKOART FROM TZK01 INTO @DATA(ld_i_skoart). | ||||
Search for further information about these or an SAP related objects