Disable Head Menu In GUI STATUS
Hello everyone,
i have a gui-status that has a menu (with several options within it) and application toolbar.
Im looking for a way to disable/remove the menu only , I know that the options within it can be disabled using EXCLUDE fcode but the menu header (The name we press is not assigned to an fcode apparently and thus cannot be disabled using the exclude option.
thanks in advance,
Eli Erenburg, Israeli Navy
Hi,
Actually there is no need to SET PF-STATUS in PAI in WHEN 'SWITCH' code as once it goes to PBO module it will again set PF-STATUS EXCLUDING 'SAVE' all the time.
So you have to change the PBO Module logic as follows,
MODULE PBO OUTPUT.
IF <your condition>.
SET PF-STATUS 'GS_100'.
ELSE.
SET PF-STATUS 'GS_100' EXCLUDING 'SAVE'.
ENDIF.
ENDMODULE.
and then remove the SET PF-STATUS statements from
SWITCH_EDIT_MODE subroutine..
Best way is to set a flag (a global variable) in SWITCH_EDIT_MODE and use it in PBO instead of go_grid->is_ready_for_input..
Some thing like the following,
in your SWITCH_EDIT_MODE routine,
IF gv_edit EQ 'X'.
CLEAR gv_edit.
****other code here to disable grid
ELSE.
gv_edit = 'X'.
****other code here to enable grid
ENDIF.
In your PBO module,
MODULE PBO OUTPUT.
IF gv_edit EQ space.
SET PF-STATUS 'GS_100'.
ELSE.
SET PF-STATUS 'GS_100' EXCLUDING 'SAVE'.
ENDIF.
ENDMODULE.
Hope this helps..
Regards
Similar Messages
-
Can menu bar use variants instead of hard coding in GUI Status?
Hi Experts,
I am trying to select data into a variant from one table. This variant will be used for text in Menu Bar of GUI Status. I used to hard coding in Menu Bar. Is it possible for variants instead of hard coding in Menu Bar?
If not, any flexible way is also welcomed. Thanks for any reply and help!
Regards,
YingHi,
Please refer following link.
http://help.sap.com/saphelp_nw70/helpdata/en/c0/980389e58611d194cc00a0c94260a5/content.htm
How to create variant for csutom screen
New transaction - require variant selection to be disabled
This may help you.
Regards,
Renuka. -
DISABLE button(FCODE) from the GUI-Status
Hi people,
Can anyone help me out with this... I need to manipulate the PF-STATUS and 'DISABLE' some of the buttons. I am already using the
'SET PF-STATUS 'STATUS_100' EXCLUDING lt_off_commands.' but instead of hiding the buttons I would rather diable them so that they are visible on the toolbar but could not be used.
TIA,
ZAMHello ZAM,
There's a standard way to do that. When you Create / Edit a GUI status in the Menu Painter, you can choose whether you want the disabled function codes to be hidden or to be displayed as grayed out.
Follow the menu path <i><b>Goto>Attributes>Pushbutton Assignment</b></i>. You will get a pop-up with three options. The default option is <i><b>Hide all</b></i>. Just choose <i><b>Display all</b></i> on this pop-up and activate the GUI status. Your functionality is achieved.
If this helps, please reward the points and close the thread. Otherwise, please get back with the problem you might be facing in doing so.
Regards,
Anand Mandalika. -
How to put separator lines in menu items in a gui status ?
Hi,
I have created gui status for my z transaction
I need the separator lines in the menu items like it is seen in std transactions
For example, in any screen , in the Help menu, we can see the following.
Application Help
SAP Library
Glossary
(line)
Release notes
(line)
SAP Service Marketplace
could you please help me how to put the lines ?
thanksHi,
Goto Your GUI status.click on your MENU bar.
under the menu bar you will have your own menu items.
where ever you want separator line do the following way.
you will have 2 columns under menu bar
1) code
2) text.
under code dont put anything.
but under text column you put dashes and enter or select right click there and choose separator line.
you will get separator line.
activate and run the ztcode.you will get .
code text
Application Help
SAP Library
Glossary
Release notes
SAP Service Marketplace
Thanks
Parvathi -
Creating GUI status menu - some entries are seen in red
hi
while creating menus in gui status, some entries are seen in red
why these are in red, i dont know the reason
cud u please help ?
thanksHi,
These are inactive functions. You can toggle them to Active/Inactive with the menu painter function F7.
Regards,
Jamie -
For GUI status in Transaction SE41 to remove menu bar.
Hi all,
I want to remove menu bar in se41 so that i can have a pop-up display with out menu bar. can anybody please suggest me ASAP.
Rewards to all.
Thanks,
Arthi.Hi Arthi..
While creating a GUI Status in SE41
<b>Select the Status type as : DIALOG BOX (instead of Normal Screen)</b>This will Create the GUI status without Menu bar as per popup diaolgs.
<b>Reward if Helpful.</b> -
GUI-status disable button?
Hi,
How to disable an button on my gui-status MAIN?
tnx.Hi,
You can use the following command:
DATA: it_buttons TYPE STANDARD TABLE OF sy-ucomm,
wa_buttons TYPE sy-ucomm.
wa_buttons = 'SAVE'.
APPEND wa_buttons TO it_buttons.
SET PF-STATUS 'ABC' EXCLUDING it_buttons.
Screen will have the button disabled having F-CODE 'SAVE'.
Regards,
Kunjal -
Disabling the function keys in GUI status
Hi Experts,
I want to disable/hide the function keys in the gui status based on some condition in a module pool.Please tell me how to achieve that.
Regds
AbbhishekHi Abhishek,
Please check the follwoing links to enable/disable function keys in module pool.
[http://www.saptechies.com/pf-status/|http://www.saptechies.com/pf-status/]
[http://www.sap-img.com/abap/common-used-of-dialog-screen-for-display-change-delete.htm|http://www.sap-img.com/abap/common-used-of-dialog-screen-for-display-change-delete.htm]
[http://sapabap.iespana.es/sap/tips/dinamically_set_pfstatus.htm|http://sapabap.iespana.es/sap/tips/dinamically_set_pfstatus.htm] -
Creating a cascading menu button an a GUI status
I have a GUI status on a normal screen (NOT on an ALV grid). On this status I have added 3 function buttons (SEARCH, CREATE, MANAGE). I want to add a 4th button that appears and acts like a cascading menu button. An example of what I want the button to look like is similar to what you would see on the standard 'Change Layout' button on an ALV Grid. I am not using an ALV grid, though - but I'm trying to get a button on the GUI status to act like that - where you click on it and you see multiple options such as Display, Edit, Copy.
I don't want to add this to my MENU bar. I'm trying to add it to my APPLICATION bar. If anyone has ever done this, please let me know how you did it.
Thank you for any helpful information.
-P. FoleyI think that is done with the "toolbar" control so it will be in the screen, not on the application bar... have a look at SAPTOOLBAR_DEMO1, and the CTMENU_* programs, plus
http://help.sap.com/saphelp_sm32/helpdata/en/8f/bcc23657ad0730e10000009b38f839/frameset.htm
for more info on this, if it is the style you want.
Or perhaps look at Generic Object Services to add a button between the application bar and below the menu (as in ME23N, FB03 etc)
Jonathan -
Hello,
I made some researchs and asked some colleagues but I have a problem. I would like to disable a gui status button (to grey it out),
I used this:
SET PF-STATUS 'STATUS_0200' EXCLUDING lt_fcode.
adding the name of my button but the only thing it does is making it disappeared (It is a toggle button between modify and display).
Is there any suggestions to just grey out the button and not removing it?
Thank you!Nabheet: I want the toggle button to be disabled on the screen.
anurodh_t: I want to disable it on specific occasions because I am giving access, by authority check, to some people only to use it. The reason why I want to keep the button shown is because I want people to know that, yes, it is indeed possible to modify the fields in my screen but no, they can't do it because they don't have access. Making it disappear would only show, to my opinion, that the possibility might not even exist. Though, someone with the access will have that same button enabled, of course. That is why I want it grey out when not having access. To answer your second questions, I unfortunately haven't seen it yet. Though, I thought it was because of my young experience in SAP (I started at beginning of september).
Thank you for giving me some feedback and I'm sorry if my explanation wasn't clear enough. If I forgot to give important details, please, let me know. Like I said, I am still young on SAP so sometimes, I am not always sure what is important to know or not
Take care! -
Disable User Menu button is LSMW
Hi everyone,
can any one please tell me how to disable "User Menu" button in lsmw transaction.I took a look at the program, and it does not use any kind of customizing to build the gui-status. So, in other words, you can not turn it off using config. You may be able to do it useing a screen variant. Check out transaction SHD0.
Regards,
Rich Heilman -
Any ideas for GUI status manipulation?
Hi All,
I have a requirement with me, which I'm not able to figure out how to achieve. Here goes:
There's a transaction in ERP system (CO11N) which was originally not designed (it seems) to be used with CALL TRANSACTION kind of way. But now a requirement is to call it that way... I guess I can do that anyway by passing the SET PARAMETER for the key input fields...
But there's also another requirement that when calling the transaction this way, make sure two of the application toolbar buttons should be disabled. And they should be enabled when the transaction is called directly from the command bar (as /nCO11N).
I don't have any set/get parameters to check for and disable/enable the GUI status Fcodes with it...
Can someone please give me some pointers as to how this can be achieved?
Thanks in advance!
Mithun.Hello Jonathan,
Thanks a lot for the quick tip.
I thought of this technique as well... But then figured that using this 'export to memory' technique is not a very recommended way...
Thus I want to keep this way as a last resort for the time being... But would like to know if there is any better way to achieve the same effect without using the shared memory sort of technique. -
OSS Note 1401249 - Issue in GUI status
Hi ,
As per 1401249 Note instructions, i need to add a new push button 'Display Income Levy Data', in the standard report HIECILC0 .
In SE41 , I am giving the program name HIECILC0 and Status 'ALV', when I click on Change button, I see 'Modify Status ALV in program HIECILC0' , where as in the Note instructions screen shot it is given as 'Maintain Status ALV in program HIECILC0'.
Have anyone faced this issue before, why is it 'Modify Status ALV in program HIECILC0' instead of 'Maintain Status ALV in program HIECILC0'.
I am not able follow the same steps given in the Note instruction because of this issue.
Please let me know how to proceed with this.Hi ,
The below thread resolved the issue.
Can't modify a gui Status
In SE41 Menu path: Edit -> Modification Operations -> Swich off assistant
Thanks -
Problem in GUI status of ALV Grid
Hello All Experts,
I have a following issue.
Am displaying a report using REUSE_ALV_GRID_DISPLAY. I have copied the GUI status from standard GUI STANDARD_FULLSCREEN. Now when i dispaly the report i get select all ICON just before my first column(Marked in red below). i do not need this icon, i have checked in my GUI status also this icon does not exist. can you please help me how to remove this icon.
This is how i have declared the field catalog for my first column.
fieldcatalog-fieldname = text-013.
fieldcatalog-seltext_m = text-014.
fieldcatalog-col_pos = 0.
fieldcatalog-outputlen = 3.
fieldcatalog-emphasize = gc_x.
fieldcatalog-key = gc_x.
fieldcatalog-checkbox = gc_x.
fieldcatalog-edit = gc_x.
APPEND fieldcatalog TO fieldcatalog.
CLEAR fieldcatalog.
Am really thankful to your resposes.
Regards,
Satishi tested with
REUSE_ALV_GRID_DISPLAY and it works fine as you want
report ztestalv.
type-pools:
slis.
data:
i_usr02 type table of usr02,
afield type slis_fieldcat_alv,
sp_group type slis_sp_group_alv,
t_listheader type slis_t_listheader with header line,
t_layout type slis_layout_alv,
t_fieldcat type slis_t_fieldcat_alv,
t_spec_groups type slis_t_sp_group_alv,
event type slis_alv_event,
t_events type slis_t_event,
g_variant like disvariant,
gx_variant like disvariant,
g_exit(1) type c,
g_save(1) type c,
g_repid like sy-repid,
msgtyp like sy-msgty,
lt_dynpread like dynpread occurs 1 with header line.
start-of-selection.
select * from usr02 into table i_usr02
up to 200 rows.
end-of-selection.
t_layout-detail_initial_lines = 'X'.
t_layout-detail_popup = 'X'.
t_layout-f2code = 'PIC1'.
t_layout-get_selinfos = 'X'.
t_layout-group_change_edit = 'X'.
call function 'REUSE_ALV_FIELDCATALOG_MERGE'
exporting
i_structure_name = 'USR02'
changing
ct_fieldcat = t_fieldcat
exceptions
others = 4.
call function 'REUSE_ALV_GRID_DISPLAY'
exporting
i_callback_program = 'ZTESTALV'
i_callback_pf_status_set = 'SET_PF_STATUS'
i_callback_user_command = 'USR_CMD'
i_structure_name = 'USR02'
is_layout = t_layout
it_fieldcat = t_fieldcat
it_special_groups = t_spec_groups
i_default = 'X'
i_save = g_save
is_variant = g_variant
it_events = t_events
tables
t_outtab = i_usr02
exceptions
program_error = 1
others = 2.
make sure your field ls_layout-box_fieldname is blank, as you using the checkbox -
Hello everyone.
Is there a way to change the GUI status guy status of a logical database?
thank you in advance.Hi Ebaristo,
REPORT demo_sel_screen_status .
DATA itab TYPE TABLE OF sy-ucomm.
PARAMETERS test(10) TYPE c.
AT SELECTION-SCREEN OUTPUT.
APPEND: 'PRIN' TO itab,
'SPOS' TO itab.
CALL FUNCTION 'RS_SET_SELSCREEN_STATUS'
EXPORTING
p_status = sy-pfkey
TABLES
p_exclude = itab.
In this example program, the two functions Print and Save as Variant are disabled. You can find the function codes of the default GUI status in the field GUI Status which you can display by choosing System u2192 Status.
[http://help.sap.com/abapdocu_702/en/abenselection_screen_overview.htm]
Maybe you are looking for
-
DBMS_XMLSave issues with different databases
This is a brainteaser... I have set up a couple of stored procedures in a package that inser / update and delete values in a database table using the DBMS_XMLSave functions as per the article 'Using XML-SQL Utility (XSU), 24 of 26' and re-use the con
-
Adobe Illustrator Will Not Startl
So...I don't know what's going on. Last night I was using Illustrator CS2 just fine and dandy. Took my computer to work with me as I usually do...used it throughout the day like I usually do...then when I got home I proceeded to get open Adobe Illust
-
Is downloading OS X Mavericks a good idea for my mac book pro?
I have heard alot of controversial information about downloading OS X Mavericks. Ideally I would like to download it but I am afraid of losing everything on my macbook. Should I download it anyways? or not? or back up my mac and then download? if so,
-
Why does my IPhoto 09 not start immediately in Lion?
Whenever I load Iphoto09 , it goes through a 'thinking' time of about three to four minutes before it becomes useable. The program looks ready to use but when I move my mouse over it, the program is non reactive (rainbow circle). In Snow Leopard, the
-
Will the 2.0 GHz processor version be able to handle editing/exporting high-quality videos?