How to create a new push button in application tool bar in GMGRANT thru BDT
Dear SAP Gurus -
We have a requirement in 'GMGRANT' transaction. We need to create a button in the application tool bar of 'GMGRANT' transaction. Once the button is activated, if the user clicks on the button then it will go to a new screen (external screen). User can input data in to the external sceeen and upon saving, the data will be stored in to a custom table and when user clicks on 'back ' button user should come back to the GMGRANT transaction.
Just wanted to know, how to create / activate a new button on application tool bar of GMGRANT transaction and what are the configuration and detail steps to achieve the same through BDT.
We went through a lot of documents on BDT but do not have a proper solution.
Could you please help.
Thanks in advance.
Regards,
Atul Mohanty
hi,
You can find user-exits (menu exits) to add new menu item.
But, there is no possibility to add new buttons on application tool bar.
Regards,
Sailaja.
Similar Messages
-
How to add push button in application tool bar in SAP transaction VA01
How to add push button in application tool bar in SAP standard transaction VA01 and how to implement the code for that function code.
There is no scope to create a push button in application tool bar. Instead of that we can add in a menu bar.
-
Push buttons on application tool bar , should be changed based on radio but
Hi fndz,
i have 2 radio buttons on selection screen.
depend on the radio button i select , the push buttons on
application tool bar of basic list should be changed.
can u plz help me.
Thanks & Regards
kumarHii..
Parameters : r1 radiobutton group GRP1 ,
r2 radiobutton group GRP1 .
START-OF-SELECTION.
CASE 'X'.
WHEN R1.
SET PF-STATUS 'S1'.
WHEN R2.
SET PF-STATUS 'S2'.
ENDCASE.
Note: if you want to call the Same GUI Status (app toolbar), you can use the syntax
SET PF-STATUS 'S1' EXCLUDING <ITAB>
hope this solves ur issue. -
Icon with push button on application tool bar
hi
how we place icon along with pushbutton on application tool bar on selecteion screen.
thanks in advHi,
you can check the code below for test,
TYPE-POOLS icon.
TABLES sscrfields.
DATA functxt TYPE smp_dyntxt.
Parameters: test(1) TYPE C.
SELECTION-SCREEN: FUNCTION KEY 1.
INITIALIZATION.
functxt-icon_id = ICON_GRAPHICS.
functxt-quickinfo = 'graphics'.
functxt-icon_text = 'Graphics'.
sscrfields-functxt_01 = functxt.
AT SELECTION-SCREEN.
CASE sscrfields-ucomm.
WHEN 'FC01'.
Message 'Button 1 pressed' TYPE 'I'.
WHEN OTHERS.
ENDCASE.
START-OF-SELECTION. -
How to hide button in application tool bar
Hi
There is a standard SAP report. after executing it,
There are 5 buttons in application tool bar .
I want to hide 3 of the buttons,
How can I hide them not by change program.
(Ex, can I use transaction variant).
Best Regards,try to use transaction variant....
Edited by: shan palani on Dec 17, 2008 10:48 AM -
How to add button on application tool bar of standard transaction
Hi All,
Can any one let me know how to ADD the button in on application tool bar of standard transaction by using SHD0 transaction or any other solution.While adding the button I don't want do any code modification.
Thanks,
VijayHI
SHD0 is used to create and maintain Screen and Transaction Variants..
to know more about Screen and trransaction variants click on this link
http://help.sap.com/saphelp_47x200/helpdata/en/67/232037ebf1cc09e10000009b38f889/content.htm
we can create Transaction Variants Using SHD0 Transaction.
Transaction Variants and Screen Variants
Transaction variants can simplify transaction runs as they allow you to:
Preassign values to fields
Hide and change the 'ready for input' status of fields
Hide and change table control column attributes
Hide menu functions
Hide entire screens
In particular, hiding fields in connection with screen compression, and hiding screens, can result in greater clarity and simplicity.
Transaction variants are made up of a sequence of screen variants. The field values and field attributes for the individual screens found in transaction variants are stored in screen variants. Each of these variants is assigned to a specific transaction, can, however, also contain values for screens in other transactions if this is required by transaction flow. The transaction that the variant is assigned to serves as initial transaction when the variant is called.
There are both client-specific and cross-client transaction variants. All screen variants are cross-client, but may be assigned to a client-specific transaction variant.
A namespace exists for cross-client transaction variants and screen variants and both are automatically attached to the Transport Organizer. Client-specific transaction variants must be transported manually.
In principle, transaction and screen variants can be created for all dialog and reporting transactions. There are, however, certain Restrictions that apply to certain transactions, depending on their internal structure.
No transaction variants are possible with transactions already containing preset parameters (parameter transactions and variant transactions). -
How to add button on application tool bar of standard transaction-URGENT
Hi All,
Can any one let me know how to ADD the button in on application tool bar of standard transaction by using SHD0 transaction or any other solution.While adding the button I don't want do any code modification.
Thanks,
VijayHi,
Go through this thread.
Push Buttons on application toolbar.
Regards,
Vani. -
How to add button on application tool bar of standardt ransaction
Hi All,
Can any one let me know how to ADD the button in on application tool bar of standard transaction by using SHD0 transaction or any other solution.While adding the button I don't want do any code modification.
Thanks,
Vijayhttp://help.sap.com/saphelp_nw04/helpdata/en/c8/19762743b111d1896f0000e8322d00/frameset.htm
http://help.sap.com/saphelp_nw04/helpdata/en/83/7a18cbde6e11d195460000e82de14a/frameset.htm
these are the avilable user Exits for the Tcode..C203
XCZD0004 Extend authority check for the material-recipe allocati
CMDI001 Determine explosion control for BOM
CPAU0001 Enhancement for Authorization Check in Task Lists
CPDO0001 Test units of measure for reference operation set
CPRE0001 Enhancement for Reorgnization Checks in Task Lists
Run this Program.. enter the Tcode. u'ii get teh BADI's exist for the Tcode
REPORT Z_FIND_BADI .
TABLES : TSTC,
TADIR,
MODSAPT,
MODACT,
TRDIR,
TFDIR,
ENLFDIR,
SXS_ATTRT ,
TSTCT.
DATA : JTAB LIKE TADIR OCCURS 0 WITH HEADER LINE.
DATA : FIELD1(30).
DATA : V_DEVCLASS LIKE TADIR-DEVCLASS.
PARAMETERS : P_TCODE LIKE TSTC-TCODE,
P_PGMNA LIKE TSTC-PGMNA .
DATA wa_tadir type tadir.
START-OF-SELECTION.
IF NOT P_TCODE IS INITIAL.
SELECT SINGLE * FROM TSTC WHERE TCODE EQ P_TCODE.
ELSEIF NOT P_PGMNA IS INITIAL.
TSTC-PGMNA = P_PGMNA.
ENDIF.
IF SY-SUBRC EQ 0.
SELECT SINGLE * FROM TADIR
WHERE PGMID = 'R3TR'
AND OBJECT = 'PROG'
AND OBJ_NAME = TSTC-PGMNA.
MOVE : TADIR-DEVCLASS TO V_DEVCLASS.
IF SY-SUBRC NE 0.
SELECT SINGLE * FROM TRDIR
WHERE NAME = TSTC-PGMNA.
IF TRDIR-SUBC EQ 'F'.
SELECT SINGLE * FROM TFDIR
WHERE PNAME = TSTC-PGMNA.
SELECT SINGLE * FROM ENLFDIR
WHERE FUNCNAME = TFDIR-FUNCNAME.
SELECT SINGLE * FROM TADIR
WHERE PGMID = 'R3TR'
AND OBJECT = 'FUGR'
AND OBJ_NAME EQ ENLFDIR-AREA.
MOVE : TADIR-DEVCLASS TO V_DEVCLASS.
ENDIF.
ENDIF.
SELECT * FROM TADIR INTO TABLE JTAB
WHERE PGMID = 'R3TR'
AND OBJECT in ('SMOD', 'SXSD')
AND DEVCLASS = V_DEVCLASS.
SELECT SINGLE * FROM TSTCT
WHERE SPRSL EQ SY-LANGU
AND TCODE EQ P_TCODE.
FORMAT COLOR COL_POSITIVE INTENSIFIED OFF.
WRITE:/(19) 'Transaction Code - ',
20(20) P_TCODE,
45(50) TSTCT-TTEXT.
SKIP.
IF NOT JTAB[] IS INITIAL.
WRITE:/(105) SY-ULINE.
FORMAT COLOR COL_HEADING INTENSIFIED ON.
Sorting the internal Table
sort jtab by OBJECT.
data : wf_txt(60) type c,
wf_smod type i ,
wf_badi type i ,
wf_object2(30) type C.
clear : wf_smod, wf_badi , wf_object2.
Get the total SMOD.
LOOP AT JTAB into wa_tadir.
at first.
FORMAT COLOR COL_HEADING INTENSIFIED ON.
WRITE:/1 SY-VLINE,
2 'Enhancement/ Business Add-in',
41 SY-VLINE ,
42 'Description',
105 SY-VLINE.
WRITE:/(105) SY-ULINE.
endat.
clear wf_txt.
at new object.
if wa_tadir-object = 'SMOD'.
wf_object2 = 'Enhancement' .
elseif wa_tadir-object = 'SXSD'.
wf_object2 = ' Business Add-in'.
endif.
FORMAT COLOR COL_GROUP INTENSIFIED ON.
WRITE:/1 SY-VLINE,
2 wf_object2,
105 SY-VLINE.
endat.
case wa_tadir-object.
when 'SMOD'.
wf_smod = wf_smod + 1.
SELECT SINGLE MODTEXT into wf_txt
FROM MODSAPT
WHERE SPRSL = SY-LANGU
AND NAME = wa_tadir-OBJ_NAME.
FORMAT COLOR COL_NORMAL INTENSIFIED OFF.
when 'SXSD'.
For BADis
wf_badi = wf_badi + 1 .
select single TEXT into wf_txt
from SXS_ATTRT
where sprsl = sy-langu
and EXIT_NAME = wa_tadir-OBJ_NAME.
FORMAT COLOR COL_NORMAL INTENSIFIED ON.
endcase.
WRITE:/1 SY-VLINE,
2 wa_tadir-OBJ_NAME hotspot on,
41 SY-VLINE ,
42 wf_txt,
105 SY-VLINE.
AT END OF object.
write : /(105) sy-ULINE.
ENDAT.
ENDLOOP.
WRITE:/(105) SY-ULINE.
SKIP.
FORMAT COLOR COL_TOTAL INTENSIFIED ON.
WRITE:/ 'No.of Exits:' , wf_smod.
WRITE:/ 'No.of BADis:' , wf_badi.
ELSE.
FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
WRITE:/(105) 'No userexits or BADis exist'.
ENDIF.
ELSE.
FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
WRITE:/(105) 'Transaction does not exist'.
ENDIF.
AT LINE-SELECTION.
data : wf_object type tadir-object.
clear wf_object.
GET CURSOR FIELD FIELD1.
CHECK FIELD1(8) EQ 'WA_TADIR'.
read table jtab with key obj_name = sy-lisel+1(20).
move jtab-object to wf_object.
case wf_object.
when 'SMOD'.
SET PARAMETER ID 'MON' FIELD SY-LISEL+1(10).
CALL TRANSACTION 'SMOD' AND SKIP FIRST SCREEN.
when 'SXSD'.
SET PARAMETER ID 'EXN' FIELD SY-LISEL+1(20).
CALL TRANSACTION 'SE18' AND SKIP FIRST SCREEN.
endcase.
Please give me reward points... -
Regarding list display + button on application tool bar
Hi guru's
I have a requirement like i need to select one particular record in the list display and prees on the button which is placed on the application tool bar.Then i should get one more screen where i can enter some details.
As per my knowledge it is possible only in grid display.
Kindly let me know if it is possible.
It would be great help if sample coding is provided.Hi Ajay,
You can do this in alv list display also.
Copy the standard gui status in ur program using tcode SE51->user interface>copy->target prog name.activate it
and add a button there.Use FM <b>'REUSE_ALV_EVENTS_GET'</b> to get user-command event.
sample code :
form Z8_EVENTCAT using p_i_eventcat TYPE SLIS_T_EVENT.
DATA : L_EVENT TYPE SLIS_ALV_EVENT.
FOR GETTING ALL 17 EVENTS
CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
EXPORTING
I_LIST_TYPE = 0
IMPORTING
ET_EVENTS = P_I_EVENTCAT
EXCEPTIONS
LIST_TYPE_WRONG = 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.
CLEAR L_EVENT.
READ TABLE P_I_EVENTCAT WITH KEY NAME = SLIS_EV_PF_STATUS_SET INTO L_EVENT.
IF SY-SUBRC = 0.
MOVE 'Z8_PF_STATUS' TO L_EVENT-FORM.
APPEND L_EVENT TO P_I_EVENTCAT.
ENDIF.
CLEAR L_EVENT.
READ TABLE P_I_EVENTCAT WITH KEY NAME = SLIS_EV_USER_COMMAND INTO L_EVENT.
IF SY-SUBRC = 0.
MOVE 'Z8_USER_COMMAND' TO L_EVENT-FORM.
APPEND L_EVENT TO P_I_EVENTCAT.
ENDIF.
form Z_MENU using p_extab type slis_t_extab.
SET PF-STATUS 'MENU_LIST'.
endform. " Z_MENU
form z8_user_command using p_ucomm type sy-ucomm
p_selfield type slis_selfield.
case p_ucomm.
WHEN '&IC1'.
call screen 100.
endcase
endform.
Reward points if helpful.
Regards,
Hemant -
Open dialog box at the press of push button in alv tool bar
Hi team,
I have created alv report displaying field contents.mean while i have created one pushbutton in toolbar at the alv report output for downloading the data into CSV Format.
The requirement is ,At the push of the button, a standard download dialog box should open for download to local computer. The path and file name from the initial screen should be defaulted, but possible to update on the dialog box.
please suggest me how to create download dialog box with field as file path where i can edit the defaulted file path.
please let me know,how can i go ahead and satisfy the reuirement or share me piece of code if you have.
Thanks And Regards,
Sakti.After the user Command you can use
* Display save dialog window
CALL METHOD cl_gui_frontend_services=>file_save_dialog
EXPORTING
* window_title = ' Filenema'
default_extension = 'TXT'
default_file_name = 'data'
initial_directory = 'c:\temp\'
CHANGING
filename = ld_filename
path = ld_path
fullpath = ld_fullpath
user_action = ld_result.
p_file = ld_fullpath. -
I had an existing laters 3 point whatever version of Firefox and recently upgraded to Firefox 10. This new version still has the old toolbar across the top, but there is no "Firefox button" which one has to use to activate certain action such as "private browsing." Is there anyway I can install the button on the toolbar, or is there a way to change to the new version 10 interface which includes the Firefox Button. I would prefer the former (the old configuration with the tool bar on top, but if that cannot be done, how to I migrate to the new configuration which apparently puts the tools on the side, if I'm not mistaken.
Thanks for any help you can provide. I have Windows XP.If you have the old fashioned toolbar, you can still go into Private browsing by clicking Tools, then "Start Private Browsing". All the options that are in the Firefox button are in the old style toolbar, just maybe a little more hidden.
To enable te Firefox button, go into View, then Toolbars, then uncheck "Menu Bar". You should have the Firefox button. -
How do I add a print button to the tool bar?
When I open the menu there is not a "print" button to add to the tool bar. Even under customize there is not a "print" button. How do I print from mozilla?
The Print button in the "3-bar" Firefox menu button drop-down list opens the Print Preview window.
You can click the Print button in the Print Preview window or use the Print item in the File menu (File > Print) or use the Ctrl+P shortcut to have access to the print selection item and other print setup options.
You can look at this extension:
*Universal Print: https://addons.mozilla.org/firefox/addon/universal-print/
There are other things that need attention.
Your System Details list shows that you have a user.js file in the profile folder to initialize prefs each time Firefox starts.
The user.js file is only present if you or other software has created this file and normally it wouldn't be there.
You can check its content with a plain text editor (right-click: "Open with"; do not double-click).
The user.js file is read each time Firefox is started and initializes preferences to the value specified in this file, so preferences set via user.js can only be changed temporarily for the current session.
You can delete the user.js file if you didn't create this file yourself.
*http://kb.mozillazine.org/Preferences_not_saved -
Custom button in alv and disabling all buttons in application tool bar
Experts,
Could you please help me for the below requirements.
1). How to disable all the buttons (like sorting, print, find, set filter...etc.) in tool bar using oops?
2). Where can I add my custom download button in alv report using oops?
Thanks in advance...
Sridhar..Step1:
Create on local class
Class <LCL_EVENT_RECEIVER> Definition
Define the below public methods.
Method Name HANDLE_TOOLBAR
Event Name TOOLBAR
Event Class CL_GUI_ALV_GRID
Importing E_OBJECT, E_INTERACTIVE
Method Name HANDLE_USER_COMMAND
Event Name USER_COMMAND
Event Class CL_GUI_ALV_GRID
Importing E_UCOMM
Class <LCL_EVENT_RECEIVER> Implementation
. Method HANDLE_TOOLBAR
Declare the structure <LS_TOOLBAR> of structure type STB_BUTTON
Append the button information as given below into table E_OBJECT->MT_TOOLBAR to display the custom button on ALV grid.
LS_TOOLBAR-FUNCTION = u2018DOWNu2019
LS_TOOLBAR-QUICKINFO = u2018downloadu2019
LS_TOOLBAR-TEXT = u2018downloadu2019
Method HANDLE_USER_COMMAND
In this method if E_UCOMM = u2018DOWNu2019 write your logic.
Step2:
1. To excluding the ALV grid buttons, fill the <LT_EXC> with function code CL_GUI_ALV_GRID=>MC_FC_EXCL_ALL
2. To generate the ALV Grid, call the method SET_TABLE_FOR_FIRST_DISPLAY
Class CL_GUI_ALV_GRID
Method Name SET_TABLE_FOR_FIRST_DISPLAY
Exporting
I_STRUCTURE_NAME ZDS_CM_EXT_SEL
LS_LAYOUT <LS_LAYOUT>
IT_TOOLBAR_EXCLUDING <LT_EXC>
Changing
IT_OUTTAB <GT_EXT_SEL>
Create the Instance for class <LCL_EVENT_RECEIVER>
Class <LCL_EVENT_RECEIVER>
Instance Name <LO_EVENT_FNAME>
Now set handler <HANDLE_USER_COMMAND> and <HANDLE_TOOLBAR_FNAME> events using instance <LO_EVENT_FNAME>
Call method 'SET_TOOLBAR_INTERACTIVE' to raise event TOOLBAR
Class CL_GUI_ALV_GRID
Instance Name <GO_GRID>
Method Name SET_TOOLBAR_INTERACTIVE -
How to create array of push button 288 ch in the PXI 6509 (3pcs)
Hi all,
Need help..
I'm beginner in labview. & its first time use NI to my project.
We need push buttom approx 288 ch as panel control. we use PXI 6509 (3 pcs)
& I have make a code (in the attach).
but some time appear like a bug if we push one button after push all button. but some time is ok.
Please correct the code.
Many thanks..
Solved!
Go to Solution.It seems to work okay for me. What do you mean by "sometimes appear like a bug"? How is it not behaving like you want.
Some recommendations:
1. There is no logical reason for the feedback node on some of your error wires.
2. You might want to turn some of your groups of buttons into a cluster. That way you can work on the value change of a cluster and not have to set up 100's of value changes for the individual controls. You would also be abe to easily use cluster to array to turn your cluster of booleans into array of booleans rather than building arrays by manually wiring up 100's of controls. -
How to create icon on Push button
Hai All
I have a button, when the user press the button i will display the calander. So now i need to place a small calander picture in that so Pls tell me the steps to create a iconic button.
Pls explain me the steps...
Any Help is highly appricatable
regards
Srikkanth.M
Edited by: Srikkanth.M on Apr 28, 2010 11:00 AMHi,
you have to create a jar file of the pic and have to place it in java folder .
Also have to edit cfg file in server folder .in that you have to include the jar file name in parameter archive_jini =
iconic property of button should set yes
give the name of jar file without any extension( suppose list.jar you just give list ) in the iconic name property
cheers
Rinz
Maybe you are looking for
-
I go settings then store to sign in but I can't sign because it says my apple id has not yet been used before the iTunes store? That's why I cant download apps?
-
[Solved] X won't start on Acer Aspire V3-551G-8454 fresh install
I'm not exactly sure if this is a problem with the switchable graphics, but X has so far failed to start every time. This is a new install, so I haven't gotten X to open even once before on this laptop. The errors I get in Xorg.0.log: (EE) fglrx(0):
-
How do I find and delete unauthorized songs from my computer?
How do I find and delete unauthorized songs from my computer?
-
Where can I find captivate 6 trial to download
I have upgrade captivate form 4 to 7, to my superise 7 couldn't see captivate 4 files as I were told I need captivate 5.5 or 6 to convert the file, so I went to find to my superise again I couldn't find one in Adobe web site, so please help where can
-
Open TextEdit with right-click
Hello, I don't know if this is the right place to post my question. I'm still attempting to make the transition from Win to Mac and I'm looking for a simple way to create a text document while browsing my hard drive. In windows it was just right-clic