How can i disable a button in the application tool bar of a standard trans?
Hi Experts,
I want to disable the create button in the application tool bar of the standard transaction cv03n. Is there any method?
Hi,
In the include 'LCV110F19', the GUI is being called for the screen.
This is the actual code being called.
WHEN c_dms_create.
SET PF-STATUS 'D100CREATE'.
SET TITLEBAR 'D100CREATE'.
You can try to code something like below.
DATA: itab TYPE TABLE OF sy-ucomm.
APPEND 'CREATE' TO itab.
SET PF-STATUS 'D100CREATE' EXCLUDING itab.
Kindly reward points by clikcing the star on the left of reply,if it helps.
Similar Messages
-
Display of push button in the application tool bar in an ALV report
Hello everyone,
Query:
Is it possible to display a custom push button in the application tool bar while displaying an ALV report(1st one)?
On pressing this custom push button will I be able to display another ALV report(2nd one) based on the selection made on the current ALV report(1st one)?Hiii..
I have written a sample code for You
<b>"Call the below FunctionModule For Displaying The List
" And see the bolded line in the Below FunctionModule
" STANDARD_02 and USER_COMMAND are the subroutine Names</b>
CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
EXPORTING
I_INTERFACE_CHECK = ' '
I_BYPASSING_BUFFER =
I_BUFFER_ACTIVE = ' '
i_callback_program = sy-repid
<b>i_callback_pf_status_set = 'STANDARD_02'</b>
<b> i_callback_user_command = 'USER_COMMAND '</b>
i_structure_name = 'ZST_SCARR'
is_layout = is_layout
it_fieldcat = gt_fieldcat[]
IT_EXCLUDING =
IT_SPECIAL_GROUPS =
IT_SORT =
IT_FILTER =
is_sel_hide = is_sel_hide
I_DEFAULT = 'X'
I_SAVE = ' '
IS_VARIANT =
it_events = e03_lt_events[]
IT_EVENT_EXIT =
is_print = t
IS_REPREP_ID =
I_SCREEN_START_COLUMN = 0
I_SCREEN_START_LINE = 0
I_SCREEN_END_COLUMN = 0
I_SCREEN_END_LINE = 0
IR_SALV_LIST_ADAPTER =
IT_EXCEPT_QINFO =
I_SUPPRESS_EMPTY_DATA = ABAP_FALSE
IMPORTING
E_EXIT_CAUSED_BY_CALLER =
ES_EXIT_CAUSED_BY_USER =
TABLES
t_outtab = it_scarr
EXCEPTIONS
program_error = 1
OTHERS = 2
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
FORM PF_STATUS_SET
<b>" Here Set A Button In Application Toolbar Using PF- Status</b>
FORM standard_02 USING extab TYPE slis_t_extab.
SET PF-STATUS 'STANDA02' EXCLUDING extab.
ENDFORM. "STANDARD_02
*& Form USER_COMMAND
text
-->R_UCOMM text
-->RS_SELFIELDtext
FORM user_command USING r_ucomm LIKE sy-ucomm
rs_selfield TYPE slis_selfield.
CASE r_ucomm.
<b> "menubutton with functioncode GOTO's Action</b>
WHEN 'GOTO'.
READ TABLE it_scarr INDEX rs_selfield-tabindex. "cursorposit.
IF sy-subrc = 0.
WRITE:/ it_scarr-carrid,
/ it_scarr-carrname.
ENDCASE.
ENDFORM. "USER_COMMAND<b></b>
Hope it helps..
Regards,
Simy -
Push button in the application tool bar in the standard LDB PNP
Hi ABAPERS,
I have a requirement that in the selction screen to use the standard LDB PNP beyond that I need to pass one push button in the selection screen 1000 ( in the application tool bar beside execute button) actually i passes the push button in the gui status but its not refelcting in the output and in the initilization event also i passed even then its noty working,
initialization.
move 'Cluster ID'(010) to sscrfields-functxt_01.
Thanks and Regards,
Deepthi.Pavan,
write code like this
TABLES: USR02, "Logon data
SSCRFIELDS. "FIELDS ON SELECTION SCREENS
STANDARD SELECTION SCREEN FOR SCROLLING LEFT AND RIGHT
SELECTION-SCREEN: FUNCTION KEY 1.
SELECTION-SCREEN begin of BLOCK b1.
PARAMETERs p1 type i.
SELECTION-SCREEN end of BLOCK b1.
INITIALIZATION.
SCREEN ICON LEFT AND RIGHT
SSCRFIELDS-FUNCTXT_01 = 'Button'.
start-OF-SELECTION.
Thanks
Bala Duvvuri -
I would like to control what items appear on the Ask tool bar and in what order they are displayed. In particular, I would like to get rid of the Facebook, YouTube, CNN, and Fun Games buttons which I see on this tool bar.
Please do the following.<br><br>
#In the location bar where you normally type in a web address, type '''about:config''' and hit Enter.<br><br>
#If you see a window which says "This might void your warranty!", click the button which says "I'll be careful, I promise" so you can continue with the next step.<br><br>
#In the filter at the top, type: '''keyword.URL'''<br><br>
#Double click it and remove whatever's in there and replace it with http://www.google.com/search?q= and then click OK.<br><br>
#Close the tab
The URL to add in "keyword.URL" becomes a link in this post, so right click it and choose "Copy Link Location" to copy it to the Windows clipboard. Then hit CTRL+V to paste it. Saves you having to type the whole thing.
'''To reset your home page, do the following'''.<br><br>
* Go to the site you want to set as your homepage.<br><br>
* Click the Firefox button, go to '''Options '''| '''Options '''| '''General'''.<br><br>
* Make sure it says "''Show My Homepage''" in the first dropdown menu.<br><br>
* Click the button called "'''Use Current Pages'''" to set the homepage to the one you have on the screen.<br>
If this suggestion resolves the problem for you, please click the '''Solved it''' button next to this post after you log in into the forum. This will help others searching for a solution to the same problem.
Thanks. -
How to create print button in the Application tool bar in the Std.SAPscreen
Hi,
I want to create a print button in Production order display:header screen in CO03 transaction.In that after Viewer button(i.e. in application tool bar) ,I have to create this print button. Can anyone suggest me How do i need to proceed further?hi,
Use this code..
REPORT Z_TEST999 .
DATA itab TYPE TABLE OF sy-ucomm.
PARAMETERS test(10) TYPE c.
AT SELECTION-SCREEN OUTPUT.
APPEND: 'E' TO itab.
CALL FUNCTION 'RS_SET_SELSCREEN_STATUS'
EXPORTING
p_status = sy-pfkey
TABLES
p_exclude = itab.
Regards,
Sailaja. -
Manually adding a Extra button in the application tool bar of the view cluster.
hello Colleagues ,
I have created a couple of maintenance view , and with this two maintenance view i have created a view cluster using the transaction SE54.
Now, there is default Application toolbar gets generated when a view cluster is created. (screenshot attached.)
Now i have a requirement where i can add another button (syntax Check button in the screenshot 2) in the same view cluster. (screenshot attached.)
Want to know the feasibility of this requirement.
Thanks in advance
Shavneet SinghHello,
Not sure of your exact reqt
But got some sample code to create a button on the toolbar which once clicked gives a new popup window with additional parameters
TABLES:SSCRFIELDS.
**Create the Additional Selection screen to input filename
SELECTION-SCREEN: BEGIN OF SCREEN 10.
PARAMETERS: P_FILE TYPE RLGRAP-FILENAME.
SELECTION-SCREEN: END OF SCREEN 10.
**Create Application Toolbar Button on the Standard selection Screen
SELECTION-SCREEN FUNCTION KEY 1. "Its fcode will be FC01
PARAMETERS : P_WERKS TYPE MARC-WERKS.
INITIALIZATION.
SSCRFIELDS-FUNCTXT_01 = 'Enter File'. "Assign the Text to the Button
AT SELECTION-SCREEN.
CASE SSCRFIELDS-UCOMM. "Check the Fcode
WHEN 'FC01'.
CALL SELECTION-SCREEN 10 STARTING AT 5 8 ENDING AT 85 20.
ENDCASE.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_FILE.
CALL FUNCTION 'F4_FILENAME' "Local file browser
EXPORTING
PROGRAM_NAME = SYST-CPROG
DYNPRO_NUMBER = SYST-DYNNR
FIELD_NAME = 'P_FILE'
IMPORTING
FILE_NAME = P_FILE.
START-OF-SELECTION.
***Your list processing. -
To disable the Application tool bar button in ALV report
Hi Everyone,
Iam using REUSE_ALV_GRID_DISPLAY to display ALV report.
Now my requirement is to disable(I mean grey out) a application tool bar button.
Thanks in advance
Moderator message: please search for available information and try yourself before asking.
locked by: Thomas Zloch on Sep 23, 2010 11:38 AMWe can disable the buttons on the application toolbar as below.
*To Exclude a few buttons from the Application tool bar
data: it_excluding type slis_t_extab.
data: wa_excluding type slis_extab.
wa_excluding-fcode = '&OUP'.
append wa_excluding to it_excluding.
wa_excluding-fcode = '&ILT'.
append wa_excluding to it_excluding.
wa_excluding-fcode = '&ODN'.
append wa_excluding to it_excluding.
and in the FM.....
call function 'REUSE_ALV_GRID_DISPLAY'
exporting
i_callback_program = sy-repid
i_callback_pf_status_set = 'ZPICK'
is_layout = itlayout
i_callback_user_command = 'LIST1'
i_grid_title = <fs>
* i_callback_top_of_page = ' '
it_fieldcat = itfieldcat[]
it_excluding = it_excluding
But,no idea on how to disable the whole application tool bar itself ?
K.Kiran. -
How does one disable a button in the web UI?
How does one disable a button in the web UI? I am trying to disable the edit button in the web UI for Accounts. What are the steps to take in order to accomplish that?
Hi Abdul,
Locate the Toolbar group group for that application. It should be ACC_OIC01 in your case. You can deactivate a specific button (event) under the toolbar group.
Regards,
J.Prabananth -
How to disable or redirect the back button on the browser tool bar
I am creating a web help file for a web based software
application. I am using context sensitive help, when I click on the
help for a topic and close the window, when I click the Back button
on the Internet Tool bar it goes back to the help instead of the
software.Doubleposted: [http://forums.sun.com/thread.jspa?threadID=5379620&tstart=0]. Please continue over there.
Please do not use the back button to edit a message. You're going to repost the message. Just use the message's edit button instead. -
How to disable ikons on the Application tool bar in module pool
Hi Guys,
I am working in module pool.
I had three ikons on the Application tool bar .
i am creating transactions for create,change and display.
for display transaction i want to disable the ikons on the Application tool bar .
Can any one help me in this regard.
Regards
Ram
Message was edited by:
ram kumarHi
go to layout
double click on the button
it will display button properties
in that below u will find 3 tab strips
like
dict program display
click on display
click on check box for invisible
so that will become invisible
reward if usefull -
Push button on the alvgrid tool bar?
how can u place push button on the ALV GRID TOOL BAR?
Hi,
1. create the local class and implement the Toolbar event.
2. within the event to add the new button.
see the below example code.
CLASS LCL_EVENT_HANDLER DEFINITION.
PUBLIC SECTION.
METHODS:
HANDLER_TOOLBAR FOR EVENT TOOLBAR OF CL_GUI_ALV_GRID
IMPORTING E_OBJECT E_INTERACTIVE ,
HANDLER_USER_COMMAND FOR EVENT USER_COMMAND OF CL_GUI_ALV_GRID
IMPORTING E_UCOMM .
ENDCLASS. "lcl_event_handler DEFINITION
CLASS LCL_EVENT_HANDLER IMPLEMENTATION.
Toolbar -----Create 'Add Issue' button
METHOD HANDLER_TOOLBAR.
DATA: L_WA_TOOLBAR TYPE STB_BUTTON. " Toolbar
CLEAR: L_WA_TOOLBAR.
Button Type
L_WA_TOOLBAR-BUTN_TYPE = C_BUTTON_TYPE . " 3.
APPEND L_WA_TOOLBAR TO E_OBJECT->MT_TOOLBAR.
Add Issue Button.
CLEAR: L_WA_TOOLBAR.
L_WA_TOOLBAR-FUNCTION = 'ADD_MI' . " 'ADD_MI' .
L_WA_TOOLBAR-ICON = 'ICON_CREATE'.
L_WA_TOOLBAR-QUICKINFO = 'CREATE' . " 'Add Issue'.
L_WA_TOOLBAR-TEXT = 'CREATE' . " 'Add Issue'.
L_WA_TOOLBAR-DISABLED = ''.
APPEND L_WA_TOOLBAR TO E_OBJECT->MT_TOOLBAR.
CLEAR: L_WA_TOOLBAR.
ENDMETHOD. "handler_toolbar
User Actions Events-- Handle 'Add Issue' Button Click.
METHOD HANDLER_USER_COMMAND.
CASE E_UCOMM.
Add Issue Button.
WHEN C_ADD_MI.
IF NOT G_MATNR IS INITIAL.
FG_REFRESH = C_TRUE.
PERFORM F_ADD_MEDIAISSUE.
ENDIF.
ENDCASE.
Refresh Control
CALL METHOD CL_GUI_CFW=>FLUSH
EXCEPTIONS
CNTL_SYSTEM_ERROR = 1
CNTL_ERROR = 2
OTHERS = 3.
Handle Exceptions
IF SY-SUBRC <> 0.
CASE SY-SUBRC.
WHEN 1.
G_ERROR_TEXT = TEXT-026. " 'Control System Error'.
WHEN 2.
G_ERROR_TEXT = TEXT-027. " 'Control CL_GUI_CFW Has Raised Error'.
ENDCASE.
MESSAGE G_ERROR_TEXT TYPE 'E'.
ENDIF.
Refresh Alv Grid.
PERFORM F_REFRESH_GRID.
ENDMETHOD. "handler_user_command
ENDCLASS. "lcl_event_handler IMPLEMENTATION
Object Ref. Event Class.
DATA: OBJ_EVENT_HANDLER TYPE REF TO LCL_EVENT_HANDLER.
refer the sample program BCALV_GRID_05 in SE38
Reward if found helpful.
Regards,
Boobalan Suburaj -
How can we create save layout option in grid tool bar
hi,
how can we create select layout option in grid tool bar to save my own layout. if any one knows tell me immediately
thanksHi again,
1. We need to do 1 additional thing.
data : GS_variant TYPE DISVARIANT.
GS_variant-REPORT = sy-repid.
2. while calling pass this parameter also.
IS_VARIANT = GS_variant
It will work now.
3. Moreover, I_SAVE has 3 options.
I_SAVE = SPACE
Layouts cannot be saved.
I_SAVE = 'U'
Only user-defined layouts can be saved.
I_SAVE = 'X'
Only global layouts can be saved.
I_SAVE = 'A'
Both user-defined and global layouts can be saved.
regards,
amit m.
Message was edited by: Amit Mittal -
How do I install Flash Player WITHOUT the Google Tool bar ???
How do I install Flash Player WITHOUT the Google Tool bar ???
Download the Adobe Flash Player installer directly by clicking one of the following links.
Flash Player for ActiveX (Internet Explorer)
Flash Player Plug-in (All other browsers)
Bypass the downloader/installer altogether. -
Add bottons on the application tool bar of the standard selection screen
Hi All,
I am having the standard selection screen in module pool programing. I wnat to add the bottons on the application tool bar of the standard selection screen.and hide the existing bottons (like std. execute and i bottons.)instead of these i want to give my won bottons like create and display.
pls help on this.Hi Sridhar,
Try the Code below. It places two buttons on the selection-screen along with the execute button.
TABLES sscrfields.
PARAMETERS: p_carrid TYPE s_carr_id,
p_cityfr TYPE s_from_cit.
SELECTION-SCREEN: FUNCTION KEY 1,
FUNCTION KEY 2.
INITIALIZATION.
sscrfields-functxt_01 = 'LH'.
sscrfields-functxt_02 = 'UA'.
AT SELECTION-SCREEN.
CASE sscrfields-ucomm.
WHEN'FC01'.
p_carrid = 'LH'.
p_cityfr = 'Frankfurt'.
WHEN 'FC02'.
p_carrid = 'UA'.
p_cityfr = 'Chicago'.
ENDCASE.
START-OF-SELECTION.
WRITE / 'START-OF-SELECTION'.
Just go to the table sscrfields to knoe the fields in it. I think this clears the issue.
Regards,
Swapna. -
How can I disable a button ?
Hi!
How can I disable the a button ?
There is a if statement. If it returns a false the button must be disabled.
Regards
sas
Edited by: erdem sas on Jan 15, 2008 3:06 PM
Edited by: erdem sas on Jan 15, 2008 3:16 PMDo it thru its action:
//Deactivate a button disabling its action
//You can see it but clicking it does nothing
wdGetACTION_NAMEAction().setEnabled(false);
//Get it's funcionality back
wdGetACTION_NAMEAction().setEnabled(true);
Or you could hide it using an attribute of type WDVisibility binded to its visible property.
//Hide it
wdContext.currentContextElement.setATTRIBUTE(WDVisibility.NONE);
//and Show it
wdContext.currentContextElement.setATTRIBUTE(WDVisibility.VISIBLE);
Regards.
Julio Herrera.
Maybe you are looking for
-
US AT&T iPhone4 (iOS5) -- use in England with local SIM card?
I will be travelling to England for several weeks. Can I use my US AT&T iPhone4 (iOS5) by purchasing a SIM card from a U.K. based company? Are there any resources on how to do this, and what is the best network (London, Somerset, Cornwall, Kent) Th
-
Better code or better maintenance
A question of semantics. I am working on an application for a client. The application is deployed in the field using access as the DB, and in the office using SQL as the db. The code already exists. I have been tasked with making an improvement in th
-
Data Migration from CRM 4.0 to CRM 2007
Hi experts, we have transaction data to be migrated from CRM 4.0 to 2007, the transactions are having followup transactions, how can we transfer the transactions along with follow up transactions to CRM 2007, can any one share the documents, i know i
-
My screen display settings don't work right
My screen display settings don't work.When i try to set to not sleep it still sleeps.When i set to sleep and show pictures it works for a few mins then sleeps and won't scroll my pics at all just a black screen.Why? Does anyone else have this problem
-
What do I do if I can't remember my security questions?
What should I do?