SAP AQBW_CHANGE_DATASOURCE_20 Function Module for









AQBW_CHANGE_DATASOURCE_20 is a standard aqbw change datasource 20 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 change datasource 20 FM, simply by entering the name AQBW_CHANGE_DATASOURCE_20 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_CHANGE_DATASOURCE_20 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_CHANGE_DATASOURCE_20'"
EXPORTING
IN_ISOURCE = "
* IN_KORRNUM = ' ' "
* IN_TEXT_SHORT = "
* IN_TEXT_MIDDLE = "
* IN_TEXT_LONG = "
* IN_APPLNM = "
* IN_BRANCH_TO_SG_MAINTENANCE = ' ' "
* IN_GENDELTA = "

IMPORTING
EX_KORRNUM = "
EX_TEXT_SHORT = "
EX_TEXT_MIDDLE = "
EX_TEXT_LONG = "

EXCEPTIONS
CANCELLED = 1 CORR_INSERT_CANCELLED = 10 NON_USABLE_INFOSOURCE = 2 INFOSOURCE_NOT_EXIST = 3 INCONSISTENT_STATE = 4 NO_NAME = 5 FUNCAREA_NOT_EXISTENT = 6 FIELDS_FROM_PARALLEL_NODES = 7 STRUCTURE_DOES_NOT_EXIST = 8 QUERY_CANNOT_BE_DELETED = 9
.



IMPORTING Parameters details for AQBW_CHANGE_DATASOURCE_20

IN_ISOURCE -

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

IN_KORRNUM -

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

IN_TEXT_SHORT -

Data type: RSIODYNP2-TXTSH
Optional: Yes
Call by Reference: No ( called with pass by value option)

IN_TEXT_MIDDLE -

Data type: RSIODYNP2-TXTMD
Optional: Yes
Call by Reference: No ( called with pass by value option)

IN_TEXT_LONG -

Data type: RSIODYNP2-TXTLG
Optional: Yes
Call by Reference: No ( called with pass by value option)

IN_APPLNM -

Data type: ROIS-APPLNM
Optional: Yes
Call by Reference: No ( called with pass by value option)

IN_BRANCH_TO_SG_MAINTENANCE -

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

IN_GENDELTA -

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

EXPORTING Parameters details for AQBW_CHANGE_DATASOURCE_20

EX_KORRNUM -

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

EX_TEXT_SHORT -

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

EX_TEXT_MIDDLE -

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

EX_TEXT_LONG -

Data type: RSIODYNP2-TXTLG
Optional: 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)

CORR_INSERT_CANCELLED -

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_NOT_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)

NO_NAME -

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)

FIELDS_FROM_PARALLEL_NODES -

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

STRUCTURE_DOES_NOT_EXIST -

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

QUERY_CANNOT_BE_DELETED -

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

Copy and paste ABAP code example for AQBW_CHANGE_DATASOURCE_20 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_corr_insert_cancelled  TYPE AQBWCAT, "   
lv_in_korrnum  TYPE E070-TRKORR, "   SPACE
lv_ex_text_short  TYPE RSIODYNP2-TXTSH, "   
lv_non_usable_infosource  TYPE RSIODYNP2, "   
lv_in_text_short  TYPE RSIODYNP2-TXTSH, "   
lv_ex_text_middle  TYPE RSIODYNP2-TXTMD, "   
lv_infosource_not_exist  TYPE RSIODYNP2, "   
lv_ex_text_long  TYPE RSIODYNP2-TXTLG, "   
lv_in_text_middle  TYPE RSIODYNP2-TXTMD, "   
lv_inconsistent_state  TYPE RSIODYNP2, "   
lv_no_name  TYPE RSIODYNP2, "   
lv_in_text_long  TYPE RSIODYNP2-TXTLG, "   
lv_in_applnm  TYPE ROIS-APPLNM, "   
lv_funcarea_not_existent  TYPE ROIS, "   
lv_fields_from_parallel_nodes  TYPE ROIS, "   
lv_in_branch_to_sg_maintenance  TYPE AQADEF-FLAG, "   SPACE
lv_in_gendelta  TYPE RSAOT_S_GENDELTA, "   
lv_structure_does_not_exist  TYPE RSAOT_S_GENDELTA, "   
lv_query_cannot_be_deleted  TYPE RSAOT_S_GENDELTA. "   

  CALL FUNCTION 'AQBW_CHANGE_DATASOURCE_20'  "
    EXPORTING
         IN_ISOURCE = lv_in_isource
         IN_KORRNUM = lv_in_korrnum
         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_BRANCH_TO_SG_MAINTENANCE = lv_in_branch_to_sg_maintenance
         IN_GENDELTA = lv_in_gendelta
    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
        CORR_INSERT_CANCELLED = 10
        NON_USABLE_INFOSOURCE = 2
        INFOSOURCE_NOT_EXIST = 3
        INCONSISTENT_STATE = 4
        NO_NAME = 5
        FUNCAREA_NOT_EXISTENT = 6
        FIELDS_FROM_PARALLEL_NODES = 7
        STRUCTURE_DOES_NOT_EXIST = 8
        QUERY_CANNOT_BE_DELETED = 9
. " AQBW_CHANGE_DATASOURCE_20




ABAP code using 7.40 inline data declarations to call FM AQBW_CHANGE_DATASOURCE_20

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 TRKORR FROM E070 INTO @DATA(ld_in_korrnum).
DATA(ld_in_korrnum) = ' '.
 
"SELECT single TXTSH FROM RSIODYNP2 INTO @DATA(ld_ex_text_short).
 
 
"SELECT single TXTSH FROM RSIODYNP2 INTO @DATA(ld_in_text_short).
 
"SELECT single TXTMD FROM RSIODYNP2 INTO @DATA(ld_ex_text_middle).
 
 
"SELECT single TXTLG FROM RSIODYNP2 INTO @DATA(ld_ex_text_long).
 
"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_branch_to_sg_maintenance).
DATA(ld_in_branch_to_sg_maintenance) = ' '.
 
 
 
 


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!