YTD(year to date) Sales [List Price/ Gross Sales ]

How to create YTD(year to date) Sales [List Price/ Gross Sales ] depending on the selection in filter

Do you have the measure names as list of values in prompt?
Rgds,
Dpka

Similar Messages

  • MTD(Month To Date) and YTD(Year To Date) with one example

    can any ont Explain about MTD(Month To Date) and YTD(Year To Date) with one example plz

    Hi,
    Can you please elaborate.
    MTD is from the 1st of the current month till today's date.
    YTD is from 1st Jan till today's date.
    If you trying to build this is query. Create restricted key figure and put restriction on calday with a customer exit for the same.
    Thanks,
    S

  • How to save LIST_LINE_ID of Price List when create Sales Order Line

    I dont know how save the LIST_LINE_ID of the Price List on Sales Order or anywhere when create Sales Order Line.
    I create with the following steps:
    Step 1: Create Price List for Item A with two line: Line 1 (Unit Price = 10,5, Pricing Attribute with Tax Classification Code = 5%), Line 2 (Unit Price = 11, Pricing Attribute with Tax Classification Code = 10%)
    Step 2: I create Sales Order Line with Item A, Tax Classification Code = 5% --> Unit Selling Price = List Price = 10,5 but dont bookorder
    Step 3: I update the Unit Price of Line 1 into 11.55.
    Step4 : I book this Sales Order. Howerver, I use form personalization to customize Book Event: if the Unit Price of Item on Price List > Unit Selling Price then cant not Book. But I dont konw List Price of Sales Order belong the line of Price List.
    Please help me check this issue. Thanks for your supports.
    BinhTC
    Email: [email protected]

    Bob's right - except that if you have OM: List Price Override Privilege set to 'Unlimited' (and from your scenario it sounds as if you have) it is possible that the value in unit_list_price will vary from what was originally retrieved from the price list.
    In that case, a safer bet is to use :LINE.original_list_price in your personalization as this will always contain what was originally retrieved and will mean you can avoid any repeat lookup via list_line_id.
    Regards,
    Jon

  • Year to Date query

    SELECT T0.CardName, sum(T1.Price) [Year To Date], '0' [Previous] FROM OINV T0  INNER JOIN INV1 T1 ON T0.DocEntry = T1.DocEntry WHERE T0.DocDate Between DATEADD(year,-1,GETDATE()) AND GETDATE() GROUP BY T0.CardName
    UNION
    SELECT T2.CardName, '0' [Year To Date], sum(T1.Price) [Previous] FROM OINV T2  INNER JOIN INV1 T1 ON T2.DocEntry = T1.DocEntry WHERE T2.DocDate Between DATEADD(year,-2,GETDATE()) AND DATEADD(year,-1,GETDATE()) GROUP BY T2.CardName
    ORDER BY T0.CardName asc
    Gives me, for example:
    A    100      0
    A     0        150
    B     200     0
    B     0        50
    C    300      0
    D     0         550
    How would I go about joining them together into:
    A    100    150
    B    200    50
    C    300    0
    D    0       550
    Thanks,
    Jason

    SELECT T1.CardName, sum([YearToDate]), sum(Previous)
    FROM OINV T1, (
    SELECT T0.CardName [BP], sum(T1.Price) [Year To Date], '0' [Previous] FROM OINV T0  INNER JOIN INV1 T1 ON T0.DocEntry = T1.DocEntry WHERE T0.DocDate Between DATEADD(year,-1,GETDATE()) AND GETDATE() GROUP BY T0.CardName
    UNION
    SELECT T2.CardName [BP], '0' [Year To Date], sum(T1.Price) [Previous] FROM OINV T2  INNER JOIN INV1 T1 ON T2.DocEntry = T1.DocEntry WHERE T2.DocDate Between DATEADD(year,-2,GETDATE()) AND DATEADD(year,-1,GETDATE()) GROUP BY T2.CardName
    ) as d(BP, YearToDate, Previous)
    WHERE d.BP = T1.CardName
    GROUP BY T1.CardName
    ORDER BY T1.CardName
    Solved.

  • "Sales Basic Price" in vf02 (conditions tab)

    after running vf02 we enter billing document. we double click on item description we get many tabs.
    in that in 'condition' tab
    I want to fetch "Domestic list price"  and "Sales Basic Price".
    I got value of "Domestic list price" from komv table with KSCHL = 'ZLP1'. but i dont know from where to fetch "Sales Basic Price".
    Please guide me.

    Hi
    Probably "Sales Basic Price" is a condition calculated at runtime, so it's not stored in KONV.
    You should check your scheme in order to understand how that condition is calculated.
    Max

  • 'Gross sales' field in mc+e report

    Hi,
    Only for certain sales areas, the 'gross sales' field in the mc+e report is getting populated. For others it is not. Is there any setting which needs to be done for this field to get populated? Also, which value exactly is supposed to be showing?
    Thanks and regards,
    Kasturi Mukherjee

    Hi,
    Check with F1 in the field. If I am not in a mistake I can read that it's related with the subtotal 1 in the pricing procedures. So, check in your pricing procedures what conditions populate this field (KZWI1).
    Regards,
    Eduardo

  • Sales Report for US Sales and Use tax

    Hi,
    I'm looking for t-code to extract detailed sales report having Gross sales, Exempt sales , Ship to state, Ship to County\ City,  Sales Tax collected. If I'm getting this report i can verify what my sales tax software is updating.
    When i extract  tcode - ZINVLIS i don't get much detail.
    Please help me in extracting complete sales detail which can be used for sales and use tax verification process and audit purpose.
    Thanks,
    Karthik

    Hi Karthik,
    There is no standard report available as per my knowledge.You may develop Z report to achive your requirment. Check some LIS report can give data (MC01 is transaction where you can check all type of key figure reports)
    Regards
    Mani Kumar

  • How to copy Sales Quotaton prices to Price List or Special Prices

    We frequently use Sales Quotation to communicate deal price offers to customers.  Once these prices are approved, we have to re-type these prices into applicable price lists or special prices. 
    We are looking for a way to copy these deal prices from Sales Quotation (by Business Partner) over to the applicable price list and special prices?
    Please assist?
    Jaco de Villiers

    I was told by my Implementation Partner that it is possible to import and update price list by using the Import function that is available in SBO.  To do this:
    1. From your sales quotation with the agreed prices - export to excel.
    2. Change the format to list: Product code, Price list to update, New price, Currency
    3. Save the file as tab delimited text
    4. Import into SBO using the Administration, Data Import/Export, Data Import, Import from Excel option.
    5. Choose Item type to import
    6. In the B line, choose Price List Code, the list updates to show only the fields relevant to price list updates
    7. Press OK and follow rest of instructions to complete the import.
    I found the above to be simple, repeatable and reliable enough to solve my initial question.

  • How to Create Interactive report lists for the gross sales, credit ....

    How to Create Interactive report lists for the gross sales, credit returns, and gross weight for the               customer for the current year and comparing the same with that of the previous year for the same period.....
    plz tell me steps to accomplish this....plz ...give me the detail description..plz......many many thnx in advance...

    Hi raja,
    Display a checkbox , customer number on the basic list and also set a GUI STATUS  on the basic list.....
    Select the customer by checking the checkbox and click on the button you create in the GUI status....
    Write the desired code to be displayed in
    AT USER-COMMAND even checking the sy-ucomm....
    so this would make you to into interactive list...
    Hope this would help you.
    Regards
    Narin Nandivada

  • Read Sales Order Price with Pricing Date (PRSDT)

    Hello ABAP Gurus,
    I have once requirements and is, I need to extract sales order prices with a given Pricing Date (PRSDT).
    Could you please tell me if these is Function Module or BAPI that I can use?
    Regards,
    Murali

    Maintain a condition record for Rs.10/- with a validity date (only as an example) as 1st March'14 to 15th March'14.  Another condition record for Rs.15/- with validity date as 16th March'14 to 31st March'14.
    Now create a sale order for 500 nos. with one line item and change the pricing date as 15th March'14.  Similarly, create another line item for the same material with 500 nos. and here, change the pricing date as 16th March'14 at line item level.  By doing so, system would fetch the pricing in billing accordingly.
    I told as per my knowledge System will bring old price only for reserved stock if you want to apply new price for reserved stock just 411 e return the stock from reservation and now create sales order
    i hope this right
    Your understanding is incorrect.  System will never validate pricing based on age of the stocked material but based on validity period what you maintain in condition record.
    G. Lakshmipathi

  • Year to date sales

    I'm trying to calculate year to date sales value. If I have more than one packet size my values do not match expected results. Is there a way I can have all data in single packet in start routine or end routine. I don't want to make cahnge to setting in DTP. My initial package should pick all values.
    For example:
    Comp Month Sales
    A        1         1
    A        2         2
    A        3         3
    A        4         4
    A        5         5
    A        6         6
    A        7         7
    A        8         8
    My expected result should be:
    A        1         1
    A        2         1 + 2 = 3
    A        3         3 + 3 = 6
    A        4         6 + 4 = 10
    A        5         10 + 5 = 15
    A        6         15 + 6 = 21
    A        7         21 + 7 = 28
    A        8         28 + 8 = 36
    If I have two packets ( size 4each) then my calculation doesn't match the expected results
    A        1         1
    A        2         1 + 2 = 3
    A        3         3 + 3 = 6
    A        4         6 + 4 = 10
    A        5          5
    A        6         5 + 6 = 11
    A        7         11 + 7 = 18
    A        8         18 + 8 = 26
    Can any one hlep me to resolve this issue.

    Hi,
    The best way is....
    Create a report and calculate it in Report like below.
    Create a Customer Exit Variable called FMYEAR on 0CALMONTH and then write code like below.
    DATA :  l_s_range TYPE rsr_s_rangesid,
                loc_var_range LIKE rrrangeexit,
                zbdatj LIKE t009b-bdatj,
               zbuper LIKE t009b-poper,
    First Month Of Current Fiscal year comment*
        WHEN 'FMYEAR'.
          CALL FUNCTION 'DATE_TO_PERIOD_CONVERT'
                 EXPORTING
                   i_date               = sy-datum
            I_MONMIT             = 00
                   i_periv              = 'V3'
                IMPORTING
                  e_buper              =  zbuper
                  e_gjahr              =  zbdatj.
          CLEAR: l_s_range.
          l_s_range-low+4(2) = '04'.
          l_s_range-low+0(4) = zbdatj.
          l_s_range-sign = 'I'.
          l_s_range-opt = 'EQ'.
          APPEND l_s_range TO e_t_range.
    and then create a restricted Kefigure with 0CALMONTH and value, and restrict calmonth with FMYEAR;0CALMONTH (there are variables and the values are  in between FMYEAR;0CALMONTH)
    Thanks
    Reddy

  • Year To Date(YTD)

    Hi,
    Can any one explain me how to caluculate YTD(column) in a report.
    I have fiscper and fiscyear as time char
    Thanks,
    Pooja

    Hi Pooja,
    YTD - is year to date
    it can be from ist of Jan to "Date" supplied by user ( enetry through some date variable when executing query)
    or
    it can be systems' date at the time of execution of report.
    try find out the SAP exit for this if you don't then you need to write your won code- Logic will be
    Whatever date ( system date or entered by user) your using (say 20061206 - YYYYMMDD) you need to dervice (20060101 - first date of year) and the calaclulate value of your Key figure between 20060101 & 20061206.
    Hope it helps
    Also have a look at if you hav't already.
    Enable Trend Reporting - By Manipulating Variable Value
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/25d98cf6-0d01-0010-0e9b-edcd4597335a
    regards
    Vikash

  • Internal Sales order not using Price List, Price Showing '0'

    Dear All,
    In the Internal Sales Order, why the list price is not used from the price list, why do we need to set the cost to get the price?
    Plz Clarify
    Thanks
    RSM

    Hi,
    Internal Sales order is nothing but selling the goods between 2 inventory organizations under same operating unit.
    This inventory Org is always within the operating Unit/Business group.
    Hence Item Cost defaults in the Item Cost and not the item Price.
    If Items are sold to external Customers then Item Prcie will be seen in the sales orders.
    iBut yes,upon customization we can still see Item Price in Sales Orders.
    Thanks
    -Arif.

  • YTD and and previous year to date as variables

    HI All,
    If your cube doesn't have YTD and and previous year to date as variables to use - can these be created?
    Regards J

    Hi,
    Yes it can be staged in cube but you need to write routine and transformation/update rule level.
    If you need for some query requirement then you may achieve the same at query level. For this you need to create some Restricted Key figures by restricting your key figure with Calyear/month as per your need.
    Query level approcah will be much easier then the cube level.
    I hope it will help.
    Thanks,
    S

  • Getting Turnover Year to Date amount in Sales Order

    Hi Experts
    I would like to be able to have a UDF on Sales Order which shows Sales the Turnover Year to Date for the BP.
    I have created a UDF which is formatted as an amount field and a formatted search with the following syntax.  it is essentially a calculation of the total of all invoices minus credit notes:
    (select (select sum(t1.doctotal) - sum(t1.vatsum) from oinv t1 where (t1.cardcode = t0.cardcode) AND ((T1.[docdate]>='01.01.09') AND (T1.[docdate]<=GETDATE())))
    - (select sum(t2.doctotal) - sum(t2.vatsum) from orin t2 where (t2.cardcode = t0.cardcode)  AND ((T2.[docdate]>='01.01.09') AND (T2.[docdate]<=GETDATE()))))
    from OCRD T0  INNER JOIN OINV T1 ON T0.CardCode = T1.CardCode INNER JOIN ORIN T2 ON T0.CardCode = T2.CardCode
    WHERE T0.[CardCode] = $[$4.1.0]
    it is working for me unfortunately and I hope one of the experts can tell me where I am going wrong?
    Thanks
    Jon

    Hi
    Try this,
    DECLARE @a Numeric(19,6)
    DECLARE @b Numeric(19,6)
    Set @a = Select (SUM(T1.DocTotal) - SUM(T1.VATSUM))
    FROM  OCRD T0
    INNER JOIN OINV T1 ON T0.CardCode = T1.CardCode
    WHERE T0.CardCode = $[$4.0.0]
    AND
    T1.DocDate '01/01/2009' AND T1.DocDate<= 'GETDATE()'
    Set @B = Select SUM(T2.DocTotal) - SUM(T2.VATSUM)
    FROM OCRD T0
    INNER JOIN OINV T1 ON T0.CardCode = T1.CardCode
    INNER JOIN ORIN T2 ON T0.CardCode = T2.CardCode
    WHERE T0.CardCode = $[$4.0.0]
    AND
    T2.DocDate>= '01/01/2009' AND T2.DocDate<= 'GETDATE()'
    SELECT (@a-@b)
    Regards,
    Madhan.

Maybe you are looking for

  • Acrobat Pro Freezes completely so I need to Force Quit

    I hope I am posting in the right place.  Please let me know if I should move this.  I am so desperate-- I have tried everything I can think of and I hope someone has another idea I can try.  I am using Acrobat Pro.  When the problem started I was usi

  • TREX Migration from HP-UX to Windows

    Hi Experts, I want to migrate TREX 7.0 on HP-UX to TREX on Windows. Is there a way to transfer existing indexes from the HP-UX system to the new TREX system running on Windows? Thank you, Rainer Walter

  • How can i make a simple image viewer in JAVA?

    i know this is a silly doubt...but 'm new to java i have to make an image viewer which can also zoom the image please help me advance thanx

  • Importing Raw images in Lightroom the image is vertical lines and can not work with it

    Nikon 300S. It is set to NEF(RAW) + JPEG fine. When I import to Lightroom I get message "There was an error working with the photo? Does anyone know why or how to correct? And when I try to open it in Develop the image is a series of vertical lines w

  • Rebate Basis VBRP BONBA showing double the value

    Hello In the pricing procedure the rebate basis is carried over to sub total 7  which means that it is stored in VBRP - BONBA. Normally tthe condition value against rebate basis in the billing document is same as that of VBRP-BONBA for a given line i