Another SUS Query

HI All,
We are working on the MM-SUS classic scenario.
Currently the supplier is creating invoice based on the ASN. But as per the standard scenario we should be able to create invoice based on ASN & PO.
How do I enable the functionality of creating invoice based on PO?
Nikhil

Hi Chander,
I unchecked The GR based IV required indicator in the PO when sending it from ERP.
But this still does not let me create invoice based on PO.
There are no PO's in the list for which an Invoice can be created.
Nikhil

Similar Messages

  • How to Copy RPT of one BEX query to another Bex Query

    Hi,
    I have a Crystal Report-A1 based on one Bex Query ZABC_1. I also have another Bex Query with same output and source named ZABC_2.
    Now i want the to copy A1 to A2 and have A2 referring to ZABC_2.
    The only difference between the 2 queries is the selection option paramenters.
    Please let me know any way forward on this.
    Points will be awared for useful replies.

    Hi Rajesh J Salecha,
    What I understood is like :
    You have two queries and both gives same results but one of the query having a parameter.
    You have one report which is using query1.  Now you want that report to be copied as Report2 and use Query2 instead of Query1.
    If the this is the issue, then you copy Report1 as Report2 and go in Database and change the Data source location to Query2.
    Hope this will help you.  If my understanding is wrong then give us the work flow.
    Thanks,
    Sastry

  • Spatial Query that uses Result of another Spatial Query

    Hi all,
    I am using the SDO_DIFFERENCE Operator to return the difference between a query window and an intersection geometry. This is fine and i get an object back that is cast to a STRUCT using the SDO API. I want then to use this (returned)object in another SQL query that uses the SDO_RELATE Operator. The problem is that i dont know what type it needs to be so that the SDO_RELATE operator will accept it as a valid argument. Has anyone done this before or seen anything like it? Any help will be very much appreciated.
    Keith.

    Thanks for your help,
    I have done the following steps, but i still dont understand why it doesnt work.
    CREATE TABLE val_results (sdo_rowid ROWID, result varchar2(1000));
    CALL SDO_GEOM.VALIDATE_LAYER_WITH_CONTEXT('SHAPES','SHAPE','VAL_RESULTS');
    SELECT * FROM val_results;
    1 null     Rows Processed <3>
    2 AAARDDAAEAAAAA+AAA     13348 [Element <1>] [Ring <1>]
    3 AAARDDAAEAAAAA+AAB     13367 [Element <1>] [Ring <1>]
    SELECT shape_id,SDO_GEOM.VALIDATE_GEOMETRY_WITH_CONTEXT(c.shape, 0.005)
    FROM shapes c;
    3     TRUE
    2     13348 [Element <1>] [Ring <1>]
    1     13367 [Element <1>] [Ring <1>]
    If my rectangle and polygon is still invalid, can someone tell me why they are invalid. And how can i make them valid?
    Thanks.
    UPDATE:
    I have solved Polygon issue.
    In Spatial Developer's Guide it says:
    Simple polygon whose vertices are connected by straight line
    segments. You must specify a point for each vertex; and the
    last point specified must be exactly the same point as the first
    (within the tolerance value), to close the polygon. For
    example, for a 4-sided polygon, specify 5 points, with point 5
    the same as point 1.
    I have added a point to polygon which is same as first point. Now, it can find the point in polygon.
    INSERT INTO shapes VALUES (4, 'Polygon', SDO_GEOMETRY(2003, NULL, NULL, SDO_ELEM_INFO_ARRAY(1,1003,1), SDO_ORDINATE_ARRAY(306,193,130,441,489,653,88,183,442,354,306,193)));
    But, when i run this query again:
    SELECT shape_id,SDO_GEOM.VALIDATE_GEOMETRY_WITH_CONTEXT(c.shape, 0.005) FROM shapes c;
    4     13349 [Element <1>] [Ring <1>][Edge <4>][Edge <1>]
    3     TRUE
    2     13348 [Element <1>] [Ring <1>]
    1     13367 [Element <1>] [Ring <1>]
    it doesn't say TRUE like it did for Circle ??
    Edited by: WhiteScars on Jan 4, 2010 12:45 AM

  • Another RAW Query

    Hi There.
    Another RAW query. I have PS CS4 Extended 11. I have tried to open RAW (NEF) pictures from my NIKON D3100. I get the error message 'Could not complete your request because it is not the right kind of document'. I have tried downloading the latest update. I currently have Camera RAW Version 5.7.0.213. I have also downloaded the DNG converter but I still get the same error. I am using Windows 7 on a laptop.
    Please help, otherwise no RAW Photography for me!
    Regards Mike.

    You need at least ACR 6.3 and you can not get there with CS4.  You either have to upgrade to CS6 or CC, or use the latest DNG converter. 

  • Pass the result of a SQL Query as table_name  for another SQL Query

    Hi All,
    How to pass the result of a SQL Query as parameter to another SQL Query
    Eg: I am doing the steps below.
    1) select distinct table_name as TAB1 from all_tab_cols where table_name like 'T_%' and column_name like '%XYZ'
    2) I want to pass the table_name from step 1 above as parameter to another query "select * from TAB1"
    Thanks

    Naveen B wrote:
    Hi All,
    How to pass the result of a SQL Query as parameter to another SQL Query
    Eg: I am doing the steps below.
    1) select distinct table_name as TAB1 from all_tab_cols where table_name like 'T_%' and column_name like '%XYZ'
    2) I want to pass the table_name from step 1 above as parameter to another query "select * from TAB1"
    ThanksYou should craete PL/SQL code with cursor which will accept a parameter and call that cursor inside the first one
    But if the first sql returns only one row, you can do it with simple sql code
    select * from (select distinct table_name as TAB1 from all_tab_cols where table_name like 'T_%' and column_name like '%XYZ')- - - - - - - - - - - - - - - - - - - - -
    Kamran Agayev A. (10g OCP)
    http://kamranagayev.wordpress.com
    [Step by Step install Oracle on Linux and Automate the installation using Shell Script |http://kamranagayev.wordpress.com/2009/05/01/step-by-step-installing-oracle-database-10g-release-2-on-linux-centos-and-automate-the-installation-using-linux-shell-script/]

  • Another problem:  query in oracle

    Hello guys,
    I have a problem in a SQL code in a program that uses a Oracle connection.
    The code:
    public class ConBol {
         public void getDataBol() {
              String sql = "SELECT * FROM DOCUMENT_FISC  WHERE NRDOC_FISC = ?";
              try {
                   Connection conn = new ConnectionFactory().getConnection();
                   PreparedStatement stmt = conn.prepareStatement(sql);
                   stmt.setInt(1, 3969);
                   ResultSet rs = stmt.executeQuery();
                   System.out.println("here -- ");
                   while (rs.next()) {
                        System.out.println("---while--- ");
                        System.out.println(rs.getString(1));
                   rs.close();
                   stmt.close();
                   try {
                        conn.close();
                   } catch (SQLException ex) {
                        Logger.getLogger(ConBol.class.getName()).log(Level.SEVERE, null, ex);
              } catch (SQLException ex) {
                   Logger.getLogger(ConBol.class.getName()).log(Level.SEVERE, null, ex);
    }When my SQL is only "Select * from myTable", the resultSet get all the data and the "System.out" inside the "while", works, showing me the data.
    When I put a "where" on my SQL, the resultSet returns nothing, and the column that I ask, has items inside and the query should return me at least one row.
    I really don't know what more can I do to solve this problem.
    The server is Oracle 11g.
    I try in Windows 7 and Windows XP SP3.
    I try to use 3 diferent oracle drivers: ojdbc6.jar , ojdbc14.jar and class12.jar.
    I try Eclipse and Netbeans, PreparedStatement and Statement, table name and column name in uppercase and lowercase, with alias, with other users from DB and no one solve the problem.
    The data base connection is ok. When I copy and paste the SQL on the SQLDeveloper, the query works fine and show me results.
    The program don't give any errors or exceptions, but doesn't work when I have a "where something".
    If I put "where 1=1" he works fine.
    Any help??

    Artur,
    I make the tests that you ask me to do and it works!!!
    The value returned from the "select distinct" work when I put him on the original query.
    I just can't understand how can this work if the another value that I pass to the query exists in the table too.
    How can one value that exists, don't return me nothing?
    At least, now I can be sure that the code is alright.
    Thank's a lot friend, for you and JSchell. I will make more tests to try understand how this can happen.
    Edit: I try to count the rows of that table. In PLSQL Developer, the row count was 5860. In the java code was 4730.
    Can be out of memory in the resultSet?
    Edited by: Herick on Dec 29, 2009 2:34 AM
    Edit2: Forget what I said. I use the "Select count" and the resultSet came with just one result, so can't be memory problem.
    Edited by: Herick on Dec 29, 2009 2:39 AM

  • Can I pass a SAP query to another SAP query???

    Hi Friends
    In SAP Queries we can edit the existing query and we can save it as a new query. In the same way is there anyway to pass a query to another query? As per my knowledge, I don't think it is possible, I want give confirmation to my manager, before telling this to him, I want to reconfirm it from you experts.
    Please guide me.
    Regards
    Praveen

    No Rob,
    He is talking about SAP Queries only, but he is not aware of SAP, he is from Dot Net. Thanks for your reply.
    Regards
    Praveen

  • Updating from another table query

    I have tried a merge query and I think I am not doing this right or for what I want to accomplish, it will not work. Here is the problem:
    I have a lookup table
    create table lkp1(
    lkp_id number,
    lkp_name varchar2(100));
    and have a another table
    create table test(
    test_id number,
    lkp_id number,
    lkp_name varchar2(100));
    I am trying to pull in the lkp_id value from lkp1 table into the test table. I have the lkp_name field in the test table so that I can reference back to lkp1 so that I can pull in the lkp_id value. How would I go about doing this if the lkp_name field in test table has the value duplicated over many rows. For example 5 records in the test table might have the lkp_name of 'ORACLE', and its lkp_id from lkp1 table is 25. How do I populate the lkp_id in the test table with the value from the lkp1 table, without specfiying in the where clasue ...lkp_name = 'ORACLE'. There has to be a way. I tried the merge query, and WOW...I was really off.
    Please help!

    scott@ORA92> -- test data:
    scott@ORA92> select * from lkp1
      2  /
        LKP_ID LKP_NAME
             1 name1
             2 Oracle
    2 rows selected.
    scott@ORA92> select * from test
      2  /
       TEST_ID     LKP_ID LKP_NAME
            10            name1
            20            Oracle
            30            Oracle
    3 rows selected.
    scott@ORA92> -- update:
    scott@ORA92> update test set lkp_id =
      2  (select distinct lkp_id from lkp1 where lkp1.lkp_name = test.lkp_name)
      3  where exists (select lkp_id from lkp1 where lkp1.lkp_name = test.lkp_name)
      4  /
    3 rows updated.
    scott@ORA92> -- results:
    scott@ORA92> select * from test
      2  /
       TEST_ID     LKP_ID LKP_NAME
            10          1 name1
            20          2 Oracle
            30          2 Oracle
    3 rows selected.

  • How do I reference columns in a report query from another report query?

    In Apex 3.1 it is possible to generate a report on more than one query. I have read that these queries can be correlated, but I cannot find how in the documentation.
    I go the Shared Components and create a new Report Query:
    select * from dept
    Then I click Add Query and I add:
    select * from emp
    How do I correlate these two queries (I want to join emp.deptno to dept.deptno) and have a nice hierarchicle XML-file.
    Is it possible in Apex 3.1?
    Dik Dral

    Dik,
    This type of query can't be build. The two queries are independent, you can't reference values in the first query from the second query. However you can reference page and application items - which won't help you all that much with this scenario though. You could also try combining the two queries into one, and then take care of the proper presentation in your template.
    Regards,
    Marc

  • Can we call a bex query from result of another bex query?

    we have a requirement wherein client has asked us for bex reports
    in a BEX report
    multiple queries needs to be executed and the querues are dependent on their parent query
    i.e.
    result of query 1 works as input for query 2 and result of query 2 works as input for query 3..
    is it possible??
    kindly help.

    Hi,
    (If RRI is not exactly what you need)
    Eg. for a scenario where we want to display all positions of documents where at least one position in a document fits given cretaria. You can try it using query/prequery construction.
    In short:
    Create two querries:
    In the first query you set the criteria (the output will be a list of document nos that fits that criteria). For peformance reasons keep this query small.
    In the second query give restriction on document number (replacement path with the first query as a parameter).
    Regards, Leszek

  • Another Update Query

    Could someone help please... Don't understand why this query says "... not properly ended":
    UPDATE TBL1
    SET TBL1.T1V1 = TMPTBL.TTV1, TBL1.T1V2 = TMPTBL.TTV2,
    TBL1.T1V3 = TMPTBL.TTV3, TBL1.T1V4 = TMPTBL.TTV4,
    TBL1.T1V5 = TMPTBL.TTV5, TBL1.T1V6 = TMPTBL.TTV6,
    TBL1.T1V7 = TMPTBL.TTV7
    FROM
    (SELECT DISTINCT TBL2.T2V1, TBL2.T2V2, TBL2.T2V3,
    TBL2.T2V4, TBL2.T2V5, TBL2.T2V6, TBL2.T2V7, TBL2.T2V8
    FROM TBL2
    INNER JOIN TBL3 ON
    (TBL2.T2V8 = TBL3.T3V1 AND
    TBL2.T2V2 = TBL3.T3V2 AND
    TBL2.T2V4 = TBL3.T3V3)
    WHERE (TBL2.T2V0 = 'OK') AND (TBL2.T2V8 LIKE 'A%')) TMPTBL
    INNER JOIN TBL1 ON
    (TMPTBL.TTV8 = TBL1.T1V8)
    WHERE ((TBL1.T1V2 IS NULL) AND (TBL1.T1V5 IS NULL) AND
    (TBL1.T1V6 IS NULL)) AND EXISTS
    SELECT *
    FROM
    (SELECT DISTINCT TBL2.T2V1, TBL2.T2V2, TBL2.T2V3,
    TBL2.T2V4, TBL2.T2V5, TBL2.T2V6, TBL2.T2V7, TBL2.T2V8
    FROM TBL2
    INNER JOIN TBL3 ON
    (TBL2.T2V8 = TBL3.T3V1 AND
    TBL2.T2V2 = TBL3.T3V2 AND
    TBL2.T2V4 = TBL3.T3V3)
    WHERE (TBL2.T2V0 = 'OK') AND (TBL2.T2V8 LIKE 'A%')) TMPTBL
    I'm trying to update a table from the results of a join query of two other tables.
    Thanks in advance
    RCulp

    Okay. I take it Oracle doesn't support subqueries in a from clause like some other dialects? I get a similar problem when I use the
    UPDATE TBL1
    SET (T1V1, T1V2...) =
    (SELECT T2V1, T2V2...)
    method which doesn't allow update of fields not in the subquery. BTW: one of the fields returned in the subquery is not updated so it can't be there.
    Suggestions?

  • Exporting result of query to another input query (Write Cube )?

    Hello BI experts,
    Is it possible to send a result of a read cube / query to be saved into other write cube  / query ?
    If yes , how to do ?
    thx in advance

    Hello srini,
    I am tring to update ODS from a query as per your suggestion.
    But there is a Error
    ==========
    Error in the definition of the analysis process: See long text
    Node: Query 1
    The technical field name KYF_0002 for field 4CKMVZCDCO7A6PK7FT0GB7WCV may only appear once per input or output structure
    My quries is based on multiprovider and also has cell definition in it. Therefore i m not able to update result of query ods.
    what should be done?
    Thanks for your earlier siggestion.

  • Create table by another table query wid contraints

    how can we create table by another table but wid all the constraints of that table means
    create table emp_test as select * from emp
    it will create the replica of emp table but not constraints so how can i creat table along wid constraints

    Mushy wrote:
    i cant do this i have more than 200 tables to create wid the create table statement so any simple method to create table including constrains of that table otherwise i have to make a lot of changes in this codee etcc etcc
    thanks a lot for ur replyYou can automate it. Something to start with:
    SET SERVEROUTPUT ON FORMAT WORD_WRAPPED
    DECLARE
        v_new_def CLOB;
    BEGIN
        FOR v_rec IN (select table_name,dbms_metadata.get_ddl('TABLE',table_name) def from user_tables where table_name in ('EMP','DEPT')) LOOP
          v_new_def := v_rec.def;
          FOR v_list IN (select table_name from user_tables where table_name in ('EMP','DEPT')) LOOP
            v_new_def := replace(
                                 v_new_def,
                                 '"' || USER || '"."' || v_list.table_name || '"',
                                 '"' || USER || '"."' || v_list.table_name || '_TEST"'
          END LOOP;
          v_new_def := replace(
                               v_new_def,
                               '"PK_' || v_rec.table_name || '"',
                               '"PK_' || v_rec.table_name || '_TEST"'
          dbms_output.put_line(v_new_def);
        END LOOP;
    END;
      CREATE TABLE "SCOTT"."DEPT_TEST"
       (    "DEPTNO" NUMBER(2,0),
            "DNAME" VARCHAR2(14),
            "LOC" VARCHAR2(13),
             CONSTRAINT
    "PK_DEPT_TEST" PRIMARY KEY ("DEPTNO")
      USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
      STORAGE(INITIAL 65536
    NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
      PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
      TABLESPACE
    "USERS"  ENABLE
       ) PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING
      STORAGE(INITIAL 65536 NEXT 1048576
    MINEXTENTS 1 MAXEXTENTS 2147483645
      PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
      TABLESPACE "USERS"
      CREATE TABLE "SCOTT"."EMP_TEST"
       (    "EMPNO" NUMBER(4,0),
            "ENAME" VARCHAR2(10),
            "JOB" VARCHAR2(9),
            "MGR" NUMBER(4,0),
            "HIREDATE" DATE,
            "SAL" NUMBER(7,2),
            "COMM" NUMBER(7,2),
            "DEPTNO" NUMBER(2,0),
             CONSTRAINT "PK_EMP_TEST" PRIMARY KEY
    ("EMPNO")
      USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
      STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1
    MAXEXTENTS 2147483645
      PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
      TABLESPACE "USERS"  ENABLE,
             CONSTRAINT
    "FK_DEPTNO" FOREIGN KEY ("DEPTNO")
              REFERENCES "SCOTT"."DEPT_TEST" ("DEPTNO") ENABLE
       ) PCTFREE 10 PCTUSED 40 INITRANS 1
    MAXTRANS 255 NOCOMPRESS LOGGING
      STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
      PCTINCREASE 0 FREELISTS 1
    FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
      TABLESPACE "USERS"
    PL/SQL procedure successfully completed.
    SQL>  SY.

  • Another sql query--trigger

    I want to write a trigger, usig DUAL table if possible, which shows me the name of a user who make changes in a table.
    User names are stored in "users" table (Smith, Jhon,etc,etc) and the trigger that I created looks like this:
    CREATE OR REPLACE TRIGGER ITEMS_after_update
    AFTER UPDATE
    ON ITEMS
    FOR EACH ROW
    DECLARE
    v_username varchar2(50);
    BEGIN
    -- Find username of person performing UPDATE into table
    -- SELECT useFNAME INTO v_username
    -- FROM USERS;
    -- Insert record into audit table
    INSERT INTO new_ITEMS
    ( ITEMKEY_new,
    ITEMKEY,
    ITEMNAME_new,
    ITEMNAME,SORTGROUP,
    SORTGROUP_new )
    VALUES
    ( :new.ITEMKEY,
    :OLD.ITEMKEY,
    :NEW.ITEMNAME,
    :OLD.ITEMNAME,
    :new.SORTGROUP,
    :OLD.SORTGROUP );
    END;
    If I'm using SELECT user INTO v_username FROM dual;
    instead of SELECT useFNAME INTO v_username FROM USERS I get the "company1" name and doesn't help.I would like to receive Jhon or Smith....
    Can anyone help me with this trigger ?
    Regards
    Robert B

    Where exactly are you trying to derive the user from? Based on your query
    "SELECT useFNAME INTO v_username FROM USERS;" that would bring back all rows from that table, which is not legitimate when using an INTO clause.
    Maybe you are wanting to do something like this?
    SELECT useFNAME INTO v_username
    from USERS where USERNAME = USER
    where USER is an Oracle function returning the user.

  • Another strange query

    hi,
    the call:
    patient = (PPatient)pm.getObjectById(patientId, true);
    yields to the following sql statement:
    SELECT COUNT(*) FROM PPATIENT, PPATIENT t0 WHERE t0.OID = ?
    this is a dramatically performance problem for us.
    the patientId is an id returned by
    pm.getObjectId(patient);
    then
    commit;
    and then getObjectById
    the above call behaves the same with or with or without an active
    transaction!
    thanks in advance
    matthias.stephan

    Matthias & Tibor-
    Good catch. You are right: the SQL we are issuing is sub-optimal. I've
    made a bug report for this at:
    http://bugzilla.solarmetric.com/show_bug.cgi?id=613
    You can expect it to be fixed in the near future.
    In article <[email protected]>, Tibor Varga wrote:
    Hi,
    This is something I was also pondering about. Can you explain why the
    query performed by Kodo is faster than this one:
    SELECT COUNT(*) FROM PPATIENT t0 WHERE t0.OID = ?
    This one does not count the number of rows in the given table, it either
    gives you 1 or 0, depending on the existence of the sought record.
    I feel I'm missing something tricky here. Thank you,
    Tibor
    Marc Prud'hommeaux wrote:
    Matthias,
    Passing the "true" argument to PersistenceManager.getObjectById
    indicates that the JDO system must verify that the object exists in the
    datastore. Thus, Kodo is performing the validation in as fast a way as
    it can.
    If you do not want datastore-side validation, and instead just want to
    grab the object from the cache, then pass "false" as the second
    argument.
    See also:
    http://www.solarmetric.com/javadoc/jdo/javax/jdo/PersistenceManager.html#getObjectById(java.lang.Object,%20boolean)
    In article <b59hmm$dai$[email protected]>, Matthias Stephan wrote:
    hi,
    the call:
    patient = (PPatient)pm.getObjectById(patientId, true);
    yields to the following sql statement:
    SELECT COUNT(*) FROM PPATIENT, PPATIENT t0 WHERE t0.OID = ?
    this is a dramatically performance problem for us.
    the patientId is an id returned by
    pm.getObjectId(patient);
    then
    commit;
    and then getObjectById
    the above call behaves the same with or with or without an active
    transaction!
    thanks in advance
    matthias.stephan
    Marc Prud'hommeaux [email protected]
    SolarMetric Inc. http://www.solarmetric.com

Maybe you are looking for

  • BPM design - JDBC - SOAP - JDBC

    Hi experts, Business scenario - Pull the data from Data base using a Stored Procedure(this marks the records once it is successful) and call web service using this data. If web service call is success, push the response received from web service to D

  • Can Any one tell me what is the step in calling a function from a *.lib file in Labview application

    Hi, I am working on Labview 8.0. I am trying to  communicate to a thrid party HW using the driver file he has provided to me. The drive file is a *.lib file. I am unable to call the function from the lib file. I could get only from a DLL. Pls help .

  • How to revert p4 port and telnet port from 50204 to default?

    Hi, i changed the p4 port and telenet port to 50204 using Visual Administrator. Now Visual Administrator and the J2EE server are both down. Is there some way I could revert back my ports to the default ports? Also, my J2EE dispatcher process is down

  • 71 Days and counting - Photo Stream still grayed out in iCloud

    71 Days and counting and Photo Stream still grayed out in iCloud CP since problem first discussed with Apple. No help, just reported to software engineers for investigation. Two months ago! So much for Apples's superior products and customer service.

  • Font not recognised by Adobe reader

    When trying to open an Adobe document with Adove Reader I get an error message saying that the embedded font are not recognised and my not display or print correctly. When opening the document it only displays dots. How do I fix this?