How to create button in application toolbar in sap standard tcode va03
Hi Gurus,
I want to create a button in the application tool bar of a sap standard tcode : va03.
Can some one help me with this..!
Best Regards,
Navin Fernandes.
Edited by: NAVIN FERNANDES on Aug 12, 2010 10:02 AM
Edited by: NAVIN FERNANDES on Aug 12, 2010 10:07 AM
Go to the coresponding PF status and edit using modification assistant.
http://help.sap.com/saphelp_nw04/helpdata/en/c8/19762743b111d1896f0000e8322d00/frameset.htm
http://help.sap.com/saphelp_nw04/helpdata/en/83/7a18cbde6e11d195460000e82de14a/frameset.htm
Regards,
Nikhil
Similar Messages
-
How to make buttons in application toolbar enable and disable
Hi ,
I have to shaow the buttons in application toolbar enable or disable dynamically , pls helpCheck syntax of SET PF-STATUS status EXCLUDING fcode in online help...
Regards,
Raymond -
How to Add button in Application Toolbar for Fb01(screen) Transaction
Hi All,
I need to Add a customized Button at Application toolbar for FB01 Tcode for standard screen.
I am unaware of this,please take it as an urgent issue and help me with your inputs.
Points will be given.
Thanks,
RameshOn which screen (in which standard status ?) to do what ?
You could try to bypass sscr key requirement using some BAdI like FI_HEADER_SUB_1300 to add a button to screen or identifying an implicit enhancement option in one PBO module/form to change PF-STATUS, then look for such an option in PAI module/forms.
Regards,
Raymond -
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 create a Generic Object Services for a standard tcode.
Hi,
We have a requirement where we are depreciating the assets (standard transaction ABAA) using a custom BDC program. We need to maintain a history (called audit trail) for the particular asset that has been depreciated using this program. For this audit train we have been asked to use "Generic Object Services" in transaction code ABAA.
Unfortunately, Generic object services are not available in this transaction code. Can you please suggest me how to create "Generic Object Services" for a particular standard transaction code. Also, we have show the details of custom workflow that follows the approval process in order to depreciate the asset. how to show this workflow details using Generic Services. This is a very critical issue, any help will be very help ful.
Please let me know should you require more information on this topic.
Thanks,
AshishInstead of copyg the std fm to z, do the following,
1. Go to se37 open FM VIEW_KURGV in display mode.
2. Click on the spiral icon on the top.
3. Then in menu go edit->enhancment options -> show implicit enhancement
4. """""""""""""""""""""" kind of lines will appear in the cde, just rt click on the line at the place u want to insert the code and select
enhancement implementation create.
5. Give apropriate name for thi , it will inset a n place to write your code.
This is an std sap methodology and is supported in upgradde also. -
Create button to application toolbar in report
Hi,
May i know how to create new button name continue near the save button or print button at the application toolbar?
Any suggestion ???HI,
For creating a new button, write the name of the button on the tool bar for ex. &CONTI.
Double click on it, and choose the icon and function text ofr it.
Save and activate the menu.
Your button gets created in the menu.
Declare the variable in your program with the code for continue.
Here's an example,
form set_pf_status using rt_extab type slis_t_extab.
set pf-status 'ALV_MENU'.
endform.
form user_command using p_ucomm type sy-ucomm
data : vbeln type vbeln_va.
case p_ucomm.
when '&CONTI'.
ENDCASE.
Regards,
Pritha.
Reward if helpful. -
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 buttons in Main toolbar in SAP EHSM?
Hi All,
We have a requirement where we need to add button to main toolbar in incident creation in SAP EHSM.
Comp. Configuaration : EHHSS_INC_REC_OIF_V3
In the above picture, we want to add custom button "Submit". But when i add new button in comp. configuartaion, my application stops responding and i get time out error.
Please suggest,how to move forward.
Thanks,
VimalHi Vimal,
If we have to add a new button to a toolbar, please right click on the toolbar and get the technical details like the component name, application name , etc. & and based on the information goto the required configuration in the workbench and add the button at component level or at FPM config.
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/c0a2b7c2-1598-2e10-45bc-c556df3b9576?QuickLink=index&…
Above link is guide to help you for the same,
Regards,
Harsha -
How to deactive a button in application toolbar
how to deactive a button in application toolbar?
Simple example
This example shows how to create a toolbar with a single Exit button, used to exit the program.
Steps:
Create a screen and add a custom container named TOOLBAR_CONTAINER
Code:
REPORT sapmz_hf_toolbar .
TYPE-POOLS: icon.
CLASS cls_event_handler DEFINITION DEFERRED.
G L O B A L D A T A
DATA:
ok_code LIKE sy-ucomm,
Reference for conatiner
go_toolbar_container TYPE REF TO cl_gui_custom_container,
Reference for SAP Toolbar
go_toolbar TYPE REF TO cl_gui_toolbar,
Event handler
go_event_handler TYPE REF TO cls_event_handler.
G L O B A L T A B L E S
DATA:
Table for registration of events. Note that a TYPE REF
to cls_event_handler must be created before you can
reference types cntl_simple_events and cntl_simple_event.
gi_events TYPE cntl_simple_events,
Workspace for table gi_events
g_event TYPE cntl_simple_event.
CLASS cls_event_handler DEFINITION
CLASS cls_event_handler DEFINITION.
PUBLIC SECTION.
METHODS:
on_function_selected
FOR EVENT function_selected OF cl_gui_toolbar
IMPORTING fcode,
on_dropdown_clicked
FOR EVENT dropdown_clicked OF cl_gui_toolbar
IMPORTING fcode posx posy.
ENDCLASS.
CLASS cls_event_handler IMPLEMENTATION
CLASS cls_event_handler IMPLEMENTATION.
METHOD on_function_selected.
CASE fcode.
WHEN 'EXIT'.
LEAVE TO SCREEN 0.
ENDCASE.
ENDMETHOD.
METHOD on_dropdown_clicked.
Not implented yet
ENDMETHOD.
ENDCLASS.
START-OF-SELECTION.
SET SCREEN '100'.
*& Module STATUS_0100 OUTPUT
text
MODULE status_0100 OUTPUT.
IF go_toolbar_container IS INITIAL.
Create container
CREATE OBJECT go_toolbar_container
EXPORTING
container_name = 'TOOLBAR_CONTAINER'.
Create toolbar
CREATE OBJECT go_toolbar
EXPORTING
parent = go_toolbar_container.
Add a button
CALL METHOD go_toolbar->add_button
EXPORTING fcode = 'EXIT' "Function Code
icon = icon_system_end "ICON name
is_disabled = ' ' "Disabled = X
butn_type = cntb_btype_button "Type of button
text = 'Exit' "Text on button
quickinfo = 'Exit program' "Quick info
is_checked = ' '. "Button selected
Create event table. The event ID must be found in the
documentation of the specific control
CLEAR g_event.
REFRESH gi_events.
g_event-eventid = go_toolbar->m_id_function_selected.
g_event-appl_event = 'X'. "This is an application event
APPEND g_event TO gi_events.
g_event-eventid = go_toolbar->m_id_dropdown_clicked.
g_event-appl_event = 'X'.
APPEND g_event TO gi_events.
Use the events table to register events for the control
CALL METHOD go_toolbar->set_registered_events
EXPORTING
events = gi_events.
Create event handlers
CREATE OBJECT go_event_handler.
SET HANDLER go_event_handler->on_function_selected
FOR go_toolbar.
SET HANDLER go_event_handler->on_dropdown_clicked
FOR go_toolbar.
ENDIF.
ENDMODULE. " STATUS_0100 OUTPUT
http://www.erpgenie.com/abap/controls/toolbar.htm#Simple%20example
http://help.sap.com/saphelp_nw04/helpdata/EN/42/d2ab343e416635e10000000a1553f6/content.htm
help.sap.com/printdocu/core/Print46c/en/data/pdf/BCCITOOLBAR/BCCITOOLBAR.pdf
Regards,
Jagadish -
How to disable the button in application toolbar in report pgm
Can anyone help with How to disable the button in application toolbar in report pgm
Hi,
You can use it_excluding to disable button on the tool bar.You have to find the function code for the required button and append that function code to the it_excluding .The optional IMPORTING parameter IT_EXCLUDING is an internal table. It is only needed if the caller uses the list tool standard interface but wants to deactivate interface functions which he or she does not need.You can have your defined pf-status using I_CALLBACK_PF_STATUS_SET.
SAMPLE PROGRAM
tables spfli.
type-pools: slis.
DATA W_FCODE TYPE SLIS_EXTAB-FCODE.
data: t_spfli TYPE SPFLI OCCURS 0 WITH HEADER LINE.
select * from spfli into table t_spfli.
data : t_excluding TYPE SLIS_T_EXTAB .
W_fcode = '&OUP'.
append w_fcode to t_excluding.
W_fcode = '&ODN'.
append w_fcode to t_excluding.
call function 'REUSE_ALV_LIST_DISPLAY'
EXPORTING
I_STRUCTURE_NAME = 'SPFLI'
IS_LAYOUT =
IT_FIELDCAT =
IT_EXCLUDING = T_EXCLUDING
tables
t_outtab = T_SPFLI
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.
http://help.sap.com/saphelp_nw2004s/helpdata/en/99/49b844d61911d2b469006094192fe3/frameset.htm
Regards,
Priyanka. -
How to add a custom button on Application Toolbar for ME21N, ME22N & ME23N
Hi Experts,
I am new to this forum. I hope someone will help me.
My Requirement is as :
I want to add a new custom button on Application Toolbar for ME21N, ME22N & ME23N.
There are already standard buttons in this toolbar which is Document Overview On, Hold, Personal Settings etc.
So after the 'personal settings' button i want add a new button and want to write a code which will open one custom screen.
I am not able to find any exit for this....
Please help...
Thanks....Hey Buddies
Try below BADI : ME_PROCESS_PO_CUST
and check with required methods.
1)PROCESS_ITEM
2)CHECK
3)POST
Regards,
Pranav -
Adding Button on application toolbar on ABAP List display screen....
Hello Gurus,
I copied SAP program 'RFBUEB00' into custom program. When I execute the custom report, I see the data lijne by line in ABAP list. I see a deafult 'Select' button on application toolbar.
If I want to add additional custom button on application toolbar on ABAP list display screen, how can I do it ? Please help.
Regards,
Jainam.
Edited by: Jainam Shah on Oct 27, 2009 5:44 PM>
Jainam Shah wrote:
> In my case it just rights the data in ABAP screen as follows. I can't use ALV grid and stuff because its on older version.
>
>
FORM LISTE_SCHREIBEN.
>
> check = '@T9@'.
>
> FORMAT COLOR COL_KEY INTENSIFIED OFF.
> WRITE: / SY-VLINE,
> check,
> BKPF-BUKRS,
> BKPF-BELNR,
> BKPF-GJAHR.
> FORMAT COLOR COL_NORMAL INTENSIFIED OFF.
> WRITE: BKPF-BLART,
> (8) BKPF-BLDAT DD/MM/YY,
> (8) BKPF-BUDAT DD/MM/YY,
> BKPF-WAERS,
> BKPF-XBLNR,
> 80 SY-VLINE.
> XAUSGABE = 'X'.
> HIDE: BKPF-BUKRS, BKPF-BELNR, BKPF-GJAHR, BKPF-BSTAT, XAUSGABE.
> IF BKPF-BKTXT NE SPACE.
> FORMAT COLOR COL_KEY INTENSIFIED OFF.
> WRITE: / SY-VLINE, CHAR4 UNDER BKPF-GJAHR.
> FORMAT COLOR COL_NORMAL INTENSIFIED.
> WRITE: BKPF-BKTXT UNDER BKPF-BLART,
> 80 SY-VLINE.
> HIDE: BKPF-BUKRS, BKPF-BELNR, BKPF-GJAHR, BKPF-BSTAT, XAUSGABE.
> ENDIF.
> ENDFORM.
>
>
> I have to select multiple lines and proces them. For one line I know I can use AT-LINE-SELECTION but this is multiple lines...
What is your SAP system version?
It seems to be displayed only in ALV. Well, if you can make it to display in LIST ... you can go with set pf-status.
good luck -
How to Create Buttons With some operation
Hello friends How can create button so that when i click that button it should open another new window so that i can select some options in that new window and do some calculations.
Kindly help me .
byeeHi JN,
I have created a Frame which has some checkboxes , a button and text field. when i check some checkboxes and press the Button (ie in my program Metrics level Button ) it should display the result as number of checkboxes that are checked divided by total number of chechboxes. ie if i check some 6 check boxes and press the Metrics level button it should display 6 divided by 12 ie 0.5 in the Result Textfield.
I am sending the code i have written.
Thanks in advance.
public class Frame extends java.awt.Frame {
/** Creates new form Frame */
public Frame() {
initComponents();
setSize(800, 800);
private void initComponents() {
label1 = new java.awt.Label();
checkbox1 = new java.awt.Checkbox();
checkbox2 = new java.awt.Checkbox();
checkbox3 = new java.awt.Checkbox();
checkbox4 = new java.awt.Checkbox();
checkbox5 = new java.awt.Checkbox();
checkbox6 = new java.awt.Checkbox();
checkbox7 = new java.awt.Checkbox();
checkbox8 = new java.awt.Checkbox();
checkbox9 = new java.awt.Checkbox();
checkbox10 = new java.awt.Checkbox();
checkbox11 = new java.awt.Checkbox();
checkbox12 = new java.awt.Checkbox();
button1 = new java.awt.Button();
textField1 = new java.awt.TextField();
setLayout(null);
addWindowListener(new java.awt.event.WindowAdapter() {
public void windowClosing(java.awt.event.WindowEvent evt) {
exitForm(evt);
label1.setText("Select the Metrics below");
add(label1);
label1.setBounds(320, 20, 136, 20);
checkbox1.setLabel("Architecture Metrics");
add(checkbox1);
checkbox1.setBounds(240, 80, 84, 20);
checkbox2.setLabel("Runtime Metrics");
add(checkbox2);
checkbox2.setBounds(240, 200, 115, 20);
checkbox3.setLabel("Documentation Metrics");
add(checkbox3);
checkbox3.setBounds(240, 320, 152, 20);
checkbox4.setLabel("Size");
add(checkbox4);
checkbox4.setBounds(280, 110, 49, 20);
checkbox5.setLabel("Structure");
add(checkbox5);
checkbox5.setBounds(280, 130, 75, 20);
checkbox6.setLabel("Complexity");
add(checkbox6);
checkbox6.setBounds(280, 150, 86, 20);
checkbox7.setLabel("Size");
add(checkbox7);
checkbox7.setBounds(290, 230, 49, 20);
checkbox8.setLabel("Structure");
add(checkbox8);
checkbox8.setBounds(290, 250, 75, 20);
checkbox9.setLabel("Complexity");
add(checkbox9);
checkbox9.setBounds(290, 270, 86, 20);
checkbox10.setLabel("Size");
add(checkbox10);
checkbox10.setBounds(300, 350, 49, 20);
checkbox11.setLabel("Structure");
add(checkbox11);
checkbox11.setBounds(300, 370, 75, 20);
checkbox12.setLabel("Complexity");
add(checkbox12);
checkbox12.setBounds(300, 390, 86, 20);
button1.setLabel("Metrics level");
add(button1);
button1.setBounds(290, 470, 83, 24);
textField1.setText("Result");
textField1.setName("Result");
add(textField1);
textField1.setBounds(400, 470, 60, 20);
pack();
public void actionPerformed(ActionEvent e) {
****** I think code should be added here for the button pressed event*******
/** Exit the Application */
private void exitForm(java.awt.event.WindowEvent evt) {
System.exit(0);
* @param args the command line arguments
public static void main(String args[]) {
new Frame().show();
// Variables declaration - do not modify
private java.awt.Button button1;
private java.awt.Checkbox checkbox1;
private java.awt.Checkbox checkbox10;
private java.awt.Checkbox checkbox11;
private java.awt.Checkbox checkbox12;
private java.awt.Checkbox checkbox2;
private java.awt.Checkbox checkbox3;
private java.awt.Checkbox checkbox4;
private java.awt.Checkbox checkbox5;
private java.awt.Checkbox checkbox6;
private java.awt.Checkbox checkbox7;
private java.awt.Checkbox checkbox8;
private java.awt.Checkbox checkbox9;
private java.awt.Label label1;
private java.awt.TextField textField1;
// End of variables declaration
this is the output when i execute the program -
Making buttons in application toolbar dynamic....
Hello,
I have a application tool bar with 8 icon buttons defined. Now I have a custom configuration table where I check what buttons in application toolbar should be seen so that user can select which button he wants to see and which not anytime he wishes.
My question is how can I make buttons in application toolbar dynamic ?
Please guide.
Regards,
Rajesh.This is sample logic, but you can adapt it to you needs
DATA: excl_tab TYPE sy-ucomm OCCURS 0 WITH HEADER LINE.
AUTHORITY-CHECK OBJECT 'ZREO' ID 'ACTVT' FIELD c_print.
IF sy-subrc NE 0.
APPEND 'PRIN' TO excl_tab.
ENDIF.
IF ok_0010 = 'DISP' OR ok_0010 = 'DELE'.
APPEND 'SAVE' TO excl_tab.
ENDIF.
IF ok_0010 <> 'DELE'.
APPEND 'DELE' TO excl_tab.
ENDIF.
SET PF-STATUS 'STAT_100' EXCLUDING excl_tab. -
Button at application Toolbar in Output
Hi friends,
In my classical report output,i want to add one button in application toolbar.so i have applied PF -STATUS for this. But when i am doing so..my standard buttons like back,cancel and save are automatically disabled..I dont want to write explicit code for back,save and cancel.. i want this button to work in addition to standard functionality..please guide me how to get this one..and also tell me to where write SET PF-STATUS 'STATUSNAME' in code..after which event..Also i have copied standard PF Status for it but it is not working
Thanks,
Gaurav
Edited by: Gaurav Kumar on May 25, 2009 3:11 PM
Edited by: Gaurav Kumar on May 25, 2009 3:12 PMHi Gaurav,
I have worked on same application but for ALV. Hcave look on following code it might help you.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_INTERFACE_CHECK =
I_BYPASSING_BUFFER = ' '
I_BUFFER_ACTIVE = ' '
i_callback_program = v_repid
i_callback_pf_status_set = 'SET_PF_STATUS'
i_callback_user_command = 'USER_COMMAND'
I_CALLBACK_TOP_OF_PAGE = ' '
I_CALLBACK_HTML_TOP_OF_PAGE = ' '
I_CALLBACK_HTML_END_OF_LIST = ' '
I_STRUCTURE_NAME =
I_BACKGROUND_ID = ' '
I_GRID_TITLE =
I_GRID_SETTINGS =
IS_LAYOUT =
it_fieldcat = fcat[]
IT_EXCLUDING =
IT_SPECIAL_GROUPS =
IT_SORT =
IT_FILTER =
IS_SEL_HIDE =
I_DEFAULT = 'X'
I_SAVE = ' '
IS_VARIANT =
IT_EVENTS =
IT_EVENT_EXIT =
IS_PRINT =
IS_REPREP_ID =
I_SCREEN_START_COLUMN = 0
I_SCREEN_START_LINE = 0
I_SCREEN_END_COLUMN = 0
I_SCREEN_END_LINE = 0
I_HTML_HEIGHT_TOP = 0
I_HTML_HEIGHT_END = 0
IT_ALV_GRAPHICS =
IT_HYPERLINK =
IT_ADD_FIELDCAT =
IT_EXCEPT_QINFO =
IR_SALV_FULLSCREEN_ADAPTER =
IMPORTING
E_EXIT_CAUSED_BY_CALLER =
ES_EXIT_CAUSED_BY_USER =
TABLES
t_outtab = itab
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 set_pf_status
Set PF-STATUS for user's push button
FORM set_pf_status USING rt_extab TYPE slis_t_extab.
SET PF-STATUS 'ZNEWSTATUS'.
ENDFORM. " PF_STATUS_NEW
*& Form user_command
Click on button gives popup information
FORM user_command USING ucomm LIKE sy-ucomm
selfield TYPE slis_selfield.
lv_ucomm
= sy-ucomm.
CASE lv_ucomm.
WHEN 'BUTTON'.
MESSAGE 'Working well' TYPE 'I'.
ENDCASE.
ENDFORM. "user_command
Hope it will resolve your prblm
Thanks
Lokesh.
Edited by: Lokesh Tarey on May 25, 2009 12:13 PM
Maybe you are looking for
-
How do i install a kodak printer esp5250
I have recently gone over to Apple from Windows with the purchase of the latest updated Imac 21.5. Have tried to install my Kodak ESP5250 printer to find that it is not supported. What do it do? Bob
-
I use pdf's all of the time for looking a primary literature online, and this problem certainly does not occur on every, or even the majority, of pdf's that I view. When opening some pdf files the scrolling is extremely jerky (especially between page
-
We are using external table authentication. Data is not filtering by user. All records are displaying for all users. i am trying to view " view Log" from session Management, but I am getting No Log Found error. Please can you help me, how can I view
-
Install of OEM 10g Grid controll on windows break my listener
Hi! I install OEM 10g Grid controll to Windows 2000 server, successfully (a new database to the repository also was created by the installer). When I restart our server the service of the Listener did not started (it was set to automatic) and I did n
-
hi just bought a nokia 5230 and when i try connect to the web it says packat data connection not available. please help