SAP AQBW_CREATE_INFOSOURCE Function Module for
AQBW_CREATE_INFOSOURCE is a standard aqbw create infosource 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 aqbw create infosource FM, simply by entering the name AQBW_CREATE_INFOSOURCE into the relevant SAP transaction such as SE37 or SE38.
Function Group: AQBWEXM
Program Name: SAPLAQBWEXM
Main Program: SAPLAQBWEXM
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function AQBW_CREATE_INFOSOURCE 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 'AQBW_CREATE_INFOSOURCE'".
EXPORTING
IN_ISOURCE = "
* IN_FUNCAREA = "
* IN_STRUCT = "
* IN_TEXT_SHORT = "
* IN_TEXT_MIDDLE = "
* IN_TEXT_LONG = "
* IN_APPLNM = "
* IN_MASTER_DATA = ' ' "
* IN_KORRNUM = ' ' "
IMPORTING
EX_KORRNUM = "
EX_TEXT_SHORT = "
EX_TEXT_MIDDLE = "
EX_TEXT_LONG = "
EXCEPTIONS
CANCELLED = 1 FA_TABLE_NOT_IN_DDIC = 10 FUNCAREA_NOT_EXISTENT = 11 CORR_INSERT_CANCELLED = 12 CORR_INSERT_NO_PERMISSION = 13 NO_NAME = 2 NON_USABLE_INFOSOURCE = 3 INFOSOURCE_EXIST = 4 INCONSISTENT_STATE = 5 FIELDS_FROM_PARALLEL_NODES = 6 STRUCTURE_ALREADY_EXISTS = 7 STRUCTURE_PUT_FAILED = 8 STRUCTURE_ACTIVATION_FAILED = 9
IMPORTING Parameters details for AQBW_CREATE_INFOSOURCE
IN_ISOURCE -
Data type: AQBWCAT-ISOURCEOptional: No
Call by Reference: No ( called with pass by value option)
IN_FUNCAREA -
Data type: RS38Q-NAMEOptional: Yes
Call by Reference: No ( called with pass by value option)
IN_STRUCT -
Data type: AQBWCAT-STRUCTOptional: Yes
Call by Reference: No ( called with pass by value option)
IN_TEXT_SHORT -
Data type: RSIODYNP2-TXTSHOptional: Yes
Call by Reference: No ( called with pass by value option)
IN_TEXT_MIDDLE -
Data type: RSIODYNP2-TXTMDOptional: Yes
Call by Reference: No ( called with pass by value option)
IN_TEXT_LONG -
Data type: RSIODYNP2-TXTLGOptional: Yes
Call by Reference: No ( called with pass by value option)
IN_APPLNM -
Data type: ROIS-APPLNMOptional: Yes
Call by Reference: No ( called with pass by value option)
IN_MASTER_DATA -
Data type: AQADEF-FLAGDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
IN_KORRNUM -
Data type: E070-TRKORRDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for AQBW_CREATE_INFOSOURCE
EX_KORRNUM -
Data type: E070-TRKORROptional: No
Call by Reference: No ( called with pass by value option)
EX_TEXT_SHORT -
Data type: RSIODYNP2-TXTSHOptional: No
Call by Reference: No ( called with pass by value option)
EX_TEXT_MIDDLE -
Data type: RSIODYNP2-TXTMDOptional: No
Call by Reference: No ( called with pass by value option)
EX_TEXT_LONG -
Data type: RSIODYNP2-TXTLGOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
CANCELLED -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
FA_TABLE_NOT_IN_DDIC -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
FUNCAREA_NOT_EXISTENT -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
CORR_INSERT_CANCELLED -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
CORR_INSERT_NO_PERMISSION -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_NAME -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NON_USABLE_INFOSOURCE -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
INFOSOURCE_EXIST -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
INCONSISTENT_STATE -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
FIELDS_FROM_PARALLEL_NODES -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
STRUCTURE_ALREADY_EXISTS -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
STRUCTURE_PUT_FAILED -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
STRUCTURE_ACTIVATION_FAILED -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for AQBW_CREATE_INFOSOURCE 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_cancelled | TYPE STRING, " | |||
| lv_ex_korrnum | TYPE E070-TRKORR, " | |||
| lv_in_isource | TYPE AQBWCAT-ISOURCE, " | |||
| lv_fa_table_not_in_ddic | TYPE AQBWCAT, " | |||
| lv_funcarea_not_existent | TYPE AQBWCAT, " | |||
| lv_corr_insert_cancelled | TYPE AQBWCAT, " | |||
| lv_corr_insert_no_permission | TYPE AQBWCAT, " | |||
| lv_no_name | TYPE AQBWCAT, " | |||
| lv_in_funcarea | TYPE RS38Q-NAME, " | |||
| lv_ex_text_short | TYPE RSIODYNP2-TXTSH, " | |||
| lv_in_struct | TYPE AQBWCAT-STRUCT, " | |||
| lv_ex_text_middle | TYPE RSIODYNP2-TXTMD, " | |||
| lv_non_usable_infosource | TYPE RSIODYNP2, " | |||
| lv_ex_text_long | TYPE RSIODYNP2-TXTLG, " | |||
| lv_in_text_short | TYPE RSIODYNP2-TXTSH, " | |||
| lv_infosource_exist | TYPE RSIODYNP2, " | |||
| lv_in_text_middle | TYPE RSIODYNP2-TXTMD, " | |||
| lv_inconsistent_state | TYPE RSIODYNP2, " | |||
| lv_in_text_long | TYPE RSIODYNP2-TXTLG, " | |||
| lv_fields_from_parallel_nodes | TYPE RSIODYNP2, " | |||
| lv_in_applnm | TYPE ROIS-APPLNM, " | |||
| lv_structure_already_exists | TYPE ROIS, " | |||
| lv_in_master_data | TYPE AQADEF-FLAG, " SPACE | |||
| lv_structure_put_failed | TYPE AQADEF, " | |||
| lv_in_korrnum | TYPE E070-TRKORR, " SPACE | |||
| lv_structure_activation_failed | TYPE E070. " |
|   CALL FUNCTION 'AQBW_CREATE_INFOSOURCE' " |
| EXPORTING | ||
| IN_ISOURCE | = lv_in_isource | |
| IN_FUNCAREA | = lv_in_funcarea | |
| IN_STRUCT | = lv_in_struct | |
| IN_TEXT_SHORT | = lv_in_text_short | |
| IN_TEXT_MIDDLE | = lv_in_text_middle | |
| IN_TEXT_LONG | = lv_in_text_long | |
| IN_APPLNM | = lv_in_applnm | |
| IN_MASTER_DATA | = lv_in_master_data | |
| IN_KORRNUM | = lv_in_korrnum | |
| IMPORTING | ||
| EX_KORRNUM | = lv_ex_korrnum | |
| EX_TEXT_SHORT | = lv_ex_text_short | |
| EX_TEXT_MIDDLE | = lv_ex_text_middle | |
| EX_TEXT_LONG | = lv_ex_text_long | |
| EXCEPTIONS | ||
| CANCELLED = 1 | ||
| FA_TABLE_NOT_IN_DDIC = 10 | ||
| FUNCAREA_NOT_EXISTENT = 11 | ||
| CORR_INSERT_CANCELLED = 12 | ||
| CORR_INSERT_NO_PERMISSION = 13 | ||
| NO_NAME = 2 | ||
| NON_USABLE_INFOSOURCE = 3 | ||
| INFOSOURCE_EXIST = 4 | ||
| INCONSISTENT_STATE = 5 | ||
| FIELDS_FROM_PARALLEL_NODES = 6 | ||
| STRUCTURE_ALREADY_EXISTS = 7 | ||
| STRUCTURE_PUT_FAILED = 8 | ||
| STRUCTURE_ACTIVATION_FAILED = 9 | ||
| . " AQBW_CREATE_INFOSOURCE | ||
ABAP code using 7.40 inline data declarations to call FM AQBW_CREATE_INFOSOURCE
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 TRKORR FROM E070 INTO @DATA(ld_ex_korrnum). | ||||
| "SELECT single ISOURCE FROM AQBWCAT INTO @DATA(ld_in_isource). | ||||
| "SELECT single NAME FROM RS38Q INTO @DATA(ld_in_funcarea). | ||||
| "SELECT single TXTSH FROM RSIODYNP2 INTO @DATA(ld_ex_text_short). | ||||
| "SELECT single STRUCT FROM AQBWCAT INTO @DATA(ld_in_struct). | ||||
| "SELECT single TXTMD FROM RSIODYNP2 INTO @DATA(ld_ex_text_middle). | ||||
| "SELECT single TXTLG FROM RSIODYNP2 INTO @DATA(ld_ex_text_long). | ||||
| "SELECT single TXTSH FROM RSIODYNP2 INTO @DATA(ld_in_text_short). | ||||
| "SELECT single TXTMD FROM RSIODYNP2 INTO @DATA(ld_in_text_middle). | ||||
| "SELECT single TXTLG FROM RSIODYNP2 INTO @DATA(ld_in_text_long). | ||||
| "SELECT single APPLNM FROM ROIS INTO @DATA(ld_in_applnm). | ||||
| "SELECT single FLAG FROM AQADEF INTO @DATA(ld_in_master_data). | ||||
| DATA(ld_in_master_data) | = ' '. | |||
| "SELECT single TRKORR FROM E070 INTO @DATA(ld_in_korrnum). | ||||
| DATA(ld_in_korrnum) | = ' '. | |||
Search for further information about these or an SAP related objects