Taking huge time to fetch data from CDHDR

Hi Experts,
To count the entries in CDHDR table it taking huge time and throught time_out dump.
I hope in this table some more than million entries exist. Is there any alternate to findout the entries?.
We are finding the data from CDHDR by following conditions.
Objclass - classify.
Udate     -  'X' date
Utime     -  'X' (( even selecton 1 Min))
We also tried to index the UDATE filed but it takes huge time ( more than 6 Hrs and uncomplete)
Can you suggest us is there any alternate to find the entries.
Regards,
VS

Hello,
at se16 display initila sceen and for you selection criteria you can run it as background and create spool reqeust.
se16 > content, selection criteria and then Proram execute on background.
Best regards,
Peter

Similar Messages

  • BAM reports taking more time while fetching data from EDS

    I have created an external Data Source(EDS) in the BAM, and when i create an object with that EDS, it is taking very long to fetch data from the EDS( more than 20 mins.), but as the Database is installed on my local system, when i fire a query there, it don't take much time. Please help me in this, what could be the possible reason?

    Your messaging gateway question would be better addressed in the SQL PL/SQL forum
    All Places > Database > Oracle Database + Options > SQL and PL/SQL >  Discussions

  • SELECT is taking lot of time to fetch data from cluster table BSET

    <Modified the subject line>
    Hi experts,
    I want to fetch data of some fields from bset table but it is taking a lot of time as the table is cluster table.
    Can you please suggest me any other process to fetch data from cluster table. I am using native sql to fetch data.
    Regards,
    SURYA
    Edited by: Suhas Saha on Jun 29, 2011 1:51 PM

    Hi Subhas,
    As per your suggestion I am now using normal SQL statement to select data from BSET but it is still taking much time.
    My SQL statement is :
    SELECT BELNR
                  GJAHR
                  BUZEI
                  MWSKZ
                  HWBAS
                  KSCHL
                  KNUMH FROM BSET INTO CORRESPONDING FIELDS OF TABLE IT_BSET
                  FOR ALL ENTRIES IN IT_BKPF
                  WHERE BELNR = IT_BKPF-BELNR
                      AND BUKRS = IT_BKPF-BUKRS.
    <Added code tags>
    Can you suggest me anymore?
    Regards,
    SURYA
    Edited by: Suhas Saha on Jun 29, 2011 4:16 PM

  • Select query taking too much time to fetch data from pool table a005

    Dear all,
    I am using 2 pool table a005 and a006 in my program. I am using select query to fetch data from these table. i.e. example is mentioned below.
    select * from a005 into table t_a005 for all entries in it_itab
                       where vkorg in s_vkorg
                       and     matnr in  s_matnr
                       and     aplp   in  s_aplp
                       and     kmunh = it_itab-kmunh.
    here i can't create index also as tables are pool table...If there is any solutions , than please help me for same..
    Thanks ,

    it would be helpful to know what other fields are in the internal table you are using for the FOR ALL ENTRIES.
    In general, you should code the order of your fields in the select in the same order as they appear in the database.  If you do not have the top key field, then the entire database is read. If it's large then it's going to take a lot of time.  The more key fields from the beginning of the structure that you can supply at faster the retrieval.
    Regards,
    Brent

  • How to fetch data from CDHDR Table based on Order Number

    Hi,
    I need to fetch the data from CDHDR just based on the Order number .I found there is a field called 'OBJECTID' in table 'CDHDR'. But the  last part of OBJECTID contains order number.suppose my order number is 90506210 the objectid field contains '51030000090506210'.510 is login client,don't know what 30 is and last part is order number i.e 000090506210.i have to concatenate all and fetch data .i can do it for one order number but here order number is declared as select-options.how do i ?
    HERE IS THE CODE FOR ONE ORDER NUMBER.HOW CAN DO FOR RANGE OF ORDER NUMBERS.
    PARAMETER : S_OBJECT FOR  /BEV1/RBVBAK-AUFNR  OBLIGATORY.
    DATA : IT_CDHDR TYPE STANDARD TABLE OF CDHDR WITH HEADER LINE,
                 WA_CDHDR LIKE LINE OF IT_CDHDR,
                 S_OBJECT1 LIKE CDHDR-OBJECTID.
    CONCATENATE  sy-mandt  '30'  S_OBJECT INTO S_OBJECT1.
    SELECT * FROM CDHDR INTO TABLE IT_CDHDR WHERE OBJECTID = S_OBJECT1.

    P838355 wrote:>
    > Hi,
    >  I need to fetch the data from CDHDR just based on the Order number .I found there is a field called 'OBJECTID' in table 'CDHDR'. But the  last part of OBJECTID contains order number.suppose my order number is 90506210 the objectid field contains '51030000090506210'.510 is login client,don't know what 30 is and last part is order number i.e 000090506210.i have to concatenate all and fetch data .i can do it for one order number but here order number is declared as select-options.how do i ?
    >
    > HERE IS THE CODE FOR ONE ORDER NUMBER.HOW CAN DO FOR RANGE OF ORDER NUMBERS.
    >
    >
    > PARAMETER : S_OBJECT FOR  /BEV1/RBVBAK-AUFNR  OBLIGATORY.
    >
    > DATA : IT_CDHDR TYPE STANDARD TABLE OF CDHDR WITH HEADER LINE,
    >              WA_CDHDR LIKE LINE OF IT_CDHDR,
    >              S_OBJECT1 LIKE CDHDR-OBJECTID.
    >
    > CONCATENATE  sy-mandt  '30'  S_OBJECT INTO S_OBJECT1.
    >
    > SELECT * FROM CDHDR INTO TABLE IT_CDHDR WHERE OBJECTID = S_OBJECT1.
    You need to loop through the select option and concatenate with required data then select using 'in' instead of equal or select one by one.
    or
    select sales order numbers from VBAK for the selection into internal table then loop through the internal table and concatenate then select from CDHDR.
    for better performance use objectclass in where clause. the value for sales order for objectclass is VERKBELEG.
    in my system the object id is just an order number there is no other additions to it but in CDPOS the tabkey contains the order number with client and other information also.
    the 30 may be your item number... check it
    go ahead and change sales order and see what you can find in CDHDR
    Good luck
    Edited by: Sampath Kumar on Oct 21, 2009 9:02 AM

  • Select query taking 30 sec to fetch data from table containing BLOB column.

    Hi Friends,<o:p></o:p>
    Please help me...<o:p></o:p>
    I have 15 columns in a table, in that 2 columns containing blob (images).<o:p></o:p>
    More than 22 lakhs records are in a table.<o:p></o:p>
    While i am try to fetch data from this table it nearly takes 25~30 sec to execute that query.<o:p></o:p>
    When i deleted the two columns containing blob and i tried its executing fast .<o:p></o:p>
    I should not change the table schema.<o:p></o:p>
    Views also i created and indexes also there in a table.<o:p></o:p>
    How can i improve the query execution speed?.<o:p></o:p>

    And how large is the size of BLOB data in your table? If it's several giga bytes, then the time is simply required to read the amount of data from disk and to transfer it to the Client.
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

  • SSRS report is consuming much more time to fetch data from DB even direct run SP takes less than a second

    Hi,
    we are using SQL SERVER 2008R2 X64 RTM version. 
    One of the SSRS report designed by developer  is  consuming  much more time( 5 to 6 minutes ) to fetch data from DB. Even direct run of  Stored Procedure (Called in report )takes less than a second to display the result set.
    Please help.
    Regards Naveen MSSQL DBA

    Hi Naveen,
    Based on my understanding, you spend a little time retrieving data with a stored procedure from database in dataset designer. However, it takes long time to run the report to display the data, right?
    In Reporting Services, the total time to generate a report include TimeDataRetreval, TimeProcessing and TimeRendering. In your scenario, since you mentioned retrieving data costs a little time, you should check the table
    Executionlog3 in the ReportServer database to find which section costs most of time, TimeProcessing or TimeRendering. Then you can refer to this article to optimize your report:
    Troubleshooting Reports: Report Performance.
    Besides, if parameters exist in the report, you should declare variables inside of the stored procedure and assign the incoming parameters to the variables. For more information, please refer to the similar thread:
    Fast query runs slow in SSRS.
    If you have any question, please feel free to ask.
    Best regards,
    Qiuyun Yu
    Qiuyun Yu
    TechNet Community Support

  • Taking more time for retreving data from nested table

    Hi
    we have two databases db1 and db2,in database db2 we have number of nested tables were there.
    Now the problem is we had link between two databases,whenever u firing the any query in db1 internally it's going to acces nested tables in db2.
    For feching records it's going to take much more time even records are less in table . what would be the reason.
    plz help me daliy we are facing the problem regarding the same

    Please avoid duplicate thread :
    quaries taking more time
    Nicolas.
    +< mod. action : thread locked>+

  • Oracle mgw more time while fetching data from MQ

    Dear All,
    Good morning.
    I am using oracle 11.2.0.3 version and using MGW to connect to MQ series (IBM WebSphere MQ ,Version: 7.5.0.0).
    We are experincing delay while retriving message from MQ for some times and it is not happening always.
    MQ2AQ
    Found MQ MSG
    >>2014-12-22 09:25:49  MGW  Engine  1  TRACE  Polling
    Polling thread: JOB_MQ2AQ new msgCount = 1
    2014-12-22 09:25:49
    MQ2AQ
    MQ MSG DEQ Retry
    >>2014-12-22 09:25:49  MGW  Engine  1  TRACE  Polling
    Polling thread: skip polling JOB_MQ2AQ msg count=1
    2014-12-22 09:25:49
    MQ2AQ
    MQ MSG DEQ Retry
    >>2014-12-22 09:25:50  MGW  Engine  1  TRACE  Polling
    Polling thread: skip polling JOB_MQ2AQ msg count=1
    2014-12-22 09:25:50
    MQ2AQ
    MQ MSG DEQ Retry
    >>2014-12-22 09:25:51  MGW  Engine  1  TRACE  Polling
    Polling thread: skip polling JOB_MQ2AQ msg count=1
    2014-12-22 09:25:51
    MQ2AQ
    MQ MSG DEQ Retry
    >>2014-12-22 09:25:52  MGW  Engine  1  TRACE  Polling
    Polling thread: skip polling JOB_MQ2AQ msg count=1
    2014-12-22 09:25:52
    MQ2AQ
    MQ MSG DEQ Retry
    >>2014-12-22 09:25:53  MGW  Engine  1  TRACE  Polling
    Polling thread: skip polling JOB_MQ2AQ msg count=1
    2014-12-22 09:25:53
    MQ2AQ
    MQ MSG DEQ Retry
    >>2014-12-22 09:25:54  MGW  Engine  1  TRACE  Polling
    Polling thread: skip polling JOB_MQ2AQ msg count=1
    2014-12-22 09:25:54
    MQ2AQ
    MQ MSG DEQ Retry
    >>2014-12-22 09:25:55  MGW  Engine  1  TRACE  Polling
    Polling thread: skip polling JOB_MQ2AQ msg count=1
    2014-12-22 09:25:55
    MQ2AQ
    MQ MSG DEQ Retry
    >>2014-12-22 09:25:56  MGW  Engine  1  TRACE  Polling
    Polling thread: skip polling JOB_MQ2AQ msg count=1
    2014-12-22 09:25:56
    MQ2AQ
    MQ MSG DEQ Retry
    >>2014-12-22 09:25:57  MGW  Engine  1  TRACE  Polling
    Polling thread: skip polling JOB_MQ2AQ msg count=1
    2014-12-22 09:25:57
    MQ2AQ
    MQ MSG DEQ Retry
    >>2014-12-22 09:25:58  MGW  Engine  1  TRACE  Polling
    Polling thread: skip polling JOB_MQ2AQ msg count=1
    2014-12-22 09:25:58
    MQ2AQ
    MQ MSG DEQ Start
    >>2014-12-22 09:25:59  MGW  Engine  1  TRACE  worker0
    entering deqMessages for job JOB_MQ2AQ
    2014-12-22 09:25:59
    MQ2AQ
    MQ MSG DEQ Retry
    >>2014-12-22 09:25:59  MGW  Engine  1  TRACE  Polling
    Polling thread: skip polling JOB_MQ2AQ msg count=1
    2014-12-22 09:25:59
    MQ2AQ
    MQ MSG DEQ Finsh
    >>2014-12-22 09:25:59  MGW  Engine  1  TRACE  worker0
    leaving deqMessages for job JOB_MQ2AQ with seqno 1544 deqMsgCount = 1
    2014-12-22 09:25:59
    MQ2AQ
    MQ MSG ENQ to AQ
    >>2014-12-22 09:25:59  MGW  Engine  1  TRACE  worker0
    entering enqMessages for job JOB_MQ2AQ with request 1544
    2014-12-22 09:25:59
    MQ2AQ
    ENQ MSG 2 AQ Finish
    >>2014-12-22 09:26:02  MGW  Engine  1  TRACE  worker0
    leaving enqMessages for job JOB_MQ2AQ with seqno 1544
    2014-12-22 09:26:02
    MQ2AQ
    MSG REC
    >>2014-12-22 09:26:02  MGW  Engine  1  TRACE  worker0
    leaving commitMessages for job JOB_MQ2AQ with seqno 1544
    2014-12-22 09:26:02
    Above log took 11 sec to retrive the message from MQ
    But the below log took 1 sec and i use the same message in both time.
    MQ2AQ
    Found MQ MSG
    >>2014-12-22 09:35:01  MGW  Engine  1  TRACE  Polling
    Polling thread: JOB_MQ2AQ new msgCount = 1
    2014-12-22 09:35:01
    MQ2AQ
    MQ MSG DEQ Start
    >>2014-12-22 09:35:01  MGW  Engine  1  TRACE  worker0
    entering deqMessages for job JOB_MQ2AQ
    2014-12-22 09:35:01
    MQ2AQ
    MQ MSG DEQ Finsh
    >>2014-12-22 09:35:01  MGW  Engine  1  TRACE  worker0
    leaving deqMessages for job JOB_MQ2AQ with seqno 1545 deqMsgCount = 1
    2014-12-22 09:35:01
    MQ2AQ
    MQ MSG ENQ to AQ
    >>2014-12-22 09:35:01  MGW  Engine  1  TRACE  worker0
    entering enqMessages for job JOB_MQ2AQ with request 1545
    2014-12-22 09:35:01
    MQ2AQ
    ENQ MSG 2 AQ Finish
    >>2014-12-22 09:35:01  MGW  Engine  1  TRACE  worker0
    leaving enqMessages for job JOB_MQ2AQ with seqno 1545
    2014-12-22 09:35:01
    MQ2AQ
    MSG REC
    >>2014-12-22 09:35:01  MGW  Engine  1  TRACE  worker0
    leaving commitMessages for job JOB_MQ2AQ with seqno 1545
    2014-12-22 09:35:01
    It showing Polling thread: skip polling JOB_MQ2AQ msg count=1"  multiple times. what is it mean?
    Can anyone share any good doc which i can refer to debug oracle message gate way issue.
    Thanks,
    Shine.

    Your messaging gateway question would be better addressed in the SQL PL/SQL forum
    All Places > Database > Oracle Database + Options > SQL and PL/SQL >  Discussions

  • Long time to load data from PSA to DSO -Sequential read RSBKDATA_V

    Hi ,
    It is taking long time to load data from PSA to DSO. It is doing Sequential read on RSBKDATA_V and table contents no data .
    we are at - SAPKW70105. It started since yesterday . There is no changes in system parameters.
    Please advice. 
    Thanks
    Nilesh

    Hi Nilesh,
    I guess the following SAP Note will help you in this situation.
    [1476842 - Performance: read RSBKDATA only when needed|https://websmp107.sap-ag.de/sap/support/notes/1476842]
    Just note that the reference to Support Packages is wrong. It is also included in SAP_BW 701 06.

  • Select query is taking lot of time to fetch data.....

    Select query is taking lot of time to fetch data.
        SELECT algnum atanum  abdatu abzeit abname abenum bmatnr bmaktx bqdatu bqzeit bvlenr bnlenr bvltyp bvlber b~vlpla
               bnltyp bnlber bnlpla bvsola b~vorga INTO TABLE it_final FROM ltak AS a
                       INNER JOIN ltap AS b ON  btanum EQ atanum AND algnum EQ blgnum
                       WHERE a~lgnum = p_whno
                       AND a~tanum IN s_tono
                       AND a~bdatu IN s_tocd
                       AND a~bzeit IN s_bzeit
                       AND a~bname IN s_uname
                       AND a~betyp = 'P'
                       AND b~matnr IN s_mno
                       AND b~vorga <> 'ST'.
    Moderator message: Please Read before Posting in the Performance and Tuning Forum
    Edited by: Thomas Zloch on Mar 27, 2011 12:05 PM

    Hi Shiva,
    I am using two more select queries with the same manner ....
    here are the other two select query :
    ***************1************************
    SELECT * APPENDING CORRESPONDING FIELDS OF TABLE tbl_summary
        FROM ztftelpt LEFT JOIN ztfzberep
         ON  ztfzberep~gjahr = st_input-gjahr
         AND ztfzberep~poper = st_input-poper
         AND ztfzberepcntr  = ztftelptrprctr
        WHERE rldnr  = c_telstra_projects
          AND rrcty  = c_actual
          AND rvers  = c_ver_001
          AND rbukrs = st_input-bukrs
          AND racct  = st_input-saknr
          AND ryear  = st_input-gjahr
          and rzzlstar in r_lstar             
          AND rpmax  = c_max_period.
    and the second one is
    *************************2************************
      SELECT * APPENDING CORRESPONDING FIELDS OF TABLE tbl_summary
        FROM ztftelnt LEFT JOIN ztfzberep
         ON  ztfzberep~gjahr = st_input-gjahr
         AND ztfzberep~poper = st_input-poper
         AND ztfzberepcntr  = ztftelntrprctr
        WHERE rldnr  = c_telstra_networks
          AND rrcty  = c_actual
          AND rvers  = c_ver_001
          AND rbukrs = st_input-bukrs
          AND racct  = st_input-saknr
          AND ryear  = st_input-gjahr
          and rzzlstar in r_lstar                              
          AND rpmax  = c_max_period.
    for both the above table program is taking very less time .... although both the table used in above queries have similar amount of data. And i can not remove the APPENDING CORRESPONDING. because i have to append the data after fetching from the tables.  if i will not use it will delete all the data fetched earlier.
    Thanks on advanced......
    Sourabh

  • Issue with fetching data from AFRU

    Hi All,
    We are trying to immitate the standard transaction COOIS but with some extra features to get a report.
    We have a particular select in the custom code which is timing out and taking an unusually long time(infact never finished the select) if run in background.
    Custom Code
        SELECT RUECK
               RMZHL
               LMNGA
               IEDD
               MANUR
               AUFNR
               APLFL FROM AFRU
                     INTO TABLE GT_AFRU
                     FOR ALL ENTRIES IN GT_AFVC
                     WHERE RUECK = GT_AFVC-RUECK
                      AND RMZHL = GT_AFVC-RMZHL
                       AND MANUR = '1'
                       AND APLFL NE ' '.
    Standard Code
      SELECT * FROM afru INTO TABLE afru_tmp
                         FOR ALL ENTRIES IN rueck_tmp
                         WHERE rueck     =  rueck_tmp-rueck
                         AND ( canum     =  canum_0
                         OR    canum     IS NULL ).
    The standard code returns the entries in blink of the eye whereas the custom code runs on for ever. Both the for all entries tables have the same entries and use the same primary key.
    I also tried to fetch data from the table directly using SE16 and I input only 10 confirmations(RUECK-primary key) into the table and I try to execute this in background and it also seems to run for ever. Does anyone have any idea what is going wrong here? Pointers will be appreciated.
    Regards,
    Karthik

    YOu should make a check if the table GT_AFVC has any entries in it or not.
    if not GT_AFVC[] is initial.
    SELECT RUECK
    RMZHL
    LMNGA
    IEDD
    MANUR
    AUFNR
    APLFL FROM AFRU
    INTO TABLE GT_AFRU
    FOR ALL ENTRIES IN GT_AFVC
    WHERE RUECK = GT_AFVC-RUECK
    AND RMZHL = GT_AFVC-RMZHL
    AND MANUR = '1'
    endif.

  • Slow Speed While fetching data from SQL 2008 using DoQuery.

    Hello,
    I am working for an AddOn and tried to use DoQuery for fetching data from SQL 2008 in C#.
    There are around 148 records which full fill this query condition but it takes much time to fetch the data.
    I wanna know that is there any problem in this code by which my application is getting slower.
    I used break Points and checked it, I founds that while connecting to the server it is taking time.
    Code:
    // Get an initialized SBObob object
    oSBObob = (SAPbobsCOM.SBObob)oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoBridge);
    //// Get an initialized Recordset object
    oRecordset = (SAPbobsCOM.Recordset)oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset);
    string sqlstring = "select DocEntry,ItemCode From OWOR  where OWOR.Status='R' and DocEntry not in ( Select distinct(BaseRef) from IGE1 where IGE1.BaseRef = OWOR.DocEntry)";
    oRecordset.DoQuery(sqlstring);
    var ProductList = new BindingList<KeyValuePair<string, string>>();
    ProductList.Add(new KeyValuePair<string, string>("", "---Please Select---"));
    while (!(oRecordset.EoF))
    ProductList.Add(new KeyValuePair<string, string>(oRecordset.Fields.Item(0).Value.ToString(), oRecordset.Fields.Item(0).Value.ToString() + " ( " + oRecordset.Fields.Item(1).Value.ToString() + " ) "));
    oRecordset.MoveNext();
    cmbProductionOrder.ValueMember = "Key";
    cmbProductionOrder.DisplayMember = "Value";
    Thanks and Regards,
    Ravi Sharma

    Hi Ravi,
    your code and query look correct. But can you ellaborate a little bit.
    It seems to be a DI API program ( no UI API ) ?
    When you say "I founds that while connecting to the server it is taking time." do you mean the recordset query or the DI API connection to SBO ? The later would be "normal" since the connection can take up to 30 seconds.
    To get data it is usually better to use direct SQL connections.
    regards,
    Maik

  • Multiple select queries used in Excel BI report ,fetching data from Sharepoint DB(SP2010_Prod_ProjectServer) causing blockage on DB ,when more than one workbook(same copy of Excel BI Report) refreshed using Refresh All option.

    I am using mutiple select queries to fetch data from Project Server 2010 DB(its sharepoint DB) and these queries fetch data in Excel BI report by establishing connection with DB using instance name and all. I have enhance all these select queries and data
    is being fetched in secs. but when more than one copy of same Excel BI report is refreshed using 'Refresh All' option, then these select queries cause blockage on DB.
    Please let me know mitigation for this blockage issue.
    Should I use begin transaction and commit transaction statements/ shared lock statements.
    please reply

    Hi,
    run same query at the same time?

  • How to fetch data from a SAP BW Cube via Perl/PHP on a Linux machine?

    Hi all,
    here's the scenario:
    I need to fetch data from a cube of a remote SAP NetWeaver 7.  The data will later be used in a web application based on  Linux and  Perl/PHP. (I'd prefer using perl for the backend and doing the business logic of the web application.)
    I have:
    A Linux system with all its on-board tools and scripting languages.
    A user for the SAP BW which allows me to logon (very,very limited user rights, no se37,no se80,no rsaX and so on)
    Access to http://<SAP BW Server>:<Port>/sap/bw/xml/soap/xmla with the above mentioned user.
    My questions:
    - Could you please push me into the right direction how I can realize this? E.g. by pointing to tutorials / HowTos / sample code / CPAN modules etc..  (Most information I found so far referred to software based on a different operating system and on remote function calls using custom functions.)
    - I'm aware of the  SAPNW::RFC CPAN module, but do I necessarily have to perform a remote function call? ( If so, is there a "standard" function I could call for accessing a cube?)
    Thanks a lot in advance!

    You can take through the RFCS .check for some system function modules...but why do you need to route it through XI?How huge z the files?

Maybe you are looking for