Working Hours Summation by selected parameter

Hi 
I am preparing a report which displays employee's minimum working hours. Each employee has a minumum working hours amount in SQL table as below.
Also, I have mounth and year parameters. Moreover, my month parameter is multi select. For instance, when I select parameters as below
then report should give me the total of the hours of January,February and March in a textbox. How can I handle this? 
Thanks in advance.

Hi Omnipotent06,
After testing the issue in my test environment, we can refer to the following steps to achieve your requirement:
Drag a Matrix from Toolbox to design surface.
Insert the corresponding fields to the matrix.
In the Column Groups pane, right-click the month group to add a total- after.
Add some filters as below to the matrix.
Expression: [year]
Operator: =
Value: [@year]
Expression: [month]
Operator: In
Value: [@month]
Expression: [employee]
Operator: =
Value: [@empolyee]
The following screenshot is for your reference:
If there are any other questions, please feel free to ask.
Thanks,
Katherine Xiong
 If you have any feedback on our support, please click
here.
Katherine Xiong
TechNet Community Support

Similar Messages

  • What is use of defining SELECTION PARAMETER in MOVEMENT TYPE

    Hi All ,
    Can u pls tell me the reason of defining SELECTION PARATEMETER in MOVEMENT TYPE.
    REGARDS
    Sandeep

    May be I couldn't explain my question well , sorry for that.
    When I define a new Movement code using T code OMJJ ( in IMG) , there is a field for SELECTION PARAMETER.
    I wanted to know the impact of this field value.
    Pavan , you are right that value is like a searching criteria but I am just wondering how can I check whether system is working as per the SELECTION PARAMETER defined for a movement type.
    For example , in movement type 101 defined selection parameter is WE101 (Open Goods Receipts) , so where I should check (in which list ) whether system is taking it as default value or not.
    I know for you people might find it a stupid question but I have no other option than u people )
    Pls let me know if my question is still not clear
    REGARDS
    SANDEEP

  • SSRS 2012 multi select parameter not working in Report Manager.

    Hello,
    I have one report with Multi select parameter. its working fine in bids, report server but I am facing some issue on report manager 2012.
    Issue is, In Multi select parameter I have Suppose 6 value a,b,c,d,e,f  after the deployment on report manager for the first time report is working fine with selecting all the value. but for the second time if my selection include either
    a or f report gives no result and check box get unselect.
    I also try on different report manager but same result.
    what can be a issue here causing problem only for two value but working fine for other value?
    Thanks,

    Hi Javed,
           The Issue is with when you click on View Report button of Report Manager for Parameters which contain CHAR(10) and CHAR(13).
    Where ever that Column is used in Report Data Set ,
    Use replace(replace(Param,char(10),''),char(13),'')  function.
    ----------------Please Mark This as Answer if it helps to solve your problem---------------------------- 

  • I bought macbook air in feb 2013. if it is fully charged it only works for 3 hours while it should work for 7 hours. i have selected allow application from anywhere. does it affects ?

    i bought macbook air in feb 2013. if it is fully charged it only works for 3 hours while it should work for 7 hours. i have selected allow application from anywhere. does it affects ?

    vishalss180 wrote:
    should i change the battry ??
    No need to change the battery.
    vishalss180 wrote:
    i have selected allow application from anywhere. does it affects ?
    No.
    Maximize Runtime / Tips for maximizing your battery charge
    http://support.apple.com/kb/HT1446
    http://support.apple.com/kb/TS1473
    A new Mac comes with 90 days of free tech support from AppleCare.
    AppleCare: 1-800-275-2273

  • SSRS 2012: How to get a "Select All" that returns NULL instead of an actual list of all values from a multi-select parameter?

    I have a multi-select parameter that can have a list of thousands of entries. In general, the user will pick a few entries from the list or "Select All". If they check "Select All", I would much prefer that I get a NULL or an empty string
    instead of a list of all values. Is there any way to do that?
    In experimenting with a work-around, I tried putting an "All" label with a null value in the list, but it is ignored (does not display in the drop-down). If I use an empty string for the value, my "All" entry does get displayed, but so
    does "Select All", which is confusing. Is there a way to suppress "Select All"?
    - Mark

    I adapted the following from a workaround posted by JNeo on 4/16/2010 at 11:14 AM at
    http://connect.microsoft.com/SQLServer/feedback/details/249227/multi-value-select-all-parameter-in-reporting-services
    To get a null value instead of the full list of all values when "Select All" is chosen:
    1) Add a multi-value parameter "MyParam" that lists the values to choose.
    2) Add a DataSet "ParamCount" identical to the one used by "MyParam", except that it returns a single column named [Count] that is a COUNT(*) of the same data
    3) Add a parameter "MyParamCount", set it to hidden and internal, then set the default value to 'Get values from a query', choosing "ParamCount" for the Dataset and the one [Count] column for the Value field.
    4) Change the parameter for the main report DataSet so that instead of using [@MyParam], it uses this expression:
    =IIF(Parameters!MyParam.Count =
    Parameters!ParamCount.Value, Nothing, Join(Parameters!MyParam.Value, ","))

  • Method to be used to delete a particular select parameter in a Sales order

    Hi ,
    Which Method can be used to delete a particular select parameter in a Sales order search screen using class CL_CRM_BOL_DQUERY_SERVICE

    Hi,
    Okie :) please feel free to post any problem :)
    Please apply the patch that has the fix for this issue:
    [Patch 9791839|https://updates.oracle.com/ARULink/PatchDetails/process_form?patch_num=9791839]
    The above link worked fine for me .
    Ideally, you should pick up the latest patch, which is [ Patch 11846804|https://updates.oracle.com/ARULink/PatchDetails/process_form?patch_num=11846804]
    Click on View Read me for install instructions. Let me know if you find any problem with patch install.
    Regards,
    Ajay Kumar

  • Calculation of working hours

    Hi all,
    I need a function module for the calculation of working hours. supose in the selection screen if i give 01.02.2007 to 01.10.2007 i need the calculation of working hours in that given range depending upon the personal number. Suppose if the employee is absent for 3 or 4 days within particular period of theat given range that days needs to be eliminated and should calculate for the rest of the days. Please find the below code iam finding a problem in this piece of code. Please this issue is very urgent please reply ASAP.
      gv_day = sy-datum - 7.
      CALL FUNCTION 'HRWPC_BL_DATES_WEEK_INTERVAL'
        EXPORTING
          datum    = gv_day
          week_pst = 0
          week_ftr = 0
        IMPORTING
          begda    = gv_begda
          endda    = gv_endda.
      IF sy-subrc <> 0.
      ENDIF.
    *AT SELECTION-SCREEN OUTPUT.
      pnpbegda = gv_begda.
      pnpendda = gv_endda.
    START-OF-SELECTION.
      SELECT sachn
             usrid
        FROM t526 INTO TABLE git_tmadmin
       WHERE sachn NE space
         AND usrid NE space.
      IF sy-subrc EQ 0.
        SORT git_tmadmin BY usrid.
      ENDIF.
    GET pernr.
      rp-provide-from-last p0001 space pn-begda pn-endda.
      IF pnp-sw-found <> 1.
        REJECT.
      ELSE.
        IF p0001-kostl NOT IN s_cctr.
          REJECT.
        ELSE.
          rp-provide-from-last p0007 space pn-begda  pn-endda.
          IF pnp-sw-found = 1.
            MOVE p0007-wostd TO gs_empdtls-wostd.
          ENDIF.
          MOVE :  p0001-pernr TO gs_empdtls-pernr,
                  p0001-kostl TO gs_empdtls-kostl,
                  p0001-ename TO gs_empdtls-ename,
                  p0001-sachz TO gs_empdtls-sachz.
        Employee Position from PA0001
          MOVE: p0001-plans TO gs_empdtls-plans.
          APPEND gs_empdtls TO git_empdtls.
          CLEAR gs_empdtls.
        ENDIF.
      ENDIF.
    Regards
    Mahesh

    What error are you getting?

  • Who's who - add custom selection parameter

    Hi,
    I want to add a custom selection parameter to the who's who in ESS.
    I've copied the standard infoset to a z-one, added siome output-fields and this works well.
    But now I want to add a selection-parameter which is not included in the ldb pncp (text of the personnel subarea) and I don 't qsee how I can add this. Someone out there who can help me ?

    Check the link,
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/108c31e7-b6a7-2d10-3692-c1a9f7a5c4dc?quicklink=index&overridelayout=true
    Hope this helps.
    Cheers-
    Pramod

  • Updating work hours

    Greetings everyone,
    I'm trying to update a field in a table with the total work hours in a specific month. To achieve this I've tried using a piece of SQL found in several other threads to retrieve the number of work days in a month. This doesn't work properly in my case however, since the subquery doesn't know the reference to a field on a higher level. Here is the SQL:
    UPDATE PS_EMPL_WRK_HRS Z SET WRK_HRS = (
    SELECT Z.STD_HOURS * (SELECT COUNT(*)
        from (select trunc(Z.EFFDT, 'mm')+level-1 dt
               FROM   DUAL
               connect by level <= last_day(Z.EFFDT) - trunc(Z.EFFDT, 'mm')+1
        where to_char(dt, 'dy' ) not in ('sat', 'sun'))  END AS WRK_HOURS
    FROM PS_GENL_DEDUCT_NLD GD
    WHERE   Z.EMPLID = GD.EMPLID
      AND Z.EMPL_RCD = GD.EMPL_RCD
      AND (GD.DEDUCTION_END_DT >= Z.EFFDT OR GD.DEDUCTION_END_DT IS NULL)
    )The error message will be ORA-00904: "Z"."EFFDT": invalid identifier, because the subquery to retrieve the number of workdays in a month doesn't know about the Z alias.
    The PS_EMPL_WRK_HRS contains the EMPLID, EFFDT and STD_HOURS. For each employee the record contains one row for each last day of the month, which is stored in the EFFDT field.
    Any help would be appreciated!
    CREATE TABLE PS_EMPL_WRK_HRS (EMPLID VARCHAR2(11) NOT NULL,
       EFFDT DATE,
       STD_HOURS DECIMAL(6, 2) NOT NULL,
       WRK_HOURS DECIMAL(6, 2)
    Insert into PS_EMPL_WRK_HRS (EMPLID,EFFDT,STD_HOURS) values ('010382',to_date('31-05-2013','DD-MM-RRRR'),40);
    Insert into PS_EMPL_WRK_HRS (EMPLID,EFFDT,STD_HOURS) values ('010382',to_date('30-04-2013','DD-MM-RRRR'),40);
    Insert into PS_EMPL_WRK_HRS (EMPLID,EFFDT,STD_HOURS) values ('010382',to_date('31-03-2013','DD-MM-RRRR'),40);
    Insert into PS_EMPL_WRK_HRS (EMPLID,EFFDT,STD_HOURS) values ('010382',to_date('28-02-2013','DD-MM-RRRR'),40);
    Insert into PS_EMPL_WRK_HRS (EMPLID,EFFDT,STD_HOURS) values ('010382',to_date('31-01-2013','DD-MM-RRRR'),40);Edited by: Michel on Feb 5, 2013 3:53 PM - Added CREATE and INSERT script

    Fixed it already:
    UPDATE PS_EMPL_WRK_HRS Z SET  WRK_HOURS  = (
    CASE WHEN (SELECT
    1
    FROM PS_GENL_DEDUCT_NLD GD
    WHERE   Z.EMPLID = GD.EMPLID
      AND Z.EMPL_RCD = GD.EMPL_RCD
      AND (GD.DEDUCTION_END_DT >= Z.EFFDT OR GD.DEDUCTION_END_DT IS NULL)) = 1
    THEN 1 ELSE (Z.STD_HOURS - Z.DED_HRS_ILL_K ) * (SELECT COUNT(*)
            FROM
              (SELECT rownum rnum
              FROM ps_country_tbl
              ) Y
            WHERE y.rnum <= Z.EFFDT - to_date(TO_CHAR(Z.EFFDT,'YYYY-MM')||'01','YYYY-MM-DD') + 1
            AND TO_CHAR( Z.EFFDT + Y.RNUM - 1, 'D' ) NOT IN ( '1', '7' )
            ) END );

  • Calculating worked hours

    Hey guys, I'm sorry if this has been asked a million times, but I can't seem to find the exact answer by searching.
    I want to use numbers '09 to calculate the hours I've worked, preferably each week. However, I'd like this list to continue over time, rather than making a new table every week, IE I can see what days I worked 3 months ago and how many hours I did.
    What I want to have is a chart, in which I can insert my clock in and clock out times, and after every 7th day it will give me a total of my worked hours.
    Here is a screenshot of a layout I'd like, however I'm open to better suggestions! It's all just typed in, but I'd like it to be auto complete of course.
    http://img512.imageshack.us/img512/7370/screenshot20091129at230.png
    Is this possible? In the future I'd like it to be able to calculate my pay aswell, maybe with a forumla to minus the 1 hour of lunch inbetween my clock in and clock out, however this could wait as I'm very new to this program.
    All help is GREATLY appreciated,
    Thanks, Lewis.

    Hi Lewis,
    The first three columns must contain data recognized by Numbers as Date and Time information.
    I would skip the empty spaces in the date list. Enter the first date in A2 and use the Cell (format) Instpector to set the date format to match your example.
    Then click on A2, grab the small round handle at the bottom right of the cell and drag down to fill in the rest of the dates.
    The Duration column (D) could contain a simple formula:
    =Clock out 'Sun, Nov 29, 2009'-Clock in 'Sun, Nov 29, 2009'
    But in that form it will generate an error message in the weekly sum for any week in which you didn't work (or at least record an in and out time) on every day. To avoid that, use the formula below:
    =IF(ISBLANK(Clock out 'Sun, Nov 29, 2009'),"",Clock out 'Sun, Nov 29, 2009'-Clock in 'Sun, Nov 29, 2009')
    +Note: Construct the formula using the Function Browser to insert the functions. Click on the cells whose values are to be used. The labels above are those that were generated as I constructed the formulas; typing them in may not work in your table.+
    Fill down column D by dragging the handle as above.
    +With the data in your sample table, you will get a "-10h 0m" result in D2 as all times in this row are recorded as being on November 29, 2009. Quit before midnight. (Or adjust your start and stop times to both fall on the same day.)+
    E8 (and every seventh cell in E after than) will use the
    SUM function to add the times for the past seven days.
    =SUM(D2:D8)
    To Fill down column E, select the seven cells E2:E8, then grab and drag the handle down the column.
    You should get mostly empty cells, with a number or a duration appearing in every seventh row.
    Regards,
    Barry

  • Time updation for Support desk message and business calender working hours

    Hi Experts,
    I would like to know how to set the time updation of Support desk message in CRM_DNO_MONITOR. After i receive a new message in it, I can see the from timing and to timing (even after changing the status of message) as 00:00:00. Is there any standard job to automatically update the timing of message?
    Also i would like to know, how to set the working hours for various days. Lets say i want to set my business hours for Monday from 10am to 6pm and for Tuesday as 9am to 5pm.
    Suitable points will be rewarded.
    Thanks in advance,
    Naresh Dodeja.

    Hi,
    The reason is "created by me" selects the role "Creator" of a message/notification.
    There are three roles "Creator", "Contact" or "Reporter" and "Responsible" or "Processor".
    The creator is identified by his user name and the others by their BP-ID.
    Therefore using the report "created by me" does not work if your users are defined for BPgen only.
    That it works you have additionally to define in BP the role "BUP003 - Employee".
    You find in the transaction BP for "BUP003 - Employee" in the tab "identfication" a field "User Name".
    If you enter the User-ID the user  has in the Solution Manager then it works.
    Good look!
    Best regards,
    Adelbert

  • Capture travel time expenses and working hours spent on the service call

    Hi Experts,
    I have One Year AMC contract with my customer.Under AMC he called me for 10 times.I need to
    Capture travel time expenses and working hours spent on all the service call, Non of them will be billed to the customer.
    This is just for our internal tracking.this particular data will reside within the office premises.
    Explain how efficiently we can track this particular requirement in SAP Business One
    Regards,
    Vikram

    Hi Vikram
    You will notice on the item master records that there is a field called Item Type. The options are Item, Labor and Travel. In order for the service module to recognize the expense or charge type, either Labor or Travel must be select. Create a service item (untick inventory item) and choose the Item Type as Labor or Travel. When you now create a Delivery/Invoice from the expenses section of the service call, it will identify and warn you if you charge the customer, as this would be defined in your service contract template as non billable charges. You can still create a Delivery for the charges and put quantities and values on the Delivery document. In this case you are not going to invoice the customer for the charges, so you can "Close" the Delivery. Just be aware that closing the Delivery will post the value to an offset account defined in the Account Determination.
    The benefit of this approach is that the Delivery will post a debit and credit in your G/L that will "accrue" what the costs are of servicing the customer. My suggestion would be to set the account determination for the Labor/Travel item(s) to item level and define the Revenue/Expense accounts to specific G/L accounts.
    Let me know if you need more information or assistance with the above.
    Kind regards
    Peter Juby

  • Programming for HR  special sheet of working hours

    Sirs!
      Question on programming for HR.
    Through what tables/fields of info-types it is necessary to use
    to contact tables T552A, T550A for formation of the special sheet of working hours.
      I.e. as on PERNR to take data from таbles T552A, T550A, the rest - a trick.
    Yours faithfully
    Al
    e-mail: powgt at rambler.ru

    Hi Varun
    If you have that excessive experiance in ABAP then you wont any difficulty in HR ABAP. All you have to do is to examine the codes in HR ABAP Reports and different applications.
    If you are dealing with Payroll, learn how to read payroll. How to read different clusters of HR. and there are tons of codes available for this. for example I came across few on www.****************.  Moreover learn how to use macros and logical databases. Get yourself acquinted with HR tables.
    As far as BSP is concerned, it will be real handy if you are working on Employee/Manager Self Service.
    - If you compare HR ABAP with ABAP in Logistics then its very different. A different mind set is involved as emphasis shifts on dates and infotypes. The data fetching procedure is different than logistics. Here you use more logical databases and macros than Selects.
    Regards
    Waz
    Edited by: Waz on Dec 18, 2007 10:05 AM

  • Infoset with ldb IOC - error in selection parameter

    Hi Expers,
    could any of You pls help me with an issue - creating infoset with ldb, and get error in selection parameter definiton.
    I am about to create an infoset than a query, using IOC logical database, and get a couple of error message related to selecion parameters - such as: error in sel. parameter P_PICK is - Statement concluding with "...TYPE" ended unexpectedly.
    I do not really need this parameter for my selection, so I was to delete - but I could not find it amongst the selection fields in actual infoset. When I tried to create it, I got a message: it has already been created (of course), but where can I find / change it if not amongst listed selection parameters (Extras / Selection)
    I suppose I can not make any changes in DBIOCSEL - because COOIS is also using this ldb - and it might have some unexpected effect there as well.
    Later I started to create a Z*report via SE80, using same ldb, and it works fine.
    So it is not a burning issue any more, but still interesting, why infoset has problem with the sel. parameter which is actually not in use.
    All usefull answer is appreciated
    Br

    Hi,
    the selection screen is coded without a number. Here's the code:
    SELECTION-SCREEN BEGIN OF BLOCK selection WITH FRAME TITLE text-t11.
    SELECTION-SCREEN BEGIN OF BLOCK persdata WITH FRAME TITLE text-t01.
    SELECT-OPTIONS so_pernr FOR ls_pa0017-pernr.
    SELECTION-SCREEN END OF BLOCK persdata.
    SELECTION-SCREEN END OF BLOCK selection.
    SELECTION-SCREEN BEGIN OF BLOCK input WITH FRAME TITLE text-t12.
    SELECTION-SCREEN BEGIN OF BLOCK zeitraum WITH FRAME TITLE text-t02.
    PARAMETERS pa_begda TYPE p0017-begda DEFAULT sy-datum OBLIGATORY.
    PARAMETERS pa_endda TYPE p0017-endda DEFAULT '99991231' OBLIGATORY.
    SELECTION-SCREEN END OF BLOCK zeitraum.
    SELECTION-SCREEN BEGIN OF BLOCK gruppierungen WITH FRAME TITLE text-t03.
    PARAMETERS pa_spebe TYPE p0017-spebe OBLIGATORY DEFAULT '1'.
    SELECTION-SCREEN END OF BLOCK gruppierungen.
    SELECTION-SCREEN BEGIN OF BLOCK zuordnungen WITH FRAME TITLE text-t05.
    PARAMETERS pa_bukrs TYPE p0017-bukrs MATCHCODE OBJECT c_t001 DEFAULT '2000'.
    PARAMETERS pa_gsber TYPE p0017-gsber MATCHCODE OBJECT h_tgsb DEFAULT '0001'.
    SELECTION-SCREEN END OF BLOCK zuordnungen.
    SELECTION-SCREEN END OF BLOCK input.
    SELECTION-SCREEN BEGIN OF BLOCK attributes WITH FRAME TITLE text-t13.
    PARAMETERS pa_test AS CHECKBOX DEFAULT 'x'.
    SELECTION-SCREEN END OF BLOCK attributes.
    Regards
    Mark-André

  • How to get the selection parameter values to Posting logic method

    How can i  read the selection parameter values at " posting logic" method, which are given in  " Select Option function module"?

    max bianchi wrote:
    Hi
    >
    > The selection-screen data are stored in ABAP memory, so it need to clear it .
    >
    > Now how set ID parameter can depend on SAP release, anyway in ECC 6 this should work:
    >
    >
    INITIALIZATION.
    >   DATA: BEGIN OF MEMKEY,
    >           REPORT  TYPE SY-REPID VALUE SY-REPID,
    >           VARIANT TYPE RSVAR-VARIANT,
    >           INT_MODE(2) TYPE N,
    >           KIND(1)     TYPE C,
    >         END OF MEMKEY.
    >
    >   SYSTEM-CALL INTERNAL MODE INTO MEMKEY-INT_MODE.
    >   FREE MEMORY ID MEMKEY.
    >
    > But in this way it'll clea whole selection-screen...do you wnat do it?
    >
    > Max
    @Max : The above hack seem to work fine unless you assign a  'DEFAULT' value to the selection fields.
    @OP   : Here is an other work around,  however, this approach needs an additional effort to create
        new PF-STATUS('MYLIST') and assign a function code of your choice to the function keys in the standard toolbar and handle them in the 'AT USER-COMMAND'   event as shown below. Let us know if you have/find any issues with this.
    PARAMETERS:
      p_test TYPE char5 DEFAULT '123'.
    AT USER-COMMAND.
      CASE syst-ucomm.
        WHEN 'MBACK'.
          SUBMIT zytest WITH p_test = '' VIA SELECTION-SCREEN.
      ENDCASE.
    START-OF-SELECTION.
      SET PF-STATUS 'MYLIST'.
    -Rajesh.

Maybe you are looking for

  • How can I disable Keyboard ShortCut???

    Hi everyone, I use to write my PL/SQL in SQL Developer because the great features it offers. But I've noticed when I press ctrl + down or ctrl + up in the editor, it inserts code from the history, a very interesting feature, but it is a bit difficult

  • Can I export an .mp4 file created by Adobe Premiere Pro CS4 to tape using alternative software?

    I am editng with Premiere Pro CS4 on a Windows XP system.  I attempt to disable all startup and background software .  When i export a one hour completed project to tape, I invariably get at least one glitch (momentary stop) on the resulting tape. Is

  • Can't import into imovie using HV20 as AV/DV bridge

    I've trying to import some old VHS footage from a VHS player to imovie v6.0.3 using a Canon HV20 as a analogue to digital convertor. I've got about 30GB free space on my Intel imac. It captures a fraction of a second of VCR image and then switched to

  • Measure usage  at user level

    Hi, Is there any way i can measure or see how my sap resources being utilised, apart from ewa report where i get only consolidated report on db,transaction etc, i am looking at the report  where i want to see how much each user is using or accessing

  • Trying to upgrade iTouch software

    I tried to upgrade the software from 1.1.2 to 1.1.3. The first time I got an error message part of which read "Unknown error(1602)". The iPod disappeared from iTunes. Unplugging the iTouch from the system did no good. I then exited iTunes and restart