KSB1 - Incorrect line item selected on drill down

Dear Guru's
To set the scene we have been using KSB1 for a long time.  Now something odd is occuring - but what appears to be quite randomly.
When we run a standard KSB1 report and drill down to line item detail we are getting the wrong (and completely unassociated) detail.
We have not seen this happen before and wondered what could be causing it.
We are running KSB1 using parameters for Cost Centre, Cost Element (range) and Posting Date (range)
We are also using a plain layout variant.
If anyone else has seen this before advice would be appreciated.
Regards
Steve
points will be assigned

Nitish,
We run KSB1 to show us how much has been spent by a certain cost centre during the financial period.  We would then usually double click on a certain line that appears high or overspent to see the detailed transaction.  In almost all circumstances you see the accounting document (eg: SA, KR etc)
But for some reason (and for a small percentage of items) when you double click you do not get shown the correct accounting document.
On these items when you double click to see more detail you get presented with an accounting document that does not match the original screen.  In some instances you get an accounting document that is several years old and for a completely different GL account and cost centre -eg: bearing no relation to you original query.
It's almost like the link to the correct accounting document is broken?
I could screen dump what it happening but as a newbie I don't know if this is allowed or would work on here.
Regards.
Steve

Similar Messages

  • Regarding nor of line items selected in per select query..

    hi,
    i want  to display nor of line items selected in per select query for two individual  queries which are linkesd by for all entries..
    regards..
    chetan

    Hi,
    I dont unserstand the problem you are facing. please paste your SELECT query and then explain the problem. then it will be easy for analysis.
    Basically DESCRIBE TABLE itab LINES n.  this statement will put the number of lines the internal table contains
    //Kothand

  • TDS line item not generated during down payment.

    Hi,
    TDS line item not generated during down payment to vendors. Advanced tax codes have been properly assigned to vendors.
    Kindly help.
    Thanks in advance...
    Regards,
    Sriram.

    Hi Sriram,
    1.First tell me when you are doing the advance payment tds codes are giving popup or not?
    2.Did you check the setting in below path
    Assign with holding tax types to company codes:
    SPRO>FI>FI GLOBAL>WTX>EWTX>Company code>assign with holding tax to company code.
    Regards
    Surya

  • Regarding Line Item Selection and product category

    Hi Experts,
    We are having a requirement in Line Item Selection in Oppurtunity.The requirement is that we need to display only the product categories belonging to that particular company(for eg Product Categories belonging to Company X) by restricting the display of product IDs.Please provide me some pointers on this as this is a high priority requirement.
    Requirement:Line item selection of an opportunity will be at a 'X' category from the product hierarchy level.

    Hi Amar,
      You have to retrieve all you rproduct ids based on your criteria before the execution of the below step in your method.
    result = qs->get_query_result( ).
    Once you have all your product Id's then default your search criteria with your product id's using the below code.
    ls_selection-attr_name = 'PRODUCT_ID'.
          ls_selection-sign = 'I'.
          ls_selection-option = 'EQ'.
          LOOP AT it_product INTO v_productid WHERE comt_product_id CP ls_search_criteria-low.
            CLEAR ls_selection-low.
            ls_selection-low = v_productid.
            CALL METHOD qs->add_selection_param
              EXPORTING
                iv_attr_name = ls_selection-attr_name
                iv_sign      = ls_selection-sign
                iv_option    = ls_selection-option
                iv_low       = ls_selection-low.
            CLEAR: v_productid,wa_result.
          ENDLOOP.
    this code should be included in your event handler before calling get_query_result( ).
    Hope this helps.
    Regards,
    Lakshmi.Y
    Edited by: Lakshmi Soujanya on Jul 11, 2011 11:55 AM

  • Transaction KSB1(cost line items)  - Tables or FM's to get data?

    Hi,
    For a current report, I need to obtain the data stored in transaction KSB1 - Actual Cost Line items for cost centers.
    What tables contain this data? Are there any standard function modules available to obtain the data?
    Please help.
    Thanks,
    John

    The following content from SAP help file may help you.
    Use
    You can use Report Painter reports and line item reports from the Cost Center Accounting (CO-OM-CCA) and Internal Orders components (CO-OM-OPA) to evaluate archives. Generally, the following reports can read the relevant data from any archive:
    ·        All Report Painter reports for table CCSS
    ·        The actual line item report for internal orders
    ·        The actual line item report for cost centers
    ·        Document display
    The SAP system includes a variety of report and archiving object .combinations. The standard system thus provides only a limited number of reports for given archiving objects. However, it is also possible to execute other reports for an archiving object.
    Actions
    Reading Report Painter Reports from the Archive via the Component
    1.      To execute a Report Painter report, choose Information system ®Report selection in the given component and select the desired report.
    2.      On the report selection screen, choose Data source.
    3.      On the following dialog box, select Read from archive and choose Continue.
    4.      On the following dialog box, enter the object from which you want to read the archived data.
    Choose F4 Help to obtain a list of the archiving objects to which the report applies.
    5.      Choose Archive selection to determine the archive files for the report.
    6.      As in the standard transaction, you can start the report online or in a background job.
    Reading Line Item Reports and Documents from the Archive via the Component
    1.      To execute a line item report or document display, choose Information system ® Report selection in the given component and select the desired line item report or document display.
    2.      On the report selection screen, choose Extras ® Data source.
    3.      On the following dialog box, select Archive as the data source.
    4.      On the following dialog box, enter the object from which you want to read the archived data.
    Choose F4 Help to obtain a list of the archiving objects to which the report applies.
    5.      Choose Archive selection to determine the archive files for the report.
    6.      As in the standard transaction, you can start the report online or in a background job.
    As it is often unnecessary to enter further selection criteria when reading data from an archive, you can enter an asterisk (*) under Cost center and Order where required.
    Reading Reports from Archive Administration from the Archive (SARA Transaction)
    1.      Under Object name, enter the archiving object (such as CO_COSTCTR) and choose Evaluate.
    Choose F4 Help for the Read program field to list all the reports for the archiving object.
    2.      Choose and execute the required report.
    3.      Branch from the selection screen to the data source selection:
    a)  For Report Painter reports, choose Data source.
    b)  For line item reports or for document display, choose Extras ®Data source.
    4.      The archiving object is already defaulted. Choose Archive selection to determine the archive files for the report.
    5.      As in the standard transaction, you can start the report online or in a background job.
    Assigning Reports to Archiving Objects
    The SAP system stores the report assignments to the archiving objects. The assignment controls which objects appear in the F4 Help for the data sources and which reports appear for the read programs in archive administration.
    A warning message appears if you choose an archiving object that is not assigned the relevant report or a report that is not assigned the relevant archiving object. You can ignore this warning message. You can execute the report if you wish, but you must bear in mind that incomplete data will be the result.
    To view the assignments in the standard SAP system, see the ARCH_REPOW table.
    Importing Standard Assignments
    The ARCH_REPOW table is a Customizing table that also allows user-defined assignments. Standard assignments are provided therefore in client 000 only. You cannot use reports in other clients for reading data from the archive.
    1.      To import standard assignments to other clients, go to the SAP  initial screen, choose Tools ® ABAP Workbench ®ABAP Editor, and enter and execute program ARCH_REPOW_IMPORT.
    2.      Enter CO_* as the archiving object.
    3.      Accept the default settings in the other fields (source client 000, report type RW).
    4.      Choose Execute.
    Creating Custom Assignments
    In principle, you can read data from given archiving objects even if the standard SAP system does not have the relevant combination of report and archiving object.
    ·        For Report Painter reports, the prerequisites are:
    -   The report applies to table CCSS
    -   The archiving object includes table COSP or COSS
    Tables COSP and COSS may also appear in the archiving object definitions as COSPA and COSSA.
    Of course, you may also use custom reports to read archiving object data.
    ·        For line item reports, table COEP must be part of the archiving object. Table COEP may also appear in the archiving object definition as view COVP or COVPxy (where u201Cxu201D and u201Cyu201D stand for numerals).
    If you want to work with previously unsupported assignments, enter these in table ARCH_REPOW in order to avoid confusion among end-users. In addition, you can include documentation justifying the use of the corresponding report for your own archive reading runs.
    To enter a new assignment:
    1.      Start system transaction SM30.
    2.      Enter table ARCH_REPOW.
    3.      ChooseMaintain.
    4.      Choose New entries to enter the new assignments.
    Make the following entries:
    a)  Under Object name, enter the name of the archiving object.
    b)  Under Report type, enter:
    RW for Report Painter reports
    TR for line item reports
    c)  Under Program name, enter:
    The name of the report group for Report Painter reports
    KSB1 for the actual line item report for cost centers
    KOB1 for the actual line item report for internal orders
    KSB5 for document display
    d)  Leave the Activate archive selection field empty.
    Standard Contents of Table ARCH_REPOW
    Report
    Program Name
    Report Type
    Object Name
    Cost Center Actual Line Items
    KSB1
    TR
    CO_ALLO_ST
    CO Documents, Actual Costs
    KSB5
    TR
    CO_ALLO_ST
    Cost Center Actual Line Items
    KSB1
    TR
    CO_CCTR_EP
    CO Documents, Actual Costs
    KSB5
    TR
    CO_CCTR_EP
    Area: Cost elements
    1AIP
    RW
    CO_CCTR_ID
    Area: Statistical key figures
    1SKL
    RW
    CO_CCTR_ID
    Cost centers: Drilldown by Partner
    1SHK
    RW
    CO_CCTR_ID
    Cost centers: Actual/plan variance
    1SIP
    RW
    CO_CCTR_ID
    Area: Cost Centers
    1KSL
    RW
    CO_CCTR_ID
    Area: Activity types
    1SLB
    RW
    CO_CCTR_ID
    Cost Centers: Period Breakdown Actual/Plan
    1SMA
    RW
    CO_CCTR_ID
    Cost Center Actual Line Items
    KSB1
    TR
    CO_CCTR_ID
    CO Documents, Actual Costs
    KSB5
    TR
    CO_CCTR_ID
    Area: Cost elements
    1AIP
    RW
    CO_CCTR_PL
    Area: Statistical key figures
    1KSL
    RW
    CO_CCTR_PL
    Cost centers: Drilldown by Partner
    1SHK
    RW
    CO_CCTR_PL
    Cost centers: Actual/plan variance
    1SIP
    RW
    CO_CCTR_PL
    Area:  Cost Centers
    1SKL
    RW
    CO_CCTR_PL
    Area: Activity types
    1SLB
    RW
    CO_CCTR_PL
    Cost Centers: Period Breakdown Actual/Plan
    1SMA
    RW
    CO_CCTR_PL
    Area: Cost elements
    1AIP
    RW
    CO_COSTCTR
    Area: Statistical key figures
    1KSL
    RW
    CO_COSTCTR
    Cost centers: Drilldown by Partner
    1SHK
    RW
    CO_COSTCTR
    Cost centers: Actual/plan variance
    1SIP
    RW
    CO_COSTCTR
    Area:  Cost Centers
    1SKL
    RW
    CO_COSTCTR
    Area: Activity types
    1SLB
    RW
    CO_COSTCTR
    Cost Centers: Period Breakdown Actual/Plan
    1SMA
    RW
    CO_COSTCTR
    Cost Center Actual Line Items
    KSB1
    TR
    CO_COSTCTR
    CO Documents, Actual Costs
    KSB5
    TR
    CO_COSTCTR
    Order Actual Line Items
    KOB1
    TR
    CO_ITEM
    Cost Center Actual Line Items
    KSB1
    TR
    CO_ITEM
    CO Documents, Actual Costs
    KSB5
    TR
    CO_ITEM
    CO Documents, Actual Costs
    KSB5
    TR
    CO_KSTRG
    List: Orders
    6L00
    RW
    CO_ORDER
    List: Cost elements
    6M00
    RW
    CO_ORDER
    Order: Actual/plan variance
    6O00
    RW
    CO_ORDER
    Order: Drilldown by Partner
    6O08
    RW
    CO_ORDER
    Order: Drilldown by Period
    6Z02
    RW
    CO_ORDER
    Order Actual Line Items
    KOB1
    TR
    CO_ORDER
    CO Documents, Actual Costs
    KSB5
    TR
    CO_ORDER

  • Actual line items KSB1 some line items missing

    Hello friends
    i am facing a issue related with transaction code KSB1  , 
    i have posted cost center through FB60  and  able to view the same document by fb03  & actual cost document by KSB5
    but  i am not able to see that item from standard ksb1.
    when i execute the same report for privious fiscal years i am to see the line items .
    but not a single document for the current period ? why ?
    i have checked for authorization also but that is also ok .
    thanks  in advance .
    Sachin S. Joshi

    Thanks A P  
    but i am making proper selection , as i have mentioned i am able to get results for the privious fiscal years posting ,
    second thing  i am able to view the same document  with KSB5 which is not appearing in KSB1 report  for the current period.
    Thanks
    Sachin

  • CO 1SRJ-001: Too many line items selected via report interface

    Report group/report 1SRJ/1SRJ-001 (CCentres: Rolling Year):  provides an overview for the last 12 periods of actual and plan data.
    When you access line item report RKAEP000 (KSB1 or KSBP) from report Cost Centres Rolling Year (1SRJ-001) using the report/report interface, too much data is selected.
    For example, you enter fiscal year 2009 and month 8 in selection parameters, the report generates results for the last 12 periods:  2008/9 to 2009/8.  But the line item report accessed via report interface selected ALL data for the fiscal years 2008 and 2009.
    I searched and found Note 127643 that described a similar but not exactly the same situation.  Have anyone have any problems with this report?  Any suggestion is appreicated.
    Regards,

    Issue with report 1SRJ-001 (S_ALR_87013631) has been resolved.  The interfaced line item report selects all data records for fiscal years 2008 and 2009, instead of just for the selected last 12 months.  The problem is due to missing restrictions for a characteristic, in this case, the from-period and to-period fields.
    SAP has corrected the problem by issuing an updated version (1999) and the one we were using was the 1995 version.  I imported the updated version of report from client 000 and now it works fine.

  • Line chart will not drill down

    I am doing a drill down Group report which will show the Sum of Last year's Sales By Country, State and city over a period of time(by date) for throughout the year 2007. Every group will have a line chart with Data title as Sum of Last year's Sales ($), Group Title as Date and legends displaying countries (or states or cities) as USA,UK,Australia. etc.. I have same sort of line chart for State and City as well.
    Now, the problem is my drill down would not work on chart lines or legends as it would do for a 2-dimensional data chart like a bar-chart or pie-chart. The reason is in the Chart Expert->Data->Layout:Group ->in the On Change Of event selection I am able to specify either Sales.Country  (or) Sales.country and Sales.Sales.State. Both options would not let me get the correct linechart with correct data and drill-down working as well.
    The only work-around i got is to display the line chart with legends and and showing the Country(or State or City) names in a field in the Group Footer. The drilling will work on those fields, but not on the legends or lines of the line chart. This make my report showing the Country names twice once on legend (with no drill-down) and once on group-footer(with drilling ability to groups below) which is untidy.
    Have anyone tried to make a drill-down crystal report on a 3-dimensional data like this? The World Sales report in Crystal reports Samples\General Business\World Sales Report is the best example of how i would like to see my charts to drill down. However, they drill down across a 2-dimensional data. I am publishing this Crystal Reports in Business Objects Infoview.

    Wow. That post almost made my eyes bleed. You may want to add some white space for readability.
    Anyways - as Falk said. You should move or re-post this in the [Crystal Reports Design|SAP Crystal Reports; forum. They specialize in this sort of thing. Us dev guys here make sure we can see the chart without errors and don't do much beyond that.

  • Restrict Number of Open line items selected for vendor payment in F-58

    Dear Experts,
    simply in F-58 i want the system to issue an error message if the user select more than 10 or maybe 15 open line items for payment, the reason is to make sure that the number of line items selcted will fitt in the From specified for printing.
    is there a way to do so ?
    i already got on but not sure how to use it.
    please advice
    Thanks and regards
    Mohamed Talaat

    hi,
    my restricition is regarding the form that the key user want only one cheque paper to be prininted and the space for that can hold only like 10 or 15 line items so he just want to define this number and cant exceed it in one paymnet.
    payment advice control i think can do this but am not sure its under t.code FBZP payment method in company code, haveyou try this before ?
    and how come we design the form for multiplie pages andthen accomidate in one page ?
    as they insert in the oprinter a seralized prinitng cheques paper sequincely.
    please clarify
    Regards
    M.Talaat

  • Message "No Line Items Selected"

    Hi friends,
    I am getting a message "No Line Items were selected" while executing CJI4.
    Or even when in the transaction CJ40/CJ41, I am going thru ....Extra>Line Items.......
    I have even implemented a note but still the same message is coming.
    I couldnot figure out what "Line Items" the system is asking for.
    Pl. help me out.
    Abhra Bose
    9930459159

    Refer to this note if applicable to your SAP pack: Note 1130282 - CJ40/CJ41: Plan line items not displayed.
    1. Check planning profile assigned to your project definition.
    2. Check Primary C.Element Grouping defined in the profile for Hierarchial Cost Planning. (if not defined use T.code CJR2 to build WBS detailed planning)
    3. Check Number Range assignement for Detailed Planning for the controlling area and transactions assignment to intervals.
    4. User Status maintained for WBS elements must allow "write plan items" business transaction.
    Hope it all helps.
    NChakoo
    Edited by: NAKUL CHAKOO on May 27, 2009 9:56 PM

  • Restrict purchase order line item selection in MEMASSPO

    How to restrict in authorizations of role which purchase order line item can be selected by user in the memasspo.
    I have a scenario where Business wants that no user should be allowed to select all the Purchase Order line items rather should be displayed sub set of the entire purchase Order line items while attempting to do mass change in the PO created.
    Thanks & Regards,
    Abhimanu

    The mass transaction is meant to change many POs and their items at one time.
    The user can not change anything with mass which he cannot do in ME22N.
    if he can do it in ME22N, why should he not be able to do it in MEMASSPO?
    Based on what criteria should a item be restricted from a change in your special case, how do you define your subset?

  • Multiple selection at drill down.

    Hi Experts,
    I have a report which is in HierSQ ALV. Here I had created secodary HireSQ List and make this report as an ineractive.
    Now problem is when i click on perticular field on which i had set user command.
    But I want to choose more then one field at user command for use in querry.
    Please guide me to explore my knowledge.
    Thanks & regards,
    Nayan Lad

    I had use tabindex of perticular selected feild and use read table statement find the field using that index and create querry.
    Any ways thanks...

  • Sale Order Line Item Format

    Hi,
    I was wondering if anyone knows how to change the fields and their location that are displayed in a sales order at the line item level without drilling down into the line item details themselves.
    I need to be able to enter a sales order and set the price and a flag without drilling down into the item level details. So I would like to be able to move the "amount" field (KOMV-KBETR) over to the left so that it is more readily visible to the user when they enter the create sales order screen, and also to add a custom field to the display at this level instead of having to go and look through item level detail tabs.
    Thanks for your time,
    Leonard

    I think SAP does not support adding custom fields to the item detail. The option provided by SAP to add custome fields is Additional Data B.
    I wanted to add fiew custom fields to the item detail and this is what I got a reply from SAP.
    Hope this helps
    In response to other post:
    There will be an icon at the end of the top right corner of the columns of the item detail. If you place your cursor on it, the description of "configuration" will appear. you can click that and save the column settings as required.
    Regards
    Sai

  • What is drill down report

    hi
    experts can u help me for this

    nothing difference for interactive and drill down
    i am giving a clear example so that u can clearly understand
    in this example you have a mainreport REPORT1. From REPORT1 you
    can drill down to REPORT2 and from REPORT2 you can drill down
    to REPORT3.
    Tip:     Use hotspots to fire the AT LINE-SELECTION event.
         When the cursor is over the hotspot, it cganges to a hand,
         and you just have to click on the hostspot, instead of
         double clicking.
    Note:     To see how to recognize if the user has selected a valid line, take a look at
    How to check if a valid line is selected before drill down.
    START-OF-SELECTION.
    Read data for REPORT1 into itab1
    END-OF-SELECTION.
      PERFORM write_report1.
    TOP-OF-PAGE.
    Write list header for REPORT1
    AT USER-COMMAND.
    Respond when the user presses a function key
      CASE sy-ucomm.               
       WHEN 'REPORT2'.                
         PERFORM write_reprt2.  
       WHEN 'REPORT3'.                
         PERFORM write_reprt3.  
      ENDCASE.
    AT LINE-SELECTION.                                                 
    Istead of pressing a button can perform the same actions
    as i AT USER-COMMAND, by double clicking a line 
    sy-lsind contains the list level.
    Each time an interactive list event occurs, sy-lsind is
    automatically increased by 1.
    At REPORT1 sy-lsin = 0
      CASE sy-lsind.                                                   
        WHEN 1.                                                        
           PERFORM write_reprt2.  
        WHEN 2.                                                        
           PERFORM write_reprt3.  
      ENDCASE.
    TOP-OF-PAGE.
    Write report header for report1 ( sy-lsind = 0 )
    TOP-OF-PAGE DURING LINE-SELECTION.                       
    Write report header for sub reports
       CASE sy-lsind.                                         
         WHEN 1.                                              
        Write report header for REPORT2.
         WHEN 2.                                              
        Write report header for REPORT3.
        ENDCASE.
    FORM WRITE_REPORT1.   
       LOOP at itab1.
        write report1.......
        Hide keyfields used for the select statement of
        report2
          HIDE: itab1_year, itab1_month.
       ENDLOOP.      
    ENDFORM.
    FORM WRITE_REPORT2.   
       SELECT * FROM databasetable2 into itab2
          WHERE year   = itab1_year AND
                month  = itab1_month.
       LOOP at itab2.
        write report2 .......
        Hide keyfields used for the select statement of
        report3
          HIDE: itab2_carrid.
       ENDLOOP.      
    ENDFORM.
    FORM WRITE_REPORT3.   
       SELECT * FROM databasetable3 into itab3
          WHERE carrid   = itab2_carrid.
       LOOP at itab3.
        write report3 .......
        No need to hide keyfields, as further drill down is not
        possible
       ENDLOOP.      
    ENDFORM.
    regards
    Giridhar

  • Sales order line item conditin type

    hi experts
      in pricing procedure determination we  at lost we are giving condition type. it was displayed in sales order line item level
    what is the purpose of this condition type.
                                   thanks to every buddy who are trying to give answer this question.
                                        narasimha
                                        [email protected]

    Hi,
    This is to avoid going into the line item and entering the value in the amount field.
    When u assign it there in your pricing procedure determination you can enter the amount in the amount field for each line item and avoid drilling down to conditions tab for each item
    Hope you find this helpful.
    If you, please reward points for contribution.
    Regards
    Ravi

Maybe you are looking for

  • I am trying to connect a second monitor on my system so that I have one to work on and the other that I am projecting. Any ideas on how to do that?

    I am trying to connect a second monitor on my system so that I have one to work on and the other that I am projecting. Any ideas on how to do that?

  • Cannot Connect to VPN

    I'm just about ready to ragequit for the day. I've been pouring through dozens of support pages, youtube videos, tutorials. The lack of true documentation on problems like this has me considering a start-up business that specifically deals with these

  • HTML in Email

    I have Sprint as my carrier and use gmail.  How can I get my blackberry to show emails with HTML embedded?  Currently it shows the HTML coding. Thanks

  • JQuery 'Clashes' and browser problems

    Hi I am quite new to using APEX with Jquery and have written some code that allows the user to upload an image, view the image in a modal Jquery dialog and use JCrop (Jquery plugin) to crop the image. Once cropped it displays the image in a gallery u

  • Error in Demo-Appl. 'Project Status'

    Reporting an error: Project Status Demo. When I try to add a new task to a project, I get: ORA-06502: PL/SQL: numeric or value error: character string buffer too small ORA-06512: at "CBOURBOU.PROJSTAT_TASKS_BIU", line 4 ORA-04088: error during execut