How to put a check with the date

Hi,
I have created a ztable with 3 fields .
clientcode(3),
date,--date geneated
version--- fileversion
i need to update this table everytime i execute the data. Every time version shd get incremented when i execute the program.  When i excute the program next day version shd be updated by '1'.
i wrote the code for version updated i'm not getting the logic how to put a check with the date.
  SELECT *
   FROM zfi_enetflver
   INTO TABLE gt_flver.
  SORT gt_flver DESCENDING.
  CLEAR: gv_dt, v_file.
  CONCATENATE sy-datum6(2) sy-datum4(2) INTO gv_dt.
  READ TABLE gt_flver WITH KEY client_code = gv_clcd.
  IF sy-subrc = 0.
    idx = sy-tabix.
    IF gt_flver-zdate = ' '.
      gt_flver-zdate = sy-datum.
    ENDIF.
    IF gt_flver-version = ' '.
      gt_flver-version = '001'.
      gv_filever = gt_flver-version.
      MODIFY gt_flver INDEX idx TRANSPORTING zdate version.
      MODIFY zfi_enetflver FROM TABLE gt_flver. "TRANSPORTING version.
      CONCATENATE 'E:\' 'ENET\' gv_clcd gv_dt '.' gt_flver-version INTO v_file.
    ELSE.
      gt_flver-version = gt_flver-version + 1.
      gv_filever = gt_flver-version.
      MODIFY gt_flver INDEX idx TRANSPORTING version.
      MODIFY zfi_enetflver FROM TABLE gt_flver .
      CONCATENATE 'E:\' 'ENET\' gv_clcd gv_dt '.' gt_flver-version INTO v_file.
    ENDIF.
  ENDIF.
clientcode is the key field in ztable do i need to make date field key ??
please help me with the logic

You need to implement below logic:
1. check if field_date = sy-datum. in this case do nothing.
2. else . move sy-datum to field_date .
3. modify your internal table with field_date .
4. populate final table to database table .
hope you get it.

Similar Messages

  • How to put two files with the same name into the same folder?

    How can I put two files with the same name and the same extention into the same directory?
    Is this even possible?
    Thanks in advance. 

    Are you sure? I would be very surprised if that was the case.
    How does the computer/filing system differentiate the files, if not by their names?
    How do you tell the computer which one you want? (On the command line.)

  • I have a large number of photos imported into iPhoto with the dates wrong.  How can I adjust multiple photos (with varying dates) to the same, correct, date?

    I have a large number of photos imported into iPhoto with the dates wrong.  How can I adjust multiple photos (with varying dates) to the same, correct, date?

    If I understand you correctly, when you enter a date in the Adjust Date and Time window, the picture does not update with the date you enter.  If that is the case then something is wrong with iPhoto or your perhaps your library.
    How large a date change are you putting in?  iPhoto currently has an issue with date changes beyond about 60 years at a time.  If the difference between the current date on the image and the date you are entering is beyond that range that may explain why this is not working.
    If that is not the case:
    Remove the following to the trash and restart the computer and try again:
    Home > Library > Caches > com.apple.iphoto
    Home > Library > Preferences > com.apple.iPhoto (There may be more than one. Remove them all.)
    ---NOTE: to get to the "home > library" hold down option on the keyboard and click on "Go" > "Library" while in the Finder.
    Let me know the results.

  • How to update a table (CUSTOMER) on a Report Server with the data from the same table (CUSTOMER) from another server Transaction server?

    I had an interview question that is:
    How to update a table (Customer) on a server ex: Report Server with the data from the same table (Customer) From another server ex: Transaction server?
    Set up steps so inset, update or delete operation takes place across the servers.
    It would be great if someone please enlighten me in details about this process in MS SQL Server 2008 R2.
    Also please describe would it be different for SQL Server 2012?
    If so, then what are the steps?

    I had an interview question that is:
    How to update a table (Customer) on a server ex: Report Server with the data from the same table (Customer) from another server ex: Transaction server?
    Set up steps so that inset, update or delete operation gets done correctly across servers.
    I was not sure about the answer, it would be great if someone please put some light on this and explain in details about this process in MS SQL Server 2008 R2.
    Also it would be very helpful if you please describe would it be different for SQL Server 2012? If so, then what are the steps?

  • The birthday reminder on the calender is not in sync with the date reflected in my contact. It is always one day ahead. How do I rectify this?

    The birthday reminder on the calender is not in sync with the date reflected in my contact. It is always one day ahead. How do I rectify this?

    Hi Jim McKee,
    Please PM your order no# and Adobe ID, so that I can check the account details.
    To send a PM please click on the picture and then you will find the option of private message.
    You may also try to contact Customer Support:
    http://www.adobe.com/support/download-install/supportinfo/
    Regards
    Gurleen

  • How to compare the date value with the date datatype column?

    Hi,
    I am executed a query to get output for the particular date in two different database.
    I got output in one db environment, but in the another environment i didnt get the output.
    APP_DECISION_DATE column contains date datatype
    ex:
    SQL> select DECISIONED_STAGE_ID,DECISIONED_STAGE_USER_ID from naap10_application where APP_DECISION_DATE = TO_DATE('23-JAN-07',
    'DD-MON-YY'); 2
    DECISIONED_STAGE_ID DECISIONED_STAG
    2006060106 SYSTEM
    DATABASE - II
    SQL> select DECISIONED_STAGE_ID,DECISIONED_STAGE_USER_ID from naap10_application where APP_DECISION_DATE=
    TO_DATE('31-JAN-2007','DD-MON-RRRR') and application_id=2007010028552;
    no rows selected
    in the same db i got the output while i used the TO_DATE(APP_DECISION_DATE)
    SQL> select DECISIONED_STAGE_ID,DECISIONED_STAGE_USER_ID from naap10_application where TO_DATE(APP_DECISION_DATE)=
    TO_DATE('31-JAN-2007','DD-MON-YYYY') and application_id=2007010028552; 2
    DECISIONED_STAGE_ID DECISIONED_STAG
    2006060113 SYSTEM
    is it necessary to use TO_DATE function while i am using the data datatype column in the WHERE CLAUSE?
    Thanks in advance.
    siva

    Sorry & thanks sathish,
    Now i got the result.
    SQL> select DECISIONED_STAGE_ID,DECISIONED_STAGE_USER_ID from naap10_application where APP_DECISION_DATE BETWEEN TO_DATE ('31.01.2007 00:00:00', 'DD.MM.YYYY HH24:MI:SS') AND TO_DATE ('31.01.2007 23:59:59', 'DD.MM.YYYY HH24:MI:SS')
    2 and application_id=2007010028552;
    DECISIONED_STAGE_ID DECISIONED_STAG
    2006060113 SYSTEM
    ================================
    But one doubt,
    When i created the column with the date datatype how it gets the time value,
    And in one environment db i got the result but in another environment i dont get,
    Shall i want to change any session status of date?

  • When I send messages off-line, they enter in the addressed mailbox with the date and hour which I've clicked "Send later". How could I set up to the real time?

    When I send messages off-line, they enter in the addressed mailbox with the date and hour which I've clicked “Send later”. How could I set up to the real time?

    What you say about Send Later timestamp is correct.
    When you click Send or Send Later a time is set regardless of when you actually sent the Send Later email.
    Please voice your vote at this link:
    https://bugzilla.mozilla.org/show_bug.cgi?id=560901
    You will need to logon/register.

  • When I try to connect to wi-fi, it asks for the password, but I got this question.  If you don't know the password, check with the Wi-Fi network administrator, but I don't know how.

    Hi All, 
    When I try to connect to wi-fi, it asks for a password.  Then I got this question.  If you don't know the password, check with the Wi-Fi network administrator, but how do I find the network administrator.

    Whomever provides the wi-fi.
    To what wi-fi network are trying to connect?

  • How can I change the language with the .dat (.bak) file?

    How can I change the language with the .dat (.bak) file? Is it legal?
    How does it work?
    Thanks for answering

    https://discussions.apple.com/message/17364930#17364930

  • My iPhone is having problems and I have to send it into Apple to get a fixed but in the mean while I need a phone. Could my old env touch act as a temporary replacement with the data plan? And if so how to I activate it with going to Verizon and once I ge

    My iPhone is having problems and I have to send it into Apple to get a fixed but in the mean while I need a phone. Could my old env touch act as a temporary replacement with the data plan? And if so how to I activate it with going to Verizon and once I get my IPhone back will I be able to activate it without going to the Verizon store?!? Thanks:)

    Im sorry. Im on my ipad and i didnt read that.
    Sorry again

  • How can i creat CRC 32 CHECK WITH THE lookup table as attached.

    how can i creat CRC 32 CHECK WITH THE lookup table.attached
    i creat one,but not match the result number C++ version
    result number C++ version:
    FE 00 18 02 40 1E 65 43 00 03 E8        CRC32=>78 1F E9 06
    FE 01 18 02 40 1E 65 43 00 03 E8        CRC32=>F8 8F 49 61
    FE 02 18 02 40 1E 65 43 00 03 E8        CRC32=>7D FF B4 7F

    due to some reason i can not attach the table.but you can find it herehttp://lavag.org/topic/15325-crc32/,it in the CRC.llb 84.03K =>CRC-32 Table.ctl thanks a lot

  • How can I port my PSE with the data to a new PC? [was:Jeanné]

    Wie kann ich mein PSE mit den Daten auf den neuen PC portieren?

    Jeanné wrote:
    How can I port my PSE with the data to a new PC?
      Translations by Microsoft® Translator
    The only way you can do this by installing the PSE on your new machine using the DVD and the serial number you must have bought.  Once this is done, you might want to copy all your photos from the old machine on to a flash drive and then copy them from flash drive to your Pictures folder and let PSE finds them and catalogs them automatically.
    This method is ideal if your haven't created very sophisticated catalog in your old machine because you may also want to transfer the old catalog on to your new PC so that you don't have to re-create the catalog from scratch.  If you want to transfer the catalog as well then on your old PC launch PSE Organizer and go to:
    File >> Backup Catalog
    This is also saved on the removable flash drive
    Now go to the new PC and launch Organizer and do almost the same thing except:
    File >> Restore Catalog
    Now this should almost get you started.
    Good luck.

  • How does iCloud manage app data like whatsapp ? Does it overwrite the data everytime I backup to I cloud with the data on the phone or it merges the data from previous backups with the new data?

    How does iCloud manage app data( like whatsapp) ? Does it overwrite the data everytime I backup to I cloud with the data on the phone when i backup or it merges the data from previous backups with the new data?

    You need to subscribe to iTunes Match to store your music on iCloud:
    http://www.apple.com/itunes/itunes-match/
    To transfer iTunes Store purchases made on your phone to your computer, connect your phone then choose "Transfer purchases..." from the File menu in iTunes.
    Photostream transfers photos taken on your iOS devices to other devices and your computer. For troubleshooting Photostream see: http://support.apple.com/kb/TS3989

  • I submitted my podcast and I got an email saying error, I checked with the feed validator and got this message: This feed does not validate. line 40, column 6: Undefined item element: itunes:order, how do sort this out, someone help me please.

    I submitted my podcast and I got an email saying error, I checked with the feed validator and got this message: This feed does not validate. line 40, column 6: Undefined item element: itunes:order, how do sort this out, someone help me please.

    Ignore it. 'itunes:order' is a recent addition which FeedValidator doesn't know about. If your podcast is rejected that is unlikely to be the reason. Of course as you haven't posted the feed URL nor the text of the error message I can't make any further comment.

  • How to make the active save-to-file with the data from GPIB ?

    Hello,,everybody !!
    I want to make the active save-to-file with the data from GPIB since starting the measurement. To save-to-file at the end of measurment is somehow risky for losing the data because my measurment have to take for long time (eg. 24-48 hours).
    Thank you in advance for anybody's help !!

    Thanks Dennis,
    I have already append, I got it but still have one small problem that between each line it has the blank line. Example as below ,
    16:40:33 54.24
    16:40:34 54.23
    16:40:35 54.24
    I want to get rid of the blank line in between.. Do you have the idea about it ?

Maybe you are looking for

  • Copying values from a row to a current row

    hi all, i have a complex scenario here. i have a table that has the following data. WITH table1 AS   SELECT 111 the_id,  To_Date('6/30/2009','mm/dd/yyyy') dt,  93 src, 'A-C' the_name, 'AA' cod, 'BB' pad, ' CC' tek FROM dual UNION ALL   SELECT 111 the

  • How can I create a sample with the Flex data?

    Hi mates, I'm thinking about doing some stutter vocals with the ultrabeat so I've got a vocal and I have flexed it in time so it fits well on the song's tempo, the problem is that when I create an audio file of the part of the vocal I want to use on

  • Error in Account Determination. Sales organization

    Hi All, I received an error in my billing document. The error is: 1.  Error in account determination: table T030K key IFXO MWS P2 2.  Document 9317283268 saved (error in account determination) 3.  Doc. 9317258720 G/L account 69466400 requires a valid

  • How can you downgrade from ios 7.1.2 to 6.1.3

    hello everyone can you please help me i need to downgrade from ios 7.1.2 to ios6.1.3 because my ipad dosent work realy well with it can you plese help me  

  • JNDI connection creation timeouts

    Hi, I've a question concerning connection creation timeouts. The Tutorial (http://java.sun.com/products/jndi/tutorial/ldap/connect/create.html) says "By default, this timeout period is the network (TCP) timeout value, which is in the order of a few m