Deactivate standard toolbars
Hi;
i want to deactivate some or all of the standard toolbar functions (like file download,
sum etc) of ALV grid. How can i do this?
Thx in advance.
Ali
Hi,
Go to SE24 give the class name as CL_GUI_ALV_GRID..
In the attributes tab there are constants available for the Function code..
It starts with MC_FC
For Export to local file it is MC_FC_PC_FILE..
Thanks,
Naren
Similar Messages
-
How to deactivate the standard toolbar 'print' button
Dear Expert,
I want to deactivate the standard toolbar print's button in the smartform print preview screen.
Could you explain and give me some sample code ? Thanks !For details of how to restore it, see the [[menu bar is missing]] article.
-
Deactivate standard Funtion key assignment (F11)
Hallo experts,
I would like to deactivate the standard assignment of the F11 key to the 'REFR' function code.
The reason is that that I am using a program which is a copy of a standard, and which uses the function module FI_ITEMS_DISPLAY, which in turn calls the ALV.
This FM returns the control to its caller only for specific function codes, and 'REFR' is one of them. I wanted to activate the save option and the only way I managed to do it without having to copy the FM, was to assign 'REFR' to tge standard toolbar. It works fine, but the problem is that the actions take place if the user presses F11, which I want to stop.
I searched a lot but I didn't find a way to negate the assignment in the Menu painter.
Thanks for your patience.
BR,
PanayotisHi
What exactly, you want to do, when the user presses F11 Key ?
Please elaborate.
Have you implemented this BADI - <b>BADI FI_ITEMS_MENUE01</b> ?
Either you can note the disable the F11 and its associated button from the standard toolbar
OR the
first find the relevant, fucntion code associated with F11 key and then
Do this code inside the custom function moduleinclude program. <b>(LFI_ITEMSF01)</b>
CASE Sy-UCOMM.
WHEN 'F11'.
*--- Do nothing.
ENDCASE.
Hope this will help.
Please reward suitable points.
Regards
- Atul -
For webdynpro component SALV_WD_TABLE, how do we deactivate the toolbar
For webdynpro component SALV_WD_TABLE, how do we deactivate the toolbar for the alv list display?
* Data declarations for instantiation
DATA: l_ref_interfacecontroller TYPE REF TO iwci_salv_wd_table ,
l_ref_cmp_usage TYPE REF TO if_wd_component_usage.
* Navigate from <CONTEXT> to <NODES> via lead selction
lr_node = wd_context->get_child_node( 'CN_FECLM' ).
* Instantiate the ALV
l_ref_cmp_usage = wd_this->wd_cpuse_usg_alv_feclm( ) .
IF l_ref_cmp_usage->has_active_component( ) IS INITIAL .
l_ref_cmp_usage->create_component( ) .
ENDIF .
* Get model
l_ref_interfacecontroller = wd_this->wd_cpifc_usg_alv_feclm( ).
l_value = l_ref_interfacecontroller->get_model( ) .
wd_this->l_value_feclm = l_value .
* Remove the standard buttons available on ALV toolbar
l_value->if_salv_wd_std_functions~set_sort_headerclick_allowed(
abap_false ).
l_value->if_salv_wd_std_functions~set_edit_append_row_allowed(
abap_false ).
l_value->if_salv_wd_std_functions~set_edit_insert_row_allowed(
abap_false ).
l_value->if_salv_wd_std_functions~set_edit_delete_row_allowed(
abap_false ).
l_value->if_salv_wd_std_functions~set_view_list_allowed( abap_false ).
l_value->if_salv_wd_std_functions~set_sort_headerclick_allowed(
abap_false ).
l_value->if_salv_wd_std_functions~set_edit_check_available(
abap_false ).
l_value->if_salv_wd_std_functions~set_pdf_allowed( abap_false ) .
l_value->if_salv_wd_std_functions~set_export_allowed( abap_false) . -
Zoom Control not appearing in Standard Toolbar (CR2008 - SP1)
In Crystal XI (and prior versions), the Zoom control would appear in the standard toolbar. I was able to either select (from the drop down list) or type in the level of zoom. Now this control is no longer showing on the toolbar. Is there a setting somewhere I need to set?
I checked help, and this is what it says under 'using the zoom feature' (so it sounds like the zoom control should still be on the standard toolbar).:
You can easily zoom in on a report. You can choose any magnification from 25% to 400%. This feature is active in both the Design and Preview tabs.
To zoom the report in or out, set the zoom level in the Zoom Control box found on the Standard toolbar.
It is helpful to view reports at low magnifications in order to get an overall picture of the layout of your report. Views at higher magnifications focus attention on the details of the report.Yes, but I don't want to have to go into a menu every time...that's extra work.
Needless to say, I did find it. It is in the lower right corner of the screen (to the
right of the status bar).
You can zoom there, so you do not have to go into a menu pick.
I could not find in the documentation where the zoom had moved to. -
Hi All.
We have few reports to be shown in ESS. Standard toolbar should not be coming for them, as otherwise, users can use the "Command line" option (on the top left) and go to any transaction.
Now, my understand was that if we make a transaction as EWT, standard toolbars should not come in that case.
But it is still coming in our case. Do we need to do something else also?
Thanks in adv.Hi Samant ,
I didnt get what you mentioned in first line but regarding the other part of the post :-
I also read the F1 Help for EWT , there also you need to create a service (Service name should be different than transaction) and its manadatory .
Hope I'm clear this time .
Regards ,
Shounak M. -
Handling standard toolbar event in CL_SALV_TABLE
Hi Experts,
I have created a ALV report using class CL_SAL_TABLE. I have created some buttons in the application toolbar of ALV by which I can jump to other ALV views. Now my requirement is if I click on the Exit (Shift+F3) button on the standard toolbar at that time, I'd be taken back to the selection screen. Currently both the back and exit button behaves the same way (i.e. set screen 0. leave screen.). I want to change the behaviour for exit button.
Can anybody help me how to implement that?
Thanks,
MainakHi Mainak,
Call the screen number that you wish to. (Selection-screen number).
CASE sy-ucomm.
WHEN EXIT.
CALL SCREEN 'xxxx'. -
How to handle events on standard toolbar
hi, the following code i worte is to load a form and fill data from db table ..but i'm getting only one record and the buttons on standard toolbar like next, previous, first and last are not enabled and not working...what should i do? plz give me the code....
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim SboGuiApi As SAPbouiCOM.SboGuiApi
Dim sConnectionString As String
Dim SBO_Application As SAPbouiCOM.Application
Dim oDICompany As SAPbobsCOM.Company
Dim ret As Long
SboGuiApi = New SAPbouiCOM.SboGuiApi
sConnectionString = Environment.GetCommandLineArgs.GetValue(1)
sConnectionString = Command()
SboGuiApi.Connect(sConnectionString)
SBO_Application = SboGuiApi.GetApplication
oDICompany = New SAPbobsCOM.Company
Dim sCookie As String
sCookie = oDICompany.GetContextCookie()
Dim conStr As String
conStr = SBO_Application.Company.GetConnectionContext(sCookie)
ret = oDICompany.SetSboLoginContext(conStr)
If Not ret = 0 Then
Exit Sub 'the operation has failed.
End If
ret = oDICompany.Connect()
If ret <> 0 Then
SBO_Application.MessageBox("Failed")
Else
SBO_Application.MessageBox("Connected to Database")
End If
' loading(Form)
Dim oForm As SAPbouiCOM.Form
Dim creationPackage As SAPbouiCOM.FormCreationParams
Dim oxmldoc As New Xml.XmlDocument 'u2026when using .netu2019s system.xml
'create the formcreationparams object
creationPackage = SBO_Application.CreateObject( _
SAPbouiCOM.BoCreatableObjectType.cot_FormCreationParams)
'please note: these parameters override corresponding data in the xml
creationPackage.UniqueID = "Sales 111"
creationPackage.FormType = "Sales Order"
creationPackage.BorderStyle = SAPbouiCOM.BoFormBorderStyle.fbs_Sizable
'just a sample for an xml string describing a formu2026 same as used for loadbatchactions
oxmldoc.Load("c:program filessapsap business oneSales Order.srf")
creationPackage.XmlData = oxmldoc.InnerXml
'add the form to the sbo application
oForm = SBO_Application.Forms.AddEx(creationPackage)
'set the form title and set it visible!
oForm.Visible = True
''''''''''''''''''''''''''''''Data Binding
'''''''''''binding data from DBDataSource to form items
Dim oDBDataSource As SAPbouiCOM.DBDataSource
Dim oItem As SAPbouiCOM.Item
Dim oEdit As SAPbouiCOM.EditText
'''''1st edit box
oItem = oForm.Items.Item("4")
oEdit = oItem.Specific
oForm.DataSources.DBDataSources.Add("AACT")
oEdit.DataBind.SetBound(True, "AACT", "AcctCode")
' getting the data sources bound to the form
oDBDataSource = oForm.DataSources.DBDataSources.Item("AACT")
oDBDataSource.Query()
'''''2nd edit box
oItem = oForm.Items.Item("5")
oEdit = oItem.Specific
oForm.DataSources.DBDataSources.Add("AACT")
oEdit.DataBind.SetBound(True, "AACT", "AcctName")
' getting the data sources bound to the form
oDBDataSource = oForm.DataSources.DBDataSources.Item("AACT")
oDBDataSource.Query()
''''3rd edit box
oItem = oForm.Items.Item("6")
oEdit = oItem.Specific
oForm.DataSources.DBDataSources.Add("AACT")
oEdit.DataBind.SetBound(True, "AACT", "CurrTotal")
' getting the data sources bound to the form
oDBDataSource = oForm.DataSources.DBDataSources.Item("AACT")
oDBDataSource.Query()
End SubYou have to enable the menus on toolbar as
form.EnableMenu(1288, True)
form.EnableMenu(1289, True)
form.EnableMenu(1290, True)
form.EnableMenu(1291, True)
If zou have the datas as UDO, use
form.DataBrowser.BrowseBy = "code" - specifies the logic for getting next, previous,... record
dont forget to take
ObjectType="your udo name"
to the form for specify from which UDO will be the datas.
If you dont have udo, you need enable themenus in toolbar and in menuevent catch the events and create own logic for this. -
How to access standard toolbar of IE
Hi
Can anyone have some idea about accessing standard toolbar of IE just like we can now access sys tray of Windows.
I want the functionality of Yahoo IM so that when any user install my application an icon(shortcut) for that should be added to IE toolbar
If this is possible in java only or with JNI
Please guide me
ThanksMicrosoft uses ODE and DDE. What you want to use is OLE, and as such, I believe you are going to have to do some JNI programming to get Java to work with that interface the way you intend.
-
Hi Friends,
The standard toolbar items are not working in my screen painter program. The code I have written is as follows.
PROCESS AFTER INPUT.
MODULE USER_COMMAND_0100.
*& Module USER_COMMAND_0100 INPUT
text
MODULE USER_COMMAND_0100 INPUT.
LOOP AT SCREEN.
IF SY-UCOMM EQ 'EXIT'(001).
LEAVE PROGRAM.
ENDIF.
ENDLOOP.
ENDMODULE. " USER_COMMAND_0100 INPUT
When I execute the program and click on the Exit icon, the program is not functioning.
Kindly guide me the solution.
TIA.
Regards,
Mark KHI Mark,
Modify your code like this:-
PROCESS BEFORE OUPUT.
MODULE STATUS_0100 OUTPUT.
<b>MODULE STATUS_0100 OUTPUT.
SET PF-STATUS 'MAIN-100'.
SET TITLEBAR 'TITLE_100'.
ENDMODULE.</b>
PROCESS AFTER INPUT.
MODULE USER_COMMAND_0100 INPUT.
*& Module USER_COMMAND_0100 INPUT
text
MODULE USER_COMMAND_0100 INPUT.
IF SY-UCOMM = 'EXIT'.
LEAVE PROGRAM.
ENDIF.
ENDMODULE. " USER_COMMAND_0100 INPUT
After writing this code double click on 'MAIN-100'. This will take you to the toolbar screen. Select the option function keys from there and on top of the exit button write EXIT. Activate it and come back.
Now execute your program. Exit button will work.
Please reward points if this is what you required.
Regards,
Kirti. -
Should Standard Toolbar FIND work on an ALV within a custom container ?
I have an ALV in a custom container on a screen.
The FIND and FIND NEXT of the ALV toolbar work fine against the grid.
Should the FIND and FIND NEXT of the standard toolbar also work against the ALV if they are "activate" in the GUI status?
If so, what do I call/execute in response to the "FIND" ok-code?
I've tried calling the function ALV_POPUP_TO_SEARCH2 and the popup comes up, but it doesn't do anything.
Please advise at your earliest convenience.
Thanks
djhHi Rich,
Absolutely. Especially as they can paint the picture, and then blame the techies when their fiction is exposed.
Similarly, we had a situation where the Expense Report WD was failing, and the functional person ensured that everyone knew it was a technical problem and therefore my fault (with SAP as the popular co-conspirator).
Sadly the message above the Java stack messages was "No entry in table T706Z for argument ' '". Had the functional check their config and all was well. No one apologised though......
Last week at a different site the same thing happened (this time with TA20C) but the funky took one look at it and reviewed their config to solve - so they're not ALL the same.
Cheers
Gareth -
Office 2011 Standard Toolbar icons
I had a problem with Office 2011 whereby there were no Themes available. I reinstalled Office over the top of the current installation and all the colout themes were there. However the standard toolbar displays fine but the icons do not match the labels. So for example the Save label is accompanied by the Cut (scissors) symbol. A couple are OK, such as Print but most are completely wrong. Have tried re-installing again to no avail. Any suggestions?
I'm not quite understanding what you're asking - in the default Home ribbon, Themes are to the far right:
You may want to try and clarify what you're asking and post in the MS Office 2011 for Mac forums - http://answers.microsoft.com/en-us/mac.
Clinton -
Add Button with ALV Standard Toolbar.
Hi,
Can any one tell me how to add user-defined button with ALV
Standard toolbar? When I add Pf-status for alv output , standard alv toolbar is not displayed.
Plz do needful.On the toolbar event of your alv grid, all the button as shown in the code below.
FORM handle_toolbar USING i_object TYPE REF TO cl_alv_event_toolbar_set .
DATA: ls_toolbar TYPE stb_button.
CLEAR ls_toolbar.
MOVE 'EXCH' TO ls_toolbar-function. "#EC NOTEXT
MOVE 2 TO ls_toolbar-butn_type.
MOVE icon_calculation TO ls_toolbar-icon.
MOVE 'Payment in Other Currencies'(202) TO ls_toolbar-quickinfo.
MOVE ' ' TO ls_toolbar-text.
MOVE ' ' TO ls_toolbar-disabled. "#EC NOTEXT
APPEND ls_toolbar TO i_object->mt_toolbar.
ENDFORM
CLASS lcl_event_handler DEFINITION .
PUBLIC SECTION .
METHODS:
*To add new functional buttons to the ALV toolbar
handle_toolbar FOR EVENT toolbar OF cl_gui_alv_grid
IMPORTING e_object e_interactive ,
ENDCLASS.
CLASS lcl_event_handler IMPLEMENTATION .
*Handle Toolbar
METHOD handle_toolbar.
PERFORM handle_toolbar USING e_object e_interactive .
ENDMETHOD .
ENDCLASS.
DATA gr_event_handler TYPE REF TO lcl_event_handler .
*--Creating an instance for the event handler
CREATE OBJECT gr_event_handler .
*--Registering handler methods to handle ALV Grid events
SET HANDLER gr_event_handler->handle_toolbar FOR gr_alvgrid .
Hope this helps.
Thanks,
Balaji -
Custom Button in ALV Grid standard toolbar
Hello Experts,
I am working on the program in which i have to add custom button to standard toolbar in ALV. I have created the button using the method as below
data: lr_functions type ref to cl_salv_functions_list.
lr_functions = gr_table->get_functions( ).
lr_functions->set_default( abap_true ).
data: l_text type string,
l_icon type string.
* l_text = text-b01.
l_icon = icon_complete.
try.
lr_functions->add_function(
name = 'Update Equipment Cost'
icon = l_icon
text = l_text
tooltip = 'Update Equipment Cost'
position = if_salv_c_function_position=>right_of_salv_functions ).
catch cx_salv_existing cx_salv_wrong_call.
endtry.
I don't understand how to add functionality to this button. I want to design the functionality as when user press button then corresponding values on the screen will be automatically get updated in the table.
Thanks,
AvadhutHi Avadhut,
When you want to add a custom button on ALV - better copy the GUI Status of the standard ALV to your program. So all the function codes are copied , now you can go to the GUI_STATUS which is copied and you can mention your own function code or you can let the standard function codes as it is. You can copy the GUI of standard ALV from SE80 transaction. Let me know if you need any assistance in doing it.
Now, if you want to write the code for any of the button on ALV - then you need to handle it is the class.
I used CL_SALV_TABLE - if you are using same then the below code gives you an idea of it.
1. Create a local class in your program
* CLASS lcl_alv_events DEFINITION
CLASS lcl_alv_events DEFINITION FINAL.
PUBLIC SECTION.
METHODS: on_user_command FOR EVENT added_function OF cl_salv_events
IMPORTING e_salv_function.
ENDCLASS. "lcl_alv_events DEFINITION
DATA: gv_event_handler TYPE REF TO lcl_alv_events.
CREATE OBJECT gv_event_handler.
* Header object
CREATE OBJECT gr_header.
2. Class Implementation
CLASS lcl_alv_events IMPLEMENTATION.
METHOD on_user_command.
CASE e_salv_function.
**When PROCESS Button is selected
WHEN '&PROC'. ***> In my program I added Process button and fcode for it - &PROC
***********Write your code here ******************
ENDCASE.
ENDMETHOD.
ENDCLASS. "lcl_alv_events IMPLEMENTATION
3. Calling events
data: gr_events TYPE REF TO cl_salv_events_table,
gr_alv TYPE REF TO cl_salv_table.
TRY.
CALL METHOD cl_salv_table=>factory
IMPORTING
r_salv_table = gr_alv
CHANGING
t_table = p_in_tab[]. ***This is my internal table data.
gr_events = gr_alv->get_event( ).
SET HANDLER gv_event_handler->on_user_command FOR gr_events.
CATCH cx_salv_msg INTO lv_msg. "#EC NO_HANDLER
CATCH cx_salv_not_found INTO lv_excep. "#EC NO_HANDLER
CATCH cx_salv_data_error. "#EC NO_HANDLER
ENDTRY.
Regards,
Rafi -
My Standard toolbar has disappeared
Not only has my Standard toolbar (with the usual Save, Open, etc functions) disappeared from DW8, but I can't seem to restore it.. no method of going to re-select the Standard toolbar works.. it's completely greyed out everywhere. What happened???
What worked for me in Dreamweaver 8 under Vista was:
1. Log in as an administrator.
2. Right-click the Dreamweaver shortcut on the desktop and select "Run as administrator."
3. Create a new document with "File -> New".
4. If the document opens maximized, unmaximize it. This will give the gray dock above the document more space.
5. Right-click on the dock. The selections for the Standard and Document toolbars are no longer grayed out.
It might also work just to select View - Toolbars.
After you re-enable the toolbars under the administrator account, log in to your ordinary user account and launch Dreamweaver normally. The selections for the Standard and Document menus should no longer be grayed out.
I think what is happening is, Dreamweaver stores some of the configuration info for the Standard and Document toolbars under the "Program Files" heirarchy. Your ordinary user account doesn't have write access to "Program Files," which is why the selections are grayed out. Under Vista, even when you are logged in as an administrator you aren't really an administrator and still don't have write access to "Program Files," unless you launch the program by right-clicking on it and selecting "Run as administrator."
Maybe you are looking for
-
Hi I've a few questions on WL RMI that I couldn't figure out from the documentation. Suppose I have a cluster containing Weblogic servers server1 and server2. Server1 hosts an RMI object o1 that is bind to the
-
Hi Guys, I Have The Requirement Like ,I need To Send The Data As A Mail From the ABAP Program,and also i need to set the sender address different from the login-id,how to set the sender address different from login-id..please help with the co
-
How to only edit the Sky within an image?
Hi. I'm trying to fathom how you can, say, change the saturation; brightness;..etc of one particular section of an mage instead of the changes being applied to the entire image. Say, I wanted to tweak the adjustments for only the sky within a landsca
-
Unlocked Tour Internet Problems with ATT
I purchased an Unlocked phone recently, and It makes, and receives text messages and calls perfectly, Im having trouble getting emails and/or browsing the web. The phones carrier is Verizon Wireless and I am using ATT. At the top right hand of the ph
-
Writing thermocoup​le data to measuremen​t file from while loop
Hello, I'm trying to write thermocouple data that has already been filtered into a measurement file. My code works, but has many zero-time entries (probably from the filtering aspect), and some of the non-zero-time entries are even out of sequence (