SAP AIC2_DATA_SELECT_FROM_COMPRESS Function Module for









AIC2_DATA_SELECT_FROM_COMPRESS is a standard aic2 data select from compress 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 aic2 data select from compress FM, simply by entering the name AIC2_DATA_SELECT_FROM_COMPRESS into the relevant SAP transaction such as SE37 or SE38.

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



Function AIC2_DATA_SELECT_FROM_COMPRESS 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 'AIC2_DATA_SELECT_FROM_COMPRESS'"
EXPORTING
* I_FLG_INTERNAL = 'X' "
I_FROM_COMPR_VRSN = "
I_TO_COMPR_VRSN = "
I_INV_PROG = "
I_APPR_YEAR = "
* I_FROM_POS = ' ' "
IS_VALUE_SELECTION = "

IMPORTING
ES_ERROR_MESSAGE = "
ET_EXT_DATA = "
ET_INT_DATA = "

CHANGING
* CT_CHARACT_TO_IGNORE = "
* CT_SCALES_TO_IGNORE = "

EXCEPTIONS
INPUT_MISSING = 1 NO_VALUES_REQUESTED = 2
.




Customer Function user exits

Below is a list of CUSTOMER FUNCTION exit user exits that are available within this program and maybe relevant for this FM.
EXIT_SAPLAIC2_001 IM Summarization: Processing Summarization Data after Selection

IMPORTING Parameters details for AIC2_DATA_SELECT_FROM_COMPRESS

I_FLG_INTERNAL -

Data type: IMIS_TYPE_FLG
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_FROM_COMPR_VRSN -

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

I_TO_COMPR_VRSN -

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

I_INV_PROG -

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

I_APPR_YEAR -

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

I_FROM_POS -

Data type: IMCHIE-PROG_POS
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

IS_VALUE_SELECTION -

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

EXPORTING Parameters details for AIC2_DATA_SELECT_FROM_COMPRESS

ES_ERROR_MESSAGE -

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

ET_EXT_DATA -

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

ET_INT_DATA -

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

CHANGING Parameters details for AIC2_DATA_SELECT_FROM_COMPRESS

CT_CHARACT_TO_IGNORE -

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

CT_SCALES_TO_IGNORE -

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

EXCEPTIONS details

INPUT_MISSING -

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

NO_VALUES_REQUESTED -

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

Copy and paste ABAP code example for AIC2_DATA_SELECT_FROM_COMPRESS 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_input_missing  TYPE STRING, "   
lv_i_flg_internal  TYPE IMIS_TYPE_FLG, "   'X'
lv_es_error_message  TYPE IMIS_TYPE_S_MESSAGE, "   
lv_ct_charact_to_ignore  TYPE IMIS_TYPE_T_BAPI1057CC, "   
lv_et_ext_data  TYPE IMIS_TYPE_T_BAPI1057CD, "   
lv_i_from_compr_vrsn  TYPE IMCH-COMPR_VRSN, "   
lv_ct_scales_to_ignore  TYPE IMIS_TYPE_T_BAPI1057CS, "   
lv_no_values_requested  TYPE IMIS_TYPE_T_BAPI1057CS, "   
lv_et_int_data  TYPE IMIS_TYPE_T_DATA, "   
lv_i_to_compr_vrsn  TYPE IMCH-COMPR_VRSN, "   
lv_i_inv_prog  TYPE IMCH-INV_PROG, "   
lv_i_appr_year  TYPE IMCH-APPR_YEAR, "   
lv_i_from_pos  TYPE IMCHIE-PROG_POS, "   SPACE
lv_is_value_selection  TYPE IMIS_TYPE_S_BAPI1057CA. "   

  CALL FUNCTION 'AIC2_DATA_SELECT_FROM_COMPRESS'  "
    EXPORTING
         I_FLG_INTERNAL = lv_i_flg_internal
         I_FROM_COMPR_VRSN = lv_i_from_compr_vrsn
         I_TO_COMPR_VRSN = lv_i_to_compr_vrsn
         I_INV_PROG = lv_i_inv_prog
         I_APPR_YEAR = lv_i_appr_year
         I_FROM_POS = lv_i_from_pos
         IS_VALUE_SELECTION = lv_is_value_selection
    IMPORTING
         ES_ERROR_MESSAGE = lv_es_error_message
         ET_EXT_DATA = lv_et_ext_data
         ET_INT_DATA = lv_et_int_data
    CHANGING
         CT_CHARACT_TO_IGNORE = lv_ct_charact_to_ignore
         CT_SCALES_TO_IGNORE = lv_ct_scales_to_ignore
    EXCEPTIONS
        INPUT_MISSING = 1
        NO_VALUES_REQUESTED = 2
. " AIC2_DATA_SELECT_FROM_COMPRESS




ABAP code using 7.40 inline data declarations to call FM AIC2_DATA_SELECT_FROM_COMPRESS

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.

 
DATA(ld_i_flg_internal) = 'X'.
 
 
 
 
"SELECT single COMPR_VRSN FROM IMCH INTO @DATA(ld_i_from_compr_vrsn).
 
 
 
 
"SELECT single COMPR_VRSN FROM IMCH INTO @DATA(ld_i_to_compr_vrsn).
 
"SELECT single INV_PROG FROM IMCH INTO @DATA(ld_i_inv_prog).
 
"SELECT single APPR_YEAR FROM IMCH INTO @DATA(ld_i_appr_year).
 
"SELECT single PROG_POS FROM IMCHIE INTO @DATA(ld_i_from_pos).
DATA(ld_i_from_pos) = ' '.
 
 


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!