SHIFT - fieldsymbol

Hello,
     In my program I have to use SHIFT inorder to shift the contents of the field symbol deleting the leading spaces.
  Field symbol will be assigned of any type(c,n,d,P,).
Problem :-
  When field symbol is assigned with a decimal value, The code short dumps.
  Is there any other command which gives the same functionality. Or is there some thing i have to modify with SHIFT. Please let me know the solution.
Thanks
  SDN powered

That's funny, it does dump for me at all.
report zrich_0001 .
data: c(10) type c value '0000012345',
      p type p decimals 2 value '12345.67',
      n(4) type n value '0003'.
field-symbols: <fs>.
assign c to <fs>.
shift <fs> left deleting leading '0'.
write:/ <fs>.
assign p to <fs>.
shift <fs> left deleting leading '0'.
write:/ <fs>.
assign n to <fs>.
shift <fs> left deleting leading '0'.
write:/ <fs>.
Regards,
Rich Heilman

Similar Messages

  • Appending values to dynamically created fieldsymbol

    Hi ,
    I have a requirement to append values to dynamically created fieldsymbols
    from internal table   .
    I am using the following code but it dosnt work
    <F4> declared as line of <dyn_table>.
    loop at it_tab into wa_tab .( this contain the data to be appended to dyn fieldsymbol)
    loop at it_fieldcat into wa_fieldcat. ( this contains the fieldnames )
    case wa_final_fieldcat-FIELDNAME.
    when 'AAA'.
    v_field_name = 'AAA.
    when 'BBB'.
    v_field_name = 'BBB'.
    endcase.
    ASSIGN COMPONENT v_field_name of STRUCTURE wa_tab to <F4>.
    endloop.
    append <f4> to <dyn_table>
    ********************************************8
    But only get one value i.e field BBB  value appended to
    <dyn_table>.
    is there any way i can do the append to field symbol looping through internal
    table ?
    thanks
    raj

    i done it in alv so take the part you need .
    1) to create dynamic table  :  CALL METHOD CL_ALV_TABLE_CREATE=>CREATE_DYNAMIC_TABLE
    also create dynamic fieldcatalog .
    2) you can pull data just one time from the DB to dynamic table
    so i take the data in regulare it table and in the and i put it
    in the dynamic table
    hope i help  , if you didnt understand some part  , say so  .
      DATA  : LT_FCAT   TYPE LVC_T_FCAT  ,
             lo_struct TYPE REF TO data,
               LV_STRUC_NAME TYPE TABNAME VALUE 'YMM_ST_TNUOT_MLY'.
    REFRESH ls_fcat.
      CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'
        EXPORTING
          I_STRUCTURE_NAME       = LV_STRUC_NAME
          I_BYPASSING_BUFFER     = 'X'
        CHANGING
          CT_FIELDCAT            = IT_COLUM_HEADER
        EXCEPTIONS
          INCONSISTENT_INTERFACE = 1
          PROGRAM_ERROR          = 2
          OTHERS                 = 3.
      IF SY-SUBRC <> 0.
       MESSAGE e402(mo) WITH lv_struc_name.
        EXIT.
      ENDIF.
      DATA INDX(3) .
      IF G_COUNETR_NUMBER_OF_KOSTL > 0 .
        DO G_COUNETR_NUMBER_OF_KOSTL TIMES.
          INDX = SY-INDEX.
          SHIFT INDX LEFT DELETING LEADING SPACE.
          CONCATENATE 'KOSTL' INDX INTO LS_FCAT-FIELDNAME.
          LS_FCAT-INTTYPE    = 'I'.
          LS_FCAT-COL_POS =  27 +  SY-INDEX .
          CONCATENATE TEXT-028    INDX INTO LS_FCAT-COLTEXT.
          LS_FCAT-OUTPUTLEN = 10.
          APPEND LS_FCAT TO IT_COLUM_HEADER.
        ENDDO.
      ENDIF.
      CALL METHOD CL_ALV_TABLE_CREATE=>CREATE_DYNAMIC_TABLE
        EXPORTING
          IT_FIELDCATALOG           = IT_COLUM_HEADER
        IMPORTING
          EP_TABLE                  = GT_TABLE
        EXCEPTIONS
          GENERATE_SUBPOOL_DIR_FULL = 1
          OTHERS                    = 2.
      ASSIGN GT_TABLE->* TO <DYN_TABLE>.
    *--> Arbeitsbereich dynamisch erzeugen
      CREATE DATA LO_STRUCT LIKE LINE OF <DYN_TABLE>.
      ASSIGN LO_STRUCT->* TO <WA>.
      LOOP AT IT_COLUM_HEADER INTO LS_FCAT.
        IF LS_FCAT-FIELDNAME NE 'MANDT'.
          ADD 1 TO LS_FCAT-COL_POS.
          PERFORM TRANSLATE_HEADER.
          MODIFY IT_COLUM_HEADER FROM LS_FCAT.
        ENDIF.
      ENDLOOP.
    =============   assigning to dynamic table
    DATA  : FIELD(10)   ,
               INDX1(3) .
      DATA: WA_DREF TYPE REF TO DATA.
      DATA :  FS_SUM_GL LIKE LINE OF IT_YMM_ST_TNUOT_MLY.
      CREATE DATA LP_DATA LIKE LINE OF <DYN_TABLE>.
      ASSIGN LP_DATA->* TO <LS_LINE>.
      LOOP AT IT_YMM_ST_TNUOT_MLY.
        MOVE-CORRESPONDING IT_YMM_ST_TNUOT_MLY TO <LS_LINE>.
        INSERT <LS_LINE> INTO TABLE <DYN_TABLE>.
      ENDLOOP  .
      DATA L_COUNTER_ROLL TYPE I .
      LOOP AT <DYN_TABLE> INTO <LS_LINE> .
        MOVE-CORRESPONDING <LS_LINE> TO FS_SUM_GL.
        CLEAR : FIELD , INDX1 , L_COUNTER_ROLL .
        L_COUNTER_ROLL = 1 .
        LOOP AT IT_EKKN  WHERE EBELN = FS_SUM_GL-EBELN.
                        AND   EBELP = FS_SUM_GL-EBELP.
         IF SY-SUBRC  = 0  .
          INDX1 = L_COUNTER_ROLL.
          SHIFT INDX1 LEFT DELETING LEADING SPACE.
          CONCATENATE 'KOSTL'  INDX1 INTO FIELD .
          ASSIGN COMPONENT FIELD  OF STRUCTURE <LS_LINE> TO <FS1>.
          <FS1> = IT_EKKN-KOSTL .
          MODIFY <DYN_TABLE> INDEX SY-TABIX FROM  <LS_LINE> .
          L_COUNTER_ROLL = L_COUNTER_ROLL + 1 .
         ENDIF.
        ENDLOOP .
      ENDLOOP .

  • Can I switch calendars (Ex. "night shift" to "day shift" cal) with a repeating event, but ONLY for that one event??  It asks "for all events or only this event" if i change the time.  But it changes ALL events when i try and switch calendars.  Any help??

    I have 2 calendars set up for my work schedule, a "night shift" and "day shift" calendar.  I've set up repeating events fro Fri/Sat/Sun 3-11pm "night shifts" and Mon/Tues 7am-3pm "day shifts".  But lets say for example that I swap shifts and instead of working nights on Saturday like I normally would, I am now working days.  I want to change that in my calendar.  When I go to change the event, if i change the TIME it asks if i want to change all event or ONLY this event.  no problem....just this single event.  but when i go to change the event from the "night shift" calendar to the "day shift" calendar, it changes ALL the repeating events, and not just that one single event.   can anyone help with this???  am i doing something wrong?  is there a way to do this or not with the new iCal program???  i used to do this and never had any problems.    Thank you!

    You need to follow iPhoto terms since we only know what you tell us
    what are you calling folders - in iPhoto folders can not hold photos - albums hold photos and folders hold albums or other folders
    The basic default view of photo is by event (iPhoto '08 and later)
    Exactly what you you trying to do?
    LN

  • Colour shift in save for web when saving on PC and then viewing on Mac

    Hey peeps, I am aware of this colour shift when saving images for web.  I have a designer resizing, cropping photos, and then saving on PC. He uses PC and when he sends the photos over to me on my Mac there is a big colour shift (photos are much lighte
    Could anyone please explain exactly what he needs to do in order for these photos to look the same as the originals on my computer, basically no lightness shift?  Any help would be much appreciated.
    Thanks
    Adam

    Because the WWW is based on untagged (2.2 gamma) sRGB - your genius is probably sending you untagged sRGB if they were Saved for the Web (that's how I prepare my Web color).
    Your Mac display should be profiled to 2.2 gamma (you are likely at the old default 1.8 gamma now if you're seeing a lightness shift on untagged sRGB)...if you want "your color" back in Photoshop, you will need to (re)Assign the sRGB profile...

  • I need an alert message if I press ctrl shift b

    Hi All,
    I Need an alert message if I Press "ctrl+shift+b"(to make the selected text bold). Is this possible?
    Regards,
    Chinna

    Create a keyboard shortcuts (ctrl + shift + b) for your script and try...
    Code must be like this:
    alert("Bold Shortcut....");
    app.selection[0].fontStyle = "Bold";
    P.S.: you have to set conditions for bold, bold italic, etc. 
    Vandy

  • Photoshop CS6 colors have shifted for PSD files; no longer match Bridge colors, resulting jpg colors off too

    Until last night, Photoshop has been working relatively well** (see below) However, I processed a batch of DNG files through Bridge and saved them as PSDs.  When I opened up the new PSD files in PSCS5, the colors had shifted - more green, less saturated. 
    I went back to the DNG files and opened each up separately in PS - the color looked good.  I edited them, saved them as PSD files, and reopened them in PS - the colors were bad. 
    I cleared the Preferences (by holding Ctrl+Alt+Shift) when restarting PS.  Although it cleared up the pre-existing issue explained below **, it didn't fix the issue with the colors.
    I rebooted my computer.  No luck.
    I looked for available updates. None available.
    I recalibrated my monitor (ColorMunki).  No luck.
    I don't know what I did/what happened to cause the problem.  The day before, everything was fine.
    I tried to fix it by experimenting with option under View.  The closest I could get the colors to matching those shown in Bridge was to set  View--Proof Colors-- Monitor RGB.
    But here's the kicker - when I did a "save as" in PS the resulting jpeg had the same gross color shown in PS before setting the proof colors to Monitor RGB - and the jpeg colors are gross in Bridge and PS!  The same thing happens if I run a batch of PSDs via Bridge and save them as jpegs.  The resulting jpegs look gross in both PS and Bridge.
    HELP!
    I'm using a PC with Windows 7.  All the images jpegs, DNG and PSD are in the RBG color space.
    **(except for one weird issue - when I would try to open up a color balance layer, it would open a levels layer instead)

    Until last night, Photoshop has been working relatively well** (see below) However, I processed a batch of DNG files through Bridge and saved them as PSDs.  When I opened up the new PSD files in PSCS5, the colors had shifted - more green, less saturated. 
    I went back to the DNG files and opened each up separately in PS - the color looked good.  I edited them, saved them as PSD files, and reopened them in PS - the colors were bad. 
    I cleared the Preferences (by holding Ctrl+Alt+Shift) when restarting PS.  Although it cleared up the pre-existing issue explained below **, it didn't fix the issue with the colors.
    I rebooted my computer.  No luck.
    I looked for available updates. None available.
    I recalibrated my monitor (ColorMunki).  No luck.
    I don't know what I did/what happened to cause the problem.  The day before, everything was fine.
    I tried to fix it by experimenting with option under View.  The closest I could get the colors to matching those shown in Bridge was to set  View--Proof Colors-- Monitor RGB.
    But here's the kicker - when I did a "save as" in PS the resulting jpeg had the same gross color shown in PS before setting the proof colors to Monitor RGB - and the jpeg colors are gross in Bridge and PS!  The same thing happens if I run a batch of PSDs via Bridge and save them as jpegs.  The resulting jpegs look gross in both PS and Bridge.
    HELP!
    I'm using a PC with Windows 7.  All the images jpegs, DNG and PSD are in the RBG color space.
    **(except for one weird issue - when I would try to open up a color balance layer, it would open a levels layer instead)

  • Query to print Which Shift based on the time

    Need to sort and sum data based on the shifts in our department....
    First shift runs from 4:50 am to 2:45 pm, second shift runs from 3:00 pm to 1:00 am and any time in between is the break time.
    I cannot get the data to print first shift , break time and second shift correctly
    Sample Data :
    DROP TABLE TIME_SHIFT CASCADE CONSTRAINTS;
    -- TIME_SHIFT (Table)
    CREATE TABLE TIME_SHIFT ( TRX_DATE DATE ) ;
    Insert into TIME_SHIFT (TRX_DATE) Values (TO_DATE('10/03/2011 10:30:23', 'MM/DD/YYYY HH24:MI:SS'));
    Insert into TIME_SHIFT (TRX_DATE) Values (TO_DATE('12/30/2011 11:40:02', 'MM/DD/YYYY HH24:MI:SS'));
    Insert into TIME_SHIFT (TRX_DATE) Values (TO_DATE('12/30/2011 23:55:10', 'MM/DD/YYYY HH24:MI:SS'));
    Insert into TIME_SHIFT (TRX_DATE) Values (TO_DATE('12/30/2011 16:54:15', 'MM/DD/YYYY HH24:MI:SS'));
    Insert into TIME_SHIFT (TRX_DATE) Values (TO_DATE('10/03/2011 10:26:10', 'MM/DD/YYYY HH24:MI:SS'));
    Insert into TIME_SHIFT (TRX_DATE) Values (TO_DATE('10/04/2011 00:30:08', 'MM/DD/YYYY HH24:MI:SS'));
    Insert into TIME_SHIFT (TRX_DATE) Values (TO_DATE('10/04/2011 02:47:08', 'MM/DD/YYYY HH24:MI:SS'));
    Insert into TIME_SHIFT (TRX_DATE) Values (TO_DATE('10/12/2011 15:30:08', 'MM/DD/YYYY HH24:MI:SS'));
    Insert into TIME_SHIFT (TRX_DATE) Values (TO_DATE('10/04/2011 00:00:00', 'MM/DD/YYYY HH24:MI:SS'));
    Insert into TIME_SHIFT (TRX_DATE) Values (TO_DATE('10/04/2011 12:00:00', 'MM/DD/YYYY HH24:MI:SS'));
    Insert into TIME_SHIFT (TRX_DATE) Values (TO_DATE('11/22/2011 03:00:00', 'MM/DD/YYYY HH24:MI:SS'));
    COMMIT;
    SELECT TO_CHAR (trx_date, 'MM/DD/YYYY') ,TO_CHAR (trx_date, 'HH:MI:SSAM')
    -- (case
    -- when TO_CHAR(trx_date,'HH24:MI:SS') between '04:50:00' and '14:45:00'
    -- then 'FIRST SHIFT'
    -- when TO_CHAR(trx_date,'HH24:MI:SS') between '15:00:00' and '01:00:00'
    -- then 'SECOND SHIFT'
    -- else 'BREAK TIME'
    -- end
    -- ) WHICH_SHIFT
    FROM TIME_SHIFT ;
    Expected result :
    10/03/2011        10:30:23AM     FirstShift
    12/30/2011        11:40:02AM     FirstShift
    12/30/2011        11:55:10PM     SecondShift
    12/30/2011        04:54:15PM     SecondShift
    10/03/2011        10:26:10AM     FirstShift
    10/04/2011        12:30:08AM     FirstShift
    10/04/2011        02:47:08AM     BreakTime
    10/12/2011        03:30:08PM     SecondShift
    10/04/2011        12:00:00AM     SecondShift
    10/04/2011        12:00:00PM     FirstShift
    11/22/2011        03:00:00AM             BreakTimeThanks for the help in advance.

    Hi,
    In everyday speech, when we hear "Between 3:00 PM and 1:00 AM", we understand that it means one range of 10 consecutive hours. That's not how the SQL BETWEEN operator works, however. "x BETWEEN y AND z" in SQL is exactly equivalent to "x >= y AND x <= z". If y < z, it never be TRUE.
    Here's one way to do what you want:
    SELECT     TO_CHAR (trx_date, 'MM/DD/YYYY')
    ,     TO_CHAR (trx_date, 'HH:MI:SSAM')
    ,     CASE
             WHEN  TO_CHAR (trx_date, 'HH24:MI:SS') BETWEEN '04:50:00'
                                                  AND         '14:45:00'
             THEN  'FIRST SHIFT'
             WHEN  TO_CHAR (trx_date, 'HH24:MI:SS') BETWEEN '01:00:01'
                                                  AND         '14:59:59'
             THEN  'BREAK TIME'
             ELSE  'SECOND SHIFT'
         END               AS which_SHIFT
    FROM      time_shift
    ; This is close to what you tried, which was
    (1) see if it's First Shift
    (2) if not (1), see if it's Second Shift
    (3) if not (1) or (2), it must be Break time
    The problem with that is that, as far as SQL is concerned, going just by HH24:MI:SS, the Second shiift is two disjoint periods, and you have to test for each one separately. The query above reverses the last two tests:
    (1) see if it's First Shift
    (2) if not (1), see if it's Break Time
    (3) if not (1) or (2), it must be Second Shift
    It would be a little more coding, but perhaps clearer, to do it this way
    ,     CASE
             WHEN  TO_CHAR (trx_date, 'HH24:MI:SS') BETWEEN '04:50:00'
                                                  AND         '14:45:00'
             THEN  'FIRST SHIFT'
             WHEN  TO_CHAR (trx_date, 'HH24:MI:SS') BETWEEN '15:00:00'
                                                  AND         '24:00:00' -- or '23:59:59', if you prefer
               OR  TO_CHAR (trx_date, 'HH24:MI:SS') BETWEEN '00:00:00'
                                                  AND         '01:00:00
             THEN  'SECOND SHIFT'
             ELSE  'BREAK TIME'
         END               AS which_SHIFT I wish we could mark questions as "Correct" or "Helpful". You provided a good set of sample data in a useable form (you even included DROP TABLE and COMMIT statements), you gave a clear explanation of the problem with the desirred results, and you showed what you had already tried. Lots of people who have used this forum for years haven't learned to do that yet. Keep up the good work!
    Don't forget to mention which version of Oracle you're using. In this example, it may not matter. (The query above will work in Oracle 8.1 or higher.) But it never hursts o say something like "I'm using Oracle 10.2.0.3.0".
    Edited by: Frank Kulash on Dec 1, 2011 12:23 PM

  • Adobe Muse page is shifting to the left

    Hello,
    I love Adobe Muse and have been using it for some time now. I HAVE had this problem before but it was due to elements being placed outside of the page area, so of course I investigated that first. Unfortunately, I'm still having that problem and I've triple checked my elements to make sure they werent hanging off but I'm still not getting the page to allign when opening the page in IOS. I read another feed that offered a code = <meta name = "viewport" content = "width = XXX" initial-scale = 1.0> to be put into the metadata but that isn't working either. I have included a link to the page below.
    Can anyone lend a hand? It would be greatly appreciated.
    http://ultimateretreats.org

    I am having a similar problem when I preview my mobile in Muse. All of my content gets shifted to the left or the menu get's shifted to the left. I don't have any elements or objects on the page the are overlaping into the browser background area of the site either. Please check out the screen shots that I have included below. I would VERY much appreciate a solution to this problem.
    Thank you!

  • Is there a routine one can use to shift the column of data by one each time the loop index increments? In other words, increment the columns that the data is being saved by using the index?

    The device, an Ocean Optics spectrometer in columns of about 9000 cells.I'm saving this as a lvm file using the "write to measurement file.vi". But it doesn't give me the flexibility as far as I can tell.
    I need to move the column by the index of the for loop, so that when i = n, the data will take up the n+1 column. (the 1st column is used for wavelength). How do I use the "write to spreadsheet file.vi" to do this? Also, if I use the "write to spreadsheet file.vi", is there a way one can increment the file name, so that the data isn't written over. I like what "write to measurement file.vi" does.
    I'd really appreciate any help someone can give me. I'm a novice at this, so the greater the detail, the better. Thanks!!!

    You cannot write one column at a time to a spreadsheet file, because a file is arranged linearly and adding a column would need to move (=read and rewwrite elsewhere) almost all existing elements to interlace the new data. You can only append new rows without having to touch the already written data.
    Fields typically don't have fixed width. An exception would be binary files that are pre-allocated at the final size. In this case you can write columns by setting the file positions for each element. It still will be very inefficient.
    What you could do is append rows until all data is written, the read, transpose, and write back the final file.
    What you also could to is build the final array in a shift register and write the entire things to file at once after all data is present.
    LabVIEW Champion . Do more with less code and in less time .

  • Horizontal shifting bars on MBP 15 after disconnecting 24" LED cinema display and waking up from clamshell mode.

    I use my MBP 15 (late 2011) with 24" Apple LED Cinema display in a clamshell mode. After disconnecting external display, and opening display, it shows horizontal shifted bars, so it becomes completely unusable. Have to hard reset laptop. Any hints on how to resolve this? Thanks.

    Ok, more information for anyone that might care. The wake-up seems to be the familiar dark wake in order to go into hibernate mode. Except now, it's a death wake. Looking at the logs, I see that it happens exactly 70 minutes after sleeping, even though hibernatemode = 0 (which shouldn't hibernate at all!)
    So my power settings look like this:
    Currently in use:
    standbydelay         4200
    standby              1
    halfdim              1
    hibernatefile        /var/vm/sleepimage
    darkwakes            0
    gpuswitch            2
    disksleep            10
    sleep                10
    autopoweroffdelay    14400
    hibernatemode        0
    autopoweroff         1
    ttyskeepawake        1
    displaysleep         2
    acwake               0
    lidwake              1
    standbymode is 70 minutes, what a coincidence. I'm going to try setting it to 0 and see what that does.

  • I am forced to hold shift and refresh the page on 99% of the sites I visit. How do I fix this from happening? If I don't the pages are missing style sheets and etc.

    When ever I go to sites they half load or are missing style sheets. If I view the source for the page and click on a style sheet link I get the following error:
    Content Encoding Error
    The page you are trying to view cannot be shown because it uses an invalid or unsupported form of compression.
    If I hold shift and refresh the page loads as normal.
    It's happening on 99% of the sites I visit. I have disabled my plugins and add-ons.
    I do have some add-ons or plugins that I would like to remove completely but there is no uninstall or remove option, neither in regular or safe mode.

    '''I'm NOT buying a backup Computer till, Firefox will Run on Windows 8 !'''

  • My client current process shift amount is prorating.   Now my client requirement  employee change shift (SE20321D)   to normal (NSO70012) in the mid of the month employee will get shift  full amount,

    Hi Experts,
    Please help me to solve this two issues
    I will give you clearly about my client requirement
    in the current system (existing)  already configured  for shift allowance.
    shift allowance for executive
    Shift Allowance Rates
    2 shift
    3 shift
    RM  240
    RM 330
    shift allowance for non executive
    Shift Allowance Rates
    Category 1
    Category 2
    2 shift
    3 shift
    2 shift
    3 shift
    RM  180
    RM 280
    RM 95
    RM 130
    they are not maintained (there is no any key)   in info type 0014 or info type 0015  they earliest hr consultant  copied to  the Shift Allowance wage types :- 5533, 5534,5535,5536,5537,5538and 5559
    Note : 5533 & 5536 are for Payment.
    Other wage types are for calculation purposes only.
    And they modified (standard LAP9)  YAP9 (copied)  schema written pcr  for shift allowance
    The pcrs are YSH1,YSH2,YSH3,YSH4,YSH5,YSH6,YSH7,YSH8,AND YSHF
    1) So my actual my client requirement (Issue 1)
        In my client current process shift amount is prorating.   Now my client requirement  employee change shift (SE20321D)   to normal (NSO70012) in the mid of the month
    employee will get shift  full amount
    2) client requirement (Issue 2)     Shift Allowance become prorate if the Action (Info type 0000)  in the same month have changes. (Depand the action type)
    Actions are
    WA,WB,WC,WD,WE,WF,WG,WH,WI,WJ,WK,WL,WM,WN,WO,WP
    XO,X1,X2,X3,X4,X5,X6,X7,X8,X9.
    XA,XB,XC,XD,XE,XF,XG,XH,XI,XJ,XK,XL,XM,XN,XP,XQ,XR,XS,XT,XW,XX,XY,XZ.
    Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7
    YA,YB,YC,YD,YE,YF,YG,YH,YI,YJ,YK,YL,YM,YN,YP,YQ,YU,YV,YW,YX,YY,YZ
    Z9,ZY
    Example
    in same month employee changed action on 20.07.2014
    Kindly help me to solve this issues  feel very happy for your help.and if you need any information about issue please let me know i will share to you.
    Thank you
    Raamarao

    Try this, it works very well for me.
    import XMonad.Hooks.ManageHelpers (composeOne, isFullscreen, isDialog, doFullFloat, doCenterFloat)
    myManageHook = composeAll. concat $
    [ [ className =? c --> doCenterFloat| c <- floats]
    , [ resource =? r --> doIgnore | r <- ignore]
    , [ resource =? "gecko" --> doF (W.shift "net") ]
    , [ isFullscreen --> doFullFloat]
    , [ isDialog --> doCenterFloat]]
    where floats = ["sdlpal", "MPlayer", "Gimp", "qemu-system-x86_64", "Gnome-typing-monitor", "Vlc", "Dia", "DDMS", "Audacious", "Wine"]
    ignore = []
    myLayout = tall ||| Mirror tall||| Full ||| tab ||| float
    where
    tall = named "Tall" $ limitWindows 4 $ minimize $ Tall 1 (3/100) (1/2)
    tab = named "Tab" simpleTabbedBottom
    float = named "Float" simpleFloat
    main = do
    myStatusBarPipe <- spawnPipe myBar
    conkyBarProc <- spawnPipe conkyBar
    trayproc <- spawnPipe myTrayer
    xmonad $ ewmh $ withUrgencyHook NoUrgencyHook $ defaultConfig {
    terminal = "urxvt"
    , manageHook = manageDocks <+> myManageHook <+> manageHook defaultConfig
    Last edited by helloworld1 (2012-08-14 05:20:56)

  • Issue with Unpaid Absence for Rotating Shift Employees with Averaging Hours

    We run a biweekly payroll where full time employees are paid based on an 80 hr work shift per pay period.    We have a requirement where employees in production are on a rotating shift.  They may work 80, 88 or 72 hrs per pay period because  their work schedule rule is defined this way.  However, regardless if they worked 80, 88 or 72 hrs, these employees should still be paid based on 80 hrs of work (overtime will be paid extra).  Currently, our system handles it this way.  
    However, a problem comes up when the employee has an unpaid absence for the period. The WT  /801 is calculating a factor that results in incorrect pay.  For example, if an employee has an hourly rate of $10 (biweekly rate of $ 800), with a work shift of 88 hrs and 24 hrs unpaid absence for the period, the rule KPPF is calculating the factor (/801) to be: 64/88 = .7272, and therby paying 581.76 ($800 x .7272).   The calculation of /801 comes from the formula:
          total hrs worked (88) - unpaid hrs (24)
                    total hrs worked (88)
    Given our requirement, the correction calculation for the factor  should be:
      80 - 24    = .7
         80
    and the correct pay should be $560 ($800 x .7)
    I tried modifying rule KPPF, along with KPP0 and KPP1 and was able to make it work to fit our requirements.  However, the modification I made only works when there is only 1 WPBP record.  If there are multiple WPBP records , possibly caused by an personnel action , change of IT0007 or  IT0008 in the middle of the pay period,  it becomes way too complicated to modify the rule to handle each and every scenario.
    If anyone has come across a similar requirement, I would really appreciate if you could assist on how this should be handled.
    Thanks.
    Malou Navera

    Thanks Amosha,  Here is the PCR for calculating the factor during an unpaid absence:
    KPP1 Determine partial period factors (subrule)
          /801 Partial monthly factor 1
            RTE=TSSOLL Set
            RTE-TSAU** Subtraction
            RTE*KGENAU Multiplication
            RTE/TSDIVI Division
            ADDWT *    OT   Output table
    Here are the table values for an employee who is on an 88 hr shift, with 52 hrs of unpaid absence:
    Total period parameter
      Individual divisors for total period
      GSDIVI:          88.00
      GADIVI:          11.00
      GKDIVI:          14.00
    Partial period parameter for WPBP period 01
      Individual divisors for partial period in WPBP period 01
      TSDIVI:          88.00
      TADIVI:          11.00
      TKDIVI:          14.00
    Planned values for period from 01/25/2010 To 02/07/2010
    DWS class: 3           Day type: 0             PHoliday cl: 0
    TSSOLL:         88.00  GSSOLL:      88.00
    TASOLL:         11.00  GASOLL:      11.00
    TKSOLL:         14.00  GKSOLL:      14.00
    Table PARTA
      PParType  No  Valid from  Valid to    KAU**   AAU**   SAU**   KAP**   AAP**   SAP**   KAX**   AAX**   SAX**
      T         01  01/25/2010  02/07/2010    8.00    6.00       52.00     2.00     2.00      20.00    0.00       0.00      0.00
      G         00  01/25/2010  02/07/2010    8.00    6.00      52.00     2.00     2.00      20.00    0.00       0.00      0.00
    In this scenario, /801 was calculated at 40,909.09, it should be 35,000.
    Hoping to hear from you soon.
    Thanks.
    Malou

  • Some keys don't work in combination with Shift

    Okay  so I have the Pavilion Sleekbook  15-b011nr 
    Serial Number:   [Personal Information Removed]
    Product Number:   C6N92UA
    and today I noticed certain keys don't work in combination with the left Shift for example, Shift+S (both left and right), Shift+M, Shift+Z, Shift +X, Shift+C don't work, shift+F does work but gives me this FV. same with j it gives me JM instead. I installed an updated bios, ran a diagnostic test using F2 and under the compenant test for the keyboard it failed and gave me this
    keyboard test failed
    failure Id # U375BD-6m96P5-MFPX1F-G03B03 
    product id # C6N92Ua#aba
    now while trying to type all this I found other letters now working as well as me not being able to input the semicolon with either shift key. frustrating since I got this laptop in June so it's still under warranty. Has anyone else encountered this problem and if so how do i fix mine? I'm pretty tech savvy so feel free to let me know, or is my only option is a replacement from HP?
    Thanks!

    Hi hzapata, I know that it work fine, after Load preset, but why You lost the default configs?
    Is this my question to Smit.

  • Track volume doesn't shift when I shift track contents, probably simple!

    Hi all,
    So I am creating a mix-tape for mothers day and am trying to blend/overlap tracks using Garageband. I have each mp3 in a separate track and each track's "Track Volume" enabled and taking care of fade in/out. But now I need to shift all the tracks down to add a new track, or to rearrange tracks but when I do the Track Volume curves stay put. Any ideas? I feel like I may be coming at this mix-tape thing the wrong way. Its my first time in Garageband but I am pretty computer savvy dude. Any help would be awesome! Thanks!
    -Brandon

    I just found the "Lock Automation Curves to Regions" in the Control menu.
    Exactly what I was looking for. Thanks to anyone to read this, I hope it helps someone.

Maybe you are looking for