Count number of orders entered

Morning all,
I have created a report which divides (calculates) number of orders in x number of days. The report is working perfectly however now I would like to add a new feature in it. For example
Number of days            Number of Orders
1                                           3
2                                           2
3                                           4
4                                           5
5                                           6
The above example shows 3 orders took 1 number of days to be shipped out. Now what I would like to show is, 5 orders (in reality) should have taken 1 number of days. So in my report it will show it like this
Number of days            Number of Orders        Actual Number of Orders
1                                           3                                   5
2                                           2                                   4
3                                           4                                   7
4                                           5                                   2
5                                           6                                   1
The above example shows that in reality in one day 5 orders should have been shipped however only 3 went out.
So in other words I would like to show orders according to when they were entered and match them with the orders which were actually shipped accordingly.
I tried using formula like this
{date_entered};
distinctcount({order_num});
and I put it under the crosstab (Number of days row) however that shows the total number of orders instead of dividing those actual orders into number of days.
Anyone knows how to go about this?
Many thanks
Kind Regards
Jehanzeb

i have a couple of questions
is the number of days the date or the date difference between order date and completion date?
are there parameters to select the dates?
i believe this is what you want to do  is create a group by order date,  this will group all orders by the date
then use manual running totals
NUMBER OF ORDERS
1 reset on the order date header
1 calculate on the order (use the date diff formula you are using to get the value)
1 display on the order date footer- this will show you the total
ACTUAL ORDERS
for the calculation create a formula
if shipdate in {?parameter} then 1
use manual rt and this will display your values in the footer
then supress the header and footer.

Similar Messages

  • Count of Number of Orders in BEX query

    Hi,
    for Count number of Orders, have created a KF calculated on Order Quantity and then, in property, have inserted in Exception Aggregation the counting of All values of characteristic Sales Document and then on the KF calculated I do an KF restricted on the orders rejected. For order cancelled (Recordmode = R) the calculation it is different if I make a FULL or a FULL and then a delta, according to if the order has more items and only one item annulled or if the order has only one item and then it comes cancelled.
    How can I count the orders in these cases?
    Many thanks.
    Charly

    Hi Parth,
    following the example of the query:
    1) Only document 220062675 with Reverse (cancelled) without drilldown Document
    Calendar Year/Month----# Orders AVG--Counter for Orders-----# Orders
    05.2011--00--
    0
    Overall Result--00--
    0
    2) Only document 220062675 with Reverse (cancelled) with drilldown Document
    Calendar Year/Month-----Sales document# Orders AVG--Counter for Orders-----# Orders
    05.2011--22006267500--
    0
    Overall Result--00--
    0
    With only this document the calculated is good.
    3) Two document:  220062675 with Reverse (cancelled) and 220062675 (Normal) without drilldown Document
    Calendar Year/Month----# Orders AVG--Counter for Orders-----# Orders
    05.2011--11--
    2
    Overall Result--11--
    2
    The problem here is that # Orders (Counter for Orders / # Orders AVG) is 2 and not 1.
    4) Two document:  220062675 with Reverse (cancelled) and 220062675 (Normal) with drilldown Document
    Calendar Year/Month-----Sales document# Orders AVG--Counter for Orders-----# Orders
    05.2011--22006267500--
    0
    05.2011--22006267611--
    1
    Overall Result--11--
    1
    In this case, the count of orders is different if drilldown or not.
    Charly
    Edited by: Charly1 on Jun 2, 2011 4:56 AM

  • How to count number of sales orders generated in a month in SAP SD

    Hi SD Gurus,
    I have a very strange query from client. I have to count the number of sales order created in a month for a z report. For example 30 in Jan, 25 in Feb etc. Could anyone suggest me How to count number of sales orders generated in a month in SAP SD.
    Regards
    Vinod Kumar

    Hi,
    Goto the T.Code "SE16" or "SE16n" or "SE11".
    Enter the table name as VBAK
    Enter the created on date as the starting date of the period and to date as the end date.
    Enter.
    Click on "Number of Entries".It will tell you the number of entries created in a particular period.
    If you want a report,goto the T.Code "VA05n".
    Regards,
    Krishna.

  • How to manage the same counter based on Order Number and Order Items

    Hi All,
       we need some help to build an infocube and a query as described in the following scenario.
    ODS 1 (Order Numbers aggregated at month level) defined as:
    - Order Month
    - Customer
    - Counter
    ODS 2 (Order Items aggregated at month level) defined as:
    - Order Month
    - Customer
    - Product
    - Counter
    We would like to build an InfoCube that allows us to create a query through which we are able to compare:
    -  ODS 1 - Counter, that means the number of orders without considering the product
    -  ODS 2 - Counter, that means the number of orders where a specific product is included
    For example:
    ODS 1:
    Order Month........Customer........Counter
    200701...............20001.............10
    200701...............20002.............5
    ODS 2:
    Order Month.............Customer...................Product..........Counter
    200701.....................20001.......................A....................1
    200701.....................20001.......................B....................10
    200701.....................20002.......................A....................4
    200701.....................20002.......................C....................5
    The desired query should show the following result
    Ord Month.Customer..Product.....Counter....Counter
    .................................................(ODS2).....(ODS1)
    200701......20001.......A..............1..............10
    200701......20001.......B..............10.............10
    200701......20002.......A..............4..............5
    200701......20002.......C..............5..............5
    Do you have any idea how to get this result?
    Thanks
    Kind Regards

    Hi Valeria,
        Have a look,
    <a href="http://sapbwneelam.blogspot.com/2007/08/sap-tables.html">How to... Count the occurrences of a characteristic</a>
    <a href="http://sapbwneelam.blogspot.com/">More Docs .....</a>
    Hope it Helps
    Srini

  • Count number of boleans they enter

    I can easily do this with if statements but I'd rather find an alternative.
    The user enters in 5 booleans and I need to find otu how many of them are false (count them) and then do something. If statements, as i said, can do this but I'd prefer a while loop, the cnodition is i<numberOfBooleansEnteredThatWereFalse lol. (Not real var name)

    Just increment a counter every time they enter false.

  • Count Number of Documents Based on a Date

    Hello Experts,
    I have this requirement to write a query that will display counts for open orders.
    For example:
    OLD COUNTER is defined as number of open orders where delivery date is less than current date minus 7.
    IN PROGRESS Counter is defined as number of open orders where delivery date is >= current date minus 7.
    Can anybody show me how to accomplish this?  Thank you.

    Hi Celion ,
    To achieve your latest requirement, you can follow the below steps :
    1) Create a characteristic infoobject for ex ZABC of data type NUMC and give appropraite length to it as per your choice .
    2) Now make a multiprovider and include this characteristic ZABC in your multiprovider and give identification to it .
    Now our next step will be to make your report over this multiprovider .
    3) So, in the query designer make a dummy RKF or newselection. That means you take any keyfigure from your datatarget and restrict it with this new characteristic ZABC and make a user entry variable(FOR EX: ZUE1 ) with single value .
    We will hide the above dummy rkf or newselection in the query designer , as the only purpose of this is to provide the input to the user for no of days .
    4) Now you have to write a customer exit code in the 'i_step = 2' mode and detect the value of ZABC infoobject user entry variable .
    You have to create a customer exit variable on the delivery date(for EX:zce1) with ready for inputdeselected and mandatory .
    data : zvar_d1 type i .
    data :zdate type dats.
    when zce1.
    LOOP AT i_t_var_range INTO loc_var_range.
         if loc_var_range-vnam = 'ZUE1'.
    zvar_d1 = loc_var_range-low.
    zdate = sy-datum - zvar_d1.
                    l_t_range-low = zdate.
                    l_t_range-sign = 'I'.
                    l_t_range-opt = 'EQ''.
    APPEND l_t_range to e_t_range.
    ENDIF.
    endloop.
    So in your RKFs now, instead of restricting on Delivery Date by Current Calendar Day Variable say 0DAT using Value Ranges 'Less Than' option and specify an offset of -7, you restrict your delivery date by this customer exit variable using value ranges 'Less Than' option .
    So now your report will be dynamic i mean whatever user enters it will work based on that input .
    And that dummy RKF will be hidden in the output.
    Hope the above reply was helpful.
    Thanks & Regards,
    Ashutosh Singh
    Edited by: Ashutosh Singh on Apr 29, 2011 7:02 AM

  • Count of Service Orders issue in the Bex Report

    Hi Experts,
    I have a report displaying the Count of Service Orders. The count of service orders I have brought using replacement path variable.
    The count is getting displayed correctly. When I have the service order in a single record.
    The moment I drag and drop the material from the Free Characteristic pane. The count of Servie order increases because the same service order is repeated for Material A ( in the First Line) and Material B ( in the Second Line ).
    And my report doesn't have any keyfigure to built an Exception Aggregate.
    Can anyone please tell me how do I make my Count to read only the unique Service orders.
    Thanks

    Hi Shanthi Bhaskar,
    Thanks for your link.
    I have already referred to this link and created the count of Service orders. But it is not uniquely identifys the service order numbers.
    Irrespective how many number of time the same service order gets repeated in the report it should only give me a count as 1 for other service order as 2.
    Hope its clear.
    Thanks

  • How to Count Number of completed line items in past 6 months / 12 months ?

    How to Count Number of completed line items in past 6 months / 12 months ?
    Hi,
    I am trying to count "Number of Completed Line Items in Purchase Order Document" for my Key Figure ZPO_CNT.
    Purchase Order document = ZEBELN
    Line Item = ZEBELP.
    I need to find and count if the Line Item has been received in the past 6 months from today and similarly in the past 12 months.
    I have "Delivery Completed" field, ELIKZ.
    So, based on this would I be able to calculate it in Query Designer?
    If so, Please let me know how

    Hello Deva
    If youe want to calculate the completed line item for last 6 or 12 month then i think u will be displaying the query data for these montrhs...create a customer exit to give you date range and restric it in filter area....
    Now Choose any of the below option
    1. I would suggest to implement an additional key figure "counter" in cube and fill values with one for which delivery is completed.
    Now use calculated key figure in Query Designer based on logic
    IF counter = 1 THEN counter ELSE 0
    OR
    2. create a formula variable based on ELIKZ and use replacement path variable, it will display you no. of docs for which delivery is completed....
    Award points if it solves your problem
    Revert back in case of further assistance...
    Thanks
    Tripple k

  • Handling Unit Number against each PO Number/Sales Order

    Dear All,
    I have a query regarding identification of Handling Unit/s Number/s (Handling Unit Management) against each PO Number in Sales Order. E.g. I created 2 Sales Order with 5 and 7 line items respectively. Now I combine them into one Delivery which becomes as 12 Line items. Now against each PO Number/Sales Order line items I have done multilevel packing, similarly I have done this for 2nd PO Number/Sales Order line items while creating Outbound Delivery.
    As per my client's requirement, he wants to print the Handling Unit Number as per Sales Order PO Number. I have checked VEKP and VEPO where I am not able to segregate the Handling Unit Number against each Sales Order/PO Number. Please find below Screen Shot.
    Please help me out.
    Regards:
    Abhishek

    Hello,
      I'm not sure to understand completely your requirement.
    Anyway in VBFA you should have the complete flow of the documents:
    enter in VBFA with
    "Follow-on doc." (VBELN) = your HU number
    "Subs.doc.categ." (VBTYP_N) = 'X - Handling unit
    "Prec.doc.categ." (VBTYP_V) = 'J - Delivery"
    In this way for each Handling Unit you'll get the delivery number and item,  and from that you can branch to the corresponding Sales Order item number and get the customer's PO number.
    On top of that, in table VEPO you have the reference to Delivery number and item. The only thing you need is one more step using VBFA again, to get from the delivery and item numer, the corresponding Sales Order number and item.
    Best regards,
    Andrea

  • Counting number of records in a data block

    hi folks,
    Simple question for you guys: How can I count number of records in a data block.
    In other words, say I have 10 detail records listed on a data block (one of my columns is a non-database item for entering a number). Now I just want to do somethin like:
    Select count(*) From <data_block> into lnRecCount
    Where <non-database column> <> 0 ;
    Can I do this in a button trigger? I can't get it to work?
    Thanks,
    bob

    You should make a routine that go through records of the block and count the records that agree with your condition.

  • How do I get a serial number when I enter the number it says this is an invalid number?????

    How can I get a serial number when I enter the redemption number in caps and lower case letters , I get indication of invalid Number??????

    penteltack,You have purchased Creative Cloud which is active & has no billing issues.
    CC  mostly asks for serial number if:
    1. There is no CC registered to the ID with which you had signed.
    2. There are entries of Adobe in Host files of the computer.
    3. The activation count has increased.
    Please refer to:
    Creative Cloud applications ask for serial number
    Re: Invalid serial number?
    Regards
    Rajshree

  • Can we get number of orders from 0SD_CO3

    Hi
    Can we get number of orders (per month) from 0SD_CO3
    if so what fields(characteristics ad keyfig.) do we need to consider??
    Pls answer.
    Regards.

    Take a look at these threads/links...
    Count 0MATERIAL on cube 0IC_C03
    http://help.sap.com/saphelp_nw04/helpdata/en/17/82853c2dc5c505e10000000a11405a/content.htm

  • Please let me know how to Count Number of completed line items in past 6 mo

    How to Count Number of completed line items in past 6 months / 12 months ?
    Hi,
    I am trying to count "Number of Completed Line Items in Purchase Order Document" for my Key Figure ZPO_CNT.
    Purchase Order document = ZEBELN
    Line Item = ZEBELP.
    I need to find and count if the Line Item has been received in the past 6 months from today and similarly in the past 12 months.
    I have "Delivery Completed" field, ELIKZ.
    So, based on this would I be able to calculate it in Query Designer?
    If so, Please let me know how
    Krishna

    Hi Experts,
    I dont have a defined Restricted key figure yet.
    I have populated 0COMPL_DEL(Delivery Completed Indicator)  and 0EBELN (Purchasing Document Number) and 0EBELP (Line Item Number in Purchasing Document) .
    This is what I think how I need to calculate:
    Number of completed line items in past 6 months:
    If  Delilvery Completed Indicator (0COMPL_DEL) = x, calculate No. of Line Items (ZPO_CNT) from 0CALDAY to 6 months
    and
    Number of completed line items in past 12 months:
    If  Delilvery Completed Indicator (0COMPL_DEL) = x, calculate No. of Line Items (ZPO_CNT) from 0CALDAY to 12 months
    Please let me know if the logic is correct. If so, how I can create this in report

  • Query to count no.of orders using joins and subqueries

    I have 3 tables i want to show the no. of orders when order placed date is equal to Create date(user registered date)
    order table contains following columns
    [OrderId]
          ,[UserId]
          ,[OrderPlaced]
          ,[Paid]
          ,[DatePaid]
          ,[PaymentMethod]
          ,[PaymentRef]
          ,[BillTo]
          ,[AddressLine1]
          ,[AddressLine2]
          ,[City]
          ,[County]
          ,[CountryId]
          ,[PostCode]
          ,[Shipped]
          ,[DateShipped]
          ,[Packing]
          ,[ShipTo]
          ,[ShippingAddressLine1]
          ,[ShippingAddressLine2]
          ,[ShippingCity]
          ,[ShippingCounty]
          ,[ShippingCountryId]
          ,[ShippingPostCode]
          ,[ShippingCost]
          ,[ShippingOptionId]
          ,[AllocatedPoint]
          ,[PointValue]
          ,[PromoCode]
          ,[DiscountValue]
          ,[InvoiceNumber]
          ,[IPAddress]
          ,[StatusCode]
          ,[IssueCode]
          ,[USStateId]
          ,[ShippingUSStateId]
          ,[CurrencyCode]
          ,[ExchangeRate]
          ,[LastActivityDate]
          ,[AwardedPoint]
          ,[Archived]
          ,[LastAlertDate]
    aspnet_Membership table contains
    [Password]
          ,[PasswordFormat]
          ,[PasswordSalt]
          ,[MobilePIN]
          ,[Email]
          ,[LoweredEmail]
          ,[PasswordQuestion]
          ,[PasswordAnswer]
          ,[IsApproved]
          ,[IsLockedOut]
          ,[CreateDate]
          ,[LastLoginDate]
          ,[LastPasswordChangedDate]
          ,[LastLockoutDate]
          ,[FailedPasswordAttemptCount]
          ,[FailedPasswordAttemptWindowStart]
          ,[FailedPasswordAnswerAttemptCount]
          ,[FailedPasswordAnswerAttemptWindowStart]
          ,[Comment]
    Account table contains 
    [UserId]
          ,[FirstName]
          ,[LastName]
          ,[Email]
          ,[ContactNumber]
          ,[DOB]
          ,[Note]
    my code is
    SELECT a.UserId, m.Email, o.OrderPlaced, o.OrderId, m.CreateDate
    FROM Account a, aspnet_Membership m, Orders o
    where a.UserId=o.UserId and a.Email=m.Email ORDER BY a.UserId 
    I had displayed the required details using joins but now i want the number of orders when order placed date is equal to Create date(user registered date)
    can anyone help me iam a fresher
    Thanks in advance.

    You cant use subquery in ORDER BY like this.
    you need to do it like this
    SELECT a.UserId, m.Email, o.OrderPlaced, o.OrderId, m.CreateDate
    FROM Account a
    INNER JOIN aspnet_Membership m
    ON a.Email=m.Email
    INNER JOIN (SELECT *,COUNT(OrderId) OVER (PARTITION BY Createddate) AS Cnt FROM Orders) o
    on a.UserId=o.UserId
    ORDER BY a.UserId,o.Cnt
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • Orders Entered Dollars Metric / Report / Screen

    Our finance group needs to report out / track / historically compare / etc Orders Entered Dollars
    For example, they need to see that MTD in April 2011 we've had $xxx orders entered.
    They need to seen March 2011 closed with $xxxx orders entered in the period.
    They need to seen March 2010 closed wth $xxxx orders entered in the period.
    Currently, for lack of anywhere else to get this, we've used Discoverer and BI Apps to look at line entered date and dollars to summarize this.
    The problem we have is that if let's say December 2010 closed an in the period we had entered $1000 in orders (not all would have shipped and closed).
    However, in April 2011, the customer increase order quantity by $100.
    If we run our Discoverer or BI Apps product, December 2010 Orders Entered is now $1100. By the same token if we cancel a line entered in Dec, then our Orders Entered total for the past period goes down.
    We can't have that, once the period is past, orders entered changes should come through as a +/- in current period and not adjust past periods.
    Has anyone encountered, tackeld, or have a potential solution we could look at? Does the process we're trying to get make sense?
    Appreciate any input.

    Hi,
    Actually I think the only way to do this is if the user uploads a text file, via the selection screen, with all their order and line details in there.
    Would you all agree that this would be the best way forward?
    Many thanks!

Maybe you are looking for

  • Problem with inifile.c in CVI 2010 project

    I upgraded to CVI 2010 today. I was using 2009. In my project I have included inifile.c in my project. The file is located in the CVI2010 toolbox directory. I used this in CVI 2009 and did not have a problem. When I compile I get a bunch of link erro

  • Parallel Data Extraction from R3 to BI

    Dear Experts,    I am trying to execute Parallel data extraction from R3 Development to BI development.It was previously done smoothly .Without any changes its stop in parallel .Your suggestions are welcome. Regards SurendraJain

  • Please HELP I am desperate!

    Hi there, If I type System.out.println("test"); the output gets sent to the server output window. I have a project that I am doing that incorporates Jess (written in java fyi) and it is supposed to run when i invoke say this line: rete.executeCommand

  • Please help!!! i have trouble when transdering mus...

    my phone is Nokia 5300 i can't transfer my songs from my pc to my cell phone even though my songs are mp3 it said "the following tracks were not converted becasue they are already in target format or because the file format is not supported " please

  • It just makes me so mad while using windows vista home basic in bootcamp.

    there are sooo many problems while running in windows vista home basic.. First.. the computer gets really **** hot after several minutes and the fans just never kick in at all... second.. the system is soo unstable, is it because of the high temperat