Database table of Match approval level data in shipment more tab

hi friends
i need to know the database database table of Match approval level data in shipment > more tab of PO.
pls help. its urgent.

Hi friends
Thank you all for reply. 2-Way, 3-Way or 4-Way values are coming against particular item according to the following combination of values in inspection_required_flag and receipt_required_flag column of PO_line_locations_all.
4-WAY :Inspection_required : Y , Receipt_required : Y
3-WAY :Inspection_required : N , Receipt_required : Y
2-WAY :Inspection_required : N , Receipt_required : N
it refers there is no fixed column in table based on which 2-Way, 3-Way or 4-Way values are coming for MATCH APPROVAL LEVEL field in that form. am i right? pls response.
One more thing, inspection_required_flag and receipt_required_flag columns are also available in mtl_system_items_b. My question is when a PO is created with any item which value combination is prioritized. i mean when i open Shipment form and go to More Tab, a value for MATCH APPROVAL LEVEL field is automatically set for that item. Where does that value come from? does it come from PO_line_locations_all or mtl_system_items_b ?
if my concept is not wrong it comes from mtl_system_items_b. after saving that PO the value is then stored in PO_line_locations_all.
if my concept is wrong in any way pls let me know. Thanks
Edited by: Lisan on Jul 15, 2009 9:45 AM

Similar Messages

  • Audit on Match Approval Level - 2-Way, 3-Way...

    Hi,
    We have a requirement where user wants to audit any changes made to Match Approval Level field. If anyone changes 3-way to 2-way or 4-way to 3-way it should be tracked. Are there any audit tables for this?
    Thanks
    Sam

    Hi Sam,
    As this is a part of setup, so cannot track the history. Where as the same thing can be tracked at purchase order level. you can ask for customized report to your technical team and can identify the which match approval level has been used for that order.
    Thanks & Regards
    Ankur Dawra

  • Have to papulate table with matched and unmatched data

    Hi all
    I have to populate tables suppose T1 and T2 on the basis of a SELECT satement with various WHERE clause.
    now the problem is i have to Put the matched data in T1 and the remaing unmatched data in T2.
    Please reply
    thanks

    well i dont think this will work in my case.
    Let me tell you exact scene
    Table T has columns which contains records.
    Now i have to Build a procedure the logic of proc should be
    When that proc run the good records should goes to Table T1 and the bad records to T2.
    and bad records are determind with where cluase like e.g
    "where col1 not like 'rec2.1' " and many other clauses.
    so here an eg
    Table T
    col1 col2 col3
    rec1.1 rec1.2 rec1.3
    Now when proc run I have to sort the records on condition Where so n so
    And required out put should be
    Table T1
    Col1 col2 col3
    rec1.1 rec1.2 rec1.3 -----good record
    Table T2
    col1 col2 col3
    rec2.1 rec2.2 rec3.3 ----- bad record
    I guess this will help to understand prob.

  • Database table updation with XML Document data

    import java.io.*;
    import java.lang.*;
    import java.net.URL;
    import java.sql.*;
    import java.sql.Connection;
    import java.sql.DriverManager;
    import java.sql.SQLException;
    import oracle.xml.sql.dml.OracleXMLSave;
    import org.w3c.dom.Document;
    public class updateXMLData
    public static void main( String argv[] ) throws SQLException,Exception
    String tabName = "emp";
    Connection conn = null;
    String xmlString;
    Document doc;
    URL filename;
    try
    //init a JDBC connection using Oracle's JDBC Drivers
    String host = "maple"; // change,these won't work
    String port = "1521";
    String sid = "PBSI";
    String s1 = "jdbc:oracle:thin:@" + host + ":" + port + ":" + sid;
    DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    conn = DriverManager.getConnection( s1,"scott","tiger");
    // Instructions for updating the database rows from XML Document
    OracleXMLSave sav = new OracleXMLSave(conn,tabName);
    filename = sav.getURL("pbsiempupd.xml");
    sav.setRowTag("EMP");
    String[] tempArr = new String[2];
    tempArr[0]="EMPNO";
    tempArr[1]="ENAME";
    sav.setKeyColumnList(tempArr);
    sav.setUpdateColumnList(tempArr);
    int noRows = sav.updateXML(filename);
    System.out.println("No of rows updated : " + noRows);
    catch (SQLException se)
    System.out.println("An SQL exception has occured ");
    System.out.println("The error code is : " + se.getErrorCode());
    System.out.println("The SQL State is : " + se.getSQLState());
    System.out.println("The message is : " + se.getMessage());
    catch (Exception e)
    System.out.println("Unknown exception has occured");
    System.out.println("The class is : "+ e.getClass());
    System.out.println("The message is : "+e.getMessage());
    finally
    if (conn != null) conn.close();
    The input XML Document is given below :- in 'pbsiempupd.xml'
    <?xml version="1.0"?>
    <ROWSET>
    <EMP>
    <EMPNO>8888</EMPNO>
    <ENAME>RAO THOTAKURA</ENAME>
    </EMP>
    <EMP>
    <EMPNO>9999</EMPNO>
    <ENAME>BAVA MANI</ENAME>
    </EMP>
    <EMP>
    <EMPNO>7777</EMPNO>
    <ENAME>SRINIVAS M</ENAME>
    </EMP>
    </ROWSET>
    After executing this class with 'java updataXMLData' I'm getting following runtime error message :-
    Unknown exception has occured
    The class is : class oracle.xml.sql.OracleXMLSQLException
    The message is : Exception 'java.sql.SQLException:Missing IN or OUT parameter at index:: 1'
    encountered during processing ROW element 0All prior XML row changes were rolled back.
    in the XML document.
    Please anybody could explain how to solve it.
    Thanks
    Sambasivarao Thotakura

    See my reply to your other question. thanks.

  • Delete from database Table

    Hi,
    To delete data from database table using internal table I am using following statement.
    DELETE dbtab       FROM TABLE itab.
    Itab is a sorted table.Just wondering if table type matters while deleting database entries using internal table.which is efficient table type for deleting records from database table?
    Regards
    Nilesh

    Hi Nilesh
    The row type of the internal table must be a data object with at least the same length and alignment as the key structure of the database table. The key is read according to the structure of the table line, and not that of the row type. It is a good idea to define the row type with reference to the structure of the database table.
    From SAP Help
    DATA: BEGIN OF WA,
    CARRID TYPE SPFLI-CARRID,
    CONNID TYPE SPFLI-CONNID,
    END OF WA,
    ITAB LIKE HASHED TABLE OF WA
    WITH UNIQUE KEY CARRID CONNID.
    WA-CARRID = 'UA'. WA-CONNID = '0011'.
    INSERT WA INTO TABLE ITAB.
    WA-CARRID = 'LH'. WA-CONNID = '1245'.
    INSERT WA INTO TABLE ITAB.
    WA-CARRID = 'AA'. WA-CONNID = '4574'.
    INSERT WA INTO TABLE ITAB.
    DELETE SPFLI FROM TABLE ITAB.
    Besides, it is so technical what algorithm is run to delete records from the DB table when an internal table is given. If you want you can have a quick test using GET TIME. However, it seems logical that if your internal table is sorted with respect to any index, especially the primary index, of the DB table this may increase performance.
    Regards
    *--Serdar <a href="https://www.sdn.sap.com:443http://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.sdn.businesscard.sdnbusinesscard?u=qbk%2bsag%2bjiw%3d">[ BC ]</a>

  • Last or oldest record in a oracle database table

    I want to fetch oldest record in database table based on llast updated date ; I tried following queries..it gave me different results
    SELECT EVENT_ID, RETENTION_TS
    FROM ( SELECT EVENT_ID, RETENTION_TS, RANK() OVER (ORDER BY RETENTION_TS) RETENTION_TS_RANK
    FROM EVENT )
    WHERE RETENTION_TS_RANK <= 1;
    select * from EVENT where rowid=(select min(rowid) from EVENT);
    SELECT *
    FROM (select * from EVENT ORDER BY RETENTION_TS) EVENT2
    WHERE rownum <= 1
    ORDER BY rownum DESC;
    Above query takes like 10 to 20 mins to return me the record.
    Thanks in advance..

    feritz wrote:
    I want to fetch oldest record in database table based on llast updated date ; I tried following queries..it gave me different results
    SELECT EVENT_ID, RETENTION_TS
    FROM ( SELECT EVENT_ID, RETENTION_TS, RANK() OVER (ORDER BY RETENTION_TS) RETENTION_TS_RANK
    FROM EVENT )
    WHERE RETENTION_TS_RANK <= 1;
    select * from EVENT where rowid=(select min(rowid) from EVENT);
    THAT surely won't give a correct result. Rowid is the address of the row ... it has nothing to do with the age of the row.
    What is the datatype of RETENTION_TS?
    SELECT *
    FROM (select * from EVENT ORDER BY RETENTION_TS) EVENT2
    WHERE rownum <= 1
    ORDER BY rownum DESC;
    Above query takes like 10 to 20 mins to return me the record.
    Thanks in advance..See "how can I improve he performance of my query" in the FAQ at https://forums.oracle.com/forums/ann.jspa?annID=1535

  • Regarding database table to infotype

    hi experts,
                    sorry i m going to ask a typical question i m working on hr-abap ,i have developed a module pool in which the database table is updating with some data,what i want that after updation i want to store that data in a infotype,,so plz tell me how to create infotype and how to store the data into it from a database table...thnx in advance.i know it is a configuration part but rt nw my company doesnt have hr consultant.....plz help me.

    Hi
    <b>Creating an Infotype</b>
    Using the TCODE PM01 you can create an Infotype. As per SAP standard you can use only 9000 series. The below procedure explains you how to create an Infotype.
    1.Go the transaction PM01 and give the Infotype Number lets say 9999 and press  button. It will ask you a messaging window,
    2.Press create button to continue further. It will take you to create the structure.
    3.Give the components and SAVE & ACTIVATE the structure and come back.
    An Infotype attributes window will appear; you create a new entry with the Infotype No and give the appropriate description.
    and give the data and press ENTER key. The Technical data will appear automatically, here you have to maintain the Single screen as ‘2000’ and List screen as ‘3000’ and then SAVE the info and press BACK button, you will reach the main screen.
    After that using the Menu option Infotype 
    4.Generate the structure, dialog module and include. 
    Click the  button from application tool bar to check the Infotype attributes. Select the 9999 Infotype and check the data.
    If every thing is error free, you can use the Infotype using PA30 transaction.
    5.Use the Create button you can create New Entries for the Infotype.
    You can view the entries in table PA9999 using the TCODE SE11/SE16.
    Validating Code in Module pool: - If you want to validate the user inputs,
    You need to write the validate code procedure in the module program MPXXXX00 screen 2000 (here XXXX is user Infotype, in our case 9999).
    In PAI.
      MODULE P9999.
      MODULE HIDDEN_DATA.
      FIELD P9909-PRATE MODULE PRATE. “ Create a module routines. 
    In PBO
      MODULE PRE_INPUT_CHECKS.
            input-checks:                                               *
      insert check modules here:
      CHAIN.
       FIELD P9909-PRATE MODULE PRATE.
      ENDCHAIN.
    Double click on PRATE it will ask you the include name, SELECT the include MP999930 from the input window.
    *&      Module  PRATE  OUTPUT
          text
    MODULE prate OUTPUT.
      IF NOT p9909-prate IS INITIAL.
        PERFORM check_prate.
      ENDIF.
    ENDMODULE.                 " PRATE9  OUTPUT
    Again check_prate subroutine, write down the below code in MP999940 include.
    *&      Form  check_prate
    FORM check_prate .
    CLEAR zprate_t.
      SELECT SINGLE * FROM zprate_t WHERE prate = p9909-prate.
      IF sy-subrc > 0.
        CLEAR zprate_t.
        MESSAGE e016(rp) WITH 'Entry does not exist in ZPRATE_T table'.
      ENDIF.
    ENDFORM.                    " check_prate
    After that check the module, if it is error free then ACTIVATE the same. You can check the Infotype validations using the PA30 transaction.
    Regards
    Raj

  • Delete all content in a database table

    i want to initialize a database table just before my specific program terminate.
    can i use the
    delete databasetable
    Edited by: Matt on Nov 7, 2008 8:04 AM

    Hi,
    If you want to delete all the contents of database table, use the following code:
    data itab type standard table of dbtab.
    select * from dbtab into table itab.
    delete dbtab from table itab.
    Hope this will help.
    Regards,
    Nitin.

  • Import CSV into the Database Tables

    Hello All,
    I have a requirement to import the CSV coloum values into the backend table.
    It would be great if anyone could help me out with the procedure in APEX.
    Looking for response.
    Regards,
    Sandeep Reddy

    hi,
    i have tried a similar kind of stuff..,
    check the link_Import data in excel to database table for the process and steps..,
    for more information you can check the forums; http://forums.oracle.com/forums/thread.jspa?threadID=2206363&start=0&tstart=0
    i hope you get your solution there.
    Regards,
    Little Foot

  • In which table is the Live cache data stored?

    Hi experts,
       I am new APO .Can anyone let me know in which database table will the Live cache data be stored?
    Thanks in advance
    regards
    Ashwin.

    Hello Ashwin,
    the idea of the liveCache is to haev data permanently and quickly available without having to read/write from/to database. Therefore, the liveCache is <b>NOT</b> a physical database, it is a program in C++ that <i>simulates</i> a database and holds the data in the memory.
    However, it does need so called liveCache-anchors which are saved on the database, and which are similar to pointers.
    However, you can extract data from liveCache using BADIs or by creating a datasource on a planning area (for DP and SNP), manipulation can also be done only by BADIs or sophisticated programming (which basically uses RFCs).
    I hope this answers your question.
    Regards,
    Klaus

  • Updating database table - not working

    Hi ,
              My database table 1 is having multiple data for a primary key
    example :
    table 1:
    GLOBMATNR  -> Primary key
    WERKS  --> non primary key -- multiple for globmatnr
    MBLNR --> non primary key -- multiple for globmatnr
    MBLPO--> non primary key --
    BUKRS --> non primary key -- multiple for globmatnr
    i m using below statement to make entry into the table.. but this insert is not working.. I stead of putting 30 entries its just inserting 1 entry..
    Can any one help me in this..?
    INSERT table1 FROM TABLE internal_table ACCEPTING DUPLICATE KEYS.
    Edited by: neha gupta on Oct 29, 2010 1:25 PM

    Hi,
    Hit F1 on ACCEPTING DUPLICATE KEYS. You will identify why it is inserting 1 line only. I hope the table is a custom table. For fields which can have multiple values, make it primary key.
    In your example table, GLOBMATNR, WERKS, MBLNR could be primary keys if WERKS is in one company code only. If not add BUKRS also
    Hope it helps
    Sujay

  • Query on Receipt Routing and Match Approval 4 way

    Hi freinds,
    I have a doubt here.We have a PO with a Shipment line with Match
    Approval Level set as 4 way.Then by default the system would have reset
    the Receipt routing to 'Inspection Required' with a prompt message also to the user about this.
    But to my surprise,i found that the Receipt Routing has 'Standard Receipt' for that PO.
    How come this would have been possible?
    Regards,
    Bala.

    Jyoti,
    My query is not on the defaulting ,but on the the Invoice Match approval .
    If it is set to 4 way,by default it means that inspection is required and the system forces you to change the same to Inspection Reqd irrespective of whatever you say for Receipt routing.
    You cannot save and proceed ,unless until you change the routing to inspection reqd in synchronisation with match approval of 4way.
    So how has system allowed to go ahead with a value other than Inspection reqd.
    Bala.

  • Designing Database Tables

    Hi,
    Let's assume we have to develop an application for a bank.
    There are different types of Accounts in a Bank. ex: Fixed Deposit Accounts, Current Accounts, Savings Accounts
    There is also the possibility of adding new account types.
    How should we design the database.
    Have one Table to store common account data and three more tables to store data of 3 account types?
    But I will have to create a new table and amend my code to access new table if I add another type of account.
    Another method I thought of is to use a table to store configuration data.
    AccountConfiguation Table:
    Account Type Column Id Column Desc
    =========== ====== =========
    And add column details for each table.
    Then have one main table to save details of all 3 account types.
    AccountDetails Table
    AccountID Column Id Data
    ========= ========= =====
    Please help me to identify the best method or is there any other way.
    Best Regards,
    Chamal.

    You are in danger of straying into the big mistake that is Entity-Attribute-Value (EAV). You don't want to go there.
    Yes, you'd have to amend your code if you introduced a new account type. Surely you'd have to do that anyway if it had new attributes?
    If there aren't too many account types or too many columns altogether, you could simplify to a single table with all common and type-specific columns. The type-specific columns would be NULL for other types and check constraints would be used to ensure the appropriate columns were used for the account type.

  • Oracle Database 10g Release 2 - Free Desktop Data Center DVDs

    Hi,
    I have registered for the subject Oracle Database 10g Release 2 - Free Desktop Data Center DVDs more than a month ago, but I am still awaiting to receive them.
    Raghavan Karoth (Mahamaya Websoft)
    775 Dupont Street
    Toronto, On, M6G1Z5
    Tele:1-514-667-0577

    "10203_vista_w2k8_x86_production_db.zip" had been created and this folder size shows 63 MB Your download is not complete, zipfile is almost 800MB, from the download site:
    10203_vista_w2k8_x86_production_db.zip (797,326,161 bytes)
    You are right, home editions are not supported. That does not necessarily mean, it does not work, but it's your risk.
    Werner

  • How to input data in a database table without knowing in advance table and column configurations

    Hi,
    I have a problem using LabVIEW for input data (manually) in a SQL database. I have about 40 tables in the database, each of them is related to a specific engine component. I need to create a user interface (maybe visualizing the table with a table control) where the users can insert data in the database table fields. Could someone give me some suggestion on how to do it?
    Using the  DB tools insert data.vi I need to know in advance the column configuration of the table, but in my database each table has its own structure! So do I have to create 40 different masks, one for every different table?
    Thanks in advance.
    Michela

    I have not actually used the LV SQL Toolkit, but I will try and offer high level ideas :-)
    when you have retrieved the construction data for a table, you should be able to use array and cluster indexing to aquire the names of the fieds, enough to create a labelled table on the LV Front panel.
    After completing a new entry you can INSERT the entry into the database using the same data.
    Is the SQL toolkit an additional purchase, or included in newer versions as standard? If you post a sample of the cluster/array that you retrieve, I could give you a sample VI to give you some pointers in creating the User Interface table 
    - Cheers, Ed

Maybe you are looking for