Adding Button in TCODE MD04/MD06

Hi All,
Requirement is to create a new button in TCODE MD04/MD06(already searched SDN on this).
Button should be next to Vendor and Customer buttons provided on this screen (not in Toolbar) with custom fuctionality.
I am able to achive the same on tool bar by using BADI MD_ADD_COL_EZPS.
As per analysis till now , It is screen 750 and subscreen 710. 3 extra buttons are avaliable on 750 screen for this.
These buttons are not coming in LOOP At Screen , and hence I cannot change their attributes.
Please throw some light on this and help to resolve the same.

Hello Priya
Hope you have selected the correct print format in Layout column in Category -VA -of your appraisal template.
Regards,
RA

Similar Messages

  • Adding Buttons to a ScrollPane??

    Hello Swing people,
    I have had this problem now for quite some time and still have had no luck in getting it right. I am coding an ordering system and on this form is a Jtable displaying product details. Beside the Jtable are category buttons one after the other in a vertical line and there are 18 of them - meaning they cannot fit on the screen!! Therefore i want these buttons to be in some kind of scollpane or list so they can all be viewed.
    I thought this would be a simple matter of adding buttons to a scrollpane and then to the panel but this has proved not the case! Does anyone know how i could do this as i have been trying this for too long without the help of you geniuses???
    To give u an idea of what i was trying here is a snippet of my code:
    import javax.swing.*;
    public class junk2 extends JFrame{
         junk2()    {
         JPanel panel = new JPanel();
         panel.setLayout(new java.awt.GridLayout(0, 1) );
         JButton []button = new JButton[20];
         for(int i=0; i<button.length; i++) {
              button=new JButton(""+(i+1) );
              panel.add(button[i]);
         JScrollPane scroll = new JScrollPane(panel);
         getContentPane().add(scroll, java.awt.BorderLayout.CENTER);
         setSize(50, 100);
         setDefaultCloseOperation( EXIT_ON_CLOSE );
         public static void main(String []args) {
              new junk2().show();
    This code is fine and puts buttons in a vertical line but the buttons only have numbers on them from 1-20, i want the names of the buttons i have declared to be in here - therefore allowing the action performed on these buttons to be recognised and therefore work too! - anyone know how to get around this??
    Also the scrollpane with these buttons in apears in a whole new frame being that it is a small test program but does anyone know how to ensure the buttons appear in the scrollpane only and not in a new frame??
    all 25 dukes if someone can sort this long problem out!!!

    Hi guys thanks a lot for your replies, i compiled both of them and they are fine! the first reply is more what i am looking for but there is still a problem, i am finding it difficult to incorporate this piece of code into my order form class.
    Im trying to take out the current declarations of my JButtons and replace it with the code i was given (reply 1) and obviously keep my action performed methods there as they will be the same but cant seem to do this!
    If anyone can add in the code from reply 1 into my code below or at least help me i will give u the 25 dukes, taking into consideration i still want the form (panel) to be displayed as well as the panel or scrollpane containing the JButtons???
    Can u help - cheers in advance!!
    Pc
    public class OrderForm extends JFrame implements ActionListener {
         private JPanel panel;
         private JButton saveArchive,unCompleted,submitOrder,checkSheet,clear,exit,bread,fruit,dairy,
    salads,cakes,frozen,meat,cheeses,sauces,dry,drinks,soup,cleaning,boxes,cups,cutlery,lids,misc,stick,soup2;
         private JScrollPane pane;
         private JTextField textorderno,textorderdate,textdelivdate,textemp,textshop,textsupp;
         private JLabel heading1,heading2,orderno,orderdate,delivdate,emp,shop,supplier;
         private String todaysDate, deliveryDate;
         private ResultSet result;
         private ResultSet shops;
         private int column_count;
         private JComboBox combobox;
         ResultSetTableModel model = new ResultSetTableModel();
         Result rs = new Result(); 
         Orders orderSaving = new Orders();
         ProductOrders tableSaving = new ProductOrders();
         private boolean save;
         JTable table;
         public OrderForm()throws SQLException {
              displayForm();
              displayFields();//Have not provided coz it aint needed for this
              displayButtons();//Wont need this anymore i dont think
              getContentPane().add(panel);
              setVisible(true);
         public void displayForm() throws SQLException{
              setTitle("Pret Ordering System");
              setSize(700,600);
              // Center the frame
              Dimension dim = getToolkit().getScreenSize();
              setLocation(dim.width/2-getWidth()/2, dim.height/2-getHeight()/2);
              //Creates the coloured bored around the panel
              panel = new JPanel();
              panel.setLayout( null );
              Border paneltitled = BorderFactory.createLineBorder(Color.red.darker().darker(),10);
              panel.setBorder(paneltitled);
              ResultSet result = rs.setBreadProds();
              model.fillTableModel(result);
              table = new JTable(model);
              for(int i = 0; i < column_count; i++) {          
                   table.getColumnModel().getColumn (i).setPreferredWidth (200);                   
              table.setSelectionForeground( Color.white );
              table.setSelectionBackground( Color.red.darker().darker() );
              pane = new JScrollPane(table);
                  pane.setBounds(190, 230, 440, 200);
                  panel.add(pane);
              combobox = new JComboBox();
              ResultSet shops = rs.getSupplierNames();
              while(shops.next()){  
                   combobox.addItem(shops.getString("supplier_name"));
    //Hope you can help - cheers

  • Hai is there any bussiness content  to extract from Tcode MD04 to BW side

    i would like to pull  the data which is in R/3 side entered from  Tcode MD04 (Stock/requirements) to BW side, Is there any standard extractor in LO or any other ??

    Hi
    Plz let us know which fields u want to take to BW, based on that we can suggest u BI content.
    Eventhough go thru the following link.
    Hope u will get required details:
    http://help.sap.com/saphelp_nw04/helpdata/en/29/79eb3cad744026e10000000a11405a/frameset.htm
    Thnx
    Neel

  • When and where IDOC is triggered for TCode MD04

    Please guide me when and where IDOC is triggered for TCode MD04. In my case it is triggering even though I am trying to save a PO with error or on hold.

    Hi,
    Idoc triggers when we save or change the PO. It depends on the message control settings in the partner profile. Check the message control settings.
    thanks
    sarvesh

  • Captiave 2 - Adding Buttons to Question Slides

    I need to use the Captivate Question Slide "maker" to create
    interactive questions with navigation back to the "Jeopardy-esque"
    main page. When doing so, the question slide maker prevents adding
    buttons/navigation, etc.
    Any work arounds, hints, suggestions?
    Thanks...

    Hi Beta Bob and welcome to our community
    As you have seen, you cannot insert interactive objects
    (Buttons, Click Boxes or Text Entry Boxes) on Question slides.
    The only workaround I can think of is to sort of simulate the
    question slide using these objects on a standard slide.
    Cheers... Rick

  • Standard buttons not displaying ALV when added button by creating PF status

    Hi  All,
    I have added a button(using SE41) in application toolbar for ALV grid using Factory method.But the problem is I am unable to see the standard tool bar buttons(Layout,Download,Mail etc).
    Even I tried adding buttons(using standard FCODES) to the PFstatus.Now the buttons are visible but the functionality is not working for all buttons.Its working only for Graphic and Change layout buttons.
    Can any one suggest...??
    -Phaniram

    Disregard DKS's response...that's the older stuff and you're using NetWeaver ALV.
    In SALV you can cause those buttons to appear, but you may need to copy the SALV_STANDARD GUI from one of the SALV* named program using SE80...sounds like you have that part, but you may need to turn functions ON...
    Perhaps something like this would help:
    data:  gr_f_list  type ref to cl_salv_functions_list,
             gr_alv     type ref to cl_salv_table,
    SALV toolbar & GUI functions
      gr_f_list = gr_alv->get_functions( ).     "Get Toolbar functions
      gr_f_list->set_all( abap_true ).          "All On
      gr_f_list->set_view_lotus( abap_false ).  "Lotus 123 off
      gr_f_list->set_view_excel( abap_false ).  "Excel in Place Off
      gr_f_list->set_graphics( abap_false ).    "Graph tool off
    For undesired buttons, set each tool OFF after turning all ON.

  • How to make separation between added buttons into a jToolBar?

    Hi friends,
    I have made a jToolBar (using NetBeans IDE 5.5) with several buttons, but i dont know how to make custom separation between those added buttons. I will appreciate it if anyboy give me some tips.
    Thanks in advance,
    Reza_mp

    I don't know about NetBeans but yeah U can add horizontal atruts and verticals struts between two components, i.e.
    1.) add first component
    2.) add horizontal or vertical struts(according to ur toolbar)
    3.) add second component
    4.) add add horizontal or vertical struts(according to ur toolbar)
    this will definitely solve ur problem.
    If it does, don't forget to pay ur points.

  • Recently added     button accidently deleted How do I get this button back?

    'Recently added' button accidently deleted How do I get this button back?
    I can not find where my tracks off a cd are
    on my imac with out this button or
    icon on the left hand side of itunes.
    HELP I am technically challenged but
    relatively intelligent musician!

    catcowkitty wrote:
    'Recently added' button
    that button is actually a *smart playlist* which you can create yourself quite easily.
    in iTunes, choose +new smart playlist+ from the file menu and recreate the following rules:
    the screenshot is from my original recently added playlist.
    JGG

  • Can i restore the 'recently added' button in the sidebar of iTunes?

    It happend that I accidencially erased the 'Recently Added' button from the sidebar in iTunes which is a bit of a dissaster for me as I often add mp3's from musicproductions elsewere. It makes it quite difficult to find the songs without that button.

    Hi Jimzgoldfinch
    It worked, i have a new smart playlist up and running. That's great, thanks a lot!
    Sam Foh

  • Adding button to a custom table cell (and handling them)

    Hi
    I'm wondering if it's possible to add a button on each row of a table view using a custom table cell view. If it's possible, I'm really wondering how I can handle the click events on these buttons.
    Thanks

    No.
    Try creating a view and adding it to a cell. Let us know what problems you have, and we can try to help.

  • Pop up screen needs to be added to standard tcode

    Hi all ,
    "How to add a pop - up screen to standard Tcode. "
    I want to add a pop up - screen to the tcode : CO15.
    In this Tcode i will enter the Production order and press enter.
    In the next screen I will give the quantity (for eg. 5) for that production order and also date fields .
    When I click on the save button, I want to display a pop-up screen giving all the 5 items and also checkbox for each item. The user will then check whatever number of items he wants for eg he will check 3 items and press enter button which(enter button) also needs to be put in that pop up screen. 
    Next time he want to check the other 2 items also.Initially he has checked the 3 items.
    So this time the POP-UP screen should display the rest 2 items which were not checked .
    Edited by: peter k on Oct 27, 2008 5:24 AM

    Was it a pop-under?
    Because far as I know they couldn't fix that. Only stop pop-ups.
    If you want to stop them for real, then install Firefox web browser and the NoScript add-on.
    Head to Firefox toolbar > customize and drag the Temp Allow All Button to the toolbar area.
    When you surf, your Javascript will be turned off by default, and if you need it, then you click the Temp Allow All Button and it loads, therefore reducing the pop-unders and pop-ups drastically.
    Also add Ad Block Plus too for more less hassle free surfing.

  • Adding Button to Active Form

    Hi,
    I created button in PO  on Form load event. its working fine.but
    how to add a button on the active(PO)  form once My add-on is started?
    Regards,
    Ganesh k

    Hi,
    i checked for the existance of my button in my active form, if not exist i added my button in et_FORM_ACTIVATE  Event. its working now.
    If pVal.EventType = et_FORM_ACTIVATE And pVal.FormTypeEx = "142" And FLAG = False Then
                oOrderForm = sbo_application.Forms.GetFormByTypeAndCount(pVal.FormType, pVal.FormTypeCount)
                Dim ii As Integer
                For ii = 0 To oOrderForm.Items.Count - 1
                    If oOrderForm.Items.Item(ii).UniqueID = "MyBtnId" Then
                        FLAG = True
                    End If
                Next ii
                If FLAG = False Then
                    ADDBUTTON()
                End If
            End If
    Thanks For the Suggestions..
    regards,
    Ganesh K

  • Problem wiht added button on invoice form

    I have added a custom button on invoice form.
    Scenario 1:
    I open the invoice form then the custom button is added and the et_ITEM_PRESSED event on custom button in catched. All is ok!
    Scenario 2
    I open a custom form and after close it.
    After I open the invoice form then custom button is added but et_ITEM_PRESSED event on custom button in not catched!!
    Could somebody please help me?
    Thanks

    Hi Domenico,
    It could be that the custom form gets an exception and then no other events might be caught. Try and put try...catch clauses around all your code and show messages when an error is received. This might be the cause of the problem - an unhandled exception.
    Hope it helps,
    Adele

  • Adding buttons on title line

    I am relatively new to Flex and I have run into a slight
    problem that I that I think is because of lack of experience. I
    have a panel and I have set the title attribute but now I am
    required to add buttons to the right of the title. I am not sure
    what the best way to do this is or even if it is viable. I have
    read in other places throughout the internet that it is possible to
    add buttons to the title of an object, but I do not know how to do
    to proceed. I have thought about it and I think making an HBox and
    adding a label for the title and then the required buttons might
    work, but when it compiles it leaves a blank space above my new
    HBox that just does not look good. Is there someway to override the
    title of the panel or set its height to 0, or better yet some way
    to add buttons to the title line of the panel? Any help would be
    appreciated.

    Check out post...
    http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=60&catid=585&threadid =1271263&highlight_key=y&keyword1=button

  • Adding button events stops core functonality!

    This should be an easy one; here is a piece of code that i have adapted from the Java website!
    The problem occured when i added the code for the buttons in Public void actionPerformed.
    Instead of animating; the picture is static and will only advance by 1 frame if i press either the play or stop buttons! if u remove the code for the buttons the animation works fine!
    what am i doing wrong?
    (T1 to T10 can be any random gif pictures)
    I was wondering if i need a new actionPerformed class or something????
    hope you can help me
    kind regards
    RSH
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    public class ImageSequenceTimer extends JFrame
                                    implements ActionListener {
        ImageSQPanel imageSQPanel;
        static int frameNumber = -1;
        int delay;
        Thread animatorThread;
        static boolean frozen = false;
        Timer timer;
         //Invoked only when this is run as an application.
        public static void main(String[] args) {
            Image[] waving = new Image[10];
            for (int i = 1; i <= 10; i++) {
                waving[i-1] =
                    Toolkit.getDefaultToolkit().getImage("images/T"+i+".gif");
            JFrame f = new JFrame("ImageSequenceTimer");
            f.addWindowListener(new WindowAdapter() {
                public void windowClosing(WindowEvent e) {
                    System.exit(0);
            ImageSequenceTimer controller = new ImageSequenceTimer();
            controller.buildUI(f.getContentPane(), waving);
            controller.startAnimation();
            f.setSize(new Dimension(350, 350));
            f.setVisible(true);
        //Note: Container must use BorderLayout, which is the
        //default layout manager for content panes.
        void buildUI(Container container, Image[] dukes) {
            int fps = 10;
            //How many milliseconds between frames?
            delay = (fps > 0) ? (1000 / fps) : 100;
            //Set up a timer that calls this object's action handler
            timer = new Timer(delay, this);
            timer.setInitialDelay(0);
            timer.setCoalesce(true);
            JPanel buttonPanel = new JPanel();
            JButton play = new JButton("PLAY");
            play.addActionListener(this);
            JButton stop = new JButton("STOP");
            stop.addActionListener(this);
            JButton restart = new JButton("RESTART");
            JButton back = new JButton("Back");
            imageSQPanel = new ImageSQPanel(dukes);
            container.add(imageSQPanel, BorderLayout.CENTER);
            imageSQPanel.addMouseListener(new MouseAdapter() {
                public void mousePressed(MouseEvent e) {
                    if (frozen) {
                        frozen = false;
                        startAnimation();
                    } else {
                        frozen = true;
                        stopAnimation();
           container.add(buttonPanel, BorderLayout.SOUTH);
           buttonPanel.add(play);
           buttonPanel.add(stop);
           buttonPanel.add(restart);
           buttonPanel.add(back);
        public void start() {
            startAnimation();
        public void stop() {
            stopAnimation();
        public synchronized void startAnimation() {
            if (frozen) {
                //Do nothing.  The user has requested that we
                //stop changing the image.
            } else {
                //Start animating!
                if (!timer.isRunning()) {
                    timer.start();
        public synchronized void stopAnimation() {
            //Stop the animating thread.
            if (timer.isRunning()) {
                timer.stop();
        public void actionPerformed(ActionEvent e) {
            //Advance the animation frame.
            frameNumber++;
            //Display it.
            imageSQPanel.repaint();
            {JButton button = (JButton) e.getSource();
             String label = button.getText();
             if("PLAY".equals(label))
             { start();
             else if("STOP".equals(label))
             { stop();
        class ImageSQPanel extends JPanel{
            Image dukesWave[];
            public ImageSQPanel(Image[] dukesWave) {
                this.dukesWave = dukesWave;
            //Draw the current frame of animation.
            public void paintComponent(Graphics g) {
                super.paintComponent(g); //paint background
                //Paint the frame into the image.
                try {
                    g.drawImage(dukesWave[ImageSequenceTimer.frameNumber%10],
                                0, 0, this);
                } catch (ArrayIndexOutOfBoundsException e) {
                    //On rare occasions, this method can be called
                    //when frameNumber is still -1.  Do nothing.
                    return;
    }

    You get ClassCastException at JButton button = (JButton) e.getSource(); therefore
    1. Always look if there are any exceptions thrown
    2. In this case e.getSource() does not always return JButton object reference, actionPerformed is also called by Timer. This is a source of your exception: you cast correctly only once - when button is pressed; then Timer calls actionPerformed, exception is thrown and animation stops.
    Here s corrected code
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    public class Test extends JFrame
                                    implements ActionListener {
        ImageSQPanel imageSQPanel;
        static int frameNumber = -1;
        int delay;
        Thread animatorThread;
        static boolean frozen = false;
        Timer timer;
        JButton play, stop; // <------------------------------------
         //Invoked only when this is run as an application.
        public static void main(String[] args) {
            Image[] waving = new Image[10];
            for (int i = 1; i <= 10; i++) {
                waving[i-1] =
                    Toolkit.getDefaultToolkit().getImage("images/T"+i+".gif");
            JFrame f = new JFrame("ImageSequenceTimer");
            f.addWindowListener(new WindowAdapter() {
                public void windowClosing(WindowEvent e) {
                    System.exit(0);
            Test controller = new Test();
            controller.buildUI(f.getContentPane(), waving);
            controller.startAnimation();
            f.setSize(new Dimension(350, 350));
            f.setVisible(true);
        //Note: Container must use BorderLayout, which is the
        //default layout manager for content panes.
        void buildUI(Container container, Image[] dukes) {
            int fps = 10;
            //How many milliseconds between frames?
            delay = (fps > 0) ? (1000 / fps) : 100;
            //Set up a timer that calls this object's action handler
            timer = new Timer(delay, this);
            timer.setInitialDelay(0);
            timer.setCoalesce(true);
            JPanel buttonPanel = new JPanel();
            play = new JButton("PLAY"); // <------------------------------------
            play.addActionListener(this);
            stop = new JButton("STOP"); // <------------------------------------
            stop.addActionListener(this);
            JButton restart = new JButton("RESTART");
            JButton back = new JButton("Back");
            imageSQPanel = new ImageSQPanel(dukes);
            container.add(imageSQPanel, BorderLayout.CENTER);
            imageSQPanel.addMouseListener(new MouseAdapter() {
                public void mousePressed(MouseEvent e) {
                    if (frozen) {
                        frozen = false;
                        startAnimation();
                    } else {
                        frozen = true;
                        stopAnimation();
           container.add(buttonPanel, BorderLayout.SOUTH);
           buttonPanel.add(play);
           buttonPanel.add(stop);
           buttonPanel.add(restart);
           buttonPanel.add(back);
        public void start() {
            startAnimation();
        public void stop() {
            stopAnimation();
        public synchronized void startAnimation() {
            if (frozen) {
                //Do nothing.  The user has requested that we
                //stop changing the image.
            } else {
                //Start animating!
                if (!timer.isRunning()) {
                    timer.start();
        public synchronized void stopAnimation() {
            //Stop the animating thread.
            if (timer.isRunning()) {
                timer.stop();
        public void actionPerformed(ActionEvent e) {
            //Advance the animation frame.
            frameNumber++;
            //Display it.
            imageSQPanel.repaint();
             if(e.getSource() == play) // <------------------------------------
             { start();
             else if(e.getSource() == stop) // <------------------------------------
             { stop();
        class ImageSQPanel extends JPanel{
            Image dukesWave[];
            public ImageSQPanel(Image[] dukesWave) {
                this.dukesWave = dukesWave;
            //Draw the current frame of animation.
            public void paintComponent(Graphics g) {
                super.paintComponent(g); //paint background
                //Paint the frame into the image.
                try {
                    g.drawImage(dukesWave[Test.frameNumber%10],
                                0, 0, this);
                } catch (ArrayIndexOutOfBoundsException e) {
                    //On rare occasions, this method can be called
                    //when frameNumber is still -1.  Do nothing.
                    return;
    }

Maybe you are looking for

  • 2010 Macbook Air with 4GB RAM or 2011 Macbook Air with 2GB RAM

    So I am looking a the following 2 Reforebished Macbook Air models: Refurbished MacBook Air 1.6GHz dual-core Intel Core i5 http://store.apple.com/ca/product/FC968LL/A Originally released July 2011 11.6-inch (diagonal) high-resolution LED-backlit gloss

  • [SQL] inline view and order by on oracle 8.0.5

    Hi everyone. I am trying to sort data inside "inline view" on "Oracle8 Release 8.0.5.0.0 - Production". However, it did not work. Is this an oracle-bug? I got the oracle error , "ORA-00907". The sql script is like this: select .............. from (se

  • Emails Only Print 1 Page

    Why is it that I can only print 1 email page, isn't it about time that BT solved this issue. Some smarties suggest copying emails to paste into Word and then do a print out but why use a hammer to crack a nut when there must be a simple solution.

  • Insert existing procedures into packages

    hi all, i have begin pg_reins_flat_file.pr_load_temp('1','sr_pre_inforce.txt'); pg_reins_flat_file.pr_load_temp('2','sr_pre_spinforce.txt'); end; i need create a new procedures to insert into my exisiting packages. wat i shud do ? tks.

  • Install error basesystem

    I am trying to erase and re-install disk Leopard on a my macbook 2.2 ghz When I run the installer it passes the disk verification but during the installer I receive an error that I can not bypass. It reads. "The installer could not validate the conte