FM "GUI_UPLOAD " File type 'DAT' with UNICODE

Hi all,
        We’re using UNICODE  and we have developed a FM  which upload the data from application server as well as  from presentation server. Its based on selection screen options.  We are using GUI_UPLOAD FM in our function module. We have hardcode file type as ‘DAT’.
CALL FUNCTION 'GUI_UPLOAD'
      EXPORTING
        FILENAME                = Z_FILENAME
        FILETYPE                = 'DAT'
        HAS_FIELD_SEPARATOR     = 'X'
      TABLES
        DATA_TAB                = T_INPUT
But when we’re uploading file from presentation server as CSV, Tab delimited or even XLS .its giving an error. Why is that? Is this any thing to do with UNICODE? What should be the type of file DAT?
Please give your suggestions/input.
Thanks
Bye

"subrc = 5 "
INVALID_TYPE            = 5
Why We cant user file type 'DAT' with GUI_UPLOAD ?
I’m defining the structure as per file and rests of things are fine.
Thanks for the reply...!
<b>GUI_UPLOAD  HELP !!!</b>
Value range
<b>'DAT'</b>
  The components of the internal table are filled from the file. If the table contains several columns, the entries in the file must be separated by tabs. No conversion exits are carried out.
The following applies for the different data types:
I or N or P or F
The numbers must be formatted according to the decimal representation defined in the user settings.
D The date must be defined according to the date format defined in the user settings.
T The time must have the format hh:mm:ss.
Message was edited by: Suleman Javed

Similar Messages

  • Since changing our computer I have been unable to download ebooks to my Reader Library I get a message Some file types associated with EPUB files are not associated with Reader Library; Waterstones suggest that I may have accidentally created a new Adobe

    When I try to download them from the Waterstones website I get a message saying:
    ‘Some file types associated with EPUB files are not associated with Reader Library.  Do you want to associate them now?  When I reply yes I get another message; ‘Configuration error unable to update EPUB files check network firewall and try again’.
    The ‘books’ are saved in the Download directory and I can’t transfer them from there to my E-Reader. I have not had any problems before, it was very simple; I saved the download and it automatically went into the Reader Library.
    I contacted HP and they said it is a software error and suggested I contact Waterstones.  I contacted Waterstones Customer Support and got the following response:
    As the error message is specifically mentioning the firewall it does sound like something in the firewall settings is stopping the download from taking place correctly. However, the files should not be being saved to the Download folder. It would be worth trying again by going to your Digital Order History on your Waterstones.com account and pressing the download button, and then making sure to press "Open" not "Save". When you press Open rather than Save it should give the option to open the file with Adobe Digital Editions. If the firewall message still comes up then I'm afraid something is blocking it on your end.
    If the above "Open" download method works but you then still get an error message it could possibly be that you have accidentally created a new Adobe ID when setting up on the new computer, rather than signing in with your old Adobe ID. It would be worth trying the aforementioned download technique again first, but if problems did still persist it would be worth calling Adobe themselves on 0207 365 0735, as they should be able to sort out any account issue.
      In response to the first para of Waterstones email I already do what they suggest I do press ‘Open’ not ‘Save’ but I don’t get the open with Adobe Digital Editions (we have installed Adobe Digital Editions on the new computer. Waterstones say we may have ‘accidentally created a new Adobe ID when setting up the new computer’ does that mean that we shouldn’t have installed Adobe Digital Editions on the new computer as it would have already been there? How do I sign in with my old Adobe ID? 

    Hi all after attampting to get some supoport from adobe by phone.... nice people infurating policys as far as support for digital editions or DRM is conserned... However I got no where with support.
    I ended up instaling Digital editions on my desktop PC and going through the motions of registering and borrowing a book then returning it. Then I trying on my iPad, Bluefire worked, Over drive did not so I completely removed Overdrive and reinstalled and re registered. all working now.
    Maybe some one at adobe did something. Maybe the install of the adobe DE client on a PC corrected what ever was out of wack with my account. Mayby the server that my account lives on did a scan disk and corrected a bad clustrer.
    What ever happend My account is actiove and working again. hope this helps others.

  • I have Windows 7 for PC if I view a jpg file I gat the following message - Some of the file types associated with QuickTime applications are currently associated with otherapplications. Should I restore these file type associations to Quicktime. Yes or No

    After viewing a jpg file on my Windows 7 PC I get the following message and I don't know how to answer it "Some of thw file types associated with QuickTime applications are currently associated with other applications. Should I restore these file type associations to QuickTime?" Options are " Yes, No or Do not ask to perform yhis check again. QuickTime Control Panel can be used to make subsequent changes."
    What shoul I do about this message?

    Select no.

  • DIAdem File Write (DAT) with channel of different lenght

    Hi,
    I'm trying to write in a DIAdem DAT File some channels with different lenght but I've got the error:
    "File Write Error:Number of channel does not match existing file"
    About you is impossible to do it ?
    I post my example code
    Thanks a lot
    Attachments:
    Write DAT.vi ‏83 KB

    Hi Michele
    Yest, it is possible and you did quite in the right way. The reason why you receive that error code is because you set DIAdem File Write»file mode? terminal to TRUE instead of FAULSE.
    According to the specific VI Help File you shell use it configured as TRUE only if your data array is a waveform type:
    file mode? (block mode:F) Data is stored in block mode if FALSE, or channel mode if TRUE. Channel mode can only be used if the data is passed in the waveform array input.
    Hope this suggestion can help you.
    Have a nice day!
    Ale

  • PDF File Type 'Opens with' ignored

    We have systems with both Acrobat 8 and Reader 9.1 installed.  On those systems, double-clicking a PDF file opens the file with Acrobat 8, even though the 'Opens with' setting under Folder Options -> File types is set to Reader 9.1.  Why is our instruction being ignored?  How do we make the system use Reader 9.1 to open PDF files?
    Geof

    If you are on a Windows machine, maybe this is one of the reasons why it is recommended not to install both Acrobat and Reader in the same computer.

  • How to recover file type (creator) with SFTP transfer?

    I'm using SFTP to move data files from one 10.6 system to another 10.6 system. On the original system, double-clicking them opens them in the right program. But the names don't have file extensions, and when they are pulled onto a new system, I don't know what software to use to open them (I can't tell what kind of files they are). What can be done to either pull the meta-data with them (whatever their host OS uses to know how to open them) or to figure out what they are from their contents?

    I have solved!!! the problem was on the .mp3 files included on file, after I have converted all the mp3 on mp4 (5 files corrupted was not converted), reload new files on mp4 and all it's ok (saved and closed saved and closed)

  • Just installed CS6 but can't associate file type JPG with Photoshop.

    I've just now installed Photoshop CS6 and Lightroom 4. File types PSD and TIFF work fine, but I'm completely unable to associate JPG, JPEG or any other variant with the Photoshop program such that I can double-click on the photo file and open Photoshop and the photo. I can associate JPG with either Bridge or Lightroom, or several other programs, but when I browse to Photoshop and select Photoshop.exe nothing happens, not even an error message. Does anyone have a clue what's going on here?
    Operating system is Windows 7 Ultimate Edition, 32-bit. There is 4GB of memory in the machine, which is a Dell Vostro 1720 laptop.
    Thanks,
    Bill Sexauer

    I know there is a problem with the file associations and that I need to fix them. What I don't know is how to do it. I successfully fixed the associations for file types PSD and TIFF, but I'm completely unable to do the same for type JPG. I did use Open With and that's where it just refused to allow me to change to Photoshop. It would allow me to change from the default Windows Photo Viewer to Bridge or to Lightroom, but not to Photoshop.
    The problem was probably caused by my having installed CS6 prior to uninstalling CS4. Should I just reinstall CS6 right over the top of the existing CS6?

  • What file types work with Photoshop Touch?

    Is jpg the only file format that Adobe touch wil work with using the Android operating system?

    Hi arizonabackroad,
    See this discussion for a list of the file types you can use with Photoshop Touch on your Android tablet: http://forums.adobe.com/thread/916007?tstart=0.

  • Get a files creation date with UTL_FILE or DBMS_BACKUP_RESTORE.SEARCHFILES

    Hello gurus!
    I have a number of files in the filesystem and i need to find out the names and creation dates of these files. Please do not suggest Java as that is not an option.
    So far i get the names of the files from the SYS side with a procedure that I can call from the user side. The procedure returns an XML string:
    create or replace procedure list_directory(directory varchar2, retResultSet OUT VARCHAR2) is
         ns          VARCHAR2(1024);
         v_directory VARCHAR2(1024);
    BEGIN
          v_directory := directory;
          SYS.DBMS_BACKUP_RESTORE.SEARCHFILES(v_directory, ns);
          retResultSet := '<list>';
          FOR each_file IN (SELECT fname_krbmsft AS name FROM x$krbmsft) LOOP
              --DBMS_OUTPUT.PUT_LINE(each_file.name);
              retResultSet := retResultSet  || '<file>' ||each_file.name|| '</file>';
          END LOOP;
          retResultSet := retResultSet || '</list>';
    end list_directory;Question 1:
    Something like each_file.creation_date would be perfect but it seems like the filename is the only attribute available here from x$krbmsft. Am i wrong? Any other way on the SYS side to get the date?
    Question 2:
    On the users side i could use UTL_FILE to get filesize but not much more valuable information. Can i get the creation date somehow with UTL_FILE or similar?
    Any help is appreciated!

    Anyone got any ideas?Maybe a method as described in Re: Read all file names from Directory. may help (Shows also FileCreationDate).

  • Changing the application that a file type opens with

    I have MSFT Excel and Subethaedit installed...
    I want Subethaedit to open all "*.spad" files
    I go to "Get Info" then go to "Open with:" then choose Subethaedit
    Then I press "Change All...", a dialog pops up and asks if I want to apply the change to all documents of the form "*.spad", and I answer "continue" and then...
    It ignores me; it drops Subethaedit from the list of apps to "Open with" and doesn't change the default format.
    How do I force the type to change to the app I want? Is there a text-file I can munge somewhere?
    mac mini   Mac OS X (10.4.8)  

    Hi, thechao. Welcome to the Discussions.
    It's possible your launch services database is corrupted. See my "Resetting Launch Services" FAQ. Then try the procedure you defined earlier, which is also described in "Mac OS X 10.4 Help: Changing the application that opens a document."
    Good luck!
    Dr. Smoke
    Author: Troubleshooting Mac® OS X
    Note: The information provided in the link(s) above is freely available. However, because I own The X Lab™, a commercial Web site to which some of these links point, the Apple Discussions Terms of Use require I include the following disclosure statement with this post:
    I may receive some form of compensation, financial or otherwise, from my recommendation or link.

  • File type problem with email attachments

    Hi,
    I'm using SO_DOCUMENT_SEND_API1 to send email with an attachment. This attachment is a random file uploaded by the user on an ITS web site and sent to my FM.
    It is all working fine as long as I tell SO_DOCUMENT_SEND_API1 that the doc_type is 'PDF'. When I say it's 'JPG' I get an error "Message cannot be processed as it cannot be converted".
    It's not the actual file that is the problem, I can send jpg-images or any other file as long as I say t_packing_list-doc_type   =  'PDF'. However this leads to the attached file being called *.PDF instead of *.JPG, and the receiver has to rename it.
    The relevant code is
      t_packing_list-doc_type   =  ld_format.
      t_packing_list-obj_descr  =  ld_attdescription.
      t_packing_list-obj_name   =  ld_attfilename.
    where
    - ld_format is the file extension (e.g. 'jpg', 'pdf', ...)
    - ld_attdescription = ' ' (1 space)
    - ld_attfilename is the file name without extension (e.g. 'image001')
    My FM has to work with any file extension. It receives the file name and the file extension (jpg, pdf, doc, whatever) as an input parameter along with the file, and I just need to be able to email this file with the originale file name and extension no matter what that extension is. Any suggestions? Tia.

    hi Filip Camerman,
    i am giving you the sample code try this as such.
    it_packing_list-transf_bin = 'X'.
    it_packing_list-head_start = 1.
    it_packing_list-head_num = 1.
    it_packing_list-body_start = 1.
    it_packing_list-doc_type = 'PDF'.
    it_packing_list-body_num = tab_lines.
    it_packing_list-doc_size = tab_lines * 255.
    APPEND it_packing_list.
    Regards,
    Balaji E.

  • Purchase order - file type .dat

    Hi there,
    Until yesterday, all emails sent to the recipient was .pdf.
    Now, the attached emails are being sent as .dat
    Anybody knows what is the problem?!
    Thanks in advance,
    Dany Anderson

    Thanks for your fast answer!
    Where can i find the format used!?
    Thanks again,
    Dany Anderson

  • Problem with file type... some files have been changed to folders... Help !

    Hello,
    I have problem with some files that are located in Library / Quicktime.
    I have 7 files in that folder and all are .component files.
    3 of them used to look like a lego block :
    DivX Encoder.component
    macam.component
    MayaIFF.component
    But today, I have accidentally change them into folders (and I don,t Know how...) So instead of having thoses 3 files with the lego block icon , I have 3 folders and If I click on thoses folder, It open like a standard folder, so I see the "content" folder inside them...
    How can I change it back to the .component file type they should be... I know how to change the type of a file, but since they are now folders, there's no "file Type" associated with them (right click / infos)...
    Help !

    There are lots of things that are in fact folders, but the Finder treats them as "files"--in the sense that normally when you select one you cannot see the contents of the folder. One way this is done is by the use of certain extensions, for instance .app, .pkg, .mpkg, .bundle and .component all tell the Finder to NOT display the folders as folders. If you do a GetInfo on them and the name is still "whatever.component" and the Kind: Component is still showing, and you haven't noticed any problem with QuickTime, then don't worry about it.
    Those are all third party QT components. If they aren't working, you may have to reinstall them from the original source.
    Francine
    Francine
    Schwieder

  • Upload Excel file to itab with more than 255 chars

    I want to upload an excel file to internal table with more than 255 characters in one of the field. However it restricts the upload to only 255 characters. Currently I am using the code
      CALL FUNCTION 'TEXT_CONVERT_XLS_TO_SAP'
      EXPORTING
    i_field_seperator = 'X'
    i_line_header = 'X'
         i_tab_raw_data = wa_tab_raw_data
         i_filename = p_file
      TABLES
         i_tab_converted_data = <fs_table>
      EXCEPTIONS
         conversion_failed = 1
         OTHERS = 2.
    where <Fs_table> is a dynamic structure in which one column is defined as string. We cannot use FM ALSM_EXCEL_TO_INTERNAL_TABLE as it has a restriction of only 50 characters and I dont want to create a Zstruture in the system.

    It wont work for excel file type.However, with FM Gui_Upload and use a text tab-delimited file we can upload long text.
    Here is the code.
    CALL FUNCTION 'GUI_UPLOAD'
        EXPORTING
          filename                = p_files
          filetype                = 'ASC'
          has_field_separator     = 'X'
        TABLES
          data_tab                = <fs_table>
        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.

  • Problem with Save data with report

    Post Author: ramprosoft
    CA Forum: General
    Hi,
    I am new to CR and using Crystal Reports XI with SQL Server 2000.
    I'm not able to remove the saved data in a report. I have played around different options, but unfortunately I'm not able to remove the data. I have checked variouse places in web above this issue not able to find a solution, so decided to open a new post. The problem is :
    I have created a simple report and saved with-out data (1st version) the file size was 16KB. After few changes I have saved the same report with Data, the file size become 1065 KB. Its perfect and I can view the report in Report Viewer. Great Stuff!. Now the Testing completed, I would like to move this report to production environment, I notice that I'm unable to remove the data. I have played around various tricks like below, but it didnt work well.
    Trick 1:
    Uncheck: File->Options->Reporting (tab)->Save Data With Report.
    Check: File -> Options -> Reporting (tab)->Discard Saved data on Open,
    Uncheck: file-> Report Options -> Save Data With Report.
    File -> Save Data with Report (Not selected)
    Opened the report and try "save" and also tried "save as", still the size is 1065.
    Trick 2:
    I enabled all "Save Data with report" feature. Deleted all the rows in the table related to the query, previewed the report and Saved the report with "Save Data with report" featuer. But now, the funny part happen, the file size increased to 1070kb, instead of reducing. Worst Stuff!!!
    Trick 3:
    Updated the latest version of Patch and tried above tricks, still i'm not able to remove the data.
    Appreciate, if you could help me to fix the problem.
    thanks in advance

    Post Author: salmanq
    CA Forum: General
    Hi, This
    post is very informative, however I would like some specific information. If
    someone can help me then please send me a private message. Best Regards,
    Wholesale Pages UK Dropshippers
    | Wholesale Suppliers
    Australia Wholesalers and
    Dropshippers | Dubai Property and Real Estate

Maybe you are looking for

  • URGENT Help needed in XML Publisher Please...Business critical

    Hi I am having 2 different types of invoices like 1.Normal Invoice 2.Bundled Invoice Both cases will have different bodies BUT SAME summaries. So based on the Formula column FLAG (BUNDLED=YES or NO) I would like to choose a different body like G_NORM

  • Webdynpro-Java Number/Amount Formats as per Locale

    Hi, I tried searching for this in the forum but couldn't get a clear answer to my requirement. Is setting the Locale in the code ( NumberFormat.getCurrencyInstance(locale) etc...) the only way to show the numbers and amounts (dots and commas) display

  • LWAPP Neighbor discovery

    I'm trying to understand the LWAPP neighbor discovery mechanism. Specifically: - What packets are used for this purpose (e.g. beacons, dedicated msgs, etc.)? - What modulation/power level is used for above packets? - What is the lowest power level an

  • Loading data u2013 data mart scenario

    We are loading from a cube to 20 other cubes with one info package. If I created say 2 info packages and loaded to 10 cubes from each info package, would this reduce the runtime for loading and if so what do I need to ensure is available ie No of pro

  • Cannot add AP Invoice due to Tax

    Dear All, would need your help on adding AP invoice. i don't know why when i try to add a AP invoice by coping from Goods Receipt PO, when i press the button Add in the AP Invoice, error message prompt out as "[A/P Invoice - Row - Tax Definition][lin