Date and file

hi to all
in my program, i am having date and file in select-screen apart form these two i am also having other filelds in selection screen.
after the program exexcution i am updating the one z table with the date on which program was executed.
when ever i am executing the same program after that,
if i want to get the last run executin date from it how to do it?
and i am not storing file name in any table i am creting that file in appplication server.
when ever i am executing the same program after that,
if i want to get the last executinfile name  from it how to do it?
regards
raadha

1. To get the last run execution date.
After execting the program , u r updating a z table with program execution date.
So u can get teh last run execuiton date from a select query by using the data stored in that table.
for example, Say if the table is Zlastrun( where u update last run execution date)
Also what are the other fields u uptade in the table.
i assume u are also updating the program name and if so, u can use the below statment.
From that u can get by using the select statmement
select * from Zlastrun  into tale it_zlastrun where pgm =  C_pgm_name order by ERDAT descending .
Where zlastrun - name of the table
          it_zlastrun - name of the internal tale
pgm - field in zlastrun.
c_pgm_name  - constant the value should be name of the program.
Erdat - execution date
Plz let me know if this is useful
Thanks

Similar Messages

  • I was told of an application that will allow the use of a second screen to view my data and files, but I forgot its name. I'd like to make the connection because my LCD is broken.

    I was told of an application that will allow the use of a second screen to view my data and files, but I forgot its name. I'd like to make the connection because my LCD is broken.

    You don't need an application, just plug a compaitble monitor into the display port of your MacBook Pro, set the screen up in System Preferences>Displays

  • I have a mid year 2007 24 inch iMac and will be purchasing a new 27 inch Retina iMac, what is the easiest way to transfer the data and files from my old machine to the new one?

    I have a mid year 2007 24 inch iMac and will be purchasing a new 27 inch Retina iMac, what is the easiest way to transfer the data and files from my old machine to the new one?

    Following up on this thread,
    I have a new iMac on the way and my current is from 2008, never had a problem but I am sure there are internal issues that I would prefer not to transfer.
    I have no issues other then the slowness in certain programs and that is the main reason to buy a new one.
    Programs like numbers and pages seem to take a longer time to open after I update to Yosemite.
    I only use 272GB of 500 GB, my memory is 4GB and I am upgrading to 8Gb and bought the 4.0 processor.
    Question:
    Is there a way to manually transfer items or would that be a waste of time in that if there are issues they could be anywhere and would transfer anyway?

  • Multipart/form-data and file attachment

    Hi ,
    This question has probably been asked before, but if not then here it is. Any replies will be appreciated:
    Q. When using "Enctype=Multipart/form-data", with file attachment alongwith other form fields, is it mandatory to attach a file ? What if user selects no file to attach?
    Q. If no, then how can it be possible that a form can be submitted without attaching a file since when I try to submit a form with no file attached to it, it gives me error message saying :java.lang.NullPointerException
    Q. Does it mean that I can't have a form with a blank "File" input field, if the form's Enctype is "multipart/form-data"? Since users may not select a file to attach to the form, in other words it is an optional.
    I hope I was clear enough in explaining my questions.
    Thanks in advance.

    I am using Orielly's file attachement pacakge.
    Here's what I am doing in my JSP page: It does the following:
    int maxFileSize = 10 * 1024 * 1024; // 5MB max
    String uploadDir = "/direct/files/upload/";
    String FormResults = "";
    String FileResults = "";
    String fileName = "";
    String fileName2 = "";
    String paramName="";
    String paramValue="";     
    File f;
    int filecounter=1;
    first get the form fields using following code:
    MultipartRequest multi = new MultipartRequest(request, uploadDir, maxFileSize);
    Enumeration params = multi.getParameterNames();
    //Get the form information
    while (params.hasMoreElements())
         paramName = (String) params.nextElement();     
         paramValue = multi.getParameter(paramName);
         if (paramName.equals("emailconfirm"))
              emailconfirmation = paramValue;
         else if (paramName.equals("Requester"))
              Requester = paramValue;
         else if (paramName.equals("TodaysDate"))
              TodaysDate = paramValue;
         else if (paramName.equals("Extension"))
    }//end while
    Then it gets the file information using the following code: I have two file fields in my form so that's why I am using a filecounter to find out if user has attached two files or just one:
    Enumeration files = multi.getFileNames();
    while (files.hasMoreElements())
         String formName = (String) files.nextElement();
         if (filecounter == 2)
    fileName2 = multi.getFilesystemName(formName);
         String fileType = multi.getContentType(formName);
              f = multi.getFile(formName);
         FileResults += "<BR>" + formName + "=" + fileName2 + ": Type= " + fileType + ":
    Size= " + f.length();
         else
         {     fileName = multi.getFilesystemName(formName);
              String fileType = multi.getContentType(formName);
              f = multi.getFile(formName);
              FileResults += "<BR>" + formName + "=" + fileName + ": Type= " + fileType + ":
    Size= " + f.length();
         filecounter=filecounter+1;
    Then after composing the mail message I send email with the form fields and file attachments using following code:
    Properties props = new Properties();
    MimeBodyPart mbp1 = new MimeBodyPart();
    MimeBodyPart mbp2 = new MimeBodyPart();
    MimeBodyPart mbp3 = new MimeBodyPart();
    URLDecoder urlDecoder = new URLDecoder();
    String to1 = urlDecoder.decode(toemail);
    String from1 = urlDecoder.decode(fromemail);
    String cc1 = urlDecoder.decode(ccemail);
    props.put( "mail.host", host );
    Session session1 = Session.getDefaultInstance(props, null);
    // Construct the message
    Message msg = new MimeMessage( session1 );
    msg.setFrom( new InternetAddress( from1 ) );
    msg.setRecipients( Message.RecipientType.TO, InternetAddress.parse( to1, false ) );
    msg.setRecipients( Message.RecipientType.CC, InternetAddress.parse( cc1, false ) );
    msg.setSubject( subject );
    msg.setHeader( "X-Mailer", "ExceptionErrorMail" );
    msg.setSentDate( new Date() );
    mbp1.setText(mail_message);
    mbp1.setContent(mail_message, "text/html");
    // Send the email message
    FileDataSource fds = new FileDataSource(uploadDir + fileName);
    FileDataSource fds2 = new FileDataSource(uploadDir + fileName2);
    mbp2.setDataHandler(new DataHandler(fds));
    mbp3.setDataHandler(new DataHandler(fds2));
    mbp2.setFileName(fileName);
    mbp3.setFileName(fileName2);
    Multipart mp = new MimeMultipart();
    mp.addBodyPart(mbp1);
    mp.addBodyPart(mbp2);
    mp.addBodyPart(mbp3);
    msg.setContent(mp);
    Transport.send( msg );
    //email sent...
    //delete the two files from the server..
    File f2 =new File(uploadDir + fileName);
    f2.delete();
    File f3 =new File(uploadDir + fileName2);
    f3.delete();     
    //End of code
    So when I don't attach a file and submit my form , I get the error message that I mentioned in my previous post.
    Any more ideas?

  • Incorrect dates and file folder size

    Here's something strange. I was trying to burn a DVD today and the contents added up to 4.3 gigs. When I opened Toast Titanium to burn the disc, the contents only added up to 4.0 gigs! Why is there a difference of 300 megabytes? So I burned the disc, and it appeared to work OK, but when I catalogued the disc in Disk Tracker, the creation year is 1923?! Any idea what's going on? The date on my computer is accurate. Is this problem on my Mac or is it a problem with Toast Titanium?

    Sounds like a case of Apple's +new way+ for measuring the size of storage. Starting with Mac OS X Snow Leopard, Apple has Mac OS X reporting things like hard drive capacity and file size based on how humans count, in Base 10. Previously, Apple was following the industry norm and displaying such information based on how computers count. So...
    "kilo" instead of being 1000, was 1024.
    "mega" instead of being 1,000,000 (1000x1000), was 1,048,576 (1024x1024)
    "giga" instead of being 1,000,000,000 (1000x1000x1000), was 1,073,741,824 (1024x1024x1024)
    and so on...
    As you can see, as the numbers get larger, the percentage discrepancy between the human number and the computer number gets larger. That's why before Snow Leopard, a 160GB hard drive was reported as only having the capacity of about 149GB. But if you look at that same hard drive capacity under Snow Leopard, a 160GB hard drive has a reported capacity of 160GB. Apple is basically translating the computer number back to human (Base 10) terms.
    Third parties have not updated their apps to follow Apple's lead. So Toast is probably still reporting the number as the computer number. The difference of 0.3 GB is about a 7% discrepancy, which makes sense for a capacity in the "giga" range.
    So to answer your question, both the Mac and Toast are correct. They are just calculating that number differently.
    I don't know what's going on with the date. That may be a separate issue.

  • How to handling Binary data and File operation?

    Hello Everyone,
    I think this question might have been asked a lot of time but I was unable to find one solution so, please help needed in this from all you guys..
    I am creating a byte[] of the media files of mp4, and jpg, using the below code,,
    File ff = new File(filename);
            fos = new FileOutputStream(ff);
            int b;
            byte[] f = this.getMediaFile();
            for (b = 0; b < f.length; b++) {
                if (f[b] != -1) {
                    fos.write(f);
    fos.flush();
    fos.close();
    After i convert it i have to store it in the MySql Database as BLOB object, for retrieving byte[] from the database is simple i can do that also successfully with this code.java.sq.Blob obj = (java.sql.Blob) rs.getBlob("file");
    InputStream is = null;
    ByteArrayOutputStream bc = null;
    is = obj.getBinaryStream();
    bc = new ByteArrayOutputStream();
    int b;
    while ((b = is.read()) != -1) {
    System.out.print(b + " ");
    bc.write(b);
    Now the real problem is that when i want to recreate a mp4 audio or video file i am unable to do so, the file created is smaller in size and also it doesn't get played in windows default player nor VLC. I am able to get the image file of jpg format using the BufferedImage & ImageIO.writer();
    How do i do for mp4 file, have no clue for that.
    Pleases help out with this.
    Thanks..                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    if (f[b] != -1) {I don't get that line. What if you try to output the data without that condition, like this:
    fos = new FileOutputStream(ff);
            byte[] f = this.getMediaFile();
            for (int b = 0; b < f.length; b++) {
                 fos.write(f);
    fos.close();

  • Restore - back up data and files

    I have backed up my hard drive to a LaCie Extreme HD. However, I now need to restore to my mac HD as I had to wipe the Mac HD due to hardware problems. It seems that LaCie do not provide restore capability for OSX10.4 I have managed to copy iPhoto pictures to iPhoto but have been unable to copy the many albums. I have thousands of photos with no albums. Is there a file which contains album information I can copy to iphoto?

    The iPhoto Library folder contains the data files that structure your albums and folders within iPhoto, so the best thing to do is to put the folder called iPhoto Library into your Pictures folder in your Home folder, then launch iPhoto while holding down the Option key and point iPhoto to the iPhoto Library folder.

  • IPAD restores applications but not data or files associated with applications

    1) Today Itunes prompted me to update the OS on the IPAD.
    2) It warned me to back up IPAD before I did.  I did
    3) I updated software.
    4) It returned with an error saying it could not install software and I must restore to facotry settings
    5) I resotored to factory settings
    6) After that I attempted to restore contents of my IPAD from Itunes on my Windows 7 machine. 
    7) It restored only music but no applications and no other information
    8) I spent all day on the phone with Apple Support who managed to get the applications restored by going through one by one and syncing.
    9) It took a few hours
    10) After I finished I noticed that files/documents associated with various applications like Kindle, Goodreader, Penultimate Notes were missing on the IPAD.
    11) I have made a few phone calls to Apple and thy claim the following: "Apple is not responsible for restoring files or data associated with any applications, only the application itself.  It is your responsibility to contact the application developer to get your files restored."  This sounds patently absurd to me. I spent half an hour explaining the absurdity of this claim to the Apple representatives but they are firm and non-wavering in this opinion.  One even claimed that restoring does not restore applications which of course is not correct.
    12) I gave them the example of MS Word on MacBook Pro. If I save/back up on another machine and then restore back to the original machine I would expect to be able to see the Word files I had created and saved.  That in particular the failure to view them would not be Microsoft's responsibility but Apple's.  They disagreed saying it would be between me and Microsoft and the Apple devices had nothign to do with saving or successful restoring.
    13) So I have lost all e-books purchased on Kindle, plus all documents saved on Goodreader application, notebooks on Penultimate applications, and my children’s drawings on their drawing applications.  Apple Support say I should contact each application vendor to try and recover the missing data.  They refuse to tell me how to get it from ITUNES backup stored on my Windows 7 machine as they say it will not be there. 
    They have asked me to write to
    Apple Customer Support,
    Holly Hill,
    Cork,
    Ireland
    quoting case number 319718819.

    Did you try restoring from a backup of the iPad? If you have a backup with all of your app data and files, that should restore all of that content to the device.
    No - restoring does not restore applications. You have to either sync the applications back from iTunes on your computer, or you can download them again, BUT ... All of your data, files and device settings are stored in your backup. Do you have a backup in iTunes .... Edit>Preferences>Devices - that should show you all of your iDevice backups.

  • Experience updating app, keeping user data, and extending SQLite tables?

    We're updating an application in the App Store, and haven't yet found good information on how to deal with updates to the SQLite Schema and data that should be transferred between apps.
    Anyone successfully done this?
    Q1: Does the old DB files stay on the iPhone after update? Does the installer do a "diff" between them? In our case, we just extended tables, rather than changing them, in hope that we can successfully move the data for users gracefully.
    Q2: If the installer does in fact wipe all the data and files on the app before install, is there a way to access the data before it updates, so the app can gracefully update the data?

    Would you mind sharing your solution?
    I've implemented it by using the PRAGMA SQL statements to query the table structure, and if it's missing the column I need for the new version, adding it.
    The bigger problem, though, is some of my users have experienced their data being deleted when they received an updated version from the app store.

  • Date and Time in Sender File Adapter Target Directory

    Hi there,
    is there a way of using Date and Time from XI to the Target Directory naming? To use variable substitution some fields of the message had to contain that date and time information, which is not our case.
    For filename you can use "add time stamp" option, but and for target directory?
    Thanks and regards,
    Henrique.

    > <i>Do you have further information on how to perform
    > this with shell commands?</i>
    > >> You need to write a shell script. This script will
    > add the date/time stamp into the folder in the target
    > system. This shell script is executed from the File
    > adapter. So once the file is written into the target
    > directory, then it will rename the directory.
    Hi there, Moorthy
    We've tried to write that shell script that you mentioned, but now we have a few doubts on how to make it create the proper directory.
    In the file adapter, my target directory is "/%var1%/%var2%/", where %var1% and %var2% are variable substitutions, referencing data which comes from the payload. Now, I need the shell script to append "/<Year>/<Month>/" in the target directory. But where to archive the script? If it stays in the root directory, than how to make it create "/<Year>/<Month>/" folders inside a directory which is variable (/%var1%/%var2%/)?
    Is there a way of passing %var1% and %var2% as parameters for the shell script?
    Thanks a lot,
    Henrique.

  • Not able to view data and song folders/files in my ipod

    Hi All,
    I have a 30 GB Video iPod which I have been using since the past 6 odd months. Recently, my iPod was infected with a virus. I managed to clean up the virus but since then I am not able to view the data and song files or folders stored in the iPod. I can only view a hidden folder with the name 'astry' and when I double click on it nothing is visible. I tried some freewares available for data recovery but they just scan the iPod and tell that so many number of files are available. But for retrieving them I will have to buy the software.
    Has anyone faced similar project? Does anyone knows any solution to this problem?
    Thanks,
    Sameer

    Hi Aneesh,
    First be more clear about Aria Application. As Aria, is been related to an hrms part of an organization carrying the people infomation and it has some separate features too.
    But in your prespective i couldnt able to understand what do you want to do with that packeged application.
    Since you want to customize the aria application according to your organization needs means, First collect all your necessary organization information that is needed(like tables etc.). Then substitute those (i.e) your organization tables in the appropriate places in the form of query.
    Please dont use the same Aria people table, as the Oracle may framed according to their employee information. Nearly Aria application has 200 supporting objects. If you want to use the same objects means whether u r going to creating nearly 200 supporting objects..It is not worth at all.
    Please be more clear in your requirement that, what you are doing, and then raise the question. Be more prepared with your tables along with datas, and let give your reply once you were been prepared with your organization details table.
    As there are more peoples in the forums to help you other than me.
    Brgds,
    Mini
    Mark Answers Promptly

  • File window not updating modif. dates – and mysterious parallel universe discovered

    The day started innocently enough when I tried to edit some <meta> content on a site I'm building and then saved my work. Little did I know...
    DW's "File" window refused to update the "Modified" column of the files I worked on.  Open and closing the files shows that my changes have been recognized and incorporated into the HTML, and the files show up with correct modification dates in Finder (I'm on a Mac). They just won't change date in DW.
    When I upload the modified-but-not-redated-in-DreamWeaver files to my remote site, they appear with the incorrect dates on the server, but a text comparison in DW shows that my local and remote files are synched.
    Now for the truly weird part: when I run the site in Safari (after flushing its cache), a Source check shows the old code is still operational.  (I also changed the titles of the pages in question to quickly confirm which version was being displayed. This check shows the old title displayed.)
    Here's the site address:  http://www.bearriverbooks.com/index.html
    Now for the truly, truly wierd part.  I have a parallel site ( http://www.queen-of-the-northern-mines.com/index.html ) which contains copies of the bearriverbooks.com files. These files, too, show the wrong modification dates in DW's "Files" window and on the remote server – but they display correctly. Anyone who wants to check can compare page titles, which are longer in the later pages with correct code.
    I checked the remote site addresses in the "Manage Sites..." center.  I have not crossed my wires there (though I can smell a few arcing badly in my brain.).
    The players:  2.8 GHz Intel Core i5 27" iMac running Mac OSX 10.6.7  /  Dreamweaver CS5 v.11.0 Build 4964
    Thanks in advance,
    Richard Hurley
    Grass Valley MultiMedia

    I am having the same issue on a Mac 3.4Ghz i7 running Mac OS 10.7.  I have Dreamweaver CS 5.5 v.11.5 Build 5344.
    I have a linux webserver, running ProFTPD v.1.3.1
    Both my mac and my linux server are set to the correct date and time.
    And ls on the linux servers tells me the files have the correct modified date and time, but this is getting lost in translation to dreamweaver when I view the remove server in the File tab.
    Any help appreciated.

  • Some music files do not show up in google play music app library.  I did clear cache/data and restarted phone.  The music is stored on the SD card.  Most of the music in the library is in the same folder on the sd card.  I can play the song from file mana

    some music files do not show up in google play music app library.  I did clear cache/data and restarted phone.  The music is stored on the SD card.  Most of the music in the library is in the same folder on the sd card.  I can play the song from file manager, but it still is not in the music library in play music.

    Cyndi6858, help is here! We'd be happy to help figure this out. Just to be sure though, the Droid Maxx should not have an SD card. Is this the Droid Razr Maxx? How did you add the music to the device? Are you able to see the files and folders located on the SD card or device when plugged in?
    Thanks,
    MichelleH_VZW
    Follow us on Twitter @VZWSupport

  • Need help in using SQL in a jsp file to compare date and time

    hi every one,
    Actually I am doing a project using JSP. I need to compare a date field in the database (MS Acess) to the current system date and time. I have to do this in a select statement.
    I have alredy defined a variable of type Date in the JSP file and I am comparing this variable to the date in the database through a select statemant.
    Here is what I am doing
    SimpleDateFormat sdf = new SimpleDateFormat("yyyy-mm-dd hh:mm:ss");
              java.util.Date today = new java.util.Date();
              String myDate=sdf.format(today);
    query = "SELECT Car_ID, Model_ID, Year, Ext_Color, Price from Cars where EDate <= "+myDate+" ;";
    EDate is the feild in the database and it's format is (5/12/2008 5:29:47 PM) it is of type Date/Time in MS Acess.
    when I execute the query it gives the following error
    SQL error:java.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver] Syntax error (missing operator) in query expression 'EDate <= 2008-10-16 08:10:07'.
    I hope any one can help me with that error and answer my question, I've tried too many things but nothing helps
    Thanks in advance :-)

    Hi,
    When the comparision is needed to be done with the current date , we don't need to send in Java
    Date then format it and compare with MS Acess Date.
    In MS Access we have Date() function which will give you the current date.
    So you can try rewriting your query as following :
    query = "SELECT Car_ID, Model_ID, Year, Ext_Color, Price from Cars where EDate <= Date() ;"; ---------------------
    Hope this helps.
    Thanks

  • Downloding the SAP master data and transaction data to a flat file

    Hello All,
    Is there any SAP standard method or transaction to download the SAP master data and transaction data to flat file.
    With out using ABAP development, SAP had provided any tool or method to download the SAP system master and transaction data to flat file.
    Thanks,
    Feroz.

    hi
    as of now up to my knowledge no.

Maybe you are looking for

  • TAX PROBLEM

    HI ALL, MY problem is that my client want Some  solution on A/P Invoice .My client give the discount on total amount (Amount before Discount) after that he apply the TAX(TAX RATE ED@8% Cess@2Hcess@1%) on the value (Price after discount)  after that w

  • Cannot use web services with my Photosmart 6520 e-all-in-one printer.

    Everything works and is enabled except web services. Wireless is on and yet not connected to internet. Other devices such as my smart tv and pc are on same wireless router and do connect to internet. ow to connect my printer to the internet? This que

  • Help pls :o( i am new owner BB

    Hello all, pls help me...i am new in BB word... I have unlocked BB8700v for all operators. I put my simcard, but..... I can't make a sms ( haven't in menu ) i can only get sms from somebody i can't call (i can only emergency call ) and i can't take c

  • Material / Service order report

    Hi all Material / service order WBS wise report with net PO valve please suggest me t-code.

  • How to access local data file in running applet?

    An applet resides in a remote website. However, when I use this homepage and this applet try to load data file in my computer, an error occurs. In console panel, an error for java.security.AccessController.doPrivileged (native method) occurred. Pls t