Sales per Working Days

I have a requirement to report the average sales per number of working days in the period. I have created a function module that can access the factory calendar and compute the number of working days in a given year/month and have populated a key figure on each record with the number of work days in the period the transaction took place in.
When I display the number of working days by year/period in a report of course it adds up the days from each transaction and gives false numbers. This seems like it should be a no brainer, but I can't find an easy solution. Can anyone help me with displaying the correct number?
Thanks in advance.

Hi
Try this logic:
create an avarage Working Days KF1.
its the working days / Rec Count.
This KF if you group on CalYearMonth will show the sum
of the numbers for that motnh.
then if you want you can take KF1 and create another KF,
lets say KF2 that is total Sales / KF1.
I hope it helps.
Reg's
Edan

Similar Messages

  • How to set the payment Due date calculation as per working days.

    how to make changes in the vendor Payment terms so that while calculating the Payment due date as per Payment terms, system calculates it based on Working Days & not the Calender days ?
    Help is much appriciated.
    Thank you,
    Amit

    Hi,
    This is the standard settings by SAP, normally we couldn't change it to working day.
    Good luck
    Tao

  • Duration between working days

    Hi !
    Need your help on this one,
    I need to calculate the duration since the opening ticket until currentDateTime but considering the service hour ex:
    Service hours is sunday to saturday from 8h00 to 21h00 so 46800 sec per working days
    Ticket opening is from 2012-02-03 09:00:00 to currentdatetime (ex:11h), = 2days,6hours,0min,0sec
    I will appreciate if someone can help me on this one, I 've already spent a lot of time on this one,but now i'm a little confused
    Thanks in advance

    Hi Diane,
    Create 2 formula as below:
    Formula1: Exact Date:
    if ctime({Sheet1_.Date})>Ctime(21,0,0) then cdate({Sheet1_.Date})+1&' '&Ctime(8,0,0) else totext({Sheet1_.Date})
    Where in {Sheet1.Date} can be replaced by your date field.
    Formula2: Date Diff:
    WhilePrintingRecords;
    numbervar tot_days_to_sec;
    numbervar tot_time_to_sec;
    numbervar tot_sec;
    //Converts Date Field to Seconds
    tot_days_to_sec := floor(CurrentDateTime-DateTime (Date({@Exact Date}),Time({@Exact Date}))) * 46800;
    //Converts Time Field to Seconds
    tot_time_to_sec := CurrentTime -time({@Exact Date});
    //Adds total seconds
    tot_sec := tot_days_to_sec + tot_time_to_sec;
    // Converts Total Seconds to Days and Time
    NumberVar Days    := Truncate  (tot_sec / 86400);
    NumberVar Hours   := Truncate  (Remainder ( tot_sec , 86400) / 3600) ;
    NumberVar Minutes := Truncate  (Remainder ( tot_sec , 3600) / 60) ;
    NumberVar Seconds := Remainder (tot_sec , 60) ;
    if Days=1 then Totext ( Days ,    '####' ) +  ' Day   ' + Totext ( Hours ,   '00' ) +  ':' + Totext (Minutes, '00' ) +  ':' + Totext ( Seconds , '00' )
    else Totext ( Days ,    '####' ) +  ' Days  ' + Totext ( Hours ,   '00' ) +  ':' + Totext ( Minutes , '00' ) +  ':' + Totext ( Seconds, '00' );
    Hope this works,
    - Kiran
    Edited by: Kiran Suravajhala on Feb 7, 2012 7:17 PM

  • Sales order schedule date is a (working) day before Scheduled ship date

    In MRP/MPS planning, the forecast consumption is occuring for all sales orders at a date (sales order schedule date) which is always a working day before the Scheduled Ship Date (SSD). What is the logic?
    Time fences are not used.
    E.g. Sales order is scheduled to ship (SSD) on 30th Nov, in forecast set > Forecast items > Consumptiion > Detail, the sales order schedule date is a day before SSD.

    Hi,
    This is a complex issue; best solution is by using APO/GATP.
    If not, then in ERP only, the second best is:
    1) Work with assembly processing in SO, meaning that a production/planned order is automatically created in the customer order during order creation.
    2) Then, after the order is created it is scheduled, and the delivery date proposal is based on that.
    3) Now you can check in the order that there are no capacity overloads, and all capacity required to produce on the proposed date is available. If yes, you're done. If not, it gets a bit complex, since you actualy need to switch to capacity planning, do capacity leveling and dispatch (PP), and the you get a new feasible schedule proposal based on that.
    APO/GATP could do all that automatically!
    Regards,
    Mario

  • Sales per day

    Hi all,
    I have requirnment where i have to find the sales per day,i.e if the user select the month jan then sales per day should be calcualated as the no.of days from jan 31st to july 1st 2011 which is considered as the trading financial start.
    I want to know if we can give something like this logic -------timestampdiff of last sale date of (presentation variable) and july 1st 2011.
    Please help And let me know the possibility.If possible could you give a step by step information how to do it as I am new to obiee.
    Thanks and regards
    Sara

    Set level as "Total" for Company dimension in CALENDAR_MEASURES Fact.

  • Sales Order confirmed date in work days

    Is there a way to change configuration so a Saler Order will confirm based on the Factory Calendar??
    I created a new Order Type (VOV8) but see no option to change from calendar days to work days.
    Bascially, I need the sales order confirmation date to be based on work days and not calendar days. 
    Is this possible???

    Hi,
    Sales Order is created for particular Sales Area i.e. SO + DC + Div. And Sales Org. is the highest org unit in SD.
    At Sales Organizational level you maintain Sales Org calendar and not factory calendar.
    Factory Calendar is basically used at plant level which comes under MM module.
    So, by SAP std practice i dont think it will be possible..............
    Or you can do one thing that is,........maintain the same sales org calendar as factory calendar..........so i think it will help you....
    But can you elaborate you point so that we can understand properly.............
    regards,
    Sagar

  • Sales Order : Calcul delivery date with only working days

    HI,
    When I create sale order, the delivery date is calculed with the number of days mentionned in type of sale document. SAP add this number of days into the day's date.
    Is it possible to calculate this delivery date only with working days in the corporate calendar ???
    Thank's

    HI
    Delivery date in the Sales order will be calculated the calender only basedon the Transportation lead time and Pick/Pack time and excluding the holidays
    Please cross the same in your instance
    Regards,
    Ram.

  • Calculation of no. of working days (per Factory Cal) between 2 date chars

    This question could be considered to be in continuation of a previous post called "Working days of month with factory calendar"
    I have two date Characteristics: say Date1 and Date2. I need to find the number of working days between them based on the factory calendar.
    (And yes we have already defined the default factory calendar in IMG under 'General Reporting settings' ).
    The previous post proposed the following:
    1) Convert date1 into factorydate (standard functionmodule)
    2) Convert date2 into factorydate (standard functionmodule)
    Perform date1 - date2 to get number of working days.
    I agree that there is a std function module to convert cal date to factory date called: 'DATE_CONVERT_TO_FACTORYDATE'
    But what are the steps for calling the conversion? Should I create a new Formula variable of 'Customer Exit type' give it a name and define the Function module in CMOD? But then how do I attach the formula variable to the date characteristic. Note that my infoobjects are Chars so I cannot do date1- date2 in the query as is possible with keyfigures!
    Please help! (my version is BW 3.0)
    Thanks
    Naresh

    Hi,
    For the above scenario when you need to calculate date 1 - date 2. we can't build a new formulae or calculated KF directly because those are the chars.
    So we need make chars to act as KF through Formulae with replacement path.
    create a formulae variable on those 2 Date chars with Processing type as replaccement then those 2 Dates can be avilable to build a formulae as ur requirement.
    Let me know if you need any more information.
    Thanks,
    Raju

  • Factory calendar (Sunday-- work day)

    Hello!
    That may have implications  in the factory calendar, if I put sunday as work day? what implications can I have?
    Thanks

    Dear
    That may have implications in the factory calendar, if I put sunday as work day? what implications can I have?
    From MM/PP standpoint :
    1.MRP will consider this in calcualtion of various dates ( Delivery Dates , Planned Dates , Rlease Date of PR/PO ) of procurememnt prposal if you do not follow any planning calander in MRP2 view exclusively
    2.All the planned order , production order  will be  having schedule , basucs dates considering thif FC as per work centre set up if the wc does not have seperate calander in CR02-WC-Capacity -Detail capacity tab .
    3.You can also recieve PO , STO  etc on  this days becasue it will be working days .
    From SD stnadpoint : You can have Invoice , PGI , Sales Order Delivery date inlcuding this set up  if you follow this calander at your shipping point level .
    refer this therads for farther cheks at vaious level : Public holiday dates issue
    Regards
    JH

  • Absence Quota to be generated on basis of Working Day

    Hi Experts,
    I have got a scenario in Time management ( negative time management, no time evaluation) where the client wants absence quota to be generated on the basis of working days of employee. I have checked the configuration for creating base entitlement V_t559E but the following options are available:
    Currently i have done the cofiguration on the basis of Accrual period, leave entitlement is 22 days in a year. Wherein entilement each month is coming to 1.83 leaves, but client wants that in case employee is come for only 5 working days in a month the leave generation should accordingly get prorated and in case of 0 working days in a month there should be no entitlement.
    Calendar year
    Accrual period
    Time evalution period
    Payroll period
    Other period
    Please help.
    Regard,
    Jyoti

    Firstly Update the Period Parameters as per ur dates this has to be done manually T549Q
    later generate the Pay Roll Periods useing this Period Paramter
    and Change the evaluation Period parameter  in T559L to the Period paratmeter  which you have generated
    a lot of threads has been raised on the same issue please check

  • Weekly schedule line should pass to last working day of the week in SAg

    HI,
    In a scheduling agreement when we have weekly or monthly schedules the system displays the date in the screen as 12/2010 or 13/2010 for say a weekly schedule.
    However when the data is stored in the table the delivery date is always the first working day of the week. In this case when the week is 13/2010 the data is stored in the table as 22/03/2010.
    Is there any way to change this to the last working day of the week?
    We have some config related to define delivery intervals in IMG--> Sales and Distribution --> Sales --> Sales Documents --> Scheduling Agreements with Delivery Schedules --> Define Delivery Intervals. Will this help solve my issue? If it solves what is the procedure behind this?
    Request you to provide your inputs.
    Thank You, Lakshmikanth

    Hi,
    Seems the delivery split concept is different from this requirement. Can Delivery intervals concept help us or not? IMG--> Slaes and Distribution --> Sales --> Sales Documents --> Scheduling Agreements with Delivery Schedules --> Control EDI Inbound Processing --> Define Delivery Intervals.
    What is the procedure and assignment details for delivery intervals concept?
    Thanks, Lakshmikanth

  • Delivery Date should propose only working days (Excluding weekends and holidays

    Hello All
    I have one requirement here, where delivery dates should propose only working days and it should not allow to add weekends and holidays during the creation of sales order.
    I would like to know if there are any standard settings to be done in plant or shiping point?
    Kindly need all your input on this
    Thanks
    Naveen

    Hello All
    Same calendar has already been assigned in shipping point,plant and sales org and also in the calendar holidays been maintained, even though when we create a sales order it will accept weekends and holidays
    Thanks

  • Payment terms should calculate Payment due date based on working days

    Hi Experts,
    As we know that standard SAP calculates Payment due date= base line date + number of days maintained in payment terms. In this payment days are considered as calendar days and not the working days.
    Example: If base line date is Thursday, payment terms says 3 days then payment due date is calculated as Sunday ( which is not a working day as per the factory calendar I use). The requirement is that payment date should be calculated as following Tuesday considering Satuarday and Sunday are not working days as per the calendar.
    Can you please suggest how can we achieve this?
    Thanks,
    Ravi

    You can not acheive from config pooint of view but you can use BADI and get the solution
    use BAdI MRM_PAYMENT_TERMS to set terms of payment
    You can use this Business Add-In to change the following fields for the 
    terms of payment in the invoice document header:                        
    o  ZFBDT: Base date for due date calculation                            
    o  ZBD1T: Discount days 1                                               
    o  ZBD1P: Discount percentage 1                                         
    o  ZBD2T: Discount days 2                                               
    o  ZBD2P: Discount percentage 2                                         
    o  ZBD3T: Deadline for net condition                                    
    o  ZLSPR: Key for payment block

  • Supressing non work day messages for material requirments on Work orders

    Message CN687, pretaining to delivery date of materials takes into account the factory calender/nonwork days of the calender associated to the plant. This message pops up for every material line item on a work order, One could understand how involved it can be if ther are a number of materials on a work order, as you would have to enter passed each warning before continuing.
    Is there a way without preforming a mod that will allow us to supress this message on the work order side. Supply chain still wants to see it, however maintenance does not?

    Hi,
    As per my understanding your planned order is scheuling for 2 days.Check teh capacity view in the std plang book and check the date on which the capacity is being shown.IF the same is not showing on 15th then the problem is with scheduling not with capacity load.
    Also check the factory calendar assigned to resource master data.Check the date 15th on the bucket capacity on resource master SNP bucket capacity view.If the same is showing as working day then the master data needs to be changes.
    Hope this can help.
    regards,
    kaushik

  • How to create an 8/6 working day calander in Projects

    I need to set my calander to 8 days work 6 days not working on a 12 hr day
    If the calander had a 2 week cycle option this would be easy, but I need help please

    Dale,
    Sorry to butt in but you did throw out the challenge even if it was to Trevor. It's tough (for me) to ignore a challenge.
    Actually the calendar is not that hard but a little tedious. First I created a custom calendar called "86" based on a 7 day a week calendar. I then set the working times for each day from 6:00am to 7:00pm with 1 hour lunch. Finally I created an
    exception for 6 days off. I repeated that exception span every other week for as many weeks as necessary to cover the project. That gives an 8 days on, 6 days off pattern with 12 hour work days, just like the poster wanted. The tedious part of course is entering
    each of the exception periods, which could be automated with VBA.
    John
    For the benefit of the original poster, here is a screen shot of the custom calendar. I only took the exceptions up through January 2015 to illustrate the process. Obviously additional exceptions are required, basically two per month, for the remainder of
    the project.

Maybe you are looking for