SAP SPAM_UI_CHANGE_QUEUE Function Module for









SPAM_UI_CHANGE_QUEUE is a standard spam ui change queue 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 spam ui change queue FM, simply by entering the name SPAM_UI_CHANGE_QUEUE into the relevant SAP transaction such as SE37 or SE38.

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



Function SPAM_UI_CHANGE_QUEUE 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 'SPAM_UI_CHANGE_QUEUE'"
EXPORTING
* IS_COMPONENT = "
* IV_CRT_QUEUE = ' ' "
* IV_COMP_CHANGE = 'X' "
* IV_ONLY_INSTALLED_ADDON = 'X' "

IMPORTING
EV_QUEUE_CHANGED = "
ES_PATCH = "

TABLES
TT_IN_QUEUE = "
TT_OUT_QUEUE = "

EXCEPTIONS
CANCEL_FUNCTION = 1 NEW_COMPONENT = 2
.



IMPORTING Parameters details for SPAM_UI_CHANGE_QUEUE

IS_COMPONENT -

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

IV_CRT_QUEUE -

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

IV_COMP_CHANGE -

Data type: C
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

IV_ONLY_INSTALLED_ADDON -

Data type: C
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for SPAM_UI_CHANGE_QUEUE

EV_QUEUE_CHANGED -

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

ES_PATCH -

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

TABLES Parameters details for SPAM_UI_CHANGE_QUEUE

TT_IN_QUEUE -

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

TT_OUT_QUEUE -

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

EXCEPTIONS details

CANCEL_FUNCTION - Function canceled

Data type:
Optional: No
Call by Reference: Yes

NEW_COMPONENT -

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

Copy and paste ABAP code example for SPAM_UI_CHANGE_QUEUE 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_tt_in_queue  TYPE STANDARD TABLE OF PAT_Q, "   
lv_is_component  TYPE SPAM_CVERS, "   
lv_cancel_function  TYPE SPAM_CVERS, "   
lv_ev_queue_changed  TYPE C, "   
lv_es_patch  TYPE PAT_Q, "   
lv_iv_crt_queue  TYPE C, "   ' '
lt_tt_out_queue  TYPE STANDARD TABLE OF PAT_Q, "   
lv_new_component  TYPE PAT_Q, "   
lv_iv_comp_change  TYPE C, "   'X'
lv_iv_only_installed_addon  TYPE C. "   'X'

  CALL FUNCTION 'SPAM_UI_CHANGE_QUEUE'  "
    EXPORTING
         IS_COMPONENT = lv_is_component
         IV_CRT_QUEUE = lv_iv_crt_queue
         IV_COMP_CHANGE = lv_iv_comp_change
         IV_ONLY_INSTALLED_ADDON = lv_iv_only_installed_addon
    IMPORTING
         EV_QUEUE_CHANGED = lv_ev_queue_changed
         ES_PATCH = lv_es_patch
    TABLES
         TT_IN_QUEUE = lt_tt_in_queue
         TT_OUT_QUEUE = lt_tt_out_queue
    EXCEPTIONS
        CANCEL_FUNCTION = 1
        NEW_COMPONENT = 2
. " SPAM_UI_CHANGE_QUEUE




ABAP code using 7.40 inline data declarations to call FM SPAM_UI_CHANGE_QUEUE

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_iv_crt_queue) = ' '.
 
 
 
DATA(ld_iv_comp_change) = 'X'.
 
DATA(ld_iv_only_installed_addon) = 'X'.
 


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!