How can I obtain the source of supply for a material?

Hi experts,
I have this issue,
I need to change the source of supply for a material in transaction ME51N and in MRP. This new source of supply is the source of supply of another material, related to the material we are creating the Purchase Requisition with a Z table. In ohter words, If the material of the PurchReq is in a Z table, we change it´s source of supply with the source of supply of another material.
For this I am using the BADi MD_MODIFY_SOURCE, here we can change the CH_LIFNR  changing parameter. But I don´t Know how to get the source of supply of the other material.
Is there any BAPI or function module for doing this?
Could I do it by classic SELECTs to some standar tables? If I can, which tables should I select from?
Thank you very much and kind regards
Ibai

Hi,
Check table EORD.
regards,
Pole

Similar Messages

  • How can i get the open sale orders for given material no and plant

    Hi,
    I have to retrieve the open sale orders depending on the material number and plant.
    For only open sale orders at header level and item level.
    I want to use VBUK-GBSTK to find open sale order at header level and
                          VBUP-GBSTA at item level.
    Can any one suggest me the best logic as performance is concerned?           
    Thanks,
    Kumar.

    hi Prasanth,
    select werks matnr from ZVSCHDRUN into table it_plant.
    sort it_plant by matnr werks.
    select
            vbeln
            posnr
            matnr
            werks
            erdat
            kbmeng
            vrkme
            from vbap
            into table it_vbap
            for all entries in it_plant
            where matnr = it_plant-matnr and
                  werks = it_plant-werks.
    and again i have to write one more select query for vbup.
    am i right?

  • How can i get the source code from java concurrent program in R12

    Hi 2 all,
    How can i get the source code from java concurrent program in R12? like , "AP Turnover Report" is java concurrent program, i need to get its source code to know its logic. how can i get its source code not the XML template?
    Regards,
    Zulqarnain

    user570667 wrote:
    Hi 2 all,
    How can i get the source code from java concurrent program in R12? like , "AP Turnover Report" is java concurrent program, i need to get its source code to know its logic. how can i get its source code not the XML template?
    Regards,
    ZulqarnainDid you see old threads for similar topic/discussion? -- https://forums.oracle.com/forums/search.jspa?threadID=&q=Java+AND+Concurrent+AND+Source+AND+Code&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    Thanks,
    Hussein

  • How can I remove the " Source.vi" from long Express VI Names?

    I am in the Moment working on the Development of an Express VI
    library for test purposes.
    How can I remove the " Source.vi" from long Express VI Names?
    This happens when the Express VI is inserted in the blockdiagram
    and listed in LabVIEW and TestStand Palettes.
    By short names like "DAQ-Assistent" or "EasyCalc" the string " Source.vi"
    is not shown at the end of the Express VI names.
    I used The Express VI Dev Toolkit 1.0 to create the Express VIs.
    Labview Version: 7.1 Base
    TestStand: 3.1
    It would be great to get the expert advice from the Forum for this issue!
    Thanks a lot.
    Andre

    I think I understand what you are asking for. If I am wrong, please try to explain it a bit more.
    The name shown may be different than the name of the vi file. To do this, your source VI and popup on its icon. From the short menu that comes up, select VI properties. In the top ring, select Window Appearance. The page that comes up lets you set various things that can affect the appearance of the VI. What you want to change is the window title. Uncheck the Same as VI name checkbox and change the string to whatever you want it to be.
    I hope that this helps,
    Bob
    Bob Young - Test Engineer - Lapsed Certified LabVIEW Developer
    DISTek Integration, Inc. - NI Alliance Member
    mailto:[email protected]

  • How can I obtain the primary key of a table for an entity relation?

    hello everybody
    I am doing a consultation to a table in my data base, good this table has alone two fields, the first one is the code or pk and the second one is the description, to be presisos they are names of city and code.
    From the beginning!!: This method this one in another class that is a Dialog that is going to call to the class SelecPlace ();
      SelecPlace sl = new SelecPlace();
    public void capturarLugar(){  //  Simple void method in the mentioned class
            String place = txtProcedencia.getText() ;  //  a JTextField
            sl.executeStatement(place) ;                  
        }ok, now we see part of the code of the class SelectPlace
    public class SelecPlace extends AbstractTableModel{
        Connection con = null;
        Statement sentencia = null ;
        ResultSet rs = null;
        ResultSetMetaData rsmd = null ;
        String[] nameColum = {} ;
        Vector datos = new Vector() ;
        public SelecPlace() { }
        public void executeStatement(String query){
          try{
             con = DBManager.getConnection() ;
             sentencia = con.createStatement(rs.TYPE_SCROLL_INSENSITIVE,
                                                                          rs.CONCUR_UPDATABLE) ;
             String sql = "select * from Place where descripcion like %"+query+"%'";
              rs = sentencia.executeQuery(sql) ;
              rsmd = rs.getMetaData();
              int nroColumnas = rsmd.getColumnCount() ;
              nameColum = new String[nroColumnas] ;
              //obtengo los nombres de columnas en cache
               for(int colum = 0; colum < nroColumnas; columna++){
                    nameColum[colum] = rsmd.getColumnLabel(columna + 1) ;
               datos = new Vector();
                while(rs.next()){
                    Vector newRow = new Vector();
                    for(int i = 0; i < getColumnCount(); i++){
                    newRow.addElement(rs.getObject("place_ID"));
                    newRow.addElement(rs.getObject("description"));
                    datos.addElement(nuevaFila);
                fireTableChanged(null);
            }catch(SQLException e){
                System.err.println(e);
                e.printStackTrace(System.err);
                System.out.println("error in statement");
            }catch(ClassNotFoundException cnfe){
                System.err.println(cnfe);
        }Ok, this code me works and I obtain in this case the field description of the table Place
    Now my question is, how can I obtain the primary field of my table?
    I need this value of this field that in the base of information in a bigint, and to take it to the first class before mentioned, for that I am working with a data base related

    Certain duffymo and everyone!!, good I give you my scheme:
    And generalizing my question, I want to obtain the value of the primary key of a table in the database, I obtain more values of the same row, but I need the primary key, and you see one with the primary key I want to turn a Long and it to insert with code java in foreign clave in another table of the database
    Good of this form I believe that it would not be breaking the integrity relacional of the tables

  • Trying to install Acrobate 8 Standard on PC with Windows 7, 64 bit. During the installation I was asked to provide "File Adobe PDF.dll for Windows Vista. How can I obtain the required file?

    Trying to install Acrobate 8 Standard on PC with Windows 7, 64 bit. During the installation I was asked to provide "File Adobe PDF.dll for Windows Vista. How can I obtain the required file?

    Nothing in the Acrobat 8.x product family is compatible with Windows 7 (or any contemporary OS).
    The Acrobat 8.x product family passed into End of Support way back -- (November 2011).
    The current release of Acrobat (XI) is compatible in Windows 7.
    Be well...

  • How can I obtain the value of a database column in a JSP variable ?

    How can I obtain the value of a table column in a JSP variable?
    For example the <jbo:ShowValue datasource="cl" dataitem="Cont" ></jbo:ShowValue>
    I need to have it in a variable like this:
    <% String cnt=<jbo:ShowValue datasource="cl" dataitem="Cont" ></jbo:ShowValue>; %>
    But it is not workig this way.
    Please help me to obtain the value.
    I am using JDev RC2.
    Thanks.

    Try something like
    String cnt = c1.getRowSet().getCurrentRow().getAttribute("Cont").toString();
    -A
    How can I obtain the value of a table column in a JSP variable?
    For example the <jbo:ShowValue datasource="cl" dataitem="Cont" ></jbo:ShowValue>
    I need to have it in a variable like this:
    <% String cnt=<jbo:ShowValue datasource="cl" dataitem="Cont" ></jbo:ShowValue>; %>
    But it is not workig this way.
    Please help me to obtain the value.
    I am using JDev RC2.
    Thanks.

  • Hi,  I lost my serial number for PS Elements11 following computer crash. Os is W7. I have the cd installation disc but there is no serial number with it or in the envelope  ..  How can I obtain the serial number please?     Thanks

    I lost my seriel number for PS Elements 11 following computer crash. Os is W7
    Peter Jones Aug 27, 2014 5:36 AM   
    Hi,
    I lost my serial number for PS Elements 11 following computer crash. Os is W7. I have the cd installation disc but there is no serial number with it or in the envelope
    How can I obtain the serial number please?
    Thanks

    If you registered the software you should be able to find the serial number thru your Adobe account online.
    To locate the serial number:
    http://helpx.adobe.com/x-productkb/global/find-serial-number.html

  • How can I find the source of report in the executable method= "Spawned" ?

    Dear all:
    how can I find the source of report in the executable method=>"Spawned" ?
    Regards,

    Hi,
    Please see this thread.
    To View Spawned Concurrent Program Source Code
    To View Spawned Concurrent Program Source Code
    Regards,
    Hussein

  • How can I change the source directory in Netbeans

    Hi there,
    Thanks for reading.
    How can I change the source directory in Netbeans so I can have a src directory?
    Thanks,
    Lorenzo

    Forgot to say Netbeans 3.6.
    thanks

  • How Can I obtain the tables of one schema and the record size???

    How Can I obtain the tables of one schema and the record size???
    Example:
    TableName Record Size
    Tabla1 12500
    Tabla2 7800
    Tabla3 2046

    This is not an OWB question, but you can obtain bda-type information on tables by using the system view dba_tables.
    Regards:
    Igor

  • How can I view the source code of chrome://browser/content/browser.xul?

    How can I view the source code of chrome://browser/content/browser.xul of mobile FireFox?
    In my desktop version I just open this page in new tab and view webpage source, but there is no option for FF mobile to view source code.
    Best regards.

    Does the view-source: protocol work on mobile?
    *view-source:chrome://browser/content/browser.xul

  • How can I get the source code of the google chrome ios app

    How can I get the source code of the google chrome ios app

    Google is your friend
    http://www.chromium.org/
    and
    https://developers.google.com/chrome/mobile/docs/iosoverview

  • How can I obtain the resources in jar?

    How can I obtain the resources in jar if the class that to want this resource is static?
    I don't succeed use like:
    getClass().getResourceAsStream("/" + name)
    because my class is static.
    Thaks

    You could do this
    new Object().getClass().getResourceAsStream("/" + name)
    or
    Object.class.getResourceAsStream("/" + name)

  • How can I obtain the web site template of the ''Imvelo Safari Lodges'' that appears on the Site of the day web page?

    How can I obtain the web site template of the ''Imvelo Safari Lodges'' that appears on the Site of the day web page?

    Hi Ginette,
    The site that you are referring to does not appear to be a template that you can get your hands on, however, I will suggest that you contact the owner via their contact us page and see what can be done.
    - Abhishek Maurya

Maybe you are looking for