APO : Problem in time stamp select option

Hi All,
    I am using a time stamp data elemnt (/SAPAPO/TSUCR) as select option in the selection screen. As the time stamp is a combination of date and time, the user is entering only the date in the selection screen. Say the user is entering data as 27.08.2006, inside the program the select option value is changed to 26.08.2006. We are getting a day less. how can we solve the problem. I had tried using adding a day in the program. Please post your valuable ideas if you had expierience same kind of problem.
Kind Regards,
Vijay Dhanasekar

Hi,
I am not sure if this would be correct.You can change the selection-screen parameter to type 'date' instead of 'timestamp' and convert it into timestamp inside the Program using the FM 'ADDR_CONVERT_DATE_TO_TIMESTAMP'.
Import parameters               Value   
IV_DATE                         2006/09/11        
IV_HIGH                         ' ' 
Export parameters               Value             
EV_TIMESTAMP                    20060911000000
regards,
Priya.
Message was edited by: Priya Prakash

Similar Messages

  • *.eml Time Stamp - Select File in Windows Explorer Changes the Modified Date

    The Windows Live Mail *.eml files time stamp is getting changed to the current date when the file is selected in the Windows Explorer! I save backup copies of important E-mails to folders on the Hard Drive and then synchronize them with the same folders on other LAN Hard Drives for backup archives. When these E-mail files are selected or opened from the Windows Explorer in the Windows 7 OPS the Modified Date Time Stamp is changed to the current date automatically! This action creates a real problem when doing later synchronizations of all of the folders! The date will not be the original date of the E-mail and the original file will be over copied with the file with the newest date stamp. I stopped Indexing on the *.eml files and that stopped the time stamp change when overcopy synchronization, but if the file is selected during a viewing in Windows Explorer then the Time Stamp is updated to the current date again! A solution to this problem would be greatly appreciated if anybody knows of one. Thanks - - - Shorto

    The Date and Timestamp changing issue in Windows 7 has a two part fix!
    1. Disable the Indexing of the *.eml file type in the Indexing Options located by Clicking on "Control Panel" -  "Indexing Options" - Advanced Button - File Types Tab - scroll down to the .eml file type and uncheck the Box then click OK to finish, so
    that the Email type of files won't be Indexed.
    2. Delete the Registry Entry listed below, be sure to Export and Save the original Key so it could be Restored if something goes wrong!  \HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\PropertySystem\PropertyHandlers
     and Delete the .eml entry
    That should fix the problem with the changing Date/Timestamp of Email Files. For more information read CarlS's WindowsSeven Fourm thread where I also have more input:
     http://www.sevenforums.com/browsers-mail/35334-eml-files-timestamps-updated-constantly.html
    This should give you a better understanding on the problem and the Fix. - - - Shorto

  • Problem with time stamp

    Hello,
    I got mistake in ODS manage like this:
    The time stamp in the source system is 24.09.2007
    The time stamp in the BW is 23.05.2009.
    I have problem to load data in ODS.
    What should I do ?? Replicate the data source ? But then it's possible to get double data. What to do ??
    THX

    I replicated data source, source system and loaded data one more time and I have got the same mistake.
    this:
    Error message from the source system
    Diagnosis
    An error occurred in the source system.
    System response
    An error occurred in Service API .
    Check the error message.
    Procedure
    The procedure for removing errors takes place depending on
    the error message:
    Note
    If the source system is a Client Workstation, then it is possible that the file that was to be loaded was being edited at the time of the data request. Make sure that the file is in the specified directory and is not being edited, and restart the request.
    AND ALSO mistake WITH TIME STAMP

  • Problem in Passing the select-options data in smartforms

    Dear ABAPers,
    I have developed new layout for Delivery Chellan using smartforms.
    using parameters i am getting document no, corresponding all details getting print.
    but the client wants to use multiple document no.
    in function module also i am passing only one import parameter (i.e. doc.no).
    my requirement is how to pass multiple data in smartfroms.
    Thanks & Regards,
    Ashok

    Dear ABAPers,
    Here i give my code Please check it out and tell me where i am going wrong.
    *& Report  ZMM_DC_FORM                                                 *
    REPORT  ZMM_DC_FORM                            .
           Data Declaration
    tables : mseg,
             mkpf,
             ekpo,
             ekko,
             objk,
             mbew,
             ser03,
             twlad,
             makt,
             adrc.
    data : begin of struct_mblnr,
           mblnr type mblnr,
           end of struct_mblnr.
    data : it_mblnr like table of struct_mblnr with header line.
    data : begin of i_struct,
           mblnr like mseg-mblnr,
           mjahr like mseg-mjahr,
           matnr like mseg-matnr,
           erfmg like mseg-erfmg,
           werks like mseg-werks,
           lgort like mseg-lgort,
           ebeln like mseg-ebeln,
           ebelp like mseg-ebelp,
           umwrk like mseg-umwrk,
           end of i_struct.
    data : begin of bednr_struct,
           matnr type ekpo-matnr,
           bednr type ekpo-bednr,
           end of bednr_struct.
    data : begin of price_struct,
           matnr type mseg-matnr,
           verpr type mbew-verpr,
           stprs type mbew-stprs,
           end of price_struct.
    data : begin of serial_struct,
           matnr like objk-matnr,
           sernr like objk-sernr,
           end of serial_struct.
    data : begin of fi_struct,
           matnr type mseg-matnr,
           maktx type makt-maktx,
           bednr type ekpo-bednr,
           erfmg type mseg-erfmg,
           verpr type mbew-verpr,
           val_p type mbew-verpr,
           end of fi_struct.
    data : it_tab like table of i_struct with header line.
    data : it_add1 type table of adrc with header line,
           it_add2 type table of adrc with header line.
    data : it_bednr like table of bednr_struct with header line.
    data : it_price like table of price_struct with header line.
    data : it_ser type table of ZMM_DC_SERIAL with header line.
    data : it_final like table of fi_struct with header line.
    data : s_date like mkpf-budat.
    data : s_ebeln like ekpo-ebeln.
    DATA : FM_NAME TYPE RS38L_FNAM.
            Selection Screen Variables
    selection-screen : begin of block b1 with frame title text-001.
    select-options : s_mblnr for mseg-mblnr.
    parameters : s_mjahr type mseg-mjahr.
    selection-screen : end of block b1.
              Start of Selection
    start-of-selection.
    select mblnr from mseg into table it_mblnr where mblnr ge s_mblnr-low
                                     and   mblnr le s_mblnr-high.
    delete adjacent Duplicates  from it_mblnr.
    *loop at it_mblnr.
    *write : it_mblnr-mblnr.
    *endloop.
    loop at it_mblnr.
    select mblnr
           mjahr
           matnr
           erfmg
           werks
           lgort
           ebeln
           ebelp
           umwrk from mseg into table it_tab where mblnr = it_mblnr-mblnr
                                           and   mjahr = s_mjahr
                                           and   xauto <> 'X'.
    read table it_tab index 1.
    *code for PO Number
    s_ebeln = it_tab-ebeln.
    *code for Supplying plant address
    select single adrnr from twlad into twlad-adrnr where werks = it_tab-werks
                                                    and   lgort = it_tab-lgort.
    select single * from adrc into it_add1 where addrnumber = twlad-adrnr.
    clear twlad-adrnr.
    *code for receiving plant address
    select single lgort from ekpo into ekpo-lgort where ebeln = it_tab-ebeln
                                                  and   ebelp = it_tab-ebelp.
    select single adrnr from twlad into twlad-adrnr where werks = it_tab-umwrk
                                                    and   lgort = ekpo-lgort.
    select single * from adrc into it_add2 where addrnumber = twlad-adrnr.
    clear : twlad-adrnr,
            ekpo-lgort.
    *code for the Material Document Date
    select single budat from mkpf into s_date where mblnr = it_mblnr-mblnr
                                                  and   mjahr = s_mjahr.
    loop at it_tab.
    it_final-matnr = it_tab-matnr.
    it_final-erfmg = it_tab-erfmg.
    *Code for Material Description
    select single maktx from makt into makt-maktx where matnr = it_tab-matnr.
    it_final-maktx = makt-maktx.
    clear makt-maktx.
    *Code for Service order Number
    select single matnr
                  bednr from ekpo into it_bednr where ebeln = it_tab-ebeln
                                         and   ebelp = it_tab-ebelp
                                         and   matnr = it_tab-matnr.
    it_final-bednr = it_bednr-bednr.
    *Code for Price for the Material
    select single matnr
                  verpr
                  stprs from mbew into it_price where matnr = it_tab-matnr
                                                and   bwkey = it_tab-werks.
    if it_price-verpr <> 0.
    it_final-verpr = it_price-verpr.
    else.
    it_final-verpr = it_price-stprs.
    endif.
    it_final-val_p = it_final-erfmg * it_price-stprs.
    append it_final.
    clear it_final.
    endloop.
    *Code for Serial Number
    select single obknr from ser03 into ser03-obknr where mblnr = it_mblnr-mblnr
                                                    and   vorgang = 'MMSL'.
    select matnr
           sernr from objk into table it_ser where obknr = ser03-obknr.
    clear ser03-obknr.
    *Calling Function Module for Smartform
    CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
      EXPORTING
        FORMNAME                 = 'ZMM_DC_FORM'
      VARIANT                  = ' '
      DIRECT_CALL              = ' '
    IMPORTING
       FM_NAME                  = FM_NAME
    EXCEPTIONS
      NO_FORM                  = 1
      NO_FUNCTION_MODULE       = 2
      OTHERS                   = 3
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    CALL FUNCTION FM_NAME
    EXPORTING
    L_MBLNR = it_mblnr-mblnr
    L_DATE = S_DATE
    L_EBELN = S_EBELN
    IT_ADD1 = IT_ADD1
    IT_ADD2 = IT_ADD2
    TABLES
    IT_FINAL = IT_FINAL
    IT_SER = IT_SER.
    endloop.
    Please help me to solve this problem.It is very urgent.
    Thanks & Regards,
    Ashok.

  • Problem in creating a Select-option im a module pool screen

    I've been searching how to do a select option in a module pool screen, I've found this neat tutorial http://sample-code-abap.blogspot.com/2008/06/select-option-in-module-pool-screen.html
    but I'm having trouble to replicate it...
    I've created this conde in my TOP include
    SELECTION-SCREEN BEGIN OF SCREEN 201 AS SUBSCREEN.
       SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME.
        SELECT-OPTIONS: s_matnr FOR mara-matnr.
      SELECTION-SCREEN END OF BLOCK b2.
    SELECTION-SCREEN END OF SCREEN 201.
    and this is my screen flow code
    PROCESS BEFORE OUTPUT.
      MODULE status_0100.
      MODULE pbo_200.
    PROCESS AFTER INPUT.
      MODULE pai.
      MODULE user_command_0200.
    in the screen 200 I have a subscreen area named subs
    but when I do this:
    MODULE pbo_200 OUTPUT.
      CALL subscreen subs including sy-repid '0201'.
    ENDMODULE.                 " pbo_200  OUTPUT
    it doesn't "compile"
    it gives me this error:
    ""." or "ID ... FIELD ..." expected after "SUBSCREEN"."
    what am I missing? it seems its not recognising the "CALL SUBSCREEN" command...

    you can't use CALL SUBSCREEN... in any ABAP section. It is reserved to dynpro flow logic. Just add it after PROCESS BEFORE OUTPUT (and also after PROCESS AFTER INPUT).

  • Problem with Time stamp function module for converting US to Japan

    Hi All,
    I need standard function module for converting US Timestamp to Japan, Can any one let me know is there any standard function modules.
    thanks in advance!
    Regards,
    Kalidas.T
    Edited by: Kalidas Thirumoorthy on May 5, 2009 5:29 PM
    Edited by: Kalidas Thirumoorthy on May 5, 2009 5:30 PM
    Edited by: Kalidas Thirumoorthy on May 5, 2009 5:30 PM

    Try this way:
    CONVERT TIME STAMP <tst> TIME ZONE <tz> INTO DATE <d> TIME <t>.
    CONVERT DATE <d> TIME <t> INTO TIME STAMP <tst> TIME ZONE <tz>.
    <tst> is of type P(8) or P(11) with 7 decimal places
    <tz> of type C(6)
    Refer to help.sap.com for more details.

  • Problem with time stamp conversion

    Hi All,
    I am using the below code to convert timestamp to date and time  , its working fine when i print it with write statement  .
    But i want to convert and pass the time and date with format to excel sheet , but  its it taking again as string not in date time format .
    please see the below code .
    time_stamp = 20030309043000.
    CONVERT TIME STAMP time_stamp TIME ZONE tz
           INTO DATE dat TIME tim. 
    *WRITE: /(10) dat, (8) tim .
    please suggest .

    Now that you've converted your time stamp to date (type d) and time (type t), convert them into alphnumeric fields like you want or tell excel what is in that column, since Excel isn't telepathic...and doesn't always know what we sent it....
    data: date10(10) type c.
             time8(8) type c.
    write dat to date10 mm/dd/yyyy. "converts type d to user's specific date setting (not necessarily mm/dd/yyyy).
    concatenate tim(2)
                        tim+2(2)
                        tim+4(2)
       into time8 separated by ':'.
    I do wish that I understood the fascination with Excel....when we have such marvelous tools to work with inside SAP or BW.

  • Facing problem with Time stamp

    Hello,
    I need a help. I have a requirement, where I have to change the image of a label from "Tradeable" to "Non tradeable" after 15 seconds.
    Can anyone please tell me how can I implement it. I am using JSF in my screen.
    Thanks & Regards,
    RD

    Check out the JavaScript pages for a solution. you should be able to load both images into div tags where one is visible and the other hidden. Using a JavaScript time you should then be able to swith the visibilities after a set time has passed. The only problem I for see is some time the page space can be thrown off when you hide and show div tags.

  • Problem in creating dynamic select-options creating from ';' seperated file

    Hi all,
    My requriement is selection screen fields will come from a flat file like below(first row is field names and remaining r field values)
    For example for VBAK table
    VBELN;VKORG;VTWEG;SPART
    3999202;B227;BD;XX
    file can be vary(number of fields)  and based on table .
    Please let me know how can i convert this file in to the selection-screen fields and how can i pass these values in the select statement WHERE condition....
    Thank you very much,
    Krishna D

    Hi,
    First Split the Data using Field Symbold.Because you don't know how many fields are there in the text file.
    Pass the values to the below Syntax
    SELECTION-SCREEN DYNAMIC SELECTIONS FOR NODE|TABLE <node>.
    declares a node <node> of a logical database for dynamic selections in the selection include.
    You have an Example in the Below Link.
    http://help.sap.com/SAPhelp_nw04/helpdata/en/67/93b80914a911d2953c0000e8353423/content.htm
    Thanks,
    Venkat.
    Edited by: Venkatesh Kolluru on Mar 4, 2011 6:32 AM
    Edited by: Venkatesh Kolluru on Mar 4, 2011 6:32 AM

  • Problem if Select-Option  is INITIAL.

    HI all,
    I have a question on how to handle to handle Select-Options.
    IF some_value IN S_value.
    Logic1.
    ELSE.
    Logic2.
    ENDIF.
    Problem here is when Select-Option S_value is Empty. It is true for all values in 'some_value'. Is there any easy way to handle it, WITHOUT explicitly checking if the Select-Option IS INITIAL or not, it make my code lot simpler.
    Thanks in Advance,
    Ravi.

    Hi,
    Why do you want to avoid checking whether select-option is initial. That is the simplest way to handle this.
    If you dont want that then my suggestion is use, describe table S_OPTION and get number of lines. You can check whether number of lines is zero or more than zero.
    Ex:
    data : l type i.
    describe table s_option lines l.
    if l = 0.
    else.
    endif.
    Still checking for initial is the best option.
    Regards,
    Ramesh.

  • How do you make a time stamp update?

    Hi, thanks in advance...
    I am programming an interface to a scale... it retrieves a weight, time stamps it, enters a comment, then sends this string to a spreadsheet.
    My problem: the time stamp never updates unless I right click it > select "data operations" > select "set time to now". Then it's stuck there and never updates while the program is running. It just keeps on stamping 8:15 (or whatever time it is updated to) all day long.
    Am I using the wrong VI here or is there something else I have to select to get it to work?
    Thanks a million...
    Adam Stagnaro
    Abaxis Inc

    Try using the 'Get Date/Time String' or 'Get Date/Time Seconds' vi to obtain your timestamp. Which one you use depends on how you wish to format your timestamp. Im not sure which vi you are currently using, but it looks to me like you are either using a timestamp constant (which wont update in your loop) or control (which you need to manually update from the front panel).
    Hope this helps.

  • Splitting Select Options

    Hi All,
    I am facing a problem in splitting the Select options for my screen. What I have to do is I am expecting the User to enter around 5000 records in the Select Options. I have to use 2000 records at a time for processing, which means three set of records of 2000, 2000 and 500.
    Can you please tell me how can this be achieved??

    Are you sure that even reducing the SELECT-OPTION to package of 2000 will be enough, in some database the system will raise an error related to a too large SQL statement.
    Splitting an internal table (as SELECT-OPTIONS are) is very easy. (see bellow)
    But be aware that some records may be exclusions, like :
    - SIGN = 'E' and OPTION is one of the positive operator like EQ, BT or CP
    - SIGN = 'I' and OPTION is one of the negative operator (every operator except the three previous)
    Those records must be in every package of selection
    so loop at select-options
    - put the exclusion in a first internal table
    loop once again at select-options excluding the records of the previous loop
    - append to a temporary internal table
    - when number of record equal maximal number allowed for a SQL SELECT minus the number of record in the first internal table, execute the SELECT, clear the temporary internal table
    To bypass this problem
    - don't use those record to build the partial select-options but delete records after select from database
    - You could(should) consider restricting select-options allowed options ([SELECT_OPTIONS_RESTRICT|http://wiki.sdn.sap.com/wiki/display/Snippets/RestrictSelectOptions]) so you wont have to execute this and only have to split an internal table with statement like [APPEND|http://help.sap.com/abapdocu_70/en/ABAPAPPEND.htm] [LINES OF jtab [FROM idx1] [TO idx2] |http://help.sap.com/abapdocu_70/en/ABAPAPPEND_LINESPEC.htm#&ABAP_ALTERNATIVE_3@3@]
    Regards,
    Raymond

  • Where did the time zone selection go when making an event in Calendar?

    So in iOS5 and iOS6 there was an option to select the time zone the event was going to be in when creating it in the Calendar app.
    Now in iOS7 it appears it is no longer there unless you turn time zone support ON.
    I want to be able to have time zone support OFF like I had in iOS5 and 6 and still have the time zone selection option when creating events.
    I'm at a loss for why this option was removed. Is there any way to get this back? My coworkers are having issues creating meeting events when out on the road and figuring out the right time zone +/- when moving between time zones.

    You can middle-click a tab with the mouse scroll wheel to close that tab.
    Did you try Save mode to be sure that it is not caused by an extension or theme?
    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    * Don't make any changes on the Safe mode start window.
    * https://support.mozilla.com/kb/Safe+Mode
    You can also check:
    * http://kb.mozillazine.org/browser.tabs.closeButtons (1)
    * http://kb.mozillazine.org/Corrupt_localstore.rdf

  • How to get system time format in time stamp

    Hello All,
    I have one problem regarding Time stamp. I want system time stamp format in Time control. If my system date/time format change then automatically my time stamp format should also change.If my system Time stamp format is hh:mm:ss AM/PM dd/mm/yy so in my LabVIEW time stamp format should also same. If System time stamp format hh:mm:ss AM/PM mm/dd/yyyy so in my LabVIEW time stamp format should also same.
    So Please help me its a very important for my automation application.
    Thank You.
    Vinal Gandhi
    Kudos are always Welcome.... :-)
    Vinal Gandhi, CLD
    Software Engineer

    Hi Vinal,
    have you tried the FormatDateTimeString function with a standard string indicator and the "%c" formatcode as described in the help instead of the generic timestamp indicator?
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • Time stamp issue in odi

    Hi,
    In my interface I am using txt.file as source and target is oracle. Here I am facing problem with time stamp and below are the details provided.
    Details: We are getting a flat file from the source in which we are getting one of the columns as time stamp (2013032710101010) and we need to populate it in a stage table column OPTOUT_DATE which is of type DATE.
    We are facing issue in loading this TIMESTAMP data into DATE data type.
    Km for this is,
    Lkm file to sql,
    Ikm sql incremental update,
    ckm sql.
    Can you please suggest us how to handle this.
    Thx,
    Sahadeva,
    9986928587.

    Ok thank you..
    I have one more doubt this moment.
    What it is means, In the Interface level of ODI we have staging are different from target. Here we have SUNOPSIS_MEMORY_ENGINE. Can you please tell what is the use of this in ODI.
    1.     How this works internally?
    2.     Can we use it as our target/Source as well?
    4.     Is it possible to retain data in the memory for later use?
    So if you explain me more brief about these three questions that would be very much better and also helpful for me. Because I am going to develop
    one POC doc(Proof Of Concept) on this.
    Thx,
    Sahadeva.

Maybe you are looking for