To determine shift timing based on a time stamp field

Hi all,
I have an issue with a determing shift timings.
I have a  time stamp field QALS-ENTSTEZEIT which has a value like 17:22:29.
Now based on this I have to determine the shifts.
There will be 3 shifts.
shift 1 between 08:00:00 to 16:00:00
shift 2 between 16:00:00 to 00:00:00
shift 3 between 00:00:00 to 08:00:00.
Now the issue is :this statement,
                         QALS-ENTSTEZEIT BETWEEN '00:00:01' AND '08:00:00'.
                         do not triggered.
Please suggest some solution.
Thanks and Regards
Nazmul

Hi,
Try the below code, it may solve your problem.
Data : V_TIME type QALS-ENTSTEZEIT, shift.
Ranges : R_T1 for QALS-ENTSTEZEIT , R_T2 for QALS-ENTSTEZEIT, R_T3 for QALS-ENTSTEZEIT.
R_T1-SIGN = 'I'.
R_T1-option = 'BT'.
R_T1-LOW = '080000'.
R_T1-HIGH = '160000'.
APPEND R_T1.
R_T2-SIGN = 'I'.
R_T2-option = 'BT'.
R_T2-LOW = '160000'.
R_T2-HIGH = '235959'. " Change like this, its not much difference from 000001 but seems to be working
APPEND R_T2.
R_T3-SIGN = 'I'.
R_T3-option = 'BT'.
R_T3-LOW = '000001'.
R_T3-HIGH = '080000'.
APPEND R_T3.
V_TIME = '172259'. " u can assign QALS-ENTSTEZEIT directly to v_time
*CONCATENATE V_TIME+0(2) ':' V_TIME+2(2) ':' V_TIME+4(2) INTO V_TIME. "no need for this
IF V_TIME IN R_T1.
SHIFT = '1'.
ELSEIF V_TIME IN R_T2 .
SHIFT = '2'.
ELSEIF V_TIME IN R_T3.
SHIFT = '3'.
ENDIF.
Check and revert back.
Regards
Karthik D

Similar Messages

  • Back-up of Specific Files based on their Time Stamp

    I use Time Machine, but I have 3 folders I like to back-up more frequently. I currently drag and drop them onto an external disk drive. This causes the Copy window to appear that says "An item named “XXXX” already exists in this location. Do you want to replace it with the one you’re moving? Apply to all?" etc. It then proceeds to write ALL files whether they have changed or not.
    What I'm looking for is an app that does basically the same thing EXCEPT only re-writes the file if it has changed based on the time stamp of the file. Also, if the file is no longer in the source folder, it will delete it in the back-up folder. And if it hasn't changed, doesn't bother to re-write it and leaves it untouched, saving substantial time.
    To be clear, I'm not looking for "Syncing" folders! I just want to back-up those files that have changed.
    Thanks!

    RalphTomaccio wrote:
    I use Time Machine, but I have 3 folders I like to back-up more frequently.
    More often than hourly?
    What I'm looking for is an app that does basically the same thing EXCEPT only re-writes the file if it has changed based on the time stamp of the file. Also, if the file is no longer in the source folder, it will delete it in the back-up folder. And if it hasn't changed, doesn't bother to re-write it and leaves it untouched, saving substantial time.
    CarbonCopyCloner and SuperDuper can do that, but I don't think you can schedule them more often than once per hour. They're used most often to make "bootable clones," but would work for your purpose as well. I don't use SD, but on CCC you could set up a "Scheduled task" and run it manually when desired.
    [CarbonCopyCloner|http://www.bombich.com> is donationware; [SuperDuper|http://www.shirt-pocket.com/SuperDuper/SuperDuperDescription.html] has a free version, but you need the paid one (about $30) to do updates instead of full replacements, or scheduling.
    You might want to investigate the Chronosync app; it might work, too.
    And/or, see Kappy's post on [Basic Backup|http://discussions.apple.com/thread.jspa?messageID=12366915#12366915].
    If you can wait until summer, and upgrade to Lion, it's "AutoSave" and/or "Versions" features might be helpful, too. See http://www.apple.com/macosx/lion/

  • How to Convert a 'Time Stamp' field to Date......?

    Hello Gurus:
    I am using a Generic Extractor to pull some stats data.  One of the field is a Time Stamp field, which tells me the date and time of Transaction run.  I only need "Date".  I tried mapping the stamp field to Date info-object hoping for a automatic determination of the Date.... (like the Week, Month happens).   Well, I was wrong! 
    I only need the Date part.  How can I do this in BI?  is teher a specific SAP info-object for this that could be used..?  If not, what would be the routine.  The Date field that comes in is a SAP format... "u201C20,070,505.0000000u201D meaning the Transaction was run
    on 05/05/2007.  How can I get this convertion in BI transaformation??  is there a special Routine...?
    Also, we are trying to use "Time Stamp" based DELTA from a generic extraction.  The field used is a System date with time stamp.  Value looks like u201C20100,505,170,113.2918470u201D, u201C20100,505,170,113.4748820u201D  Every record pulled has a different value... probably giving me the time at which the record was created or generated.  Now, with DELTA specifid on this type of field, what will be the 'Current Status" value in Delta queue?  Is it based on the last record created and will that be the highest value?  For next Delta extraction, does it compare the extraction time stamp to this value and bring in those records that are greater than the 'Current Status" value?  I guess with that we can have as many deltas as we want..... right??  is there any particular setting I should be doing or worried/ careful about setting etc....?
    Thanks for the response in advance....
    Best..... SMaa

    Thanks Akshay,
    Your suggestion worked right away and was probably the easiest of all.  I tried the Function Module that Pravender suggested,
    but it did not return me the date back.... may be because it does not need the Micro Seconds in it....?  Routine as suggested by
    Satyam might work too, but did not go there....! 
    Thanks to all of you.
    Best..... SMaa

  • SQ01 with Time Stamp Fields

    Hi,
    If I have Time Stamp Fields in my Query, is it possible to format these fields into having just the date (both in the selection screen as well as in the output list)?
    Rgds,
    /Fredrik.

    1) create a help-field
    2) use command
    CONVERT TIME STAMP tst TIME ZONE tz INTO DATE d TIME t.
    in infoset - coding
    A.

  • Time Stamp Field.

    Hi All,
    I am doing Generic extraction with view for sales order history.
    Can any body give me the examples of fields names, which could be used in sales orders, and we can use them as time stam fields in generic delta.
    Regards,
    Madhu

    Hi,
    Delta Generic DataSource time stamp fields
    Delta Generic DataSource
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/10b68b99-022e-2a10-999d-c4dc9ec24a59
    Create Generic Delta
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/84bf4d68-0601-0010-13b5-b062adbb3e33
    Re: Regarding Generic data source !
    Regards
    CSM Reddy

  • Get user details from OIM User From based on Last modified time stamp

    Hi Gurus,
    I have a requirement that i want user details from OIM(11gr1) User form based on some time stamp.
    suppose my time stamp is 201401011130.
    And i changed one user in user form at 201401011200 (let sau user name is mahesh)
    now when i run the java code based on the time stamp i want mahesh details. How can i do this.
    Please let me know.
    Regards
    Mahesh

    This is how you can run sql query.
    String query="write sql query";
    Connection con=Platform.getOperationalDS().getConnection();
    Statement st=con.prepareStatement(query);    // PreparedStatement is preferable instead of Statement
    ResultSet rs=st.executeQuery();
    while(rs.next())
    String userlogin =rs.String("usr_login");

  • Automatic GPS tagging based on shooting time and time from track

    I often use geotaging and it's nice to see this feature in Lr. Anyway I found it very usefull but I can't find the abbility to make automatical linking coordinates from GPS track to photo based on the shooting time. It will be enought for me to forget about any other software (such as GeoSetter). Hope to find this option in Lr 4 release.

    Yeah I knew that there is a point on the http://blogs.adobe.com/lightroomjournal/2012/01/lr4betanowavailable.html page:
    Load GPX tracklogs and auto tag images based on date/time stamps
    But it doesn't work for me.

  • Generic delta -time stamp behaviour

    Hi Experts,
    I have function  module relating to Controlling Application from table KEKO. i have fields like cretion date and time which can capture newly created or changed records.
    if i wanted to use Time filed as Generic  delta (KEKO-CPUTIME ), what is the procedure and how it behaves?
    - what is the safety interval we need to set?
    -At what time we need to run the delta loads?is it any time?
    -Do i need to write any ABAP code regarding Time stamp field?
    Appreciate your help.
    regards
    Raja.

    Hi,
    wherefore do you need the FM. If all your data is within this table you can use generic extractor on that. Within creation you can determine if delta should be enabled and which field to use. This is the simple way and should be sufficiant.
    An other way would be to dynamicly determine the selections within the infopackage. There you can define routines to select the data.
    The safety interval determines up to which time/date new records should be taken into account. Thats mainly due to the fact that some records might be still in buffers and not yet written to the database.

  • Help to read a table with data source and convert time stamp

    Hi Gurus,
      I have a req and need to write a ABAP prog. As soon as i excute ABAP program it should ask me enter a data source name, then my ABAP prog has excute teh code, in ABAP code i have to read a table with this data source as key, sort time stamp from table and should display the data source and time stamp as output.
    As follows:
    Enter Data Source Name: 
    Then user enters : 2lis_11_vahdr
    Then out put should be "Data source  :"  10-15-2008.
    The time stamp format in table is 20,050,126,031,520 (YYYYMMDDhhmmss). I have to display as 05-26-2005. Any help would be apprciated.
    Thanks,
    Ram

    Hi Jayanthi Babu Peruri,
    I tried to extract YEAR, MONTH, DAY separately and using
    EDIT MASK written it.
    Definitely there will be some STANDARD CONVERSION ROUTINE will be there. But no idea about it.
    DATA : V_TS      TYPE TIMESTAMP,
           V_TS_T    TYPE CHAR16,
           V_YYYY    TYPE CHAR04,
           V_MM      TYPE CHAR02,
           V_DD      TYPE CHAR02.
    START-OF-SELECTION.
      GET TIME STAMP FIELD V_TS.
      V_TS_T = V_TS.
      CONDENSE V_TS_T.
      V_YYYY = V_TS_T.
      V_MM   = V_TS_T+4(2).
      V_DD   = V_TS_T+6(2).
      V_TS_T(2) = V_MM.
      V_TS_T+2(2) = V_DD.
      V_TS_T+4(4) = V_YYYY.
      SKIP 10.
      WRITE : /10 V_TS," USING EDIT MASK '____-__-________'.
              /10 V_YYYY,
              /10 V_MM,
              /10 V_DD,
              /10 V_TS_T USING EDIT MASK '__-__-__________'.
    If you want DATE alone, just declare the length of V_TS_T as 10.
    Regards,
    R.Nagarajan.
    We can -

  • Date and Time stamp for the archives

    Hi,
    I'm trying to set up a date/time stamp field for a Documaker archive.
    I've added a TIME_STAMP field in my APPIDX.DFD and I populate the field using a DAL script, invoked by a PreTransDAL line in my AFGJOB file. That works fine but, the DAL script being invoked for every transaction, it adds to the processing time.
    I do not need an exact date/time stamp for each transaction in the batch, I could use the same one for all the transactions. That would require the TIME_STAMP global variable to be populated once, at the job level, at the beginning of each batch.
    Any suggestions?
    Thanks.

    Hi Gaetan,
    Try using a BatchBannerBeginScript to populate a GVM with the date/time, and then reference this GVM in your APPIDX.DFD. In this manner the value will be updated at the start of processing for each batch rather than each transaction. Or, consider the possibility of adding the transaction date/time into the extract data and then sourcing from that point. Either should work. In my experience most customers prefer that the archive date/time come from the system of record rather than the time the transaction was archived -- unless of course the customer actually wants to record the time the transaction was archived, in which case the method I've described above should work.
    Enjoy!
    Andy

  • Reading message from two queues and sort according the time stamp

    Hi
    I have a requirement where i have to read the message from two queue .. and sort according the Time stamp ( Field in payload ) and send it ot the Webservice ..
    How i acheive using the BPM..
    in the BPM i have to collect the message for every 20 sec ... and then sort it tout ...
    S V

    Do you mean from two sender? What do you exactly mean by "reading from two queues"?
    Regards,
    Prateek

  • Time Stamp not affected by change of calculated fields.

    Dear Experts,
    We have several calculated fields that are depended on values of lookup records or the system-time.
    I experienced during recalculation that when the calculated field changes the Time Stamp did NOT change. This change did also NOT trigger the workflow with Trigger Action: Record Update. AND the record is not Syndicated because the syndication map has Suppress Unchanged Records.
    Has anyone an idea how to solve this?
    Kind regards,
    Job Jansen

    Dear Kanstantsin,
    I don't know what you mean by "simple field" but I have 2 calculated fields one is Text and the other is Boolean. In both cases the Time Stamp is not updated during recalculation.
    Of course both fields are selected fields in the Time Stamp field.
    Kind Regards,
    Job Jansen

  • Update table from SM30 with automatic Time Stamp

    Hi,
    I have created a table maintenance generator for updating table from SM30.
    Now there are fields in my table which are CRETING TIME and CHANGING TIME. Both being TIMESTAMP field (datatype: RSDDTZNTSTMPS).
    Is it possible while user updates records/create new record in the table from SM30, these time stamp field to automatically get populated.
    Also is there any F4 help available for TIMESTAMP field?
    ags.

    Hi,
    You need to do two things inorder to get the desired results.
    1) Go to Screen Layout of the Screen created by table maintenance generator and make the date/time columns to DISPLAY ONLY. This will ensure that user is not able to modify the values at runtime
    2) Write the code in PAI of the Module pool program to populate the values at runtime using Sy-datum/sy-uzeit. (Hint : Search for INSERT/MODIFY statements which will show the location before which you need to write your logic)
    Regards,
    Kshitija

  • Time Stamp not being created correctly

    Afternoon,
    Unfortunately, when writing a timestamp using GET TIME STAMP FIELD f the time contained with field f is one hour behind what it should be.
    Also when we use the command CONVERT DATE d TIME t DAYLIGHT SAVING TIME dst INTO TIMESTAMP tst TIMEZONE tz  where sy-uzeit = t, sy-datum = d, sy-dayst = dst (X) and  sy-zonlo = GMTUK the time within tst is still one hour behind.
    The system time is set to GMTUK as is my userID. This issue has arisen since the UK switched to daylight saving time last Sunday.
    If anyone can provide an explanation as to why this is I would appreciate it.
    Thanks and regards
    John.

    Sudheer,
    Thanks for pointing me in the direction of that blog. It provided to be very useful. When getting a time stamp the system always returns UTC (Universal Time Coordinated) and ignores if daylight saving time is in operation.
    To convert a timestamp you use convert time stamp and use the time zone sy-zonlo to get the correct local time.
    Thanks and regards
    John.

  • Loading Time stamp from Flat File

    Dear Experts,
         I thank you for your kind support and replies.
       Again I am stuck in a issue. So I need your help.
       We are loading flat file data into a cube/dso. The flat file contains time stamp field.
    All the data are getting loaded properly except time stamp.
    The field is taking system date and time of data loading.
      I have taken the customized info-object like 0TCTTIMSTMP.
    Kingly guide me, where I am going wrong.
    Thanks,
    Sanjana

    Hi Experts,
          I am trying to load the flat file, the input format is attached below.
    Creation Date
    20,150,411,121,600
    20,150,406,032,600
    20,150,406,125,800
         but after loading into the ODS , the data is becoming
    20150424102709
    20150424102709
    20150424102709.  
       This means it is taking today's Date..
    I have the checked the PSA level, there also the data is 20150424102709.
    Also checked the Conversion  Routine, it is maintained with TIMES.
    Kindly suggest, what may be the cause or how can I work on this.
    Thanks,
    Sanjana.

Maybe you are looking for

  • No Method of Batch Export for Clips with Alpha Channels?

    Good morning, As many a flustered editor has eventually discovered, in order for FCP to export sequences with alpha channels to a 32-bit format, the timeline has to be un-rendered at the time of export, or else the transparent parts will appear black

  • Is there a way to clip files in DVD Studio Pro?

    Hi, I have a file that is 4.9gbs, 200 mbs over the max size for a dvd. I'm wondering if it's possible to clip/delete parts of a track (like in FCP) in dvd studio pro because I don't have time (took 9 hours to export). Any help is appreciated. Thank y

  • Redwood: Migration from Basic to Full version

    Hi All, Our client is now going ahead with OEM version of REDWOOD and will plan for full blown version in future. In this regard, we wanted to know the possibility of migrating all the existing stuff (like all the created scripts, job chains, time wi

  • Failing to install the python Numeric library

    I have the latest Xcode 3.1.2 developer tools installed. I need to install the python Numeric library since I want to use existing python modules which were developed several years ago using that library. I downloaded the Numeric-24.2 tar file from S

  • Error 0x800736FD

    I can't install Itunes 10.5 and QuickTime 7.7 either Please help D:'