SAP IQAPI_OVERWRITE_QUERY Function Module for
IQAPI_OVERWRITE_QUERY is a standard iqapi overwrite 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 iqapi overwrite query FM, simply by entering the name IQAPI_OVERWRITE_QUERY into the relevant SAP transaction such as SE37 or SE38.
Function Group: IQAPI_QUERY
Program Name: SAPLIQAPI_QUERY
Main Program:
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:
Function IQAPI_OVERWRITE_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 'IQAPI_OVERWRITE_QUERY'".
EXPORTING
HEADER_IN = "InfoSet Query API: Query Catalog
IMPORTING
HEADER_OUT = "InfoSet Query API: Query Catalog
TABLES
FIELDLIST = "InfoSet Query API: Field Description in a Query
* FIELDDEFLIST = "
* CODELIST = "InfoSet Query API: Code Row
* STDFILTER = "InfoSet Query API: Filter Entry
* CONNLIST = "
EXCEPTIONS
NO_QUERY = 1 INTERNAL_ERROR = 2
IMPORTING Parameters details for IQAPI_OVERWRITE_QUERY
HEADER_IN - InfoSet Query API: Query Catalog
Data type: IQQCATOptional: No
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for IQAPI_OVERWRITE_QUERY
HEADER_OUT - InfoSet Query API: Query Catalog
Data type: IQQCATOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for IQAPI_OVERWRITE_QUERY
FIELDLIST - InfoSet Query API: Field Description in a Query
Data type: IQQFIELDOptional: No
Call by Reference: No ( called with pass by value option)
FIELDDEFLIST -
Data type: IQIFIELDOptional: Yes
Call by Reference: No ( called with pass by value option)
CODELIST - InfoSet Query API: Code Row
Data type: IQCODEOptional: Yes
Call by Reference: No ( called with pass by value option)
STDFILTER - InfoSet Query API: Filter Entry
Data type: IQFILTEROptional: Yes
Call by Reference: No ( called with pass by value option)
CONNLIST -
Data type: IQICONNOptional: Yes
Call by Reference: Yes
EXCEPTIONS details
NO_QUERY - Query does not exist
Data type:Optional: No
Call by Reference: Yes
INTERNAL_ERROR -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for IQAPI_OVERWRITE_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_no_query | TYPE STRING, " | |||
lt_fieldlist | TYPE STANDARD TABLE OF IQQFIELD, " | |||
lv_header_in | TYPE IQQCAT, " | |||
lv_header_out | TYPE IQQCAT, " | |||
lt_fielddeflist | TYPE STANDARD TABLE OF IQIFIELD, " | |||
lv_internal_error | TYPE IQIFIELD, " | |||
lt_codelist | TYPE STANDARD TABLE OF IQCODE, " | |||
lt_stdfilter | TYPE STANDARD TABLE OF IQFILTER, " | |||
lt_connlist | TYPE STANDARD TABLE OF IQICONN. " |
  CALL FUNCTION 'IQAPI_OVERWRITE_QUERY' " |
EXPORTING | ||
HEADER_IN | = lv_header_in | |
IMPORTING | ||
HEADER_OUT | = lv_header_out | |
TABLES | ||
FIELDLIST | = lt_fieldlist | |
FIELDDEFLIST | = lt_fielddeflist | |
CODELIST | = lt_codelist | |
STDFILTER | = lt_stdfilter | |
CONNLIST | = lt_connlist | |
EXCEPTIONS | ||
NO_QUERY = 1 | ||
INTERNAL_ERROR = 2 | ||
. " IQAPI_OVERWRITE_QUERY |
ABAP code using 7.40 inline data declarations to call FM IQAPI_OVERWRITE_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.Search for further information about these or an SAP related objects