SO Changes Report Repor Slow

hii
i have made report for any SO Changes for a day using standard SAP Functions, but it is very slow i have made index on CDHDR table also but still its very slow
below is the code for the same.
REPORT  z_sd_report_so_change.
TABLES :  cdhdr, cdpos.
DATA: BEGIN OF icdhdr OCCURS 50.
        INCLUDE STRUCTURE cdhdr.
DATA: END OF icdhdr.
DATA: BEGIN OF icdshw OCCURS 50.
        INCLUDE STRUCTURE cdshw.
DATA: END OF icdshw.
DATA: BEGIN OF ausg OCCURS 50.
        INCLUDE STRUCTURE cdshw.
        INCLUDE STRUCTURE cdhdr.
        fkdat(10),
        ccaua(1),
        ccins(4),
        ccnum(25),
        audat(10),
        autim(10),
        autwr(30),
        ccwae(10),
        aunum(10),
        indtext(200).
DATA: END OF ausg.
*  Selection Options and Parameter Declaration                         *
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
SELECTION-SCREEN SKIP 1 .
PARAMETERS p_date LIKE sy-datum OBLIGATORY.
SELECTION-SCREEN SKIP 1.
SELECTION-SCREEN END OF BLOCK b1.
INITIALIZATION.
  IF p_date IS INITIAL.
    p_date = sy-datum - 1 .
  ENDIF.
START-OF-SELECTION.
  PERFORM f_read_headers.
  PERFORM f_read_details.
END-OF-SELECTION.
*  PERFORM f_display_alv.
*&      Form  f_read_headers
FORM f_read_headers .
  cdhdr-objectclas = 'VERKBELEG'.
  cdhdr-udate      = p_date.
  CALL FUNCTION 'CHANGEDOCUMENT_READ_HEADERS'
    EXPORTING
      date_of_change    = cdhdr-udate
      objectclass       = cdhdr-objectclas
      date_until        = cdhdr-udate
    TABLES
      i_cdhdr           = icdhdr
    EXCEPTIONS
      no_position_found = 1
      OTHERS            = 2.
ENDFORM.                    " f_read_headers
*&      Form  f_read_details
FORM f_read_details .
  LOOP AT icdhdr.
    CALL FUNCTION 'CHANGEDOCUMENT_READ_POSITIONS'
      EXPORTING
        changenumber      = icdhdr-changenr
        tablekey          = cdpos-tabkey
        tablename         = cdpos-tabname
      IMPORTING
        header            = cdhdr
      TABLES
        editpos           = icdshw
      EXCEPTIONS
        no_position_found = 1
        OTHERS            = 2.
    CASE sy-subrc.
      WHEN '0000'.
        LOOP AT icdshw.
          CLEAR ausg.
          MOVE-CORRESPONDING icdhdr TO ausg.
          MOVE-CORRESPONDING icdshw TO ausg.
          MOVE icdshw-tabkey+3(10)  TO ausg-vbeln.
          MOVE icdshw-tabkey+13(6)  TO ausg-posnr.
          APPEND ausg.
        ENDLOOP.
    ENDCASE.
  ENDLOOP.
  DELETE ausg WHERE ftext IS INITIAL OR f_old IS INITIAL OR
                    f_new IS INITIAL.
ENDFORM.                    " f_read_details
any ideas
Abhishek Suppal

Hello,
if you look into 'CHANGEDOCUMENT_READ_HEADERS', it's reading CDHDR and CDPOS (Form READ_CD_FROM_DB). In
'CHANGEDOCUMENT_READ_POSITIONS' it's the same, it reads the headers too.
So i'd read the cdhdr-table directly via select , get from there the changenr and then use  'CHANGEDOCUMENT_READ_POSITIONS' to get the interesting positions.
Best regards Wolfgang

Similar Messages

  • User complaining report very slow?

    Hi Gurus,
    There is an interview question in EBS 11I:
    “We have lot of issues in here, We facing some problem, the Discoverer users always complaining getting report very slow, sometimes it gives time-out error. What you think, how to resolve the problem?”
    What are the answers they are looking from us?
    Usually they are not satisfied with couple of answers, if we answered/verified each answer, the interviewer reply “No, …No…No……….. ”.
    So tell me the answer what they are looking for. Please provide full possible scenarios.
    Thanks,

    Here is my 2 cent comments:
    1. network issue
    you can compare the discoverer reports with Oracle reports or Application module to identify this, usually this is not the case
    2. tune the backend query
    you can run the discovery report backend sql query in TOAD, if the query is very slow, then the query has performance issue, you can modify the join condition to improve the performance
    3. add Parameter to Discoverer report
    sometimes it is very difficult to modify the backend sql query, you can add parameter to discoverer report, when end user run the report based on the parameter, data can be quickly displayed. for example, currently report will retrieve all invoices for the company, if you add a year parameter, 2010, the report only retrieve the invoice of 2010.
    4. change timeout time
    timeout issue is a discoverer report setup issue, you can change the timeout time for example from 30 minutes to 60 minutes.
    Thanks

  • Report for slow moving material.

    Hi friends
    I want to create report for slow & fast moving materials..
    I have to add following fields in the report
    Material, Unit of Measure, Current Stock, Value, Last consumption date, Last movement date...
    Now I dont have all these fields toghether in any of the datasources..
    What I need to do? Should I create new Datasource with all these fileds..
    Has anyone done this kind of report before?
    Please suggest..
    Regards
    Swati

    Hello,
    For slow moving materials , use can use InfoSet to design the same.The infoset will have 0Material on the left hand side and the DSO which holds the transcation data.
    or 
    u can install the standard content 'slow moving material' query and multiprovider 0ic_mc01.
    You can get some help from there.
    or
    try searching in forums with the messgae "slow moving items".you will get useful info.
    Regards,
    Dhanya

  • Custom Report for slow and fast moving items

    Dear Xperts,
    My client wants to develop a new report for slow and fast moving items, I checked the std report MC46 however as per std SAP design this report does not consider the special stock like project stock (Q)...could you please help me to know how can develop this new report with following input and output fields?
    Input fields:
    Plant
    Material
    Material Group
    MRP Area
    Special Stock Indicator
    Special Stock (Type)
    Output Fields:
    Material
    Material type
    Material group
    MRP Controller
    MRP Area
    ABC indicator
    Material price
    Category field – Slow, Fast, Non-moving
    Current Stock
    Last Issue Date
    Thanks in Advance
    Regards
    Rahul

    Dear Rahul,
    If you required  project stock and consignment stock with valuated stock report in same place you need to generate new info structure as given below link. Or you can go with customized report with abaper.
    Info structure validation
    Regards
    Sanjeet Kumar

  • Oracle Report Performance Slow

    I have a report which extracting the data from few complex queries and most of the tables that this report using are large tables.
    The problem I'm facing is the entire application become very very slow/hang whenever this report being runned.
    I have index all the necessary fields and process the report using those indexed field but still can't help.
    Is there anyway to improve the performance? Will it help if I combine all the queries into one query?
    How about the Database? any configurations can be set?
    Regards,
    Cheong

    The execution of the query doesn't depend on Reports, it is done in the database. So, check your query using the normal performance tuning tools.
    If just your report is slow (i.e. not the query) it could be because you have extensive formatting in your report. Formatting is done by Reports, not by the database. Try to do as much formatting in the query.

  • Purchase order price change report

    Hello
    How to retieve the purchase order price change report ? do we have any standard report for it or any table which gives these data?
    kindl

    HI
    Have you activate version management at your end for PO,i think this will help you to track changes of PO for qty,price etc.
    [http://wiki.sdn.sap.com/wiki/display/ERPLO/Version+Management]
    Regards
    Kailas Ugale

  • Change report S_ALR_87012168 - 0SAPDUEAN-01

    I am in FDI2 for changing report 0SAPDUEAN-01-Due Date Analysis for Open Items. I would like to add one more characteristic in the list available in the right hand side. Currently there are only 26 characteristics available for selection

    Hi Suma,
    In my last project I worked a lot on that to add new characteristic but I didn't get in clue.  If you get any idea that would be great.
    Best of luck
    Sreenivas

  • How to change report displayname at runtime when run from the report server?

    hi all,
    with the reportviewer widget in a winforms app, i'm able to change report displayname at runtime by handling thesubmittingparametervalues event like so:
            private void reportViewer1_SubmittingParameterValues(object sender, ReportParametersEventArgs e)
                string po = e.Parameters["Order"].Values[0];
                this.reportViewer1.ServerReport.DisplayName = "Load Out - " + po + " - " + DateTime.Now.ToShortDateString();
    question: how do i achieve the same thing when the report is run via the ssrs reportserver website?
    thanks for any tips,
    sff

    Hi sherifffruitfly2,
    According to your description, you want to change the display name of report in Report Manager. Right?
    In Reporting Services, we can't make the report file name dynamically. But we have Build-in Fields to show report name and execution time in a report. We can add a textbox and put in the expression below:
    ="Load on- "+Globals!ReportName+" "+Globals!ExecutionTime
    It will show the report name with execution time when we run the report:
    Reference:
    Built-in Collections in Expressions (Report Builder and SSRS)
    If you have any question, please feel free to ask.
    Best Regards,
    Simon Hou

  • How can I change reports in report painter.

    Dear Consultants,
    I need to change report according to client requirment.
    1, Lay out change in std report.
    2, How can I customize report to get cost element group wise with sub totals one by one.
    Please tell me how to do it step by step, I'll will award full points.
    Kind regards,
    Arvey.

    Dear Arvey,
    1. Layout can be changes by going into report painter change transaction GRR2, selecting the report (by double click) and then going to Formatting-->Report layout.
    2. Second question is not very clear to me. pls provide more detail.
    Regards,

  • Report on slow-moving items

    Hello gurus,
    I would like to creat a report on slow-moving items in LIS, similar to report RMCBLH30 (TAC MC46).
    But in 'my' report I would like to see only those slow-moving items in stock. RMCBLH30 unfortunatelly gives my all slow-moving items, even those with quantity = 0.
    Could someone please give me a hint on how to do this? Are there any good tutorials in building LIS-reports?
    Thanks in advance
    Alicia

    Hi,
    Please check the last date when any of your stock movement had an accounting impact like GR, GI etc and see whether the data tallies
    In MC46 try for double line display tab. It shows last movement date.
    Also, check for Detailed Display for each material. It will show the details based on which it is picking last movement date and No movement since days.
    From this details you can make out the date which it is taking as last movement......
    MC46 simply counts the number of days since the last issue against each
    material - the more days the slower moving the stock
    If you want to generate a Z-report please take the help of technical consultant...
    regards,
    Patil

  • Trying to Add IBAN Field to Vendor Changes Report

    Hi,
    I need to add IBAN field to vendor changes report (S_ALR_87012089).
    These are the steps I took:
    1) Go to OBAT and add new field group
    2) Go to OBAU and add new fields to field group created in (1)
    However, TIBAN fields cannot be added to the field group.
    Are there any workarounds?    
    Thanks.

    No solution except customization

  • How to use Prompts in the Filter created in Change Report Properties

    Hi all,
    I have created one Datetime prompt in Change report properties dialogue box.
    Now how can I use this same one in the filter ??
    Since I didn't get Surface and Prompt option for the Date field in the filter.
    Any help is appreciated.
    Thanks

    Actually problem is with Datatype..It was timestamp but it should be Datetime

  • How to add the new character in FDI1FDI2 Define/Change Reports?

    Hi,
    There are some fixed charcters defined in the T. Codes FDI1FDI2 Define/Change Reports, can we add the characters here based on which we can get teh desired output. If yes, hen please tell me how to add the characters?
    Thanks in advance...
    Regards
    Nitin

    thanks

  • Change report

    Hi,
    Is there any report is available in SAP to find what changes have made in FSSO and OB52 and Vendor master data and Customer master Data?
    Thanks
      Chiru

    Hi,
    Display Changes reports for vendor T.code: FK09
    customer: FD09
    G/L Accounts :FS04
    For Open items and closeing postinperiods: OB 52,
    then from menu select Utilities--> Change log.
    Regards
    gvr

  • Period Wise PR Changes report

    Hi experts,
    We want to have a period wise PR Changes Report, how can we get it.
    Please help.
    Regards
    Ishu

    Hi,
    Use report ME5A  with
    Dynamic selection (Shift +F4)  --> choose field -->Changed on --> with select ranges there you can give from date to To date.
    SAM

Maybe you are looking for

  • Need a way to contact customer service abroad!

    "I NEED TO CONTACT VERIZON BY EMAIL Esta pergunta não foi respondida. e.mehta011 11/03/2014 04:47 I'm abroad in another country right now and have a question about my bill, but do not have international phone access and live chat is not working for m

  • PI 7.1: Importing a wsdl file with references to other xsd files

    Hi Experts, I am trying to import a wsdl file that has got references to other xsd files. When i do this with SOAP UI, i can get the full message structure for the other xsd files. But when i try to import the same wsdl in the ESR, i only get to the

  • Why doesn't my HP deskjet x64 printer print to the bottom of the page

    When I print a document it only prints upto about 3cm above the bottom of the page. I have tried changing margins on the documents abd the prints. i have tried selecting different options (eg legal document size which is bigger than A4) I have tried

  • Drop down box data is not saving in Adobe form.

    Hi Experts We are struggling in one pirticular issue to resolve. Please help me to resolve the below issue. 1. We have created the adobe form using jave script. and make some entires are dynamic. 2. We have created another drop down box having the vl

  • Compiling gettext extension for mod_php

    On this thread: http://discussions.apple.com/thread.jspa?messageID=10106396 pterobyte listed some great instructions for downloading and recompiling the gettext extension for PHP. That's exactly what I need, so I followed the instructions and was abl