!--a11y-->
Save Query View Dialog Box 
With this command you call a dialog for saving a query view. You can specify a follow-up action here if necessary. Also see Saving Query Views.
In order to use this command you have to register the help service to a Web item. The following additional attributes have to be added to a Web item that is assigned to the corresponding data provider in the HTML view in the Web Application Designer:
Attribute |
Description |
HELP_SERVICE |
Name of the help service (SAVE_VIEW) |
HELP_SERVICE_CLASS |
Technical name of the help service class (CL_RSR_WWW_HWIND_SAVE_VIEW) |
Command structure
CMD |
Process_Help_Window |
Parameter |
Description |
HELP_SERVICE |
Name of the help service: SAVE_VIEW |
ITEM |
Logical name of the Web item with which you have registered the help service. |
LOCAL_VIEW |
A query view can be saved locally (that is, without specifying a technical name). The query view does not appear in the open dialog in this case. When you save locally, only a GUID (Global Unique Identifier) is generated. 'X' = Yes; ' ' = No (standard setting) It is usually only useful to use this parameter if you also specify the SUBMIT_TARGET parameter. |
SUBMIT_TARGET |
URL for the follow-up action. When you execute the URL the parameters DATA_PROVIDER_ID (technical name of the query view) and DESCRIPTION (name of the query views) are added to it. |
Call dialog for saving a query view that is connected to Web Item WEB_ITEM_1
<SAP_BW_URL CMD="PROCESS_HELP_WINDOW" HELP_SERVICE="SAVE_VIEW" item="WEB_ITEM_1">
Call help service for save view, where the view is saved as a local view (parameter LOCAL_VIEW) and a new entry is added to item VIEWDDITEM in the template that is calling the help service (parameter SUBMIT_TARGET).
Call help service for the Save Query View dialog, where the query view is saved as a local query view (parameter LOCAL_VIEW) and a new entry is to be added to the Web item VIEWDDITEM (query view – selection) in the Web template calling the help service (parameter SUBMIT_TARGET)
SAPBWOpenURL('<SAP_BW_URL CMD="PROCESS_HELP_WINDOW" HELP_SERVICE="SAVE_VIEW" item="WEB_ITEM_1" LOCAL_VIEW="X">&SUBMIT_TARGET=' + escape(opener.SAP_BW_URL_Get() + '&CMD=ADD&ITEM=VIEWDDITEM&ITEM_ID=MYITEM')
