XLR sample - sales report by item by sales rep

Hi all,
I am using the above report at client site and its working great.
The cust now has a requirement to modify this and include a column that looks at same period -12mths.
I can easily do that by -
- duplicating the existing columns 
- applying period parameter to columns and not the report default
- and changing the parameter to be @per-12.
This doesnt seem to work however as the parameter is an expression which means I can select a range of periods.  XLR gives error:
Definition parsing failed: syntax error near @per-12.
It only seems to work when I have the parameter as a dimension so that only 1 period can be selected.
Can XLR do the calculation for the range of periods -12 mths?
My client wants to create a quarterly report so selecting 1 period is not going to be sufficient.
I hope what I have explained is clear.
Thanks for any advice,
John

Hi,
There is a detailed syntax explaination document in portal> Docment Resource Center, you can download it and check.
There also the explaination regarding @period-12
For multiple selection, you can use Selection icon(next to the Expand icon) for columns to show more columns for different period.
hope this helps you.
maggie an
SAP BusinessOne Forums Team

Similar Messages

  • Reg WBS Element in Sales Order Line Item For Sales Order BOM

    Hi ,
    Greetings!!!!
    I have a requirement, in a Sales Order I am Exploding BOM. After that Projects will be Created.
    Once Project will be created i need to Assign WBS element for All Items in Sales Order.
    My requirement is When I assign WBS element for Header Material (Parent Item) system will auto assign WBS for Child Items.
    for this what Configuration I have to do.
    Please do need full.
    Thanks,
    Regards,
    Prasad.

    Hi Dayananda
    Check in transaction VTFL for given item category what copying routine are set. Check those copy routine and see if there is any data is being copied from table VBAP
    Similar to above also check transaction VTFA for copying routine (if any)
    As a standard SAP even we create an invoice with reference to the delivery document, still there are some data which is being copied from a sales order i.e. all pricing relevant information is copied from your sales order and not from delivery.

  • SALES REPORT BY ITEM

    PROBLEM - Sales Analysis report will not pull data when requesting multiple items and date range of YTD (2008) - but when report is broken into fewer item #'s & shorter date range - then the data populates - How do you fix?

    YVONNE YLLARRAM,
    Select Annual option in sales analysis.
    select the required item group in sales analysis selection creteria.
    Tick secondary selection
    select the required customers in from.. to.. fields.
    Apply option group by customer.
    Click ok.
    Above selection creteria will pave way
    to populate report more quickly.
    Jeyakanthan

  • [Sales A/R] [Sales Report] [Open Item List] [missing item]

    Dear Expoerts,
    Business One 2005A:
    How to restore or rectify the 'missing item' on the Open Item List?
    There is an item shows Commiited 10 however there is no corresponding Sales Orde.
    Since there is no stock therefore data shows Available -10.
    How can we purge this bug because we tried Goods Issue and Restore, neither methods can do anything about it.
    Your advice will be very much appreciated.
    Kunitomo
    Tokyo, Japan

    Dear Gordon,
    Yes, i'm sure. When i test it, i copy Sales Order (eg. got 5 items - 4 of 5 item is 0 amt)  to Delivery Order (got 5 items - 4 of 5 items is 0 amt). Then i delete the row of 4th & 5th item with 0 amt. 
    FROM Sales order:
    Example: 1) Item A      $1,000.00
                   2) Item B              $0.00
                   3) Item C              $0.00
                   4) Item D              $0.00
                   5) Item E              $0.00
    To Delivery Note:
    Example: 1) Item A      $1,000.00
                   2) Item B              $0.00
                   3) Item C              $0.00
                   4) Item D              $0.00 (Delete row in Delivery Order)
                   5) Item E              $0.00 (Delete row in Delivery Order)
    After i check the Open Item List - the amt, net & tax do not show the figure for this Sales Order. The Sales order just show $1,000.00 in "Original Amount" in Open Item List.
    Please check for me, the SAP B1 system std is like that?
    Thank you.
    Regards,
    Sheon

  • Sales Reports showing Different Net Sales

    Hi All,
    Here is three queries, which are sowing different net sales. But both should return same values. Please correct me.
    select sum( nvl(c.extended_amount,0) * nvl(b.exchange_rate,1)) SALES
    from ra_salesreps a
    ,ra_customer_trx_all b
    ,ra_customer_trx_lines c
    where a.salesrep_id(+) = b.primary_salesrep_id
    and b.customer_trx_id(+) = c.customer_trx_id
    and c.line_type='LINE'
    AND b.complete_flag like 'Y'
    and (b.trx_date between TO_DATE('2010/12/01 00:00:00', 'yyyy/mm/dd hh24:mi:ss')
    and TO_DATE('2011/11/30 23:59:59', 'yyyy/mm/dd hh24:mi:ss') )
    AND b.primary_salesrep_id = 1040;
    SELECT SUM(nvl(c.extended_amount,0)*nvl(b.exchange_rate,1 )) net_amount,
    FROM hz_cust_accounts hca,
    hz_parties hp,
    ra_customer_trx_all b,
    ra_customer_trx_lines_all c,
    ra_cust_trx_types_all d
    WHERE b.bill_to_customer_id = hca.cust_account_id
    AND b.customer_trx_id = c.customer_trx_id
    AND b.cust_trx_type_id = d.cust_trx_type_id
    AND hca.party_id = hp.party_id (+)
    AND c.line_type='LINE'
    AND b.invoice_currency_code like 'USD'
    AND hca.primary_salesrep_id = 1040
    AND b.trx_date BETWEEN to_date('2010/12/01 00:00:00', 'yyyy/mm/dd hh24:mi:ss')
    AND to_date('2011/11/30 23:59:59', 'yyyy/mm/dd hh24:mi:ss')
    HAVING SUM(DECODE(d.TYPE, 'INV', (nvl(c.extended_amount,0)*nvl(b.exchange_rate,1)), 'DM', (nvl(c.extended_amount,0)*nvl(b.exchange_rate,1)),0 )) BETWEEN TO_NUMBER(-999999999) and TO_NUMBER(999999999);
    SELECT
    SUM(nvl(y.extended_amount,0)*nvl(x.exchange_rate,1 )) net_amount
    FROM hz_cust_accounts hca,
    hz_parties hp,
    hz_party_sites hps,
    hz_cust_acct_sites hcas,
    hz_cust_site_uses_all hcsu,
    hz_locations hl,
    ra_customer_trx_all x,
    ra_customer_trx_lines_all y,
    ra_cust_trx_types_all z
    WHERE hca.party_id = hp.party_id
    AND hp.party_id = hps.party_id
    AND hcas.party_site_id = hps.party_site_id (+)
    AND hps.location_id = hl.location_id (+)
    AND x.bill_to_customer_id = hca.cust_account_id(+)
    AND hcas.cust_account_id = x.bill_to_customer_id
    AND x.customer_trx_id = y.customer_trx_id
    AND x.cust_trx_type_id = z.cust_trx_type_id
    AND x.ship_to_site_use_id = hcsu.site_use_id(+)
    AND hcas.cust_acct_site_id(+) = hcsu.cust_acct_site_id
    AND x.invoice_currency_code like 'USD'
    AND y.line_type='LINE'
    AND x.trx_date BETWEEN TO_DATE('2010/12/01 00:00:00', 'yyyy/mm/dd hh24:mi:ss')
    AND TO_DATE('2011/11/30 23:59:59', 'yyyy/mm/dd hh24:mi:ss')
    AND hca.primary_salesrep_id = 1040;
    Thanks & Regards,

    Hello,
    The answer from Caveman is correct, the DRB - tcode ALO1 (that is the letter o not a zero) retains some of the document flow of archived data.
    Do not use transaction VPAR as that archives data related to preference determination and transaction VF07 does not show document flow.
    If you have implemented the PBS modules to view archived data, they retain the document flow information and you can view the data exactlly how it looked before it was archived.
    Hope this helps.
    Best Regards,
    Karin Tillotson

  • Quantuty on the Sale Order line item

    HI,
    Can anyone suggest how to control the Quantity on the sales order line item.
    Sale order line item should not be reduced below the delivered or invoiced quantity. For EX:Sale order line item 10 has 200kgs,delivery quantity created aganist that order is 100kgs, now the system should not allow us to change the sale order line item quantity below the delivery quantity i.e 100kgs.
    Thanks in Advance.

    In the transaction OVAH, for the message class V4 and message number 083, in the category column, change the entry from W to E. Then system will issue hard error when you change the order qty to below delivered qty.
    Regards
    Sai

  • SD report for the open sales orders with items

    Hi,
    Is there any standard SAP report which display open sales order togeather with the open items. I want to have columns target quantity, delivered quantity and open quantity.
    Any tip?
    BR
    Saso

    Dear Saso,
    I think, instead using Report: VA05/ VA05N; its better to use Report: VL10C
    In this report, you will get all the Sales Orders along with Materials - relevant for open delivery, along with Open Qty. and various other options can be selected from "Change Layout - (Ctrlt+F8)".
    Best Regards,
    Amit
    Note: Don't maintain any Field-Entry (while executing the Report: VL10N; in order to list all Sales Orders. But, if you want to list Sales Orders based upon some criterias, maintain the Field-entries, as reqd.

  • Report to show the followup sales documents and items

    Sales had executed many sales quotations with customers over a period of time.
    Now the Sales Staff wanted to know how many sales documents and what/how many sales items are being purchased by the customer with respect to the quotation.
    Is there a report that list out the sales documents and items created w/respect to a particular quotation instead of looking at the document flow which is difficult to diagnose.
    Thanks

    hello, friend.
    you can try table VBFA, where you can see sales documents and their subsequent documents.
    for a general listing of quotations, use tcode VA25.
    regards.

  • Sales Analisys on Items report in Delivery

    Incorrectly sales analysis report on Items in the context of Delivery Notes, if Delivery has a status - Closed.
    1. Add the document u2013 Delivery №1 with item/service type to the system.
    2.We want to see the sales analysis report. Sales -> Sales reports -> sales analysis. Criteria for report: Delivery Notes and you can see customers, Items and Sales Employees reports.
    The Items report, Sales Employees report and customers report have the same values.
    3.Closed the document "Delivery".
    4.And if we see the Items report, then the report will show us a zero quantity.
    How can I remove this error?
    Tnaks.

    Yes, i agree with Gordon.
    YOu can try this SQL query.
    SELECT T0.ITEMCODE,
    (SELECT SUM(T1.QUANTITY) FROM DLN1 T1 with (NOLOCK)
    WHERE MONTH(T1.DOCDATE) = 1 AND T1.ITEMCODE =
    T0.ITEMCODE) AS 'JAN QTY',
    (SELECT SUM(T1.QUANTITY) FROM DLN1 T1 with (NOLOCK)
    WHERE MONTH(T1.DOCDATE) = 2 AND T1.ITEMCODE =
    T0.ITEMCODE) AS 'FEB QTY',
    (SELECT SUM(T1.QUANTITY) FROM DLN1 T1 with (NOLOCK)
    WHERE MONTH(T1.DOCDATE) = 3 AND T1.ITEMCODE =
    T0.ITEMCODE) AS 'MAR QTY',
    (SELECT SUM(T1.QUANTITY) FROM DLN1 T1 with (NOLOCK)
    WHERE MONTH(T1.DOCDATE) = 4 AND T1.ITEMCODE =
    T0.ITEMCODE) AS 'APR QTY',
    (SELECT SUM(T1.QUANTITY) FROM DLN1 T1 with (NOLOCK)
    WHERE MONTH(T1.DOCDATE) = 5 AND T1.ITEMCODE =
    T0.ITEMCODE) AS 'MAY QTY',
    (SELECT SUM(T1.QUANTITY) FROM DLN1 T1 with (NOLOCK)
    WHERE MONTH(T1.DOCDATE) = 1 AND T1.ITEMCODE =
    T0.ITEMCODE) AS 'JUN QTY',
    (SELECT SUM(T1.QUANTITY) FROM DLN1 T1 with (NOLOCK)
    WHERE MONTH(T1.DOCDATE) = 7 AND T1.ITEMCODE =
    T0.ITEMCODE) AS 'JUL QTY',
    (SELECT SUM(T1.QUANTITY) FROM DLN1 T1 with (NOLOCK)
    WHERE MONTH(T1.DOCDATE) = 8 AND T1.ITEMCODE =
    T0.ITEMCODE) AS 'AUG QTY',
    (SELECT SUM(T1.QUANTITY) FROM DLN1 T1 with (NOLOCK)
    WHERE MONTH(T1.DOCDATE) = 9 AND T1.ITEMCODE =
    T0.ITEMCODE) AS 'SEP QTY',
    (SELECT SUM(T1.QUANTITY) FROM DLN1 T1 with (NOLOCK)
    WHERE MONTH(T1.DOCDATE) = 10 AND T1.ITEMCODE =
    T0.ITEMCODE) AS 'OCT QTY',
    (SELECT SUM(T1.QUANTITY) FROM DLN1 T1 with (NOLOCK)
    WHERE MONTH(T1.DOCDATE) = 11 AND T1.ITEMCODE =
    T0.ITEMCODE) AS 'NOV QTY',
    (SELECT SUM(T1.QUANTITY) FROM DLN1 T1 with (NOLOCK)
    WHERE MONTH(T1.DOCDATE) = 12 AND T1.ITEMCODE =
    T0.ITEMCODE) AS 'DEC QTY'
    FROM dbo.OITM T0
    LEFT JOIN dbo.DLN1 T1 ON T1.ItemCode = T0.ItemCode
    WHERE T0.SellItem = 'Y'
    GROUP BY T0.ItemCode,YEAR(T1.DOCDATE) HAVING YEAR(T1.DOCDATE) = YEAR(GETDATE())
    ORDER BY T0. ITEMCODE

  • Sales Analysis Report by Items - How to chart it

    The sales analysis report by items is great for us but I notice that there is no way of getting a bar chart for example at that initial report level. Only when you drill down in to a group does it show the charts.
    Is is possible to get the Items Groups summary sales report in to a chart?

    Hi Ricky.....
    Chart waise Graphical Representation is given by SAP and it can be easily done in XCelcius.
    All you need to do is you have to create your own report and put this report in XCelcius.
    It is recently launched.....
    Regards,
    Rahul

  • Due to deleted Sales order line items and Archived Sales order is still showing as Incomplete in BW as Open Order reports because of Incorrect SAP R/3 Rejection Status("A") in VBUP table.

    In a archived saler Order user had deleted Line Item and completed overall sales order. Now this sales order is archived, but it is stll appearing in BW report as open order because of deleted item  with rejection Status is maintained as “A” (Not yet Processed).
    We want to change this status from "A" (Not yet Processed) to "C" as completed.
    I have tried to reload Archive data but due to some limitation I was not able to do it. Also I feel this will like this s not the proper way to do it.
    Could you please help me to correct way to do it???
    Thanks in advance....

    Hi Vaibhav,
    If you can get the list of Sales orders which has deleted line items and force completion status. You can manage them in BI via lookup  or navigation attribute.
    Just my views I am sharing .
    Thanks,
    KDJ

  • Report of condition types per line item in sales order

    Hi all,
    Is there any report that can tell me all the price conditions that are allocated to a sales order line item? I am talking about the actual conditions relevant for a line item, not only conditions that have a condition record setup.
    So I would like to key in sales order number, the line item and get a report of all conditions that are allocated to that line item in the specific sales order.
    If there is no such standard report, does anyone know what tables to link?
    Thanks in advance,
    Lars

    Hi Lars,
    In my current customer they had the same requirement and after almost 1 month of analysis we decided to build a custom report to execute this.
    And as an enhancement we compare prices from the sales orders and the sap price records in order to check the differences.
    First we need to find all the open lines (status and reason for rejection (ABGRU)), than loop KONV and select the  KSCHL (condition types) you want, material text descriptions, etc.....of course a lot more in terms of coding.....;-)
    This was the form I used :
    FORM FIND_SO_PRICES.
      LOOP AT IT_ITEM_REPORT.
        REFRESH IT_PRICING.
        SELECT KSCHL KBETR WAERS KPEIN KMEIN KUMZA KUMNE
          INTO IT_PRICING
          FROM KONV
         WHERE KNUMV = IT_ITEM_REPORT-KNUMV
           AND KPOSN = IT_ITEM_REPORT-POSNR
           AND KINAK <> 'M'
           AND KINAK <> 'X'.
          APPEND IT_PRICING.
        ENDSELECT.
        READ TABLE IT_PRICING WITH KEY KSCHL = 'XXXX'. -> My price condition
        IF SY-SUBRC = 0.
          IT_ITEM_REPORT-ZSP1 = IT_PRICING-KBETR.
          MODIFY IT_ITEM_REPORT.
        ENDIF.
        READ TABLE IT_PRICING WITH KEY KSCHL = 'XXXX'. -> My discount condition
        IF SY-SUBRC = 0.
          IT_ITEM_REPORT-ZSD1 = IT_PRICING-KBETR / -10.
          MODIFY IT_ITEM_REPORT.
        ENDIF.
       IT_ITEM_REPORT-LIQ = IT_ITEM_REPORT-ZSP1 - ( IT_ITEM_REPORT-ZSP1 * (
                                              IT_ITEM_REPORT-ZSD1 / 100 ) ).
        MODIFY IT_ITEM_REPORT.
      ENDLOOP.
    ENDFORM.                    " FIND_SO_PRICES
    Please tell me if this helped you,
    Regards,
    Alcides Fialho

  • How to get report for deleted line items from sales orders

    Dear FRIENDS,
    please infirm the t.code or report for viewing the deleted line items from sales ordrers.
    Kindly do the neeedful.
    regards,
    N.M.PAWAR

    Hi,
    With transaction SE16 you can view table CDHDR for header changes and
    CDPOS for item changes. This includes deletion.
    OR
    GO to VA03 - Display Sales order -> Put order no : don't press enterbutton. -> Go to Enviornment -> changes -> You will get details
    Date ItmNo. SLNo Action
    Hope this help please close the thread if answers

  • Need to create a report of Items sold= last sale date report

    Hi Guys,
    There is an column of last sale date in OITM but that doesnt gives any data when you run a query. Basicaly client need to generate a report of Items with last sale date, is this possible SAP Business One?
    Regards

    Hi Joe,
    you could use the stock posting list report with a suitable date range & select only AR invoices in the 'Expanded' options, then sort by posting date in descending order
    This report can then be exported to Excel & all irrelevant transactions can be deleted, keeping only the first & second row for each item (Row 1 = Itemcode, Row 2 = last stock posting from AR invoice showing in the 'Price after discount' column).
    Alternatively, you might explore whether an SDK solution  may be created that runs the last prices report for all items.
    All the best,
    Kerstin

  • Items Sales Report

    Hello.
    I need to make an items sales report, but i have diferences between OINV.DocTotal and (INV1.Quantity * INV1.Price). What is the correct way to make this kind of report?
    regards
    Oscar

    thanks for every one, I found the answer:
    SELECT T0.DocEntry, T1.DocNum,
           (SELECT (T2.DocTotal - T2.VatSum) FROM OINV T2 WHERE T0.DocEntry = T2.DocEntry) 'DocNeto',
          (ROUND(SUM(T0.LineTotal),4) - T1.DiscSum) 'DetTotal' FROM INV1 T0
       LEFT JOIN OINV T1 ON T0.DocEntry = T1.DocEntry
    WHERE YEAR(T0.DocDate) = 2008  AND T1.DocType = 'I' and T0.DocEntry = 8755
    GROUP BY T0.DocEntry,T1.DocTotal,T1.DocNum,T1.DiscSum
    I did this query to match the header and details invoices.
    Thanks, for your time.

Maybe you are looking for

  • My iMovie 9.0.8 won't open, crashes upon app launch

    For reasons I can't pinpoint on my own after days of googling, I've come to you guys for support. Hopefully someone can help me out! Every time I try to launch iMovie (version 9.0.8 running on OS X 10.8.2) the app loads its initial screen and then cr

  • PDF comparison through Javascript

    Hi, Is it possible to compare two PDF through Acrobat Javascript. Also i need to save the comparition report in a separate PDF. I know there is an option in Acrobat to get this, but i need to run this for batch of files. Thanks, Gopal

  • Sharing Files between PC and Mac

    I have a PC running Windows Vista, and a new Macbook. I have set folders on my PC to share with other computers on my network, and I have shared my printer as well on this same network. I can connect to my PC from my Mac using the "Connect to Server"

  • ICloud & Notes

    Hi, according to this article http://www.macrumors.com/2012/07/31/apple-ready-to-finish-shutting-down-mobileme -over-next-few-days/ is @me.com already closed. So why I have to create @me.com account to active Notes in iCloud? Everything works...conta

  • Xquery Sender with External event receiver

    Hi, I am using a Xquery sender with external event receiver automation plugin. I want to use following functions in the same XQuery, 1. automator:getOrderAsDOM($automator) 2. automator:setSetJMSMessageText($automator, fn:false()) But both these funct