Employee schedule with variable lunch times

I am trying to set up an employee schedule that calculates the hours worked each day. If the hours worked are <=5, no lunch time is subtracted; if the hours worked are >5 but <9, 30 minutes are subtracted; if the hours worked are >=9, 1 hour is subtracted. I'm fine if I only calculate a single lunch unit—it's when I try to get it to figure all three options that I get the little red triangle. I've tried using IF(AND( but I'm pretty sure I'm screwing up what goes within the parentheses and where the opening and closing parentheses go. Should I be using IF(OR( instead? A whole string of IF(s?
I've got the start and end time cells formatted as "Automatic/Date-none/Time-7:08 PM" and the cell for the hours worked formatted as "Duration-0h0m" if that makes any difference.
Also, the employee schedule template has a fairly involved formula for calculating the hours. I was able to get Numbers to figure the duration by subtracting the start time from the end time, which seems much simpler. Is there some reason I'm unaware of why this would not be a good way to do it? What do the empty quote marks mean in the template's formula?

storesr wrote:
(T)he employee schedule template has a fairly involved formula for calculating the hours. I was able to get Numbers to figure the duration by subtracting the start time from the end time, which seems much simpler. Is there some reason I'm unaware of why this would not be a good way to do it? What do the empty quote marks mean in the template's formula?
The formula used in the template is:
=IF(OR(C7="",C8=""),"",IFERROR(C8-C7-Administration Information :: $B$1,""))
The heart of the formula,— *C8-C7-Administration Information :: $B$1* — does what you're doing—subtracts the start time (C7) from the end time (C8), and subtracts the lunch break (Administration Information::$B$1) from that.
The first IF statement says "if either of C7 OR C8 contains the null string (""), THEN return the null string (""),ELSE do the IFERROR part.
This keeps the result cell appearing blank until both the start and stop times have been set using the popups in C7 and C8.
IFERROR works as an error filter, and returns the part after the comma (the null string in this case) IF it encounters an ERROR in performing the calculation in the part before the comma. I initially found it a bit confusing as it seems to be set up in the opposite order from IF.
I am trying to set up an employee schedule that calculates the hours worked each day. If the hours worked are <=5, no lunch time is subtracted; if the hours worked are >5 but <9, 30 minutes are subtracted; if the hours worked are >=9, 1 hour is subtracted.
A pair of nested IF statements, and a modification of the Admin Info table to include the two breakpoints and their associated lunch break durations should work here.
Modify the Administration Information table by adding a column before column B and a row Above row 1.
Add the break points into B1 and B2 of this table, and the short lunch beak time into C1.
Duration of lunch break | 5h 0m | 0h 30m
Duration of lunch break | 9h 0m | 1h 0m
Maximum weekly hours |               | 40h 0m
Overtime pay                 |                | 150%
=IF(C8-C7>Administration Information :: $B$2,C8-C7-Administration Information :: $C$2,IF(C8-C7>Administration Information :: $B$1,C8-C7-Administration Information :: $C$1,C8-C7))
This formula can work on its own in C9, or can be used (without the leading = sign) in place of the first part of the IFERROR statement in the original formula in C9, leaving the rest of that formula as is, and retaining the benefits described above.
Regards,
Barry

Similar Messages

  • APD query key date with variable for time dependent MD display attributes

    Hello,
    In a APD I use a query as a source with a query key date that is filled with a customer exit variable.
    When I run the query as a user, the time dependent MD display attributes look fine. However, when I use the query in an APD, I get no values for the time dependent display attributes.
    Any suggestions?
    Thanks

    Hi,
    Try to run query using RSCRM_BAPI Tcode, this you can also schedule in background
    Thanks
    Reddy

  • Error Message : Object could not be scheduled within the specified time interval

    Post Author: mohamed elkashef
    CA Forum: Publishing
    Dear All when i try to run event for daily reports it sometimes take generation status failed with this error  message : Object could not be scheduled within the specified time interval so  i need to know the reason of failure and how can i fix  this error  thanks a lot 

    Post Author: nvnaresh
    CA Forum: Publishing
    Dear jsanzone,
    I'm facing the same error even when the server time out is more than the query execution time of the report.By server time out I assume connection time out of WebI report server which I have set to 180 min.But the actual query takes maximum of 5 min.
    We are using BO XIR2+SP2.
    I scheduled a webI report to get saved in Excel format to an Unmanaged disk location upon a File Event.
    We have 3 such reports to be scheduled on the same event.
    Expected frequency of File Event getting fired in a day is twice.Scheduling frequency I have set it as every one hour with the file event.
    This usually should work fine.
    But frequently 1 or 2 of the above 3 instances are getting failed with the following error "Object could not be scheduled with in specified time interval " after being in Running state for few hours(8). Amazingly this is not happening every time. May be once or twice in a week.This works fine after I restart the BO services and the same thing repeats after 3 or 4 days.
    Do I need to increase any server parameters?
    Why is this happening randomly?  

  • Using COUNTIF on time values in pop-up menu (employee schedule template)

    I have modified the Numbers employee schedule template to my liking and it works very well. I would like to add a column to the beginning which shows, at a glance, how many people I have scheduled for AM shifts and PM shifts on a given day. My AM shifts start at 9:00 AM and my PM shifts end at 6:30 or 8:30 PM.
    So I thought I could use COUNTIF, but after I set the array, I cannot get the condition right to return anything except "0". How do you make it detect the appropriate times? The times in each cell for In and Out times are selected using a pop-up menu, just like the template.
    Here is what I tried: =COUNTIF(E3:AE3,"9:00 AM")
    What should the condition be to return a proper count?

    ac,
    You shouldn't feel badly about having trouble with this template. It is a rather tricky one. The values in the Pop-Up menus are Date/Time values. That is to say, they have year, month, day, hour and minute components, even if only the hours and minutes are displayed. So if you only compare to the hours and minutes, you will never get a match.
    I don't know if you have experienced this yet, but when you changed the Pop-Up menu content, you probably entered the current year, month and day unknowingly and will have trouble doing math against the Pop-Up content that was originally in the template.
    My suggestion in your case would be to convert the time references to decimal hours before doing a comparison. For instance, if the time you wish to compare to is in cell C4, you could extract the decimal hours with =HOUR(C4)+MINUTE(C4)/60
    Remember that the hours will reflect a 24-hour day, so times in the afternoon will run from 12.0 to 23.99...
    Then after converting to decimal, instead of using "9:00 AM" for the COUNTIF criteria, use 9.
    There are probably ways to do this using the Duration format as well, but I prefer the decimal hours.
    Hope this helps.
    Jerry

  • Real time synchronisation of sap hr employee data with LDAP

    Hi friends,
    I wanted to synchronize sap hr employee data with ldap. I have written a abap program for the same which is using ldap connector interface for creation/modification/deletion of employees. I am planning to put this as a scheduled job.
    But I want to do it  in real time i.e. when the employee is getting created/modified/deleted in sap hr, my program should receive all the values and do the changes in ldap at the same time.
    What all options do i have to do this?
    I am new to sap hr.
    Regards,
    Nilz

    Hi Nilesh
    U can take help of Standard Events in SAP.
    Go to Tcode SWELS.Then Activate Event trace.
    Go and do creation/modification/deletion for employees and Check which allevents are getting triggered in Tcode SWEL.
    This might give U an Initial idea how to go about this.
    ~BiSu

  • Problem with  "Employee Schedule" template

    Help!
    I'm trying to use the Employee Schedule template and add some new values to the popup of times. Although they appear just as times like "5:00 PM", they actually seem to be date-times (on 15 Jul 2008, which I guess is when the template was created).
    If I add a new value like "11:00 PM" it's taken to be today's date so the hours calculation is way out. If I type in something like "15 Jul 2008 11:00PM" then the calculation works but I see the date as well as the time!
    Is there any way of changing the formatting of a cell that's of type "Pop-Up Menu" to only show hours and minutes?
    -Rolf

    Rolf,
    If you want to add new values, change them all so they will all have the same date. You'll need to do this for both starting and ending times so the math will come out properly. When you've made a new pair of Pop-ups, copy them and paste them to all the locations where you need them.
    Regards,
    Jerry

  • Finite pulse-trai​n generation with variable time lapses with NiDAQmx

    Being a newby in Labview and NiDAQmx, I find it tedious to program the application I need to drive my experiment : I want to generate a finite pulse train, with variable delays between two consecutive pulses. These delays are known before the experiment starts, summurized in a table (element 0 decribes the time lapse between pulse 0 and 1, element 1 between pulse 1 and 2 ...). I would like to use NiDAQmx to program this. I had in mind the following scheme : two counters, first one counting time between pulses, the second one generating the pulse once "counter one" has finished his job. What I don't figure out is how to reprogram "counter one"'s register, without introducing unwanted delays in the time
    sequence of my finite pulse train. I am using a 6052E DAQ, and I want to generate delays in a same pulse train ranging from 1 microsecond up to 20 seconds.
    Thank you for ANY help :-)

    Hello !
    Well, I will try to be more precise while answering your questions. But first let me thank you very much for your help : your comments, questions and remarks are very helpful to help me shape my project, as you shed light on particular problems I strictly had no idea before !
    1) I can certainly get on well with digital output as my flash device is triggered by TTL signals.
    2) The lighting device is home-made, and I think it will be better for my needs to produce light throughout the duration of the input at the “on” level. In any case it will be driven by TTL-like signals. The intensity is manually set, so no analog control is required.
    3) I will use Labview to collect the experimental data. The signal will be sampled during the light pulse : the rising edge of the TTL-like output signal will trigger both the lighting device and the data acquisition, the latter being stopped on the falling edge. The light emitted by the lighting device is called a “probe” for the following reasons : the photons are absorbed by the photosynthetic sample and “immediately” re-emitted at a longer wavelength. A photodiode acts as a signal transducer, and I monitor the intensity of this fluorescence. Knowing precisely when light pulses occurred after the initial start excitation (which is also a brief pulse of light but of a much greater intensity than the “probe” light) and the intensity of light emitted during theses pulses, I can reconstruct the kinetic of fluorescence decay. This kinetic reflects the behaviour of my biological sample. Thus no continuous acquisition is required as between two light pulses there is nothing to monitor. And all the half-time reaction are timed relative to the same “start” excitation as they reflect a jump sequence of an electron extracted by the “start” excitation : first jumps are quick ones (half-time in the 10 �s range) and last jumps are slow ones (half-time in the 1 s range). With respect to these kinetics, I would like a 1 �s precision. If not achievable, I could skip the quickest jump (but it would be a pity) and focus on the second one which has a 10 ms half-time reaction and a 100 �s precision would then be enough. But as we say in French : “Qui peut le plus, peut le moins !” (roughly meaning that when you can achieve the best, you easily can do the least). This precision relates to the position of one flash with respect to the others. I don’t need to be very precise on the duration of each individual light pulse : a typical value is 100 �s duration, but I can get on well with 90 �s or 110 �s, my data being an average of the light intensity emitted during the light pulse). All I want to know precisely is when it is fired.
    4) Concerning the hardware, I already have a NI 6052E DAQ board, and unfortunately my laboratory cannot allow me to spend more money on this. I also have a fast acquisition board (IMTEC T3012) I intended to use to acquire my photodiode signal in place of the 6052E A/D converter. It has an old Labview driver, and I managed to upgrade it to suit my needs. It has an onboard segmented memory and can keep track precisely (it has a 60 MHz sample clock) of a trigger event. I am wondering if I can overcome the timing precision issue with this board, knowing that I strictly don’t care that flash n�1 is triggered at (t0 + 10 �s) or (t0 + 11 �s), provided that I know it, allowing me to place precisely my data point on the time scale. I can program the number of memory segments (i.e. the number of light pulses) and each one is filled with data coming from the photodiode upon receiving the rising edge triggering the light pulse. The precise date at which each triggered is received is stored in the board memory, allowing time reconstruction.
    I do hope this is much clearer than my previous attempts ! Believe me, it is quite hard to leave biology for a while and enter the cryptic world of data acquisition !
    Gritche

  • Hi I'm a total novice, as you will see. But Iam trying to use template of an employee schedule but when I try to add extra columns it does not add the preset formula with it, so it works out total hours and total pay?   If any one can help please.

    Hi I'm a total novice, as you will see. But Iam trying to use template of an employee schedule but when I try to add extra columns it does not add the preset formula with it, so it works out total hours and total pay?   If any one can help please before I throw it through the window!

    Grum12 wrote:
    Hi I'm a total novice, as you will see. But Iam trying to use template of an employee schedule but when I try to add extra columns it does not add the preset formula with it, so it works out total hours and total pay?   If any one can help please before I throw it through the window!
    Hi Grum,
    If the formulas aren't filling to the new column, you must have changed something in the template since you first opened it. Numbers is rather fussy about filling row content in columns as they are added. Only rows with the same expression in every Body Column will fill when a column is added. Just as an experiment, start a new Employee Schedule document from the Template Chooser and then add a column by clicking the Add Column handle in the upper right corner of the table. If that works, as it should, then think about what might have changed in your working document to disconnect that feature. Maybe we can figure it out together.
    Jerry

  • Time Management - Work Schedule /Absence Quota / Part-time quota generation

    Hi Experts,
    Need your help!
    We have a requirement where we need to create distinct work schedules for each irregular / part-time work pattern and the number of work patterns we have identified is more than 1000.  We are using report RPTQTA00 to generate quota. We have used work contract, employee sub-group & employee payscale group in the QUOMO feature to get the base entitlement picked up. We have defined base entitlement for the full time workschedules with 37.0 / 38.5 hours and there is a reduction rule which reduce the absence entitlement for part time employees as per the employement percentage in IT0007. Now we have a scenario where we have created a work schedule with different no of hours for each day of week (M-4, T-6, W-4, TH-6, F-4, S-OFF, SU - OFF); this work schedule is treated as full time work pattern by the system and quota is generated as full time work schedule refering to the QUOMO settings, but as per my client employees with this work schedule have reduced hours of working hours (24 hours, not 37.0 or 38.5 hours)and hence it should be treated as part-time employees, and the quota generated should be proportionately reduced. I have very limited scope to create any ESG or PSG as we do not have any distinct emplyee sub-groups maintained for full-time and part-time employees and the project has already gone-live with payroll/time. It is worth mentioning over here that we are recording absence through ESS and it takes into account the daily planned working time maintained in IT0007, so we are very particular to keep it as accurate as possible.
    I would really appreciate if somebody can please suggest any possible solution for the above issue, or guide me on what would be the best way to tackle it. I can give more details in case anybody need to have a better understanding of the issue to suggest a solution.
    Thanks in advance
    Sujit

    Hi Kathy,
    Yes, i have found the solution to it. I do not know whether it will fit into your situation or not, but i got two solutions for my issue mentioned above, please check it may help:
    1) To use capacity utilization field in IT0008 to get the FTE hours and defining the reduction rule of absence quota based on the capacity utilazation percentage.
    2) There are three user exits available in the standard report RPTQTA00, i have used one of them to write my own rules for the calculations (deduction rule)
    Do let me know if i can help you in any respect. Thanks.
    Regards,
    Sujit

  • Query with variable defined date no idea how

    Hello to all,
    i have a problem with a query, in this query i need a variable date that can be entered in the SQL statement.
    If the CREATE TABLE and INTO Values are needed, they can be found here:
    Re: Need Help with complex query for productio database
    with t2 as (
                select  t.*,
                        lead(step_date) over(partition by order_nr order by step_date) next_step_date
                  from  table_2 t
    select  t1.*,
            nvl(
                max(
                    case t2.wo_step
                      when 'U' then t2.step_date
                    end
               sysdate
              ) - t1.create_date age_1,
            nvl(
                max(
                    case t2.wo_step
                      when 'R' then t2.step_date
                    end
               sysdate
              ) - t1.create_date age_2,
            sum(
                case
                  when t2.wo_step in ('B','5') then t2.next_step_date - t2.step_date
                end
               ) step_b_5,
            sum(
                case t2.wo_step
                  when 'C' then t2.next_step_date - t2.step_date
                end
               ) step_c,
            sum(
                case t2.wo_step
                  when 'K' then t2.next_step_date - t2.step_date
                end
               ) step_k,
            sum(
                case t2.wo_step
                  when 'E' then t2.next_step_date - t2.step_date
                end
               ) step_e,
            sum(
                case t2.wo_step
                  when 'F' then t2.next_step_date - t2.step_date
                end
               ) step_f,
            sum(
                case t2.wo_step
                  when 'S' then t2.next_step_date - t2.step_date
                end
               ) step_s,
            sum(
                case t2.wo_step
                  when 'R' then t2.next_step_date - t2.step_date
                end
               ) step_r
    ,          CASE
                   WHEN      t1.priority = '02'
                   AND          nvl(
                               max(
                                   case t2.wo_step
                                     when 'U' then t2.step_date
                                   end
                                        sysdate
                             ) - t1.create_date >= 5
                   THEN     'FALSE'
                   WHEN      t1.priority = '05'
                   AND          nvl(
                               max(
                                   case t2.wo_step
                                     when 'U' then t2.step_date
                                   end
                                        sysdate
                             ) - t1.create_date >= 8
                   THEN     'FALSE'
                   WHEN      t1.priority = '12'
                   AND          nvl(
                               max(
                                   case t2.wo_step
                                     when 'U' then t2.step_date
                                   end
                                        sysdate
                             ) - t1.create_date >= 30
                   THEN     'FALSE'
                   ELSE     'TRUE'
              END AS "IN MPD"                                  
      from  table_1 t1,
            t2
      where t2.order_nr = t1.order_nr
      group by t1.order_nr,
               t1.priority,
               t1.create_date,
               t1.act_step,
               t1.step_date,
               t1.employee,
               t1.descriptionIn this query i want to replace sysdate with a variable date that i want to define one time, maybe in the first line of the SQL query or one of the Top lines.
    The reason for this is, i want my results to an specific date, well i can change da system time but i want to solve that in the query.
    Or if there is a way to get promted for this variable each time when the qury runs, that would also be fine.
    I tried already DEFINE BEGIN END, but i get only a bunch of errors. I thins i do a basic mistake.
    Thank You all.

    Hi,
    To create and set a bind variable in SQL*Plus, you can do this:
    VARIABLE  base_date_text   VARCHAR2 (20)
    EXEC     :base_date_text := '01-Mar-2013 00:00:00';:base_date_text can now be used anywhere in your query where a string is allowed. Unfortunately, you can't have DATE bind variables, so that means it's only useful in calls to TO_DATE.
    You could calll TO_DATE everywhere you are now calling SYSDATE, or you could do something like this:
    with t2 as (
                select  t.*,
                        lead(step_date) over(partition by order_nr order by step_date) next_step_date
                        TO_DATE (:base_date_text, 'DD-Mon-YYYY HH24:MI:SS')   AS base_date
                  from  table_2 t
               )  ...This adds a column to t2 called base_date, which is a real DATE. Anywhere in the main query, you can reference t2.base_date instead of SYSDATE.
    If you want to be prompted to enter the value at run-time, then you can use SQL*Plus substitution variables, like this
    ACCEPT  base_date_text  "Please enter the date to use (DD-Mon-YYYY HH24:MI:SS format): "
    with t2 as (
                select  t.*,
                        lead(step_date) over(partition by order_nr order by step_date) next_step_date
                        TO_DATE ('&base_date_text', 'DD-Mon-YYYY HH24:MI:SS')   AS base_date
                  from  table_2 t
               )  ...Again, t2.base_date (a DATE) is now available anywhere in the main query.

  • Error in Looping with variable

    Dear All,
    Please help me. i want to loop of record. i have two scheme. First, i make without variable and not error. Second, i make with variable and error occurs. as below my syntax:
    First:
    declare
    x varchar(50);
    begin
    --x:='select dummy from dual';
    for c1 in (select dummy from dual) loop
    dbms_output.put_line(c1.dummy);
    end loop;
    end;
    result:
    X
    Second:
    declare
    x varchar(50);
    begin
    x:='select dummy from dual';
    for c1 in (x) loop
    dbms_output.put_line(c1.dummy);
    end loop;
    end;
    result:
    Encountered the symbol 'LOOP' when expecting one...

    Billy  Verreynne  wrote:
    Why? For what purpose?
    A cursor fetch loop is not the ideal processing structure.
    It is slow. It requires data to travel from the buffer cache of the database into PL/SQL variables (in the PGA). It requires context switching between the PL/SQL and SQL engines.
    It does not scale. More rows means more data to travel that path from the SQL engine to the PL/SQL engine. More loop iterations in PL/SQL. If a single loop iteration (for processing a row) is 1ms, then a 100,000 rows will take a 100 seconds. 200,000 rows 200 seconds. Etc. This clearly does not scale with an increase in data volume.
    Also keep in mind that DBMS_OUTPUT does not write to screen or display anything. It is incapable of accessing a client device as it executes inside a server process. So each call to DBMS_OUTPUT stores that line of text in very expensive server memory. When the database call is done, the client (e.g. TOAD or SQL*Plus) can read those lines from the database and the client can display it.
    So if your loop is for a 1000 rows, it means writing a 1000 lines of text into very expensive server memory - and then expecting the client to read that afterwards and display it. Why? This is not a standard client-server method. It also does not scale. It can actually crash the server when this method is abused.
    The standard method would be to create a SQL cursor using PL/SQL code, and then return a reference handle (pointer) to the client. This allows the client the ability to fetch data directly from the cursor - in an optimal way that does not consume expensive server memory.I have to say it: I sincerely appreciate you taking the time to write this whenever it needs to be written rather than just giving up and letting people stumble along with bad design - it must take a lot of mental stamina to keep doing it. One day it will sink into my head also :-)

  • Problem with variables in formulas when using CrystalReportViewer

    Post Author: Aksu
    CA Forum: Formula
    Hi! I have a problem with variables in Crystal Reports formulas, when using CrystalDecisions.Windows.Forms.CrystalReportViewer class from VS2005-project. ReportViewer always gives error:*************Crystal Report Windows Forms ViewerThis field name is not known.Details: errorKindError in File C:\{dir&#93;}\{file}.rpt:Error in formula <mCustomerAttributes>.'Dim result As String'This field name is not known.Details: errorKind ************* Report without variables works fine with Viewer and in Crystal Reports Designer report with variables works also fine. I have tried with both "formula-syntaxes" - basic and crystal. But Viewer always gives error when trying to define new variable.I think the problem might be with CR -versions, because VS-project has formerly been designed to VS2003 and CR9 or 10. Now I'm using VS2005 and CR11. Though I have changed all references to new CrystalDecisions-asseblies (Ver.11.0.3300.0), when I debug the project and checkout the Viewers ReportSources FormatEngine Shows version CR9_2.... I have no idea where it gets this version...***************DEBUG-view when Viewer is created *******************CrystalReportViewer    |_        ReportSourceClassFactoryName ... , Version=11.0.3300.0 , ...    |_            ReportSource            |_                FormatEngine    {CrystalDecisions.CrystalReports.Engine.FormatEngine}                        |_                        ClientVersionHeader    {CrystalDecisions.Shared.ReportServiceVersionHeader}                            |_                            |    version = 920     (int)                            |_                                Static members                                            |_                                        VER_CR9    = 920    (int)**************************************** Could anyone have any answers or tips for this problem? I'd really appreciate it... ---Aksu

    Has anyone been able to answer this question?
    I am having the same problem:
    I am designing a report in Crystal Reports XI Developer that contains parameters, which are passed to a stored procedure and are also used within formulas ( in Crystal Syntax ie. {?FORMAT_ID} ) in the report itself.
    I can run the report successfully in CRXI Developer.  The formulas use the correct values from the parameters entered during execution and everything looks good.
    I then deploy the report to Business Objects Enterprise XI.  I do all of the things necessary to manage the report including setting up the proper database connection information and default parameter values.
    When I run the report using the Crystal Report Viewer, I get the following error message:
    Error in File Forecasting.rpt:
    Error in formula <Report Format>.
    'if (not isNull({?FORMAT_ID} ) ) then
    This field name is not known.
    Details: errorKind
    This happens when I press the "Preview" button in the Manage Object dialog from Crystal or when I run the report using InfoView.
    I have changed the formulas and it doesn't seem to matter what the specific content of the formula is; other than the existence of a parameter reference in the formula.  If I comment out the parameter and replace it with a hard-coded value, it gets through the formula fine.
    Does Business Objects Enterprise XI support crystal reports with parameter references in the formulas?
    Thanks,
    Tim H.
    Edited by: Tim Haley on Nov 25, 2008 11:11 PM
    Edited by: Tim Haley on Nov 25, 2008 11:12 PM

  • Issue with Variable Personalisation in Bex Report

    Hi Gurus,
    I'm facing a typical problem with Variable presonalisation in the Report.
    I've executed a BEX Report and filtered data on some characteristics and used SAVE AS Button on the Portal to save the resultset. When I'm trying to use the variants, again say after  2 or 3 days i couldn't find updated data for particular variants upon using the same variants rather its refelecting the old data. Further more when I execute the report and try filtering on the same criteria altogether, I'm able to see updated result set.
    Is there any setting to be enabled when we personalise variants or variants are dependent on the data or the date on which they are created. Not sure why the reports are behaving this way. Or Do I need to create variants time and again.
    Any pointers would be of great help.
    Regard,
    Yaseen

    Hello,
    In the BEx report, when you get the variable selection screen there input your selection and at the bottom you have the option of saving them as a variant.
    Now in future when you run the report simply use this variant and execute the report. It should work fine.
    Also remember date selection can be tricky. If you input todays date in the variant, it wil consider the same date in further references. So do a check on that too.
    Regards,
    Shashank

  • SQL Query with variable range

    Hi
      I want to give range to a user to enter in a variable through sql query . If there are 200 records , if user wants to display from 5-45 , 75-110 , 130-145. how it can be done through SQl Query
    Thanks
    Edited by: Matt on Aug 31, 2010 6:23 PM - modified title - please use a meaningful title in future

    Dear Saini,
    This query will allow you to choose the values only when you know them.
    SELECT T0.[DocEntry], T0.[ItemCode] FROM INV1 T0 WHERE T0.[LineNum] >[%0]   and T0.[LineNum] <[%1]
    If you run it in the query Generator in SAP Business One a little window will pop up and will ask you to choose the 2 variables.
    You can choose different variables every time you run it. At least you won't have to save many queries with different values.
    If you want 2 different groups, e.g. from 10 to 20 and from 30 to 40, then you can add another part in the where clause:
    SELECT T0.[LineNum], T0.[ItemCode], T0.[DocEntry] FROM INV1 T0 WHERE T0.[LineNum]  >= [%0] and  T0.[LineNum]  <= [%2] and T0.[LineNum]  >= [%4] or  T0.[LineNum]  <= [%6]
    Please, let me know if this query helps.
    Regards,
    Marcella Rivi
    SAP Business One Forums Team

  • Multi resource Scheduling with CRM

    Hi MRS Experts,
    I am an CRM consultant working on a scenario of resource planning in SAP CRM services. We have a scenario where the user creats a service order in IC web client. As soon as he creates a service order two things should happen:
    1) Appoint scheduling based on customer availibility
    2) resource (employee) scheduling
    Regarding this I have following questions:
    1) Can MRS work in this scenarion (resource scheduling in/with SRP CRM?
    2) Is it a standard integration?
    3) What it takes to integrated MRS with SAP CRM?
    4) What data points are required to in mRS from CRM to for resource scheduling and appointment scheduling:?
    5) If we are correct WFM is not requred for MRS?
    6) How MRS integrates with mobile application fro the service scenario?
    7) is it advisibel to use WFM or MRS, with CRM?
    PS: Guys its great to have such discussion, the doc links mentioned in the first page do not work.
    I would realy appriciate if somebody clarifies the above queries as early aspossible as i am struggling at this point a lot.
    Thanks in advance.
    Please assist.
    Regards
    Adi

    Hello Aditya,
    1) Yes MRS can work with CRM. But with the current release in service market place (whcih is MRS 610) it is not possible to have this as out of the box solution.
    You will need to enhance MRS to enable this.
    2) With the new release, which is due this year, it will be possible to integrate CRM service orders with MRS.
    3) MRS provides more functions with respect to service planning. So I would say MRS should be preferred solution.
    Regards
    Varun

Maybe you are looking for