Exceution time in QP_LIST_LINES_V

Dear all,
I have query, I have to compare an item in 2 price list in QP_LIST_LINES_V table, and if the item is not there in destination price list then I have to insert a record in the destination price list. As you all would know the product_attribute_value is of VARCHAR2 datatype, it is taking a lot of time to execute the query.
I have created index and forced the index in the select statement, it retrives the record fast.
but when I am checking using the not in condition using the source and destination price list, its taking hours to retrive 100 records.
I have tried using cursor also, but same result..
Any suggestion to improve the exceution time. Its is in oracle 8i database and oracle application 11.5.5
Thanks & Regards

Dear all,
I have not created any additional index, but I have forced the existing index,QP_PRICING_ATTRIBUTES_N2 in qp_pricing_attributes table.
then perfomance have improved in case retrival, but in case of comaprison with its taking a lot of time.
this the query i have used.
SELECT product_attr_value, product_uom_code, operand
FROM qp_list_lines_v
WHERE list_header_id = 1001
AND operand > 0
AND product_attr_value NOT IN (SELECT product_attr_value
FROM qp_list_lines_v
WHERE list_header_id = 1002 AND operand > 0)
Thanks & Regards

Similar Messages

  • DTP Execution Time is different when run by PC & Manually

    Dear Experts,
    Could you please help me in finding the answers for the below questions.
    1. Execution time for DTp is higher when ran manually  and using process chain. What can be the possible reasons & whic one is correct?
    2. Total Exceution time mentioned in the DTP details ta is less when added the total time for each data package. What are the reason for that difference. Which is correct?
    Thanks & regards,
    Ganesh Thota

    Hi,
    1)Execution time depends on various factors like the number of processes running on the system on a particular time(Ucan check it in SM37)
       in Process chain an instance of the particular process type is created( in your case process type is DTP even though we execute DTP in PC it originally executes the DTP in RSA1 .. i.e., an instance is created)
    2)the thing is when u execute a DTP data is transferred in the form of Packages the mismatch in the execution type is because u might have added the timings of each data package
    but when you check clearly :  2-3 data packages in DTP  start at the same time so you should not add the time taken of each individual data package to get the total time of the DTP
    Hope it answers you questions
    Regards,
    MADhu

  • Report Job execution time

    Hi Everybody
    In 10g Grid I have a job which runs every day, In Job activity I can see exceution time if I click on each and every run But I need to create a report on how long that job took to execute in last 2 months.
    Can somebody point me to data dictionary tables I can use to write the sql or point me to some documentation on how to create that report?
    Thanks for your help
    Jeet

    Take a look at MGMT$JOB_EXECUTION_HISTORY. All the views can be found in the Enterprise Manager Extensibility Guide.
    Eric

  • Slow query on aggregate.

    Hello Experts,
    We have very specific issue on query performance. We have a query which uses to execute within 3 minutes.  We have created Aggregates on the following cube and the same query partially uses the aggregate and cube.  The particular query after creating the new aggregate taking more than 25 minutes to execute.
    If we switch-off the aggregate and execute the query, the following query takes only 3 minutes.  The query uses Count Function in few formulas.  Can you please suggest, is there any option for particular query to ignore Aggregate and use only infocube.
    Regards
    Christopher Francis

    Hi Francis,
    First of all this is not a common issue seen across SAP System.
    According to your issue...exceution time on aggregate is more than on cube.
    According to my analysis what could be the reason ..is that the characterstics on which you made the aggregate would have different.
    example : you want to create aggregate on cust_no..but aggregate might have created on different characterstic..suppose prod_no
    so When query hits the aggrgate it doesnot find any record of cust_no and  again search in the cube.
    so it takes more time for serching aggreagate as well as in the cube.
    that is why i think it may  be taking more time..for execution on aggregate.
    please check your required characterstics..on which you have created aggregate.
    Regards,
    Sidhartha

  • Drill through in Pie Chart/Range Guage

    Hi
    I enable drill thorugh in my Pie Chart and Range Guage( Dial Guage) in the BAM reports.
    How to change the value format for the drill through fileds. IF we go to the value format the drop down for filed selection just shows the fields used to configure the Guage or pie chart and not the fileds used for drill though
    How can we change the format for the fields used for drill through
    TO reproduce
    Just take some id, process name, exceution time,status( success/failure). The dial guage shows just the execution time average.Now in drill through it has details for id. processname, started/failure. How to change the format for these fields.When u select properties and then go to value format tab and the dropdown for fields will show only execution time not status, processname or id.
    How to change the value format for these fields

    I don't think this is a bug. This happens only for the drill through reports that get created by default for a particular view. Because you are trying to look for formatting options for drill through report from the context of your main report editor, you are finding it as bug. It will be very difficult to provide all such options for DEFAULT drill through report in the context of MAIN report. I think may be we can add a line or two in our documentation to clarify this part, that should be sufficient.

  • Restriction of second time exceution

    Hai All,
    We have a scenario like this.
    finished product with 3 components which are assembly's again these three components will have down level materials. Now we do MRP for Finished product in the end Production orders created for finished product and down level materials  having BOM's and routings. Now we created a Z program and  in that we enter prodution order number of the finished product and when we execute this Z transaction system search for all the down level production orders of this parent order and increases their order quantities by some fixed percentage. Now when we execute the report for same order again system allowing the same how to prevent this means system should not allow for second time execution of the same order.  how to configure the same.

    Hi,
    To my understanding, you DO NOT want the execution of z transaction twice for the same order if the order under consideration was used before. Correct me if I am wrong.
    Here you are telling, quantities of child assemblies/components are increased by a certain % when you execute the report.
    In this way you will get the modified required quantity for the materials being produced.
    What you can do is, compare the modified required quantities of the assemblies/components (from production order table) with the standard requirements (as maintained in BOM from BOM tables) maintained. If both quantities are same then allow the system to execute the z transaction, if quantities are different then make system to give a error message.
    If any scrap % is maintained that also need to be taken care.
    Let me know if this logic helps you or not.
    Regards,
    Pavan

  • Time Limit Exceeded while executing Proxy Program

    Hi all,
    we are  frequently facing Time Limit Exceeded problem in R/3 system while exceuting proxy program for large payloads (appx 5-7 MB). Sometimes we are able to successfully restart the message and sometimes we have to delete these messages. How can we resolve this issue.
    Thanks,
    Mayank

    hi Joerg,
    we are getting this error in inbound queue in R/3 system, also this is a async call, so no chance of any communication interruption b/w SAP systems. From PI system, message is succeccfully passed to R/3 system & Time Limit Exceeded is coming in R/3 system inboud queue (SMQ2). Is it poosible that timeout will happen within R/3 system.
    Thanks,
    Mayank

  • Convert date/time to GMT format

    Hi,
    I want to convert my current system date to GMT format. the class java.util.Time/Calender have methods which help u to convert from GMT to local time.
    is there a method to convert from current System Date to GMT.
    tx in advance

    i found the answer to my earlier question from the postings. Now i need help with the format og the Date in GMT.
    i used the following code to get the GMT based on the system time
    Calendar here = Calendar.getInstance();
    int gmtoffset = here.get(Calendar.DST_OFFSET)
    + here.get(Calendar.ZONE_OFFSET);
    //to convert to GMT time
    Date GMTDate = new Date(System.currentTimeMillis() - gmtoffset);
    the result of exceuting the following code is
    GMT Date is Mon Aug 20 18:39:19 EDT 2001
    but i need the GMT time in this format
    20010820-18:39:40
    tx
    Namrata

  • Load Jar and access a class in jar at run time

    I need help from you.
    How to load a Jar and access a class in the jar at run time?
    When i try the following code it works fine while running in Java (Jdk1.5).If iam running the same code in servlet,ClassCastException occurs.
    Error Message : ClassCastExcption : jartest1 cannot be cast to Thing
    test.jar contains jartest.class and Thing.class
    jartest1.java
    try{
    File file =new File("test.jar");
    String lcStr ="jartest";
    URL jfile = new URL("jar", "", "file:" + file.getAbsolutePath() +"!/");
    URLClassLoader cl = URLClassLoader.newInstance(new URL[] { jfile });
    Class loadedClass = cl.loadClass(lcStr);
    Thing t=(Thing)loadedClass.newInstance();
    t.execute();
    catch(Exception e)
    System.err.println(e);
    Thing.java
    public interface Thing
    void execute();
    jartest.java
    public class jartest implements Thing
    public void exceute()
    System.out.println("Welcome");
    Thanks and Regards
    V.Senthil Kumar
    Edited by: senthilv_sun on Dec 16, 2008 8:30 PM

    senthilv_sun wrote:
    I need help from you.
    How to load a Jar and access a class in the jar at run time?
    When i try the following code it works fine while running in Java (Jdk1.5).If iam running the same code in servlet,ClassCastException occurs.
    Error Message : ClassCastExcption : jartest1 cannot be cast to ThingPresumably we can only hope that that is a transciption error. It always helps to use copy and past actual errors and code rather than manually typing them.
    test.jar contains jartest.class and Thing.classWrong.
    The interface class and plugable class must not be in the same jar.
    A plugable interface requires two components
    - Interface (generic sense)
    - Functional components.
    The Interface must be independant (own jar) so that it is available to the framework (user of plugin) and to the functional components. And the plugable component must not be on the java class path.
    This also means that we know for certain that the plugable component is also on the system class path. That is a bad idea as well.
    Given that it is pretty pointless to even speculate as to why this error is showing up. Create the correct jar layout. Test using the command line. Then test using servlets. Insure that the plugable jar is NOT on the java classpath for both tests.

  • Execution of workbook taking more time?

    Hi experts,
    I created a workbook on multiprovider , where i inserted around 18 querys in that workbook.
    The execution time taking for that query taking around 8 to 10 mts, can anybody tell me any performing technques to exceute the workbook fastly.
    Thanks &

    Compare execution time of queries when executed separately. One or two queries might be causing long time . This queries will make the execution of workbook for longer time. For those queries fill the cache with all values of variables and check the workbook execution time.

  • Report execution takes long time

    Dear all,
    we have a report which takes long time to exceute due to select statement.. here is the code..
    SELECT vkorg vtweg spart kunnr kunn2 AS division FROM knvp
        INTO CORRESPONDING FIELDS OF TABLE hier
        WHERE kunn2 IN s_kunnr
        AND   vkorg EQ '0001'
        AND   parvw EQ 'ZV'.
        l_parvw = 'WE'.
    SORT hier.
    * select all invoices within the specified invoice creation dates.
      CHECK NOT hier[] IS INITIAL.
      SELECT vbrk~vbeln vbrk~fkart vbrk~waerk vbrk~vkorg vbrk~vtweg vbrk~spart vbrk~knumv
             vbrk~konda vbrk~bzirk vbrk~pltyp vbrk~kunag vbrp~vbeln vbrp~aubel vbrp~posnr
             vbrp~fkimg vbrp~matnr vbrp~prctr vbpa~kunnr
             vbrp~pstyv vbrp~uepos
             vbrp~kvgr4  vbrp~ean11          
        INTO CORRESPONDING FIELDS OF TABLE it_bill
        FROM vbrk INNER JOIN vbrp ON vbrp~vbeln = vbrk~vbeln
                  INNER JOIN vbpa ON vbpa~vbeln = vbrk~vbeln
        FOR ALL entries IN hier
        WHERE (lt_syntax)
        AND   vbrk~vbeln IN s_vbeln
    *    AND   vbrk~erdat IN r_period
        AND   vbrk~fkdat IN r_period       
        AND   vbrk~rfbsk EQ 'C'
        AND   vbrk~vkorg EQ hier-vkorg
        AND   vbrk~vtweg EQ hier-vtweg
        AND   vbrk~spart EQ hier-spart.
    Can anyone say about how to reduce the execution time.?
    Edited by: Thomas Zloch on Sep 22, 2010 2:46 PM - please use code tags

    Hi
    first of all never use move corressponding.
    Rather you should declare a work area for table hier.
    select values into the work area and then append that workarea into the table hier.
    In case of for all entries include all the primary keys in the selection and for the keys which are of no use declare constants with initial valules like:
    'prmkey' is a primary field for table 'tab1' .
    Constants: field1 type tab1-prmkey value initial.
    and then in your where condition write.
    prmkey GE field1.
    I hope it is clear to you now.
    Thanks
    lalit Gupta

  • Execute a VO '4' times and show the result in single table at once.

    Hi,
    I want to execute single a VO query multiple times with different parameters and show the results together in a Table at once
    In Detail
    I have a table to which is associated with a VO.
    The VO contains SQL whose WhereClauseParameters need to be dynamically binded.say headerId and lineId
    Select ... from ....where headerId = :1 AND lineId = :2
    I have to pass these 4 values and show all the results in a single table
    headerId lineid
    H1 ............... L1
    H1 ............... L2
    H2 ............... L1
    H2 ............... L2
    I understand that i need to bind parameters dynamically and exceute the VO.
    As i have 4 different set of parameters, the view object will be executed 4 times.
    I want to show all the results together in a single table.
    How can I do it.
    thanks,
    Gowtam

    Hi Mani,
    Thanks a lot for the patience and detailed solution.I will try it out and tell you the status.
    Meanwhile, I have 2 questions on this solution(just curious)
    I will give you the snapshot of the table
    Table - ModelInfo
    Model......Tube..... Float....Size......Col5.....Col6.......Col7.......
    M1............T1.......... F1. .....1..........C15......C16.....C17.....
    M1............T1...........F1.......2..........C25......C26.....C27.....
    M1............T2......... .F2.......1..........C35......C36.....C37.....
    M1............T2...........F2.......2..........C45......C46.....C47.....
    M2............T1.......... F1. .....1..........
    M2.............T1..........F1.....2.........Cn5.......Cn6........Cn7
    .<continues...>
    .<till>
    .Mn............Tn..........Fn.......n........Cxy.......Cpq.......Crs....
    Question 1:
    if you notice this data,
    The Columns 5 to 7 are dependent on Combination of Model,Tube,Float and Size.
    Hence will this query work properly(without mixing up data from other Pk combination) and will it be efficient?(I Know this is a stupid qst, still double checking..As your solution assumes that each row is unique for Model only..which is not true)
    Select ...From....Where
    Model in(M1,M2,..Mn) AND Tube in(T1,T2..Tn) AND Float in(F1,F2,....Fn) and Size in(1,2...n).
    In short, will C15,C16 and C17 appear only with M1,T1,F1,1..I believe it will.
    Question 2:
    As I told,
    Third party program will return Array of Objects.
    Each object will have a variable called Flow along with
    Model,Tube,Float and Size.
    Flow is not stored in the database(can not be stored due to functional reasons).I want to show this Flow also along with other columns fetched from the DB for all 100+ rows.
    How can I do it?
    I will give u the scenario(with just 2 rows)...please check(Flow is not stored in DB)
    Third Party object : ObjModel
    Model......Tube..... Float....Size......Flow
    M1............T1.......... F1. .....1..........100
    M1............T1...........F2.......2...........200.
    M1............T2.......... F1.......1..........300
    M1............T2...........F2.......2..........400
    My concern is,
    After the VO executes and shows other 6 columns, it should show Flow appropriately.(associated with each object in the array)
    I understand that I need to have a Transient attribute in VO called[b] Flow.But I don't know how to perform the two tasks simultaneously..
    Task1:Your solution on showing table columns
    Task2:Showing Transient data for each object returned from program.
    thanks,
    Gowtam

  • TIME OUT EXCEPTION IN PLSQL

    Hi All,
    I'm newbie to plsql.
    Is there any way to find out exact time interval to exceute any specific procedure?
    I wrote a procedure which is internally calling some other built in procedure and hanging out there. i dont know the exact reason.
    But i want to raise timeout exception in my procedure. Can somebody please post any sample code to handle timeout exception.
    Regards,
    Shravan.

    Hi this is the Oracle Designer forum. You would be better of asking the question over at the PL/SQL place

  • Slow response time on query from one schema to another

    I've got two separate databases (one test, the other production). The schemas are pretty much identical and contain the same data. This particular query is executed from .NET (SQL text command, not SP) and takes about 3 seconds when performed against my test db, but takes anywhere from 45 seconds to 5 minutes on the production system. I've exceuted the same statement using Aquadata studio and get the same response times. I didn't build the queries or the schemas, nor do I manage the database servers. But I am responsible for making this work now. These queries have been working in the past, but recently have been changed. I am able to speed this one up with some sql changes, but the others I'm not sure about. I've checked and production db has indexes on the fields I'm querying while the test db does not. I would expect test to be slower, but it's not. Any ideas that I could try. On Monday I'll ask our server admins to check out the server end of it, and see if they need to reboot or something. In the meantime, I'm going to work to revamp the SQL.
    Any ideas you can provide would be much appreciated.
    Sincerely,
    Zam

    when your query takes long...
    When your query takes too long ...

  • Appraisal data appear in improper columns at times while clicking Print.

    Hi...
    Consider this scenario where in I create an appraisal. Immediately after creating i.e. just after clicking SAVE button, i do any one of the cases
    Case 1: I click on the PRINT button. The pdf ouput displays data of first column in second, second in third which is not correct.
    Case 2: I click EXIT and then reopen the same plan and then click PRINT, the pdf output displays data in correct columns.
    I debugged the two scenarios and I found out that in the first case the column_iid of it_body_cell_notes start from 002. But in the second case the column_iid starts from 001. Why this difference exist? Let me give an example. If i enter "ABC" in the appraisal notes, in the first case, the column_iid of ABC is 002 but in the second case, the column_iid of ABC is 001 which is correct.
    Can anyone tell me why this is happening?? is this SAP bug?
    Thanks,
    Aruna Nivetha.R

    Aruna,
    It seems the internal tables in your customized BADI works properly for the first time when you exceute the report and for subsquent clicks...it's thorwing improper data because it's not getting <b>Refresh</b> properly.
    Compare all the tables in the BADI, when you excuting the report for the first time and the nxt time.
    Rgds,
    Jothi.P
    *reward pts for all helpful answers.

Maybe you are looking for

  • Serviço de assinatura digital não acessível Status 20

    Boa noite Sru2019s. Estamos passando a NF-e para 2.0 e estamos tendo um pequeno problema no GRC: A nota chega no GRC e na tabela : /XNFE/NFE_HIST fica com o seguinte status: MAND     T ID      VERSNUM     TYPE ERTIME            WASSTAT    ERROR_STATU

  • Upload flat file to a variable when creating a variant or broadcast setting

    Hello Experts, Our users have recently begun to use the Broadcast E-Mail (Bursting) settings.  On the Recipient Determination tab, some settings have the "Selection of Characteristic Values" set to "By Following Selection" and some have it set to "By

  • Problem in using nested dependent items with jheadstart 1013

    Dear JHeadstart Team, Suppose we We have 3 following tables ( z is child of y and y is child of x) and we have a view object which have joined all 3 tables together. we have mad a page on this view. x ( code1 PK ,Name y ( code2 PK ,x_code Z ( code3 P

  • Map CDATA to Message Structure

    Recently, I've been asked to map generic message data embedded in a XML body's CDATA container to a complete message structure defined in XI. When I searched on SDN, I could only find information about the other way around (wrapping XML structured da

  • Jpg,gif, and gui's

    hey guys, I just started learning to code gui's... but my book is vague about inserting jpg or gif..... I was using: ImageIcon b = new ImageIcon("board.jpg"); I keep getting a blank canvas.. Can someone help me with siimple code for making a gui with