| Purpose |
With Pushbutton you can create your own
pushbuttons within an R/3 screen or within the toolbar.
You can make both the menu functions and the navigation
to other transactions directly accessible with your own
pushbuttons. |
| Example |
Pushbutton
(10,50) "Split
Screen Editor" "SCMP"You create a
pushbutton at row 10,
column 50 with
text Split
Screen Editor. Clicking on the button
invokes the internal code SCMP which then starts
the Split Screen Editor.
|
| Internal
codes |
How do I find the internal codes?
Choose the desired function in
the transaction menu and press F1 while
the mouse cursor points to this function. Now the R/3
system displays the internal function code in a pop-up
window |
| Format |
- Pushbutton
(row,column)
"Pushbutton
text" "FCode" Process="..."
Adds a
pushbutton on position (row,column). The
pushbutton invokes the internal code FCode. This can be
a code from the menu, e.g. SCMP, or a transaction
code like
/NFB01 or
/OMM02.
Process="..."
relates to the InputScript file. You can omit the
"fcode" parameter if
only "Enter" is
needed in order to continue with the transaction.
- Pushbutton
(Toolbar) "Pushbutton
text" "FCode"
Adds a
pushbutton in the application toolbar. A free function key is assigned automatically and
displayed in the quickinfo.
- Pushbutton
(Toolbar) "Pushbutton
text" "FCode" "Fkey"
Optionally
you can specify a function key of your choice as
an additional parameter Fkey using the
format F1,..F12, Shift+F1,...,Shift+F12,
Ctrl+F1,...,Ctrl+F12,
Shift+Ctrl+F1,...,Shift+Ctrl+F12. If
this function key is already in use the system
chooses the next available number.
example: Shift+F5 -> F17, F3 ->
F3
|
| Icon and quickinfo |
You can also display an icon
and a quickinfo. Use the following SAP notation: Pushbutton
(position) "@id\Qquickinfo@text"
Here id is the short name of
an SAP icon, quickinfo is the quickinfo string and text is the pushbutton text. You will find a list of all
R/3 icons in transaction ICON, and a list of all icon
short names in the ABAP program <ICON> (Transaction
SE38, enter the program name <ICON> and press the
Display button).
Please read also Tip 24 Choosing an icon.
Example:
Pushbutton
(10,50) "@3G\QInvoke
the Split Screen Editor@Split
Screen" "SCMP"
|
| Options |
| Size=x |
The
pushbutton is displayed in a larger size (x
rows). The default size is 1, maximum 99. |
| Size=(x,y) |
The
pushbutton is displayed in a larger size (x rows and y columns). |
| -separator |
In conjunction with
(Toolbar). The pushbutton is separated from
the existing ones by a small vertical line. |
|
Tips
& Tricks |
- You can
delete pushbuttons from the toolbar using del
[Pushbutton text]
- You can
add a quickinfo to an existing pushbutton using Tip
[Pushbutton text]
"Quickinfo".
- New
pushbuttons in the toolbar are added on the right
hand side. They are also displayed in the
function key overview window (right mouse
button); here the order corresponds to the
assigned function keys.
- Tips&Tricks for beginners can be found in GuiXT tutorial 2 Define own pushbuttons .
|