SAP IQAPI_CREATE_INFOSET Function Module for
IQAPI_CREATE_INFOSET is a standard iqapi create infoset 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 create infoset FM, simply by entering the name IQAPI_CREATE_INFOSET into the relevant SAP transaction such as SE37 or SE38.
Function Group: IQAPI_INFOSET
Program Name: SAPLIQAPI_INFOSET
Main Program:
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:
Function IQAPI_CREATE_INFOSET 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_CREATE_INFOSET'".
EXPORTING
HEADER_IN = "InfoSet Query API: InfoSet Catalog
IMPORTING
HEADER_OUT = "InfoSet Query API: InfoSet Catalog
TABLES
FIELDLIST = "
* CONNLIST = "
* GROUPLIST = "
* CODELIST = "InfoSet Query API: Code Row
* FREELIST = "
EXCEPTIONS
INFOSET_EXISTS = 1 ILLEGAL_INPUT = 2 SYNTAX_ERROR = 3 INTERNAL_ERROR = 4 INFOSET_ERROR = 5
IMPORTING Parameters details for IQAPI_CREATE_INFOSET
HEADER_IN - InfoSet Query API: InfoSet Catalog
Data type: IQICATOptional: No
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for IQAPI_CREATE_INFOSET
HEADER_OUT - InfoSet Query API: InfoSet Catalog
Data type: IQICATOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for IQAPI_CREATE_INFOSET
FIELDLIST -
Data type: IQIFIELDOptional: No
Call by Reference: Yes
CONNLIST -
Data type: IQICONNOptional: Yes
Call by Reference: Yes
GROUPLIST -
Data type: IQIGROUPOptional: Yes
Call by Reference: Yes
CODELIST - InfoSet Query API: Code Row
Data type: IQCODEOptional: Yes
Call by Reference: Yes
FREELIST -
Data type: IQFREEOptional: Yes
Call by Reference: Yes
EXCEPTIONS details
INFOSET_EXISTS -
Data type:Optional: No
Call by Reference: Yes
ILLEGAL_INPUT -
Data type:Optional: No
Call by Reference: Yes
SYNTAX_ERROR -
Data type:Optional: No
Call by Reference: Yes
INTERNAL_ERROR - An internal error has occurred
Data type:Optional: No
Call by Reference: Yes
INFOSET_ERROR -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for IQAPI_CREATE_INFOSET 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: | ||||
lt_fieldlist | TYPE STANDARD TABLE OF IQIFIELD, " | |||
lv_header_in | TYPE IQICAT, " | |||
lv_header_out | TYPE IQICAT, " | |||
lv_infoset_exists | TYPE IQICAT, " | |||
lt_connlist | TYPE STANDARD TABLE OF IQICONN, " | |||
lv_illegal_input | TYPE IQICONN, " | |||
lt_grouplist | TYPE STANDARD TABLE OF IQIGROUP, " | |||
lv_syntax_error | TYPE IQIGROUP, " | |||
lt_codelist | TYPE STANDARD TABLE OF IQCODE, " | |||
lv_internal_error | TYPE IQCODE, " | |||
lt_freelist | TYPE STANDARD TABLE OF IQFREE, " | |||
lv_infoset_error | TYPE IQFREE. " |
  CALL FUNCTION 'IQAPI_CREATE_INFOSET' " |
EXPORTING | ||
HEADER_IN | = lv_header_in | |
IMPORTING | ||
HEADER_OUT | = lv_header_out | |
TABLES | ||
FIELDLIST | = lt_fieldlist | |
CONNLIST | = lt_connlist | |
GROUPLIST | = lt_grouplist | |
CODELIST | = lt_codelist | |
FREELIST | = lt_freelist | |
EXCEPTIONS | ||
INFOSET_EXISTS = 1 | ||
ILLEGAL_INPUT = 2 | ||
SYNTAX_ERROR = 3 | ||
INTERNAL_ERROR = 4 | ||
INFOSET_ERROR = 5 | ||
. " IQAPI_CREATE_INFOSET |
ABAP code using 7.40 inline data declarations to call FM IQAPI_CREATE_INFOSET
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