Standard Toolbar
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 K
HI 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.
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.
-
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.
-
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." -
Activating and deactivating icons in the Standard toolbar
Hi expects,
I want to activate the printing icon on my standard toolbar cause it is greyed out. How can I achieve that?Hi
U need to assign an OK-CODE to print icon in the toolbar, but if it's a standard one, it means to change a standard object.
Then u should considere after activing it u need to implement the abap code to manage it
Max -
MODIFYING THE STANDARD TOOLBAR
HI,
How can I modify the standard toolbar buttons? is this contained in the mmb or a different file?
thanksHello,
<p>Download the corresponding .mmb files:<br>
menudef.mmb<br>
menudefs.mmb<br>
Then you can open them in the menu editor and apply the changes needed.</p>
Francois -
Search and search next in standard toolbar
Hi Everyone,
In my screen, I have a standard toolbar with these button search and search next.
There are 2 grids and 2 frames in my screen.
When i press the search button it has to search for a given in the entire screen - which has the grids and the frames with some input fields, checkboxes and radiobuttons.
How can I implement this is there any function module?
Any help on this will be greatly appreciated.
Thanks in advance.
Prabs.Hi Rich,
There must be some fm to find for a given string in the entire screen.
I know there are individual find buttons for the grid. But my requirement is to find for given string in the entire screen which has the frames with input fields and grids.
This find button is common button which is in the standard toolbar.
I think now you got my point.
thanks,
Prabs.
Maybe you are looking for
-
Hi, I open a dialog box using the following: CALL METHOD lo_fpm->OPEN_DIALOG_BOX EXPORTING IV_DIALOG_BOX_ID = 'SEARCH_XX'. I want to know how this dialog box can opened in full screen mode. Thanks, Rohit.
-
I have a small chat application passing sockets to seperate threads. The application is set to be a daemon thread so I can close the application that launches it. I added small checks throughout the application to see the number of active threads. Th
-
My daughter pressed a pop up on her ipod touch that she is now receiving my texts/imessages meant for my iphone. I still receive my texts/messages, but she is receiving them as well. I believe somehow my phone number is now affiliated to her ipod to
-
How to resolve a Lenovo PC that will not pass the Lenovo Splash screen with no access to Windows
Here is my problem and here is the solution!!! My B540 Ideacentre would not pass the Lenovo splash screen. The only operational keys I had was F1 (BIOS) and F12 (BIOS options). F2 went to a light blue screen so no chance of even a one key recovery. W
-
Handoff not supported, but it should! MacMini mid2011???
Hi, I tried to set up the handoff on a mac mini mid2011, and not works. The syspref does not show the checkbox. there is an iPad and an iPhone paired, both has ios 8.1, and handoff and continuity enabled (the SMS-es shared perfectly, icloud drive wor