Purchase order(me21) number range depending upon the plant

Hello All,
I have to generate differant number range for purchase order depending on the plant.
I have found one User exit MM06E003 but it has only ekko as importing structure.
In whiih exit , I cam get plant (ekpo-werks ) and import it to memory id , which will be further used in
MM06E003.
Regards
Mohit

Hi Mohit,
You can try the Enhancement MM06E005. Both EKKO and EKPO structures are available in various function exits in the above Enhancement.
Also you can try using BADI ME_PROCESS_PO_CUST. This BADI is called whenever transactions ME21N/22N/23N are called.
Hope the above info will help.
Regards.
Abhisek Biswas.

Similar Messages

  • Reg : purchase order (ME21)

    hi friends..
    how to create purchase order?
    what are the mandatory fields to create purchase order ?
    how can i input the mandatory fields?
    what are all the tables i want to refer to create purchase order?
    how i upload data using BDC ?
    please help ...

    Hi Selva,
    For creation PO enter the following data in the ME21 screen:
    1st Screen
    Vendor
    PO Type
    PO Date
    Purch Organization
    Purchase group
    2nd Screen
    Material No
    PO quantity
    Order Unit
    Inforecord Number
    Material Group
    Regards,
    George
    reward points to useful tips

  • Shading part of a JTable Cell dependent upon the value of the cell

    Hi
    Was hoping some one woudl be able to provide some help with this. I'm trying to create a renderer that will "shade" part of a JTable cell's background depending upon the value in the cell as a percentage (E.g. if the cell contains 0.25 then a quarter of the cell background will be shaded)
    What I've got so far is a renderer which will draw a rectangle whose width is the relevant percentage of the cell's width. (i.e. the width of the column) based on something similar I found in the forum but the part I'm struggling with is getting it to draw this rectangle in any cell other than the first cell. I've tried using .getCellRect(...) to get the x and y position of the cell to draw the rectangle but I still can't make it work.
    The code for my renderer as it stands is:
    import java.awt.Component;
    import java.awt.Graphics;
    import java.awt.Graphics2D;
    import javax.swing.JLabel;
    import javax.swing.JTable;
    import javax.swing.table.TableCellRenderer;
    public class PercentageRepresentationRenderer extends JLabel implements TableCellRenderer{
         double percentageValue;
         double rectWidth;
         double rectHeight;
         JTable table;
         int row;
         int column;
         int x;
         int y;
         public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) {
              if (value instanceof Number)
                   this.table = table;
                   this.row = row;
                   this.column = column;
                   Number numValue = (Number)value;
                   percentageValue = numValue.doubleValue();
                   rectHeight = table.getRowHeight(row);
                   rectWidth = percentageValue * table.getColumnModel().getColumn(column).getWidth();
              return this;
         public void paintComponent(Graphics g) {
            x = table.getCellRect(row, column, false).x;
            y = table.getCellRect(row, column, false).y;
              setOpaque(false);
            Graphics2D g2d = (Graphics2D)g;
            g2d.fillRect(x,y, new Double(rectWidth).intValue(), new Double(rectHeight).intValue());
            super.paintComponent(g);
    }and the following code produces a runnable example:
    import javax.swing.JFrame;
    import javax.swing.JScrollPane;
    import javax.swing.JTable;
    import javax.swing.table.DefaultTableModel;
    public class PercentageTestTable extends JFrame {
         public PercentageTestTable()
              Object[] columnNames = new Object[]{"A","B"};
              Object[][] tableData = new Object[][]{{0.25,0.5},{0.75,1.0}};
              DefaultTableModel testModel = new DefaultTableModel(tableData,columnNames);
              JTable test = new JTable(testModel);
              test.setDefaultRenderer(Object.class, new PercentageRepresentationRenderer());
              JScrollPane scroll = new JScrollPane();
              scroll.getViewport().add(test);
              add(scroll);
         public static void main(String[] args)
              PercentageTestTable testTable = new PercentageTestTable();
              testTable.pack();
              testTable.setVisible(true);
              testTable.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    }If anyone could help or point me in the right direction, I'd appreciate it.
    Ruanae

    This is an example I published some while ago -
    import java.awt.*;
    import javax.swing.*;
    import javax.swing.table.*;
    public class Fred120 extends JPanel
        static final Object[][] tableData =
            {1, new Double(10.0)},
            {2, new Double(20.0)},
            {3, new Double(50.0)},
            {4, new Double(10.0)},
            {5, new Double(95.0)},
            {6, new Double(60.0)},
        static final Object[] headers =
            "One",
            "Two",
        public Fred120() throws Exception
            super(new BorderLayout());
            final DefaultTableModel model = new DefaultTableModel(tableData, headers);
            final JTable table = new JTable(model);
            table.getColumnModel().getColumn(1).setCellRenderer( new LocalCellRenderer(120.0));
            add(table);
            add(table.getTableHeader(), BorderLayout.NORTH);
        public class LocalCellRenderer extends DefaultTableCellRenderer
            private double v = 0.0;
            private double maxV;
            private final JPanel renderer = new JPanel(new GridLayout(1,0))
                public void paintComponent(Graphics g)
                    super.paintComponent(g);
                    g.setColor(Color.CYAN);
                    int w = (int)(getWidth() * v / maxV + 0.5);
                    int h = getHeight();
                    g.fillRect(0, 0, w, h);
                    g.drawRect(0, 0, w, h);
            private LocalCellRenderer(double maxV)
                this.maxV = maxV;
                renderer.add(this);
                renderer.setOpaque(true);
                renderer.setBackground(Color.YELLOW);
                renderer.setBorder(null);
                setOpaque(false);
                setHorizontalAlignment(JLabel.CENTER);
            public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int col)
                final JLabel label = (JLabel) super.getTableCellRendererComponent(table, value, isSelected, hasFocus, row, col);
                if (value instanceof Double)
                    v = ((Double)value).doubleValue();
                return renderer;
        public static void main(String[] args) throws Exception
            final JFrame frame = new JFrame("Fred120");
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            frame.setContentPane(new Fred120());
            frame.pack();
            frame.setLocationRelativeTo(null);
            frame.setVisible(true);
    }

  • SALES ORDER INTERNAL NUMBER RANGE

    Hi friends,
    I have a problem with Sales Order Number Range  with Doc Type SO(Standard Order) its about internal number range OBJECT ASSIGNED in document type is  01
    In VN01 for object 01 range assigned is from 01 to 999999 & current number range is 976832 which is about to finish ,
    Help me in this regards what r the steps involved in this as while saving order its already showing a warning error that number range is about to finish your earlier help will be appreciated & rewarded.
    Regards

    System will not allow overlaping of number range. As the number range is nearing to end of redefined, followinwing are the options:
    Option 1:
    Set number range for number range object 01 is 01 to 999999 . Check if the number range starting from 1000000 is free or already being used. If it is free & that number range is not being used else where, you can reduce the number range in it say number range object 02 is assigned number range from 1000000 to 1999999, you amend the number range to 1500000 to 1999999 & extend the number range fornumber range object 01 as 01 to 1499999.
    Option 2:
    If the following number range is in use, go to VOV8 --> select the Sales Document Type SO --> change number range object say 01 to say A1 & transport the same from Development to Test (QA) & then to Production Server. In the next step step maintain new number range (not overlaping) to say A1, number range being 10000000 to 19999999. The imapct of transporting the reauest of VOV8 transaction will be that you will have to maintain the new number range immediately & from very next Sales order, the new number range will be active.
    Hope this is useful input for you.
    Regards,
    Rajesh Banka
    Reward point if helpful.

  • In PURCHASE order - How can i browse only the supplier items?

    Hello Experts
    While making a PURCHASE order - I want to press on the  browse button and see ONLY items
    Which are from the spesific supplier that the order is addressed to ....
    Which are an Inventory Items = Y
    is this possible ? and How ?
    Thanks!
    Dror medalion.

    Hi,
    Check if Form Settings in Choose from List for the Item is helpful for your.
    You can group by Preferred vendor and Inventory Item [Y/N] and then the list is short and selections is easier.
    Kind Regards,
    Jitin
    SAP Business One Forum Team

  • Can we hide column in a query depending upon the variable selected

    Hi all,
    let us say my report have 10 column.
    now i am giving user option to select the values (let us say 'a' or 'b')
    columns must be displayed depending upon the value selected by user ..
    for example if user has selected 'a' then first five columns should be displayed..and if user has selected 'b' last five column should be displayed..(it will be OK even if we can hide the columns depending upon the selection )
    Is it possible in BEx...please let me know

    I did it sometime back. A bit complicated process.
    Create an infoobject, manually enter the values "keyfig1" and "keyfig2".
    Include this infoobject in the filters and restrict it using a "ready for input" variable.
    Now create two formula variables.
    Write a customer exit such that when you select "keyfig1", first formula variable's value should be set to 1 and other one's to 0.
    Then in the query create two calculated key figures, multiply both with the formula variable. Also supress column (all active value == 0).
    Then it will show the key figure which you have selected.
    Pravender

  • How to create  some columns dynamically in the report designer depending upon the input selection

    Post Author: ekta
    CA Forum: Crystal Reports
    how  to create  some columns dynamically in the report designer depending upon the input selection 
    how  export  this dynamic  report in (pdf , xls,doc and rtf format)
    report format is as below:
    Element Codes
    1
    16
    14
    11
    19
    10
    2
    3
    Employee nos.
    Employee Name
    Normal
    RDO
    WC
    Breveavement
    LWOP
    Sick
    Carers leave
    AL
    O/T 1.5
    O/T 2.0
    Total Hours
    000004
    PHAN , Hanh Huynh
    68.40
    7.60
    76.00
    000010
    I , Jungue
    68.40
    7.60
    2.00
    5.00
    76.00
    000022
    GARFINKEL , Hersch
    66.30
    7.60
    2.10
    76.00
    In the above report first column and the last columns are fixed and the other columns are dynamic depending upon the input selection:
    if input selection is Normal and RDO then only 2 columns w'd be created and the other 2 fixed columns.
    Can anybody help me how do I design such report....
    Thanks

    Hi Developer life,
    According to your description that you want to dynamically increase and decrease the numbers of the columns in the table, right?
    As Jason A Long mentioned that we can use the matrix to do this and put the year field in the column group, amount fields(Numric  values) in the details,  add  an filter to filter the data base on this column group, but if
    the data in the DB not suitable to add to the matrix directly, you can use the unpivot function to turn the column name of year to a single row and then you can add it in the column group.
    If there are too many columns in the column group, it will fit the page size automatically and display the extra columns in the next page.
    Similar threads with details steps for your reference:
    https://social.technet.microsoft.com/Forums/en-US/339965a1-8cca-41d8-83ef-c2548050799a/ssrs-dataset-column-metadata-dynamic-update?forum=sqlreportings 
    If your still have any problem, please try to provide us more details information, such as the data structure in the DB and the table structure you are currently designing.
    Any question, please feel free to let me know.
    Best Regards
    Vicky Liu

  • From which table we can get cat_guid depending upon the guid of a tr.ticket

    Hi Experts,
    I have to find the cat_guid depending upon the guid which is in crmd_orderadm_h table to retrive the fields categeorization module/element/type maintained in the service ticket.
    Please tell me from which table we can get cat_guid depending upon the guid of perticular trouble ticket.
    points will be rewarded if helpful.
    regards,
    Ezal

    Hi Ezal
    Pass the GUID (CRMD_ORDERADM_H) to Function Module CRM_ORDER_READ to retrieve the required values.
    I think this should do the trick.
    Reward with points if helpful
    Regards
    Arden

  • How to change the image dynamically depend upon the input parameter

    Hi All
    I have one report running depend upon the Organization specific, I have 15 operating unit and 15 different logo for each operating unit.
    How to change the Logo dynamically depend upon the input passed by the user.
    If I have three or four logo i can add in my layout using if else statement and its works fine but i have more that 10 logos so its no possible to keep these in My RTF Template.
    Is it possible to change the logo according to the input without keeping this in Template.
    I have seen this link but its not working fine
    http://erpschools.com/articles/display-and-change-images-dynamically-in-xml-publisher
    Regards
    Srikkanth.M

    Hi,
    I have not completed fully,so sorry i cant able to share the files, could you please give me some tips and steps to do.
    Without having the logo in RTF if it possible to bring the logo depends on the user input (Ie Operating unit).
    Regards
    Srikkanth

  • Conditions maintained in purchase order that can be copied to the proforma

    Hi every body,
    In STO process, freight or what ever the  conditions maintained in purchase order that can be copied to the proforma Invoice, is it possiable, if yes please let me know!
    Thanks in advance
    Regards

    Yes you can copy the conditions from STO into delivery. For this you need to have the same condtion types defined and also need to write routines in SD pricing.

  • Hide Advance table Depending upon the value of dropDown

    Hi,
    I have 2 advance tables. 1st one has a DropDown. Depending upon the value of the dropdown in 1st advance table, the second advanced table should get rendered.
    I tried by getting the value of the dropdown by addingg a PPF and iterating trough the table and I got the value. But when I redirect to the same page, all the selection and other values in 1st advanced table vanish out.
    Can someone help me getting the 2nd table hidden and at the same time retaining the values for the 1st advanced table.
    Thanks in Advance,
    Kaushik Rambhiya

    Kaushik
    Implement PPR for this requirement and dont redirect the page
    Displaying image based selected value of choice bean
    http://oracleanil.blogspot.com/2009/05/ppr.html
    Thanks
    AJ

  • Do the execution time of the insert command depend upon the no the indexes

    hi,
    Do the execution time of the insert,update and delete command depend upon the no the indexes created for a table......
    Edited by: [email protected] on Mar 4, 2009 3:02 AM

    sure,..
    An index is a structure which contains entries pointing to the actual data in the table.
    When you insert a record into a table, the data which should also be indexed is inserted in the index structure. This index data needs to be in a specific place, not just anywhere (as opposed to e.g. a heap table).
    So this might lead to an update and insert in the index structure.
    This is just to give you an idea. More on the subject in Tom Kyte's Expert Oracle Database Architecture and of course Oracle's documentation.

  • Conditions in SQVI for amount depending upon the Debitcredit Indicator

    Hello ABAP's
    I am new to this forum & learning. I am using SQVI for getting Information from Table BSEG. The data is getting extracted but I am unable to give any conditions for amount depending upon the Debitcredit Indicator. If it is "H" ie. Credit the Amount should change colour and if it is "S" it should be as it is.Just like in tcode MB51 when we get negative amount the Line is dispalyed in Pink and in case of Positive in Green.
    Looking forward to your help.
    With regards
    Sandy

    Hi Sandesh,
    You can not manipulate data in SQVI. For that you can write a query in infostructures transaction SQ01/02/03.
    1. Go in SQ02, create an infoset and assign it to user-group available.
    2. Inside infoset, declare table BSEG and click on button 'Extras'. here, you can write your code to multply by '-1' to a field depending upon some condition. Select 'Code' tab and code section as 'Record Processing'. Write code in window displayed.
    3. In SQ01, select infoset you just created and select the query.
    Execute the same and you will get required output.
    Let me know if it helps.
    Gouri.

  • How to fill up the Flex ProgressBar control ,depending upon the Controls Seelcted inside the MXML

    Hi ,
    Please , let me know  How to fill up the Flex ProgressBar control ,depending upon the Controls Seelcted inside the MXML 
    Lets say I have five text boxes and a dropdown box in my flex application, how can I make the progress bar fill up when there is text in each box, and the dropdown selected. 
    Please help
    Thanks in advance .

    Hi Kiran,
    You can do something like below to implement the functionlaity you needed...
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" verticalAlign="top"
        horizontalAlign="center" backgroundGradientColors="[0x000000,0x323232]" paddingTop="0" viewSourceURL="srcview/index.html">
        <mx:Script>
            <![CDATA[
              private var j:uint=0;
              // Event handler function to set the value of the
              // ProgressBar control.
              private function runit():void
                  if(j<=100)
                    j+=10;
                     bar.setProgress(j,100);
                     bar.label= "CurrentProgress" + " " + j + "%";
                  if(j>100)
                     j=0;
                     check1.selected=false;
                     bar.setProgress(j,100);
                     bar.label= "CurrentProgress" + " " + j + "%";
              private function checkFunction():void
               if(!check1.selected)
                 if(j<=100)
                    j-=10;
                     bar.setProgress(j,100);
                     bar.label= "CurrentProgress" + " " + j + "%";                
                  if(j>100)
                     j=0;
                     check1.selected=false;
                     bar.setProgress(j,100);
                     bar.label= "CurrentProgress" + " " + j + "%";
                else
               runit();
            ]]>   
        </mx:Script>
        <mx:Panel title="ProgressBar Control" layout="vertical" color="0xffffff" borderAlpha="0.15"
             paddingTop="10" paddingRight="10" paddingBottom="10" paddingLeft="10" horizontalAlign="center">
             <mx:Label width="100%" color="0x323232"
                text="Click the button to increment the progress bar." />
                <mx:HBox>
              <mx:CheckBox id="check1" label="Check Me" color="#123456" click="checkFunction();"/> 
            <mx:Button id="Speed" label="Click" click="runit();" color="0x323232"/>
              </mx:HBox>
            <mx:ProgressBar id="bar" labelPlacement="bottom" themeColor="#EE1122" minimum="0" visible="true" maximum="100"
                 color="0x323232"    label="CurrentProgress 0%" direction="right" mode="manual" width="100%"/>
        </mx:Panel>
    </mx:Application>
    If this post answers your question or helps, please kindly mark it as such.
    Thanks,
    Bhasker Chari

  • Production order number range after taking the back up from production serv

    Dear all,
    My client did a back up activity yesterday from production server to disaster recovery server.
    After completing this activity they shut down there production server to do the testing of this new server.
    Production guy converted the planned order to production order and he got a number say 2000064732, but the current number in number range is 2000080139.
    But same guy created order one day before in production server that time the order number in 2000080138.
    After 2 hours the system (by that time he has create more than 50 orders) started assigning the number as per the current number. Ex: 2000080140,141,142u2026
    As per my observation they have maintained buffer as 20. As per buffering logic system has to skip in forward direction not in reverse direction.
    But in our case the system skipped in back word that nearly 16000.
    So please help me to find out the reason why the system assigned those number and on what basis.
    Thanks for your help
    Regards
    Ramesh

    See SAP note 62077, your application server was shut down, the numbers that are left in the buffer (that is, that are not yet assigned) are lost. As a result, there are gaps in the number assignment.

Maybe you are looking for

  • OT: Printing is Broken (need to print a score in a hurry...)

    Hi, A week or so ago, printing stopped working on my 10.4.3 system. CMD-P will indeed bring up a printing dialog, but when I go to actually print I get an error. I can't even save as .pdf from the dialog. Something's messed up big time. I've tried re

  • Want to buy a camcorder

    Okay, I've read some posts here so I know I need to buy a mini dv camcorder if I want to use idvd 6.0. (Bought new imac 2 weeks before new iLife 08 intro so not going to jump yet.) First choice is the Sony TRV900 but at $900 or so my wife would kill

  • Best way to handle optional elements in XSLT

    Hi All, I'v wondering if there are any better ways to handle optional fields in XSLT. For example if my Person Type has 5 fields and 3 of them are optional: <xs:complexType name="PersonType"> <xs:element name="PersonID" min="1"/> <xs:element name="PI

  • Problem viewing youtube in my MB air mid 2012

    Hi there, i got a problem here on viewing youtube in my MB air mid 2012, the video always freezes but the video counter is still running and when i scroll down/up the video it unfreezes, i tried to play offline videos but it works/plays fine. suggest

  • AEBSn & XP

    I have a USB drive plugged into my AEBSn and have one music andmovie librayr on there that is accessed by both my Macbook and macpro with windows xp pro sp2. in windows when playing music files in itunes, sometimes it will stutter randomly and watchi