Checking for files using infoview

Hi
I am new to use Infoview in BO. In my project they are scheduling CR in infoview for a particular time. now new requirement is :
On nightly basis files will be send for each region.once they are loaded message will be generated using script in unix. Now my part is to login to the unix server and check for the message(access to the path will be provided. message may be content in file or may be a touch file.not my part) and the schedule timing through infoview and should run the report.
To schedule report for a particular time i went into schedule option and given database details where CR is present,destination details to where it need to be ftped and the format of output and timine on which the report need to be run.
But i dont know the process how to login to unix server and check for message.
Please let me know is there any option for the baove requirement in infoview.
Thanks in advance.

CMC is the administration console. I would recommend to take a look at the following document:
http://help.sap.com/businessobject/product_guides/boexir2/en/xir2_bip_Admin_en.pdf
Start at page 200.
Regards,
Stratos

Similar Messages

  • Checking for files in a folder -- Wrong output

    Hi guys,
    I'm writing a simple program, I have to check for 6 files (hardcoded, they will never change) if they are in certain directories/paths.
    The problem is, I think I have a problem in my IF statements, because it continueally returns false.
    The paths are on networked drives, does that make a difference?
    I'm rather stuck on this one, any help would be appreaciated.
    (some paths/file names have been replaced by "xxxxxxxxx", for security)
    * Checks for files in a directory, prints results.
    * @author Mitchell
    * @version 0.2
    * @date 28 Jul '05
    import java.awt.*;
    import java.io.*;
    import java.lang.Object;
    import javax.swing.*;
    import java.util.*;
    public class FileCheck extends JFrame
        //declare filenames/paths, add more if needed.
        String fileName1 = "file it2_load.txt";
        String fileName2 = "mo_batch.txt";
        String fileName3 = "mo_bcp.txt";
        String fileName4 = "mo_load.txt";
        String fileNameX = "IT2_1000_yyyymmdd.txt";
        String fileNameY = "IT2_2000_yyyymmdd.txt";
        //declare directories to search
        String fileLocation1 = "\\\\xxxxxxxxx\\aus_bear\\Patrol";
        String fileLocation2 = "\\\\xxxxxxxxx\\nz_bear\\Patrol";
        String fileLocation3 = "\\\\xxxxxxxxx\\bear\\remote\\RTS";
        String fileLocation4 = "\\\\xxxxxxxxx\\bear\\remote\\RTS";
        //declares array for filename storage. Change if needed.
        File fileNamesArray1[];
        File fileNamesArray2[];
        File fileNamesArray3[];
        File fileNamesArray4[];
        //set path to find files
        File filePath1 = new File(fileLocation1);
        File filePath2 = new File(fileLocation2);
        File filePath3 = new File(fileLocation2);
        File filePath4 = new File(fileLocation2);
        //string buffer to store results
        StringBuffer results = new StringBuffer();
        //start of FileCheck method
        public FileCheck()
            //collects all filenames from pre-set path1
            fileNamesArray1 = filePath1.listFiles();
            results.append("This program checks for files in given folders."
                            +"\nTRUE = File does exist in folder."
                            +"\nFALSE = File does not exist in folder.\n\n");
            results.append(fileLocation1 + "\n");
            //start for loop1 - check for pre-set filenames in path1
            for(int i=0; i < fileNamesArray1.length; i++)
                    if( fileName1.equals(fileNamesArray1.toString()))
    results.append("PATH1 >> " + fileNamesArray1[i] + " >> TRUE\n" + fileNamesArray1[i].lastModified());
    else if( fileName2.equals(fileNamesArray1[i].toString()))
    results.append("PATH1 >> " + fileNamesArray1[i] + " >> TRUE\n" + fileNamesArray1[i].lastModified());
    else if( fileName3.equals(fileNamesArray1[i].toString()))
    results.append("PATH1 >> " + fileNamesArray1[i] + " >> TRUE\n" + fileNamesArray1[i].lastModified());
    else if( fileName4.equals(fileNamesArray1[i].toString()))
    results.append("PATH1 >> " + fileNamesArray1[i] + " >> TRUE\n" + fileNamesArray1[i].lastModified());
    else
    results.append("PATH1 >> " + fileNamesArray1[i] + " >> FALSE\n");
    } //end for loop1
    //collects all filenames from pre-set path2
    fileNamesArray2 = filePath2.listFiles();
    results.append("\n" + fileLocation2 + "\n");
    //start for loop2 - check for pre-set filenames in path2
    for(int j=0; j < fileNamesArray2.length; j++)
    if( fileName2.equals(fileNamesArray2[j].toString()))
    results.append("PATH2 >> " + fileNamesArray2[j] + " >> TRUE\n" + fileNamesArray2[j].lastModified());
    else if( fileName2.equals(fileNamesArray2[j].toString()))
    results.append("PATH2 >> " + fileNamesArray2[j] + " >> TRUE\n" + fileNamesArray2[j].lastModified());
    else if( fileName3.equals(fileNamesArray1[j].toString()))
    results.append("PATH2 >> " + fileNamesArray2[j] + " >> TRUE\n" + fileNamesArray2[j].lastModified());
    else if( fileName4.equals(fileNamesArray1[j].toString()))
    results.append("PATH2 >> " + fileNamesArray2[j] + " >> TRUE\n" + fileNamesArray2[j].lastModified());
    else
    results.append("PATH2 >> " + fileNamesArray2[j] + " >> FALSE\n");
    } //end for loop2
    //collects all filenames from pre-set path1
    fileNamesArray3 = filePath3.listFiles();
    results.append("\n" + fileLocation3 + "\n");
    //start for loop3 - check for pre-set filenames in path1
    for(int k=0; k < fileNamesArray3.length; k++)
    if( fileNameX.equals(fileNamesArray3[k].toString()))
    results.append("PATH3 >> " + fileNamesArray3[k] + " >> TRUE\n" + fileNamesArray3[k].lastModified());
    else
    results.append("PATH3 >> " + fileNamesArray3[k] + " >> FALSE\n");
    } //end for loop3
    //collects all filenames from pre-set path4
    fileNamesArray4 = filePath3.listFiles();
    results.append("\n" + fileLocation4 + "\n");
    //start for loop4 - check for pre-set filenames in path1
    for(int l=0; l < fileNamesArray4.length; l++)
    if( fileNameY.equals(fileNamesArray4[l].toString()))
    results.append("PATH4 >> " + fileNamesArray4[l] + " >> TRUE\n" + fileNamesArray4[l].lastModified());
    else
    results.append("PATH4 >> " + fileNamesArray4[l] + " >> FALSE\n");
    } //end for loop4
    //construct displaybox for results
    JTextArea textArea = new JTextArea( results.toString() );
    textArea.setEditable(false); //disables modification of results
    Container container = getContentPane();
    container.add( new JScrollPane( textArea ) );
    setSize( 500, 500 ); // set window size
    setVisible( true ); //allow visibility
    //main
    public static void main (String args[])
    FileCheck window = new FileCheck();

    You could try using the File.exists() method.
    The paths are on networked drives, does that make a difference?Try the above on a local file and a networked file.
    I'm writing a simple program, Actually a simple program would be something like:
    File file = new File("xxx");
    System.out.println(file.exists());No need to include all the code you posted.
    http://www.physci.org/codes/sscce.jsp

  • Pacman hanging on "checking for file conflicts"

    I've tried running pacman -Syu on my laptop and pacman is simply hanging at the checking for file conflicts stage.  I've let it sit for several minutes, but it never seems to get past that stage.  The list of packages to be updated isn't long:
    Targets (5): bison-2.6.2-1 chromium-21.0.1180.75-1 flex-2.5.37-1 libldap-2.4.32-1 lm_sensors-3.3.2-4
    This is being done on a laptop that was only recently rebuilt with a new Arch install using the latest installation media.  The install went well and previous updates have worked with no problems.

    I'm glad you solved the problem but "pacman -Scc" shouldn't be necessary and makes it more difficult to recover in a variety of situations. You can always re-download old packages but having them in your cache makes it easy to roll something back and makes it possible to do this without, for example, a working network connection. I installed in November and I've never even run "pacman -Sc" let alone "pacman -Scc". (Though I have trimmed the cache to free up disk space using, I think, paccache.)

  • [solved] pacman 4 hangs after "checking for file conflicts"

    Like others, I removed yaourt and package-query because they conflicted with pacman4... not worried about that, I'll reinstall them later.
    I put the new pacman.conf in place (my old one wasn't really customized).  I left SigLevel = Never.
    Now, I can run pacman -Sy fine, but if I try to install anything, I it just hangs:
    sudo pacman -S audacity
    resolving dependencies...
    looking for inter-conflicts...
    Targets (1): audacity-1.3.14-2
    Total Download Size: 3.21 MiB
    Total Installed Size: 15.29 MiB
    Net Upgrade Size: -0.00 MiB
    Proceed with installation? [Y/n]
    :: Retrieving packages from extra...
    audacity-1.3.14-2-x86_64 3.2 MiB 1397K/s 00:02 [###########################] 100%
    (1/1) checking package integrity [###########################] 100%
    (1/1) loading package files [###########################] 100%
    (1/1) checking for file conflicts [###########################] 100%
    I've waited up to 20 or 30 minutes and nothing happens.  It's not just audacity, any package I try to install does this.
    Suggestions?
    Last edited by TheAmigo (2012-01-17 18:55:38)

    With --debug switch it prints:
    checking for file conflicts...
    debug: looking for file conflicts
    debug: searching for file conflicts: coreutils
    debug: searching for filesystem conflicts: coreutils
    debug: searching for file conflicts: ethtool
    debug: searching for filesystem conflicts: ethtool
    debug: searching for file conflicts: fail2ban
    debug: searching for filesystem conflicts: fail2ban
    debug: searching for file conflicts: gpgme
    debug: searching for filesystem conflicts: gpgme
    debug: searching for file conflicts: vim-runtime
    debug: searching for filesystem conflicts: vim-runtime
    debug: searching for file conflicts: gvim
    debug: searching for filesystem conflicts: gvim
    debug: searching for file conflicts: hdparm
    debug: searching for filesystem conflicts: hdparm
    debug: searching for file conflicts: inetutils
    debug: searching for filesystem conflicts: inetutils
    debug: searching for file conflicts: lib32-glibc
    debug: searching for filesystem conflicts: lib32-glibc
    debug: searching for file conflicts: lib32-gcc-libs
    debug: searching for filesystem conflicts: lib32-gcc-libs
    debug: searching for file conflicts: lib32-glib2
    debug: searching for filesystem conflicts: lib32-glib2
    debug: searching for file conflicts: lib32-gdk-pixbuf2
    debug: searching for filesystem conflicts: lib32-gdk-pixbuf2
    debug: searching for file conflicts: lib32-pango
    debug: searching for filesystem conflicts: lib32-pango
    debug: searching for file conflicts: lib32-gtk2
    debug: searching for filesystem conflicts: lib32-gtk2
    debug: searching for file conflicts: linux
    debug: searching for filesystem conflicts: linux
    debug: searching for file conflicts: nspluginwrapper
    debug: searching for filesystem conflicts: nspluginwrapper
    debug: searching for file conflicts: nvidia
    debug: searching for filesystem conflicts: nvidia
    debug: searching for file conflicts: qtwebkit
    debug: searching for filesystem conflicts: qtwebkit
    debug: searching for file conflicts: rpcbind
    debug: searching for filesystem conflicts: rpcbind
    debug: searching for file conflicts: unrar
    debug: searching for filesystem conflicts: unrar
    debug: searching for file conflicts: xscreensaver
    debug: searching for filesystem conflicts: xscreensaver
    checking available disk space...
    debug: checking available disk space
    Without the --debug switch
    Proceed with installation? [Y/n]
    (21/21) checking package integrity [############################] 100%
    (21/21) loading package files [############################] 100%
    (21/21) checking for file conflicts [############################] 100%
    Note that the 'checking available disk space...' is not printed without the --debug option although it doesn't look like being 'debug output'.
    I don't see much disk activity after that and the pacman process uses no CPU time and the process status goes to D in `ps` (man ps says: D: Uninterruptible sleep (usually IO)).
    Last edited by drrossum (2012-01-18 21:58:28)

  • [solved] "pacman -Syu" hangs after "checking for file conflicts"

    This is my third attempt.  I let it run yesterday for 20 hours on the theory that maybe it was actually doing something.  It always completes "checking for file conflicts" but never goes any further.
    Does anyone have any suggestions how to get it to continue?
    [ken@xxxxx ~]$ sudo pacman -Syu
    :: Synchronizing package databases...
    core is up to date
    extra 1421.6 KiB 2.03M/s 00:01 [######################] 100%
    community 1775.0 KiB 3.00M/s 00:01 [######################] 100%
    :: Starting full system upgrade...
    resolving dependencies...
    looking for inter-conflicts...
    Targets (27): binutils-2.23-1 coreutils-8.20-1 cryptsetup-1.5.1-1
    device-mapper-2.02.98-1 emacs-24.2-2 filesystem-2012.10-2
    firefox-16.0.2-1 gcc-4.7.2-2 gcc-libs-4.7.2-2 glibc-2.16.0-5
    hwids-20121022-1 imagemagick-6.8.0.3-1 libidn-1.25-1
    libwbclient-3.6.9-1 linux-api-headers-3.6.3-1 lvm2-2.02.98-1
    mkinitcpio-0.11.0-1 nspr-4.9.3-1 nss-3.14-1
    nss-myhostname-0.3-3 smbclient-3.6.9-1 systemd-195-2
    thunderbird-16.0.2-1 tzdata-2012h-1 util-linux-2.22.1-2
    wget-1.14-2 xulrunner-16.0.2-1
    Total Download Size: 47.80 MiB
    Total Installed Size: 550.57 MiB
    Net Upgrade Size: 6.43 MiB
    Proceed with installation? [Y/n] y
    :: Retrieving packages from extra...
    libwbclient-3.6.9-1... 19.5 KiB 407K/s 00:00 [######################] 100%
    smbclient-3.6.9-1-x... 7.9 MiB 2.71M/s 00:03 [######################] 100%
    thunderbird-16.0.2-... 17.1 MiB 2.92M/s 00:06 [######################] 100%
    xulrunner-16.0.2-1-... 22.9 MiB 2.92M/s 00:08 [######################] 100%
    (27/27) checking package integrity [######################] 100%
    (27/27) loading package files [######################] 100%
    (27/27) checking for file conflicts [######################] 100%
    Last edited by KenJackson (2012-10-30 14:25:05)

    Allan wrote:Can you run with --debug?
    OK.  That garnered an additional piece of info.  Here's the end of the long output:
    debug: searching for filesystem conflicts: wget
    debug: searching for file conflicts: xulrunner
    debug: searching for filesystem conflicts: xulrunner
    checking available disk space...
    debug: checking available disk space
    Disk space?  I think I have enough disk space.
    [ken@xxxxx ~]$ df
    Filesystem Size Used Avail Use% Mounted on
    rootfs 47G 11G 34G 25% /
    dev 2.0G 0 2.0G 0% /dev
    run 2.0G 292K 2.0G 1% /run
    /dev/sda3 47G 11G 34G 25% /
    shm 2.0G 140K 2.0G 1% /dev/shm
    /dev/sda1 99M 21M 74M 22% /boot
    /dev/sda4 72G 1.9G 66G 3% /home
    Is disk space really the problem?  Or is that just where it hung?

  • Spell check for kids using flash

    I am creating a spell check for kids using flash.
    The flash starts with a silhouettes of a word say B A N A N A and below it shows a jumbled up letters. The kids drags and drops each letter on top of the dark silhouettes. If it matches scores points.
    Any help in creating AS3 script will be apreciated. I did create one using mc and target mc and works fine when the mc is draged on to target mc. Only problem arises when there are duplicate letters.
    Thanks in advance

    What I described will work as you describe wanting.  If every A movieclip has a property (name this property anything you want, like "myLetterValue")  with a value of "A" and every A-target movieclip also has a property with a value of "A", then you can use those properties to determine when any object with an "A" is planted on any target with an "A"
    So when you drop a letter on a target you compare the property of each to see if they are equal...  if(targetMC.myLetterValue == letterMC.myLetterValue){  // correct match  }

  • Checking for file conflicts: could not get filesystem information

    When I try to install a new package with pacman 4 I got the following warning just after pacman has done "checking for file conflicts":
    warning: could not get filesystem information for /var/lib/ntp/etc/resolv.conf (deleted): No such file or directory
    After the warning message is printed, the installation continues normally.  This warning message has never shown up before.
    I have ntpd running in a chroot as a non-root user (instructions).
    I am wondering if anyone else gets the same warning message and if this 'problem' can be solved.
    I forgot to say: the file is still there according to ls and is not empty, but the contents differs form the /etc/resolv.conf-file.
    tim@tim-notebook:~$ cat /var/lib/ntp/etc/resolv.conf && echo && cat /etc/resolv.conf
    # Generated by NetworkManager
    # Generated by NetworkManager
    nameserver 192.168.1.1
    Last edited by timothy (2012-01-19 00:15:51)

    I'm not sure how to do that or I do not know exactly what you mean.
    tim@tim-notebook:~$ pkgfile -gs "*etc/resolv.conf"
    core/filesystem
    extra/archboot
    But you probably already knew that.
    Running pacman with the --debug option did not gave me any more clues.  All I know now, is that this message is printed when the moundpoints are examined:
    stderr 'pacman -Syu--debug' output wrote:(...)
    debug: checking possible conflict: /var/lib/
    debug: file is a directory, not a conflict
    debug: checking available disk space
    warning: could not get filesystem information for /var/lib/ntp/etc/resolv.conf (deleted): No such file or directory
    debug: mountpoint: /var/lib/ntp/proc
    debug: mountpoint: /var/lib/ntp/lib
    debug: mountpoint: /var/lib/ntp/etc/services
    debug: mountpoint: /tmp

  • Use thread to check for file exists. How?

    public class FileSearcher extends Thread
         String name = "Unknown";
         //RunFileSearcher rfs = new RunFileSearcher(name);
         //FileSearcher rfs = new FileSearcher(name);
         File f = new File();
         Thread t = new Thread(); // create  the thread
         t.start(); // start the thread running
         public void run(name)
              if( f.exists(name) )
                   System.out.println("*** File " + f + " has been created. ***");
              else
                   System.out.println("Searching for file " + f) ;
    }How do I use each thread to check for each file exists per sec??
    Please Help Thanks

    1) Why are you using Threads?
    2) It is preferrable to implement Runnable.
    3) This is all incredibly pointless (see point 1)

  • Unable to check-in file using CHECKIN_UNIVERSAL in UCM11g through SOA

    Hello all,
    I am unable to checkin/uploading files using CHECKIN_UNIVERSAL in UCM 11g through SOA. I am getting below error:
    error">Error: java.lang.NullPointerException
    Below are invoke operation that I am using:
    <messages>
    <Invoke_Generic_Soap_Port_Ref_GenericSoapOperation_InputVariable>
    <part  name="GenericRequest">
    <GenericRequest  webKey="cs">
    <tns:Service  IdcService="CHECKIN_UNIVERSAL">
    <tns:Document>
    <tns:File  name="primaryFile"  href="/u01/app/oracle/ftp/test/Test_UCM_Upload.txt"/> 
    </tns:Document>
    </tns:Service>
    </GenericRequest>
    </part>
    </Invoke_Generic_Soap_Port_Ref_GenericSoapOperation_InputVariable>
    <Invoke_Generic_Soap_Port_Ref_GenericSoapOperation_OutputVariable>
    <part  name="GenericResponse">
    <ns2:GenericResponse  webKey="cs">
    <ns2:Service  IdcService="CHECKIN_UNIVERSAL">
    <ns2:Document>
    <ns2:Field  name="error">Error: java.lang.NullPointerException</ns2:Field> 
    </ns2:Document>
    </ns2:Service>
    </ns2:GenericResponse>
    </part>
    </Invoke_Generic_Soap_Port_Ref_GenericSoapOperation_OutputVariable>
    </messages>
    Can anyone help me out please.
    -Ayan

    Hi TDN,  
    Thanks for your post.
    You’re using TFS 2013 Update 4 and VS 2013 Update 4?
    According the error message, it seems TFS Server think this file is not changed.
    After step 8, if there’s the edited icon shows on your testfile1.txt in Source Control Explorer?
    Please click Refresh button in your Source Control Explorer, then re-edit your testfile1.txt file and try check-in again.
    And try to reproduce this scenario on your another client(VS 2013 installed), check if this issue can be reproduce on another client or not.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How to search for files using wildcards * and ?.

    Hi All,
    I've been searching the forum for a couple of hours now and have been unable to find a good example of how to search a directory (Windows OS) for a file using wildcards * and/or ?. Does anyone out there have a good example that they can share with me?
    Thanks

    Hi All,
    First of all I want to thank everyone for taking the time to respond to my question. All of your responses where greatly appreciated.
    I took the example code that was posted by rkconner, thanks rkconner, and modified it to allow me to search for files in a directory that contain * and/or ?. Yes, I said and/or! Meaning that you can use them both in the same file name, example: r??d*.t* would find readme.txt.
    I've posed my complete and thoroughly document code below. I hope it is very helpful to other as I have searched many forums and spent many hours today trying to resolve this problem.
    Enjoy
    * File Name: WildcardSearch.java
    * Date: Jan 9, 2004
    * This class will search all files in a directory using the
    * asterisk (*) and/or question mark (?) as wildcards which may be
    * used together in the same file name.  A File [] is returned containing
    * an array of all files found that match the wildcard specifications.
    * Command line example:
    * c:\>java WildcardSearch c:\windows s??t*.ini
    * New sWild: s.{1}.{1}t.*.ini
    * system.ini
    * Command line break down: Java Program = java WildcardSearch
    *                          Search Directory (arg[0]) = C:\Windows
    *                          Files To Search (arg[1]) = s??t*.ini
    * Note:  Some commands will not work from the command line for arg[1]
    *        such as *.*, however, this will work if you if it is passed
    *        within Java (hard coded)
    * @author kmportner
    import java.io.File;
    import java.io.FilenameFilter;
    public class WildcardSearch
         private static String sWild = "";
          * @param args - arg[0] = directory to search, arg[1] = wildcard name
         public static void main(String[] args)
              String sExtDir = args[0]; // directory to search
              sWild = args[1];   // wild card to use - example: s??t*.ini
              sWild = replaceWildcards(sWild);
              System.out.println("New sWild: " + sWild);
              File fileDir = new File(sExtDir);
              File[] arrFile = fileDir.listFiles(new FilenameFilter()
                   public boolean accept(File dir, String name)
                        return (name.toLowerCase().matches(sWild));
              for (int i = 0; i < arrFile.length; ++i)
                   System.out.println(arrFile.getName());
         }     // end main
         * Checks for * and ? in the wildcard variable and replaces them correct
         * pattern characters.
         * @param wild - Wildcard name containing * and ?
         * @return - String containing modified wildcard name
         private static String replaceWildcards(String wild)
              StringBuffer buffer = new StringBuffer();
              char [] chars = wild.toCharArray();
              for (int i = 0; i < chars.length; ++i)
                   if (chars[i] == '*')
                        buffer.append(".*");
                   else if (chars[i] == '?')
                        buffer.append(".{1}");
                   else
                        buffer.append(chars[i]);
              return buffer.toString();
         }     // end replaceWildcards method
    }     // end class

  • Checking for file whether it is excel file or not??

    when ever we r  download or upload a file we never check for its type...
    like when gui_upload fm used then it should be text file ....or
    when alsmex_excel_to_internal_table fm used by default check its have 2 be excel file...
    but my recomend is when ever download/upload a file its checking its type....
    if .xls file then alsmex_excel_to_internal_table fm runs or if .txt then gui_upload runs...
    need some type of file checking..
    Thanks & regards ,
    Sagnik Roy

    CALL FUNCTION '/SAPDMC/LSM_PATH_FILE_SPLIT'
          EXPORTING
            pathfile = lf_path  "<--Your file path
          IMPORTING
            pathname = lf_path
            filename = lf_name.
    CHECK lf_name IS NOT INITIAL.
        CALL FUNCTION 'TERM_TRANSLATE_TO_UPPER_CASE'
          EXPORTING
            langu               = sy-langu
            text                = lf_name
          IMPORTING
            text_uc             = lf_name
          EXCEPTIONS
            no_locale_available = 1
            OTHERS              = 2.
        IF sy-subrc <> 0.
          MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                  WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        ENDIF.
    IF lf_name CA '.'.
          sy-fdpos = sy-fdpos + 1.
          IF lf_name+sy-fdpos(*) = 'TXT'(044).
          "<---Call your upload fm here
         ELSEIF lf_name+sy-fdpos(*) = 'XLS'(045).
          "<---Call your upload fm here   
        ENDIF.
    ENDIF.

  • Tidal check for files that are in a certain format

    Hello,
    I am new to Tidal and I have been able to get a simple job to work that simply logs into our client's SFTP server, gets all files and brings them back to our system. Since SFTP is smart enough to know if we have a duplicate file, using wildcards has proved as an easy way to get this job started.
    However, we certainly would rather have this job running a lot tighter and error proof for the future. So I figured I would come here to ask a few questions and see if anyone could provide me with some assistance on getting this script running a lot better.
    Basically, we need to check this client's site every four hours for a file that they will be uploading daily. They don't put it on the site at the same time everyday, so that makes things a tad bit more difficult, but certainly not a big deal. The format of the file is always going to be the same and this is where I wanted some assistance.
    The file will always be in the format of yyyymmdd_this_is_same_every_time.gz
    So I basically just need a way to define a varaible in Tidal for this file that will take into consideration the date stamp of the file. Grab that certain file and then move it to an archive directory. We then plan on deleting files that are over a week old in the archive, but I feel like that is the easier task here.
    Again, any assistance would be appreciated.
    Thanks guys.

    If you go to the variable definition item, you can define a variable of date and check the "calculated" box. This allows you to apply various offsets such as +1, -1, previous working day and so on. Judicious combination of these offsets can give you all sorts of capabilities like "previous working day unless its the 29th February and unless its the year 2025 but it is my birthday".
    "Working day -1 except if its Monday so last working day was Friday" is a common one for people to use.
    Just remember you are now looking in the variables definitions menu ie outside the job definition as discussed above.
    Cheers

  • Polling for files using SAP workflow

    Hi all. First of all, I am not sure if this is the correct forum for this question.. Please let me know if it needs to be moved.
    I need to know if it is possible to use SAP Workflow to keep looking (polling) for files in a certain directory? I know I can do this in XI, but need to know if the same capability is available within Workflow? If it is possible, can anyone tell me how / where to find the information on how to do it?
    Any help is greatly appreciated.
    Cheers,
    Thomas

    Hi- Both the ways are possible
    1. Extended Notification (you need to configure and schedule prog.) which will send email automatically to outlook (based on user's mail id in SU01D) whenever the approver receives new approval task and the email will have link to Approve/Reject (based on the underlying WF step). When approver clicks on the link, it will ask for user id/pwd and approver can take decision
    2. You can also send plain email notification in WF using mail step to outlook and based on the mail, approver can take action from inbox
    Vinoth

  • Question about deletion of checked out file using CMIS connector

    When testing file deletion with Adobe Drive connected to an implementation of CMIS server, I ran into some mildly unexpected behavior for when the file is checked out.
    I successfully checked out a file through Adobe Drive then deleted the file. Our server has a constraint that checked out files are protected against deletions, renaming, and moves. So, I was expecting the operation to fail. Instead, the result was that the file had its check out canceled.
    In the AtomPub binding, a cancel check out is specified by deleting the pwc version of the the checked out file. So, this behavior did not strike me as too far off my expectations and I confirmed that the objectid in the deletion request sent by Adobe Drive was the id for pwc version of the file.
    Is this behavior intentional? Or is this an artifact of the way Adobe Drive caches the objectid of files? Check out requests do return an objectid and that objectid is that of the new pwc version of the file. So, the later behavior would not surprise me.
    Thanks

    Hi,
         Yes, this behavior is intentional.
         To bypass the possible constraint during deleting a checked-out file, Adobe Drive intentionally try to cancel check out this file by deleting the pwc version of the checked-out file.
    Regards,
    Gang

  • Checking for file extensions

    I have a form that I want to submit a csv file to, however I would like to check the file to make sure that it is indeed .csv before I perform the task that I need to do
    *****************Example***********************
    form.html
    <form name=vo_verify action=verify.jsp method=post>
    <input type=file>
    <input type=submit>
    </form>
    verify.jsp
    return true == .csv
    return false != .csv

    Could you do a check for the substring within the filename?
    Like,
    String filename = (String)request.getParameter("file");
    int index = filename.indexOf(".csv");
    if (index == -1) do something; //extension .csv not found
    else do something else;
    There might be a better way to do this, but this should work I think.
    Also, bdtjdc was just trying to help, which is what this forum is for. :)

Maybe you are looking for