Actual sales qty forecast quantity in a single period calculation

hi experts,
i have a report requirement to display the report in below format in bex.
Jan-05     Feb-05     Mar-05     Apr-05     May-05     Jun-05     Jul-05     Aug-05     Sep-05     Oct-05               
ACT     ACT+FC     FC     FC     FC     FC     FC     FC     FC     FC               
3,361       3,807       4,833       4,069       4,491       5,935       4,776       4,926       6,386       6,898            
312       342       457       381       393       544       439       445       634       676                                                          4,340       5,029       5,132            4,890           5,011             4,910             4,111            2,367             4,432
say for example we are february
in the bex report it has to display Actual sales qty for jan and act+forecast for feb and remaining months till december it has to display forecast quantities.
how can i achieve that in bex?
NOTE: ACTUAL SALES QTY, FORECAST QTY are two different keyfigures.
regards

******Actuals
  when 'ACC_SAL'.
      if i_step = 2.
        loop at i_t_var_range into st_var_range where
                                    vnam = 'UV_CAL'.
          st_range-sign = 'I'.
          st_range-opt  = 'BT'.
          st_range-low  = st_var_range-low. "cper.
**** Get Current Week.
*DT = DT - 27.
          CALL FUNCTION 'DATE_GET_WEEK'
            EXPORTING
              DATE         = DT     "SY-DATUM
            IMPORTING
              WEEK         = week
            EXCEPTIONS
              DATE_INVALID = 1
              OTHERS       = 2.
**** Get previous week
          DT = DT - 7.
          CALL FUNCTION 'DATE_GET_WEEK'
            EXPORTING
              DATE         = DT   "SY-DATUM - 7.
            IMPORTING
              WEEK         = PRV_WK
            EXCEPTIONS
              DATE_INVALID = 1
              OTHERS       = 2.
          if  week+4(2) = 01.
            st_range-low  = PRV_WK.
            st_range-high = PRV_WK.
          else.
            st_range-high = PRV_WK.
          endif.
          append st_range to e_t_range.
        endloop.
      endif.
*******Forecast
    when 'UNCONDDP'.
      if i_step = 2.
        clear: st_range, st_var_range.
        loop at i_t_var_range into st_var_range where vnam = 'UV_CAL'.
          st_range-sign = 'I'.
          st_range-opt  = 'BT'.
          CALL FUNCTION 'DATE_GET_WEEK'
            EXPORTING
              DATE         = SY-DATUM
            IMPORTING
              WEEK         = week
            EXCEPTIONS
              DATE_INVALID = 1
              OTHERS       = 2.
          st_range-low  = week.
          st_range-high = st_var_range-high.
          append st_range to e_t_range.
        endloop.
      endif.

Similar Messages

  • Bom Component qty & WIP Quantity differ at Trget cost calculation

    Dear gurus,
    i am facing the problem with WIP at target cost calculation in REM.
    My issue is
    BOM Component qantity is 9.524 TO  and price is 2000 then total cost is  9.521*2000=19048.
    but in WIP Report kkas in WIP explation it takes input qty 9.52 T0 and price 2000 then total price is 19040.
    Difference is 19048 - 19040 =8
    and also when i am issuing actual qty i.e 9.524 in BOM then my price is 19048.00 ant at time of variance calculaton then quantaty variance as   9.52.0-9.524.0=-0.04  then 0.004*2000 =-8 
    Please suggest solution for this.
    Any OSSS NOTE Required
    any Quires please revert back
    REGARDS
    Avinash.pegarlawar

    Hi
    Rounding differences between target and actual values and quantities are not unlikely to occur and cannot always be avoided but can be minimized.
    Small prices and price unit of 1 are likely to cause more of these rounding differences..
    The actual credit is simply calculated as price * quantity. The target credit however is calculated during the variance calculation
    and based on the sum of all items in the itemization/cost components of the cost estimate and therefore more accurate.
    To avoid this I suggest to store the material price with a larger price unit, i.e. 1000
    Std cost release stores price upto 2 decimals and target cost calculation goes upto 3 decimals...
    Please check also the note 1265918 for more information to this topic.
    Regards
    Ajay M

  • Tracking the actual sale order quantity

    Hi Friends,
    How to track the actual sales order quantity given by the customer.
    Ex: we assume the customer has placed an order of 100 units and stock is only 90 so we create the sales order for 90 units only.
    How to find out the difference of 10 units as a report in standard sap system.
    Thanks
    AJ

    Dear AJ,
    This is how normal sales process works.
    You create Sales Order line item for the quantity that customer has requested. (eg: 100)
    Then you do a ATP for that Line item. Let's say you have only 90 in the stock. In that case system will confirm 90 for the sales order line item. (You can see the confirmed quantity in the Schedule line tab)
    Normally we don't change the LI quantity as per the ATP confirmed quantity (i.e 90). Because then we loose the visibility to the customers original requested quantity (i.e 100).
    Say you don't change your Line Item Order quantity to 90. Then your delivery & billing will be for 90.
    So you can see in VA05, Order quantity as 100 and confirmed quantity as 90.
    Your sales reports will show delivery & billing as 90. So that you have a clear visibility to the original order quantity, delivered quantity & billed quantity.
    Further if remaining (open) quantity 10 is appearing your MRP & creating troubles, please use Line Item Rejection Reason as Completed. So that everything is perfect.
    Coming back to your issue.
    Since your changing LI quantity to 90, you cant see 100 in the VA05 report. It always show the existing sales order line item quantity, which is 90 in this example.
    Only way you can find your original sales order quantity is in the Line Item / Change Log.
    This can be view by selecting below Menu option.
    Environment -> Changes
    If you execute it for the relevant Line Item, you can see the Change log. In that by double clicking relevant quantity change line, you  can see the old value & new value. (In this example 100 & 90)
    But that is not a good practice to do as changes will show all quantity changes that you might do based on  customer request. (Imagine if you customer ask to change it later to 95 not 100).
    In that case change log will display 100 to 95, then 95 to 90. So your loosing the required visibility.
    Hope this is helpful to you !

  • Value Contract and Quantity Contract in single document type

    Hi All
    Bussiness requires Value Contract and Quantity Contract in single document type.
    Updating backwordly to contract on the basis of both and should give error/warning if any one of them (value or quantity) reach to contract target.
    Can any body will suggest such SAP standard functionality existing or simple way to achieve it.

    Hello Vishal,
    One way I could think of is to include your Value and Qty Contract into a master contract.
    1st create the Master Contract, and then in the qty/value contract put the no. of the master contract in the Sales Tab, field--Master Contract.
    Try this and let us know, if this helps.
    Rgds,
    Raghu.

  • VBBE Table for Sales Order Open Quantity......

    Hi Experts,
    In VBBE Table I found sales Order Open Quantity but Some of the Materials are not showing in this VBBE table which are still pending (Open).
    What may the reason.
    Yusuf

    Hi CHR,
    In S001 table i found related material open qty. but there is no link with vbeln posnr and etenr (schedule date). Only Customer Code (Kunr) is available.
    This is no use for me for making report.
    Yusuf

  • Join between two tables in SAP ( actual sales vs budget sales)

    I have one table with  actual data sales in SAP .This table has a name   CE11000
    This table contain amounts about : customers ,Products, Quantity of Sales ,amount of sales ,month witch did the sales and the year.
    The other table from SAP has the budget sales . This table is CE21000
    This table contain the same fields : customers ,Products, Quantity of Sales ,amount of sales ,month witch did the sales and the year but all this for budget .
    In the budget table ( CE21000)there are no records for a particular make if it was not budgeted to make a sale.
    Sometimes i have the same problem with the actual data table (CE11000) ...I have not records witch can use to join the results for a report witch take the comparison between actual sales and budget sales.
    I would like to remind you that the report should have four "dimensions"
    a) year
    b) month
    c) customer
    d) type of product
    I try to use left outer join with a customer fields in two tables but i have  simultaneously the field with type of product .
    I want to see in one year (for example february of 2011)  for one customer the type of products (quantity and anmounts) witch buy (ACTUAL)  and that to  compare with the corresponding data if available
    Any help would appreciate
    thanks

    Haggar
    Your first query matches on two conditions BOTH being true. If there is a D and no matching E, you'll see the columns from D but none from E.
    Your second query takes all Emplyees, and lines up 2 (possibly different) rows from D against each
    E columns | D columns (match e.deptid=d.dept_id) | D columns (match ep_id=de_id)
    So you may have any mix of:
    E       | D1      | D2
    E       | nothing | D2
    nothing | D1      | D2
    E       | D1      | nothing
    E       | nothing | nothing
    nothing | D1      | nothing
    nothing | nothing | D2(NB I'm assuming FULL OUTER JOIN is commutative - ie the order is unimportant - but I may be wrong in which case the last row won't occur)
    You will get a different number of rows (as well as different columns) in each case.
    Try it!
    Regards Nigel

  • FORECAST QUANTITY

    Hi
    I am using Oracle Apps 11.5.10.2.
    I am developing an interface for sending forecast details to some external system.
    Here I want to send forecast quantity plus some other information. Forecast quantity is stored in the MRP_FORECAST_DATES table.
    Here comes the problem. single record in this table corresponds to multiple forecast entries. A single record in this table is created with following column values.
    FORECAST_DATE --forecast start date     26-APR-99
    RATE_END_DATE --end date of the forecast       19-JULY-99
    ORIGIONAL_FORECAST_QUANTITY --per bucket quantity    1000
    CURRENT_FORECAST_QUANTITY --Remaining forecast quantity after consumption      1000
    Now This record shows a total forecast quantity of 13000.
    If I want to fetch data for specific date range for this entry then it will create problem.
    Please give me some suggestion for fetching total quantity for desired period.

    please make it more clear. put some example data as in a single record and multiple entries belonging to that particular entry.

  • Inspection Lot Qty Vs Actual Lot Qty

    Hi All;
    I am posting multiple GR's against a Process Order for Eg 1st GR 100 Qty, 2nd GR 200, 3rd GR 300 and after doing this in the Inspection Lot the Inspection Lot Qty shows as 100 and the Actual lot Qty of 600 (sum of GR's) hence the Inspection lot Qty is always less then the actual lot Qty.... is this standard,I was thinking the Inspection Lot Qty gets updated with the Actual Lot Qty and they should match.
    Thanks & Regards

    What is the process order quantity when Inspection lot was created? It should be 100.Usually the process order qty will be shown as the inspection lot qty and the GR qty will be shown as the actual lot qty. That's the reason the actual lot qty is equal to your GR qty. Most of the times, these two quantities are same.
    As said in the earlier response, for incoming goods the GR qty will be shown as the inspection lot qty and during inspection if you find the received qty is higher or lesser than the GR qty, using QAC1 the actual lot qty is corrected. So, always the actual lot qty is the qty received.
    Hope it helps.
    Thanks,
    Ram

  • How realize Sales order rounding quantity

    Hello Expert
    I would like to know how to realize Sales order rounding quantity.
    As I have checked other title there are a lot of same topic however I couldn't realize yet.
    My scenario is as bellow.
    There are the materials which we want to input every 12 Qty for instance.
    I expect if I input 10 it rounds to 12, if I input 19 it rouns to 24.
    I already created rounding profile via OWD1 and assign it to material master sales view.
    However it didn't work.
    As I have checked item category there are no flag on Rounding permitted.
    Best regards,
    Ichimura

    Hi,
    I guess you´re using static rounding.
    Check when created if you´ve restricting it to a plant or you left it blank (valid for all plants).
    Check that you´ve properly assigned the profile to master material in sales view to the proper plant if any
    Check that swith off rounding is not selected in customer master data
    Check that ítem category in custo has selected rounding permitted.
    Regards,
    JM

  • Sales order comfirmed quantity

    hi gurus,
    one question, i have a sales order type which is delivery-related while the billing is on the base of sales order instead of delivey. and another point is the billing have to be printed before delivery been created. then, problem raised. for example:
    sales order required quantity: 100
    after atp, confirmed quantity:90, and only one time delivery type.
    but the quantity base of order pricing is 100, not 90. further more, the billing quantity is also 100.
    but indeed, we need confirmed quantity (BMENG) as the bases of pricing and billing.
    how can we do? looking forward to any kindly help.
    daniel

    Firstly, Order-related & Billing-Related Billing follow different concept.
    As per my understanding, your scenario is actually delivery related, but billing is order related. This will exactly have the same problem, what you have related in your message.
    In Order-related Billing, the same quantity will be carried to billing, as in sales order. There is no option of Partial Billing in it.
    In Delivery-related billing, Delivered quantity is passed to billing document.
    Now your requirement can be met through Delivery related Billing only. As you mentioned that you require the billing to happen before ddlivery, it is not supported / recommended. Instead, yor can meet your requirement through Proforma Invoice, which is order-related F5 / Delivery-related F8, as a subsitution & go ahead with Delivery related billing.
    Alternatively, you can amend the quantity of sales order, which is equal to delivery quantity & raise an invoice. After raising the invoice, you can add the balance quantity which was amended say 100 to 90, then you add 10 quantity in next line item.
    Regards,
    Rajesh Banka

  • Actual lot Qty and inspection stock

    Hi,
    We are using early inspection for 04 inspection lot. When I release my process order the inspection lot is created. As usual, the first inspection doesn't have Actual lot qty and Insp. stock is checked. Now, when I create new inspection lot for same process order, the inspection lot has Actual lot qty and Insp. stock is unchecked.
    In material master Post to insp. stock is checked.
    Thanks for your help in advance.
    Bhavesh Patel

    Dear
    U need to go for Order Change Management For doing This As u said ur Changing the Qty and it should reflect in the inspection lot
    Please Follow this Link :
    [http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/f0002c1c-f07c-2c10-3c93-b053715529b4?QuickLink=index&overridelayout=true]
    With Regards
    Pushpalas

  • Sales Order / Forecasted Sale Order Report

    hi
    How to create Sales Order / Forecasted Sale Order Report.

    Hi Raju,
    Are you talking of normal sales order and in the Forecasted sale order report what are the inputs you are giving.

  • Sale Order Item Quantity Not Populating When Create A Sale Order Using BAPI

    I am having a problem when creating a sale order using BAPI
    BAPI_SALESORDER_CREATEFROMDAT2
    Problem is that sale order item quantity field is not populating
    code is as follows
    ORDER_ITEMS_IN-ITM_NUMBER = '0010'.
    ORDER_ITEMS_IN-MATERIAL = '000000000010000262'.
    ORDER_ITEMS_IN-TARGET_QU = 'LB'.
    ORDER_ITEMS_IN-TARGET_QTY = 1.

    Hi,
    Try populating ORDER_SCHEDULES_IN table in the bapi field REQ_QTY.
    Regds,
    Rudra

  • Actual sales figures against planned figures

    Hello,
    I had a question regarding SOP. Can we have actual sales figures to appear against planned value in the information structure?. If so how do we accommodate it?
    THis is so that the planner can see for the past year what has been the planned sales and what has been the actual sales.
    Sincerely
    Aji

    Hi Aji
    The actual sales figure can be appeared in planning type (MC8B) . Place the cursor on the sales key figue and goto Edit-.Actual data prev year (Ctrl+F1)
    Regards

  • List of rejected sales order with quantity and value

    Hi,
    Is it possible to get the report from VA05 for the list of rejected items with value and quantity ?
    Pls help
    Thanks,
    Vijesh

    Dear Vijesh,
    VA05 I believe is a very powerful report for doing analysis at order and line item level. If your rejection criterion includes a rejection reason at line item level, yes this list from VA05 can give rejected Sales Orders with Quantity and Value.  See the screen shot below.
    I selected a list with open dates till date, I can see Sales Order number, Sales Document Type, Item Number, Material, Rejection reason, Quantity at line item level and net price.
    However, I am not sure what is the rejection criterion you use in your business and I am not sure if you use rejection reason and hence I would like to hear from you, if this explanation helps you.
    Thanks
    Nagaraj

Maybe you are looking for

  • Multiple Drives/Partitions on a Single Hard Drive

    I was wondering whether it's OK to edit a project using 2 partitioned drives that are mounted from a single hard drive. The reason I would want to do this is I started a project 6 years ago when 400GB hard drives were the largest available. My projec

  • What's the deal with Microsoft Azure?

    Alright folks, what's the deal? Is Apple using MS Azure to support/power it's new iCloud? If this is true, what does it mean for Apple's independence and image as an inventive and industry leading company? Or maybe this is something temporary until t

  • Tables to link Shopping Cart to Workflow

    I have a request to report on total dollars for shoppng carts that are sent to a particular inbox and total dollars for shopping carts that were rejected in that inbox.  I've written dozens of Quickviewer queries to report on shopping cart data howev

  • Repair Scenario and confirmation issue

    Hi, The scenario of my customer is like that : 1. Notification : Service Request     - IW51 2. Sales order RA : Repair order  - VA02 3. Delivery : Return delivery (Return for repair) - VL01N 4. Service order SM03 - VA02 -> IW31 5. Confirmation - IW42

  • WUT-123 WEBUTIL ERROR

    I GET THIS ERROR IN MY FORM WUT-123 the webutil.jar file cannot be on application server class path . some file transfer functions will not work please reply soon.