Append file name using FileSelectPopup under Windows 7

Hi,
I saw the following thread for the same issue in Vista, just wanted to make sure that this issue has been fixed for Windows 7 also before I upgrade to the latest version.
http://forums.ni.com/t5/LabWindows-CVI/Append-file-name-using-FileSelectPopup-under-Windows-VISTA/m-...
Thanks,
Karthik
Solved!
Go to Solution.

Hi,
I ran across that issue when I was running applications built under CVI 7.1.1 on Windows 7.  I can verify that rebuilding the application under CVI 2009 SP1 and later CVI 2010 fixed the issue.  So you should be ok.

Similar Messages

  • Target file name using Dynamic Configuration

    Hi,
    Currently we have requirement Idoc to File interface.In this scenario if one field exists infile then we have to check and we need to create update directory and  if it is not exist then we should create one more  directory and upload files over there there files should create with timestamp. Since,File system using Sql database so we have used JDBC lookup to check that particaluar field  and if it exists we are passing update to UDF if it is not then we are passing constant Create to that. If we use Adapter Specific Message Attributes  then in reciever side file Communication Channel addtimestap will it consider or do we have to write anything in Udf it self? Could anybody explain on this?Please provide some sample udf .
    Thanks ,
    Aparna.
    Edited by: aparna_karnam on Dec 24, 2011 11:44 AM
    Edited by: aparna_karnam on Dec 24, 2011 11:52 AM

    Hi,   
            I have added little changes to the code you have written, to meet your expectations
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","Directory");
    conf.put(key,"/sap-dev/" +a);
    DynamicConfiguration conf1 = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key1 = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File", "FileName");
    string filename=conf1.get(key1);
    final String DATE_FORMAT_NOW = "dd-MM-yyyy_HH-mm-ss";
    String s;
    java.text.SimpleDateFormat sdf = new java.text.SimpleDateFormat(DATE_FORMAT_NOW);
    java.util.Calendar cal = java.util.Calendar.getInstance();
    s=sdf.format(cal.getTime());
    filename=a+" "+"User_"+s+".txt";
    conf1.put(key1,filename);
    return " ";
    So if value of input variable "a" is "update" then the target directory will be "/sap-dev/update" and the file formed will have name "update User_26-12-2011_01-20-50.txt", of course the date and time values will change depending on server settings. I just showed a sample. one more point, the directory will not be created, you have to create the directories before you run the scenario, only the final directory will be decided depending on value of variable "a". In case you wanna create new directory if directory is not pre-existing then try ticking  on "Create Target Directory" option under "file access parameters" in communication channel. (I have never used this option u can have a try. )
    Now coming to your queries
    1. But whether file type txt automatically it will take or do we have to give in udf it self ?
    ans) You have to put the value in UDF as I have done in code.
    2.    how it will consider timestamp ?
    ans) This has been generated in UDF itself.
    3.  how i can give file extension .txt?
    ans) same as ans 1
    4. And also in Receiver Communication Channel under Adapter Specific Message attributes we have option of file type how it works?
    ans) File type determines is the file you are going to write is of type "text" or "binary". From "Processing Parameters" tab you can select this from drop down menu in communication channel or you can set it through ASMA properties in similar manner as you have done for file name and directory name. For more details refer to http://help.sap.com/saphelp_nw04/helpdata/en/bc/bb79d6061007419a081e58cbeaaf28/content.htm
    http://help.sap.com/saphelp_nwpi71/helpdata/en/44/6830e67f2a6d12e10000000a1553f6/content.htm
    Finally few more points I would like to add
    1) you have  not mentioned the operating system of the server where file is going to form. In case its UNIX/LINUX you are not allowed to use space in the filename. you can consult these links before you decide on file name and directory name in the UDF mentioned above
    http://www.med.nyu.edu/rcr/rcr/nyu_vms/unixfileanddirectorynames.htm     (UNIX)
    http://msdn.microsoft.com/en-us/library/windows/desktop/aa365247(v=vs.85).aspx#naming_conventions  (WINDOWS)
    2) you can alter the string "DATE_FORMAT_NOW" as per your requirement so  that the timestamp appears in the way you want. I have just showed a sample.
    3) Plesae do not forget to tick on the options "Use Adapter-Specific Message Attributes indicator", "Fail If Adapter-Specific Message Attributes Missing", indicators "File Name" and "Directory" under "Define Adapter-Specific Message Attributes." in receiver communication channel.
    Hope this solves your problem.
    Wish my dear forum members and users of SDN
    Merry Christmas and Happy new year (in advance)
    Regards
    Anupam
    N.B:- I initially forgot to add the ".txt" part to the file name. I made necessary corrections in code now.

  • Converting file names from Mac to Windows.

    I am an Apple tech at a university that uses both PCs and Macs. We have found that we run into some problems when transferring a user's data from one platform to the other.
    When transferring lots of files, what do you experienced Mac techs use for safely converting file names from Mac to Windows?
    From Windows to Mac?
    We've tried NameCleaner and ended up with bad results.
    Please let me know if there is something good out there for these conversions.
    ---Timothy

    The problem looks like this:
    1. User wants to switch from Mac to Windows.
    2. We back up the data from his Mac to a server (an X-Serve RAID).
    3. We log into the server from Windows.
    4. We try to pull his data from the server.
    During this data transfer, it quits with an error stating that it can't finish copying the data. I wish I had the exact text, but I don't. It does this repeatedly, and stops on different files from different locations.
    In essence, without "cleaning" the Mac file names, data transfer to Windows cannot successfully complete. It quits on certain Mac file names. In the past, NameCleaner has worked sometimes, but now we have had some issues with NameCleaner (which don't matter in this discussion). The goal is to find a better solution than NameCleaner.

  • Selection of Folder/File name using the same Fun.Module

    Please let me know if there is a function module which can fetch folder name/File name  from the directory path when f4 option of selection screen field is selected. Currently I am able to get the file name using FM F4_DXFILENAME_4_DYNP but the requirment is like I have to select either folder name or the file name depending on user selection.
    Note: Please let me know if there is a single Function module which can get folder name or the file name based on the user selection.i.e, if the user want to select a folder he can select or he can select files in the folder for processing

    Hi sridhar
    try this:
    PARAMETER : TXT_FILE(100).
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR TXT_FILE.
    PERFORM GETFILE.
    start-of-selection.
    PERFORM GETDATA.
    FORM GETDATA.
      DATA : FILENAME TYPE STRING.
      FILENAME = TXT_FILE.
      CALL FUNCTION 'GUI_UPLOAD'
        EXPORTING
          FILENAME                      = FILENAME
         FILETYPE                       =  'ASC'
         HAS_FIELD_SEPARATOR           = 'X'
        HEADER_LENGTH                 = 0
        READ_BY_LINE                  = 'X'
        DAT_MODE                      = ' '
        CODEPAGE                      = ' '
        IGNORE_CERR                   = ABAP_TRUE
        REPLACEMENT                   = '#'
        CHECK_BOM                     = ' '
      IMPORTING
        FILELENGTH                    =
        HEADER                        =
        TABLES
          DATA_TAB                      = IT_UPLOAD
      EXCEPTIONS
        FILE_OPEN_ERROR               = 1
        FILE_READ_ERROR               = 2
        NO_BATCH                      = 3
        GUI_REFUSE_FILETRANSFER       = 4
        INVALID_TYPE                  = 5
        NO_AUTHORITY                  = 6
        UNKNOWN_ERROR                 = 7
        BAD_DATA_FORMAT               = 8
        HEADER_NOT_ALLOWED            = 9
        SEPARATOR_NOT_ALLOWED         = 10
        HEADER_TOO_LONG               = 11
        UNKNOWN_DP_ERROR              = 12
        ACCESS_DENIED                 = 13
        DP_OUT_OF_MEMORY              = 14
        DISK_FULL                     = 15
        DP_TIMEOUT                    = 16
        OTHERS                        = 17
      IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    ENDFORM.
    FORM GETFILE.
      CALL FUNCTION 'WS_FILENAME_GET'
       EXPORTING
        DEF_FILENAME           = ' '
         DEF_PATH               = '.'
        MASK                   = ' '
        MODE                   = ' '
        TITLE                  = ' '
       IMPORTING
         FILENAME               = TXT_FILE
        RC                     =
      EXCEPTIONS
        INV_WINSYS             = 1
        NO_BATCH               = 2
        SELECTION_CANCEL       = 3
        SELECTION_ERROR        = 4
        OTHERS                 = 5
      IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    ENDFORM.
    <b>This is a part of my BDC program its working for me u try n reply if it works for u.</b>
    regards
    vijay

  • How to rename the SharePoint Document Library existing file name using Web service

    Hi,
    How to rename the SharePoint Document Library existing file name using SharePoint Web service.
    Is it possible. How could i do it?
    Thanks & Regards
    Poomani Sankaran

    Hi,
    Lists.UpdateListItems Method
    would be helpful for your requirement.
    Here is a blog with code demo for your reference:
    http://blogs.msdn.com/b/knowledgecast/archive/2009/05/20/moss-using-the-list-web-service-to-rename-a-file.aspx
    Best regards,
    Patrick
    Patrick Liang
    TechNet Community Support

  • How to find the File name using the FTP Adapter

    hi all,
    how to find the File name using the FTP Adapter with BPEL.
    Regards

    Found the solution for this.
    First In the mediator's routing rule use assign property $in.property.jca.file.FileName to $out.property.jca.file.FileName
    In the BPEL's receive activity go to the properties tab and get the property to a BPEL variable. That should do it.
    Thanks for the posts

  • How to get file name using File adapter Sync read

    Hi All,
    I am using SOA 10.1.3.3 and JDEV 10.1.3.3.
    I have an async bpel process.
    I have to read file name in this process... so i have used file adapter sync read operation.
    How can we get the file name with out payload using sync read.
    For normal read (Inbound Spec)we have UseHeaders="true" property.
    Is there any property for sync read to read the file name.
    Please help me
    Regards
    PavanKumar.M
    Edited by: [email protected] on Oct 27, 2009 11:23 PM

    Hi Eric,
    The info in the link provided by you is for a normal read.
    I need to read he file name using Sync read operation.
    Regards
    PavanKumar.M

  • Hoe to logical file name using "FILE" transcation

    I want to create a logical file name using  "FILE" transaction , i have file path '/xfer/OUT/IDD0230 ' that cureently hard coded in program but i want to avoid hard code .

    You need to go to FILE transction, create new entry.
    You need to specify Physical name i.e value hardcoded in your program
    and corresponding new Logical Path which enduser will be entering.
    In code u ned to decode Logical path to physical path as its actual path.
    Award points if helpful.
    Shital

  • How do i start using Sharepoint under Windows 8.1 on Surface RT?

    How do i start using Sharepoint under Windows 8.1 on Surface RT?

    On the Surface, open Internet Explorer, navigate to your SharePoint O365 or corporate SP url, login and then browse your sites.
    Chris Givens CEO, Architecting Connected Systems
    Blog Twitter

  • Same file name using JMS adapter on sender side.

    Hi Friends,
    I got a requirement to capture file name using JMS adapter on the sender side.
    Can some one help me in resolving this issue.
    Regards,
    Jeevan.

    Hi ,
    You can use Dynamic Configuration in mapping.
    Create a UDF with input as file name and copy/paste this code
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    //conf.removeAll();
    DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
    //String filename= conf.get(key);
    conf.put(key, fileName);
    key= null;
    return fileName;
    Thanks.

  • Can I append date to the file name using Bursting

    Hi All,
    I know that we can append date to the file using %y, %m and %d for
    Email
    FTP
    WEBDAV
    But is there any way of appending the date to the file name if I am bursting my file to a shared location.
    I tried that %y, %m and %d but that doesn't work for bursting.
    Please reply
    Thanks,
    Ronny

    If this requirment is for EBS, please refer the following blog
    http://blogs.oracle.com/BIDeveloper/2010/08/xdoburstrpt_passing_parameters.html
    For standalone see the following delivery sql query as example.
    select
    d.department_name KEY,
    'Standard' TEMPLATE,
    'RTF' TEMPLATE_FORMAT,
    'en-US' LOCALE,
    'PDF' OUTPUT_FORMAT,
    'FILE' DEL_CHANNEL,
    'C:\Temp' PARAMETER1,
    d.department_name||'_'||to_char(sysdate,'mmddyyyy')|| '.pdf' PARAMETER2
    from
    departments d
    Thanks
    Ashish

  • Office 2003 Can't Save Files (after a while) under Windows XP ! [FAT32]

    I've made a 30G Fat32 partition using Boot Camp and put XP2 on it, runs flawlessly. However, getting tired with the rosetta office under OS X, I switched to Windows last night for some heavy Word jobs (openning 4-5 20mb documents at same time).
    The speed is much faster than Mac Office, however, something really annoys me: a while after I've openned a file, office actually delete the originally file and failed to save a new one !!! For example, i openned Project_1.doc, do some editing, leave it for a while, and then press save. Error promts out "failed to save the file, permission error blah blah blah" and then the Current Document name (appers on the top left corner of the window) change to ~WXXXX.tmp. The only way i can get around is to click save as, manually type a new file name and then save it. and the original Project_1.doc disapear!!
    I almost paid heavily for this, after 4 hours work i was supposed to press the last Save. same error came out as expected, however some other windows pop up and shut the entire programme off (oh dear microsoft). As the original file has been magically removed, i get nothing... Thanks to long-time windows experience (fault torrent) I manage to recover my work from pieces of scratches (many pieces of ~WXXX.tmp) file, but this is wicked.
    Anyone has any ideas whys that? i've use both mac os x start disc and MS chkdsk to test the harddrive, no problem.
    .... hmmm....

    Noticed after testing that it was only shares on the xsan that were affected. If I created a share on the internal drive on the server, worked fine. That led me to this.
    http://stanford.edu/group/macosxsig/blog/2009/12/extendedattributes_office200.html
    we run into the same issue, XSan 2.2 with xattr, reshared via SMB&AFP. The strangest thing was that the error occur only when you try to copy to NTFS-formatted disks, and not FAT. What did the trick for us was to comment this line:
    ; vfs objects = darwinacl,darwin_streams
    in /etc/smb.conf and restarting the server. Banged my head on the wall for two weeks over this!

  • How To Control The Archive File Name using file adpater or OSB file traspor

    Hi all,
    My requirement is I want to archive a file by appending my BPEL instant id to the file name.
    Is this possible changing the file name when archive the file???
    Thanks
    Phani

    I couldn't find that out when I had the same requirement. I was running out of time, so I let Archive functionality works as it works and used the write file option with opaque schema.

  • Default File name using CL_BDS_DOCUMENT_SET= CREATE_WITH_TABLE

    Hi folks,
    We are using BSP application to display smartform in PDF format in a new page/window. When I try to save the PDF from the browser/window, its pops up a screen with defaults as "Desktop" and a File Name. I am not sure how system is generating the default file name. How can we change this File Name?
    Thanks for help!
    Best Regards,
    Praveen

    Hi,
    It's done while creating the Response-Caching as in below code:
    cl_http_server=>server_cache_upload( url = filename   response = response ).
    We can pass custom value in the variable filename.
    Kind Regards,
    Praveen

  • File name used by plug-in for saving the image file.

    I have a program that creates a web page that has an object tag with a call to a program and that program delivers a PDF file.  When my users want to save that image the name of the image is a random name.  Is there any way to make the plug-in, Adobe, use the meta tag Title or any other infromation that my program can provide, as image (file)  name to be used for saving the image. (the initial suggested name)?  I really appreciate your help.

    One option is to rename the file after it's been exported using Windows File I/O API.

Maybe you are looking for

  • FBL1N FBL3N FBL5N questions

    Hello all, I want to extract data from SAP to perform reconciliation and prepare a report in other tool. (extract data and import in other database etc..) The report is very basic but I still have a hard time to test the integrity of the data that I

  • Sluggish performance during disk operations

    I've got a PC with a SATA hard disk and Arch is installed into a partition which uses the Ext3FS. During any longer disk operations the performance degrades near to a level of unusability. The movement of the mouse pointer is very choppy, switching b

  • Remove Attachment in Mail Adapter Module

    Hi! My problem: I get an email with an attachment which I process in an adapter module for the mail adapter. With the resulting XML I set a new payload, but the old attachment still exists. This gets to a problem when I route the message back to the

  • Reg  module pool programming

    Hi, iam developing object on modulepool. can u pls send examples objects on modulepools. thank

  • Hierarchy Problem....Reply immediately

    Hey, When i'm using hierarchy in report, it is displaying values for the root node also. For example my top node is Region and lower node is state and city. It is displaying values for Region,State and City. Actually it should display Sum for Region