SAP AQ_INT_GENER_QUERY Function Module for









AQ_INT_GENER_QUERY is a standard aq int gener query 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 aq int gener query FM, simply by entering the name AQ_INT_GENER_QUERY into the relevant SAP transaction such as SE37 or SE38.

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



Function AQ_INT_GENER_QUERY 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 'AQ_INT_GENER_QUERY'"
EXPORTING
WORK' ' = "SAP Query (S): Work Area ID
USERGROUP = "SAP Query (S): Name of a user group
QUERY = "SAP Query (S): Query Name
LOGDB = "SAP Query (S): Name of a logical database
FUNCAREA = "SAP Query (S): InfoSet Name
OPTIONS = "
* APPLICATION_SUBMIT = ' ' "
APPL_INTERFACE = "
FOUND_OBJECTS = "

CHANGING
QUTITLE = "SAP Query: Title/notes
TEMP_REPORTNAME = "SAP Query (S): Program name (long)

TABLES
FIELDCATALOG = "
OUTPUT_SPECIFICATION = "
FA_FIELDS_FOR_SEL = "
FA_SEL_FIELDS_FOR_SEL = "
FA_LDB_SEL_FIELDS_FOR_SEL = "
LDB_SEL_FIELDCATALOG = "
FA_SEL_FIELDCATALOG = "

EXCEPTIONS
INTERNAL_ERROR = 1 REPORT_CANNOT_BE_GENERATED = 2 GENERATION_CANCELLED = 3 NO_DATA_READ = 4 NO_RANKED_LIST_CRITERIUM = 5 TOO_MANY_RANKED_CRITERIA = 6 ILLEGAL_CURRENCY_OR_UNIT_FIELD = 7
.



IMPORTING Parameters details for AQ_INT_GENER_QUERY

WORKSPACE - SAP Query (S): Work Area ID

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

USERGROUP - SAP Query (S): Name of a user group

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

QUERY - SAP Query (S): Query Name

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

LOGDB - SAP Query (S): Name of a logical database

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

FUNCAREA - SAP Query (S): InfoSet Name

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

OPTIONS -

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

APPLICATION_SUBMIT -

Data type: FLAG_X
Default: SPACE
Optional: Yes
Call by Reference: Yes

APPL_INTERFACE -

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

FOUND_OBJECTS -

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

CHANGING Parameters details for AQ_INT_GENER_QUERY

QUTITLE - SAP Query: Title/notes

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

TEMP_REPORTNAME - SAP Query (S): Program name (long)

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

TABLES Parameters details for AQ_INT_GENER_QUERY

FIELDCATALOG -

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

OUTPUT_SPECIFICATION -

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

FA_FIELDS_FOR_SEL -

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

FA_SEL_FIELDS_FOR_SEL -

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

FA_LDB_SEL_FIELDS_FOR_SEL -

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

LDB_SEL_FIELDCATALOG -

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

FA_SEL_FIELDCATALOG -

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

EXCEPTIONS details

INTERNAL_ERROR -

Data type:
Optional: No
Call by Reference: Yes

REPORT_CANNOT_BE_GENERATED -

Data type:
Optional: No
Call by Reference: Yes

GENERATION_CANCELLED -

Data type:
Optional: No
Call by Reference: Yes

NO_DATA_READ - No data has been read

Data type:
Optional: No
Call by Reference: Yes

NO_RANKED_LIST_CRITERIUM -

Data type:
Optional: No
Call by Reference: Yes

TOO_MANY_RANKED_CRITERIA -

Data type:
Optional: No
Call by Reference: Yes

ILLEGAL_CURRENCY_OR_UNIT_FIELD -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for AQ_INT_GENER_QUERY 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_qutitle  TYPE AQ_QUTEXT, "   
lv_workspace  TYPE AQS_WSID, "   
lt_fieldcatalog  TYPE STANDARD TABLE OF AQADH_T_FA_FIELDCATALOG, "   
lv_internal_error  TYPE AQADH_T_FA_FIELDCATALOG, "   
lv_usergroup  TYPE AQS_BGNAME, "   
lv_temp_reportname  TYPE AQS_PGNAME, "   
lt_output_specification  TYPE STANDARD TABLE OF AQADH_T_OD_FIELD_SPECIFICATION, "   
lv_report_cannot_be_generated  TYPE AQADH_T_OD_FIELD_SPECIFICATION, "   
lv_query  TYPE AQS_QUNAME, "   
lt_fa_fields_for_sel  TYPE STANDARD TABLE OF AQADH_T_SD_FIELD_SPECIFICATION, "   
lv_generation_cancelled  TYPE AQADH_T_SD_FIELD_SPECIFICATION, "   
lv_logdb  TYPE AQS_LOGDB, "   
lv_no_data_read  TYPE AQS_LOGDB, "   
lt_fa_sel_fields_for_sel  TYPE STANDARD TABLE OF AQADH_T_SD_FIELD_SPECIFICATION, "   
lv_funcarea  TYPE AQS_SGNAME, "   
lv_no_ranked_list_criterium  TYPE AQS_SGNAME, "   
lt_fa_ldb_sel_fields_for_sel  TYPE STANDARD TABLE OF AQADH_T_SD_FIELD_SPECIFICATION, "   
lv_options  TYPE AQADH_S_OPTIONS, "   
lt_ldb_sel_fieldcatalog  TYPE STANDARD TABLE OF AQADH_T_LDB_SEL_FIELDCATALOG, "   
lv_too_many_ranked_criteria  TYPE AQADH_T_LDB_SEL_FIELDCATALOG, "   
lv_application_submit  TYPE FLAG_X, "   SPACE
lt_fa_sel_fieldcatalog  TYPE STANDARD TABLE OF AQADH_T_FA_SEL_FIELDCATALOG, "   
lv_illegal_currency_or_unit_field  TYPE AQADH_T_FA_SEL_FIELDCATALOG, "   
lv_appl_interface  TYPE IF_QUERY_OBJECT_HANDLING, "   
lv_found_objects  TYPE DATA. "   

  CALL FUNCTION 'AQ_INT_GENER_QUERY'  "
    EXPORTING
         WORKSPACE = lv_workspace
         USERGROUP = lv_usergroup
         QUERY = lv_query
         LOGDB = lv_logdb
         FUNCAREA = lv_funcarea
         OPTIONS = lv_options
         APPLICATION_SUBMIT = lv_application_submit
         APPL_INTERFACE = lv_appl_interface
         FOUND_OBJECTS = lv_found_objects
    CHANGING
         QUTITLE = lv_qutitle
         TEMP_REPORTNAME = lv_temp_reportname
    TABLES
         FIELDCATALOG = lt_fieldcatalog
         OUTPUT_SPECIFICATION = lt_output_specification
         FA_FIELDS_FOR_SEL = lt_fa_fields_for_sel
         FA_SEL_FIELDS_FOR_SEL = lt_fa_sel_fields_for_sel
         FA_LDB_SEL_FIELDS_FOR_SEL = lt_fa_ldb_sel_fields_for_sel
         LDB_SEL_FIELDCATALOG = lt_ldb_sel_fieldcatalog
         FA_SEL_FIELDCATALOG = lt_fa_sel_fieldcatalog
    EXCEPTIONS
        INTERNAL_ERROR = 1
        REPORT_CANNOT_BE_GENERATED = 2
        GENERATION_CANCELLED = 3
        NO_DATA_READ = 4
        NO_RANKED_LIST_CRITERIUM = 5
        TOO_MANY_RANKED_CRITERIA = 6
        ILLEGAL_CURRENCY_OR_UNIT_FIELD = 7
. " AQ_INT_GENER_QUERY




ABAP code using 7.40 inline data declarations to call FM AQ_INT_GENER_QUERY

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_application_submit) = ' '.
 
 
 
 
 


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!