File type error

hi,
    iam developing a program to download data from SAP table to  flat file using BAPI. when iam executing it is giving file type different error.
pls help. this is code
*& Report  Z_RTP_I_INTERNALORDER
REPORT  Z_RTP_I_INTERNALORDER NO STANDARD PAGE HEADING.
   PROGRAM - ID              :
   MODULE                    :  MM
   DATE                      :
   PROGRAMMER                :
   PROGRAM DESCRIPTION       :
------------------ TABLE WORK AREA -----------------------------------
TABLES: COAS. " ORDER MASTER FOR CONTROLLING
             SELECTION SCREEN
SELECTION-SCREEN BEGIN OF BLOCK B1.
PARAMETERS: P_COMP TYPE COAS-BUKRS. " COMPANY CODE
*PARAMETERS: P_FILE(30) TYPE C.
PARAMETERS: P_FILE LIKE  RLGRAP-FILENAME OBLIGATORY.
SELECTION-SCREEN END OF BLOCK B1.
*DATA: P_FILE TYPE STRING.
*P_FILE = 'C:\CHANDRA.TXT'.
INTERNAL TABLE DECLARATION
DATA BEGIN OF IT_COAS OCCURS 500.
     INCLUDE STRUCTURE ZCOAS. " STRUCTURE FOR COAS
DATA END OF IT_COAS.
BAPI FUNCTION MODULE -
*ZBAPI_INTERNAL_ORDER_LIST   "BAPI FOR TO GET THE LIST OF INTERNAL ORDERS
AT SELECTION-SCREEN ON VALUE-REQUEST for P_FILE.
CALL FUNCTION 'F4_FILENAME'
EXPORTING
  PROGRAM_NAME        = SYST-CPROG
   DYNPRO_NUMBER       = SYST-DYNNR
   FIELD_NAME          = 'P_FILE '
IMPORTING
   FILE_NAME           = P_FILE.
START-OF-SELECTION.
CALL FUNCTION 'ZBAPI_INTERNAL_ORDER_GETLIST'
  EXPORTING
    BUSINESSUNIT       = p_comp
IMPORTING
  AUFNR              =
  KTEXT              =
TABLES
  RETURN             =
LIST               = IT_COAS.
*--GUI_DOWNLOAD--
CALL FUNCTION 'GUI_DOWNLOAD'
   EXPORTING
   BIN_FILESIZE                    =
     FILENAME                        = P_FILE
     FILETYPE                        = 'ASC'
   APPEND                          = ' '
   WRITE_FIELD_SEPARATOR           = ' '
   HEADER                          = '00'
   TRUNC_TRAILING_BLANKS           = ' '
   WRITE_LF                        = 'X'
   COL_SELECT                      = ' '
   COL_SELECT_MASK                 = ' '
   DAT_MODE                        = ' '
   CONFIRM_OVERWRITE               = ' '
   NO_AUTH_CHECK                   = ' '
   CODEPAGE                        = ' '
   IGNORE_CERR                     = ABAP_TRUE
   REPLACEMENT                     = '#'
   WRITE_BOM                       = ' '
   TRUNC_TRAILING_BLANKS_EOL       = 'X'
   WK1_N_FORMAT                    = ' '
   WK1_N_SIZE                      = ' '
   WK1_T_FORMAT                    = ' '
   WK1_T_SIZE                      = ' '
IMPORTING
   FILELENGTH                      =
   TABLES
     DATA_TAB                        = IT_COAS
   FIELDNAMES                      =
EXCEPTIONS
    FILE_WRITE_ERROR                = 1
    NO_BATCH                        = 2
    GUI_REFUSE_FILETRANSFER         = 3
    INVALID_TYPE                    = 4
    NO_AUTHORITY                    = 5
    UNKNOWN_ERROR                   = 6
    HEADER_NOT_ALLOWED              = 7
    SEPARATOR_NOT_ALLOWED           = 8
    FILESIZE_NOT_ALLOWED            = 9
    HEADER_TOO_LONG                 = 10
    DP_ERROR_CREATE                 = 11
    DP_ERROR_SEND                   = 12
    DP_ERROR_WRITE                  = 13
    UNKNOWN_DP_ERROR                = 14
    ACCESS_DENIED                   = 15
    DP_OUT_OF_MEMORY                = 16
    DISK_FULL                       = 17
    DP_TIMEOUT                      = 18
    FILE_NOT_FOUND                  = 19
    DATAPROVIDER_EXCEPTION          = 20
    CONTROL_FLUSH_ERROR             = 21
    OTHERS                          = 22.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
chandu

Hi,
Do this
PARAMETERS       : p_sumfl TYPE char255.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_sumfl.
*-File Path For Summary Report
  PERFORM f2000_filepath_f4 USING lc_s
                         CHANGING p_sumfl.
*-------Form
FORM f2000_filepath_f4  USING xv_indicator TYPE char1
                     CHANGING xyv_filepath TYPE char255.
*---------------Popup for file name---------------------*
  CONSTANTS :
         lc_dft_ext    TYPE string VALUE 'XLS',
         lc_file_flt   TYPE string VALUE '*.xls',
         lc_int_drc    TYPE string VALUE 'C:'.
  DATA : lv_win_title  TYPE string,
         lv_file_name  TYPE string,
         lv_dft_fname  TYPE string,
         lv_fname      TYPE string,
         lv_path       TYPE string.
  CLEAR: lv_fname,
         lv_path,
         lv_file_name,
         lv_win_title,
         lv_dft_fname.
*---------------Set File Details F4 Based on Report Type--------------*
  IF xv_indicator = lc_s.
    lv_win_title = text-045.
    lv_dft_fname = text-038.
  ELSE.
    lv_win_title = text-044.
    lv_dft_fname = text-033.
  ENDIF.
  CALL METHOD cl_gui_frontend_services=>file_save_dialog
    EXPORTING
      window_title         = lv_win_title
      default_extension    = lc_dft_ext
      default_file_name    = lv_dft_fname
      file_filter          = lc_file_flt
      initial_directory    = lc_int_drc
      prompt_on_overwrite  = lc_true
    CHANGING
      filename             = lv_fname
      path                 = lv_path
      fullpath             = lv_file_name
    EXCEPTIONS
      cntl_error           = 1
      error_no_gui         = 2
      not_supported_by_gui = 3
      OTHERS               = 4.
  IF sy-subrc <> 0 OR lv_fname     IS INITIAL
                   OR lv_path      IS INITIAL
                   OR lv_file_name IS INITIAL.
    CLEAR xyv_filepath.
  ELSE.
*---FilePath
    xyv_filepath = lv_file_name.
  ENDIF.
ENDFORM.                    " f2000_filepath_f4
*--------Gui Download
  PERFORM f9000_save_detail_report TABLES lit_det_report
                                    USING p_sumfl
                                          p_detfl.
*--------Form------------------------------------------*
FORM f9000_save_detail_report
                       TABLES xt_det_report  STRUCTURE ls_det_report
                        USING xv_sum_fp      TYPE      char255
                              xv_det_fp      TYPE      char255.
*---Load Header Data of Detail Report
  CALL FUNCTION 'GUI_DOWNLOAD'
    EXPORTING
      filename                = lv_file_name
      filetype                = lc_file_type
      write_field_separator   = lc_true
      codepage                = '4103'
    TABLES
      data_tab                = lit_head_det
    EXCEPTIONS
      file_write_error        = 1
      no_batch                = 2
      gui_refuse_filetransfer = 3
      invalid_type            = 4
      no_authority            = 5

Similar Messages

  • "Try Selecting a Different Printer or File Type" Error - iPad2 - Officejet Pro 8600 - ePrint error

    Greetings...
    I just got an Officejet Pro 8600 and I've been trying to get web pages to print using HP ePrint from my iPad 2 (iOS 7.0.6). I go into the ePrint app, go to web page of choice, and then click on my printer option to print. It renders on screen and then throws out the following error:
    "Try Selecting a Different Printer or File Type" "Officejet Pro 8600 [5124FC] doesn't support this file type."
    I can use ePrint from the iPad to print pictures from camera roll.
    This only is problematic when I try to print web pages (I tried amazon.com for test).
    I have no problems doing this from my iPhone...only the iPad.
    I've tried rebooting device and trying again....same thing.
    Anybody know how to fix this? I really want to be able to print web pages from my iPad.
    Thanks in advance...
    Possie

    Hello Possie,
    Thank you for the update.  I have to say I'm surprised and disappointed that the uninstall and reinstall did not resolve the issue, especially since you can print the page from your iPhone.
    I have spent some time researching this and working with my colleagues in HP's Cloud Services and we have a couple of suggestions/questions.
    Do you get the same error when you try to print the web page using Apple's AirPrint feature? 
    Please ensure the iPad is connect to your home wireless network and try to print again.
    Please try changing the settings in the ePrint app before printing the web page.  Please ensure that the paper quality is set to normal (see screen shot below) and that the paper size is set to letter (see 2nd screen shot below).
    Please let us know how it goes. 
    Regards,
    Happytohelp01
    Please click on the Thumbs Up on the right to say “Thanks” for helping!
    Please click “Accept as Solution ” on the post that solves your issue to help others find the solution.
    I work on behalf of HP

  • Unsupported File Type Error

    I received this error when trying to open a .psess file.  The error message:  When opening .psess file the files listed will not be imported as it is not a supported file type.  Please advise.

    You can’t open a project file from another PC because the pse file is only stored in the Elements data base on the PC on which it was created.
    You firstly need to output your slideshow to a CD or wmv file.
     

  • "Unsupported file type" error Msg on received email - DX2

    I get an "Unsupported file type" message instead of the intended msg on some of my emails.  Just what does this mean and how do I fix it?

    JR39 wrote:
    I get an "Unsupported file type" message instead of the intended msg on some of my emails.  Just what does this mean and how do I fix it?
    Hi JR39,
    The error message outlined in your post indicates that your email message includes a file that is not compatible with any of the applications included in your phone. You may look for a compatible third party application that will allow you to read/access the files in question.
    Please note that Verizon Wireless does not recommend/support any 3rd party applications and if you encounter any issues with a 3rd party application you will need to contact the application's developer for assistance.

  • Base file type error on import

    I created a bunch of custom item types in my dev environment.
    then i decided to clean up the ones i wasn't using, so that I, and content owners wouldn't be tempted to use them.
    one of the item types i deleted was the base file type.
    all kinds of content items which had been loaded and tagged with properties dissappeared, many pages quit working, all kinds of problems.
    I rebuilt the base file type
    then repaired all the pages
    then added all the content back
    HOWEVER, now I am unable to import a transport set built from these "repaired" pages...because i get an error saying that the base file type does not match.
    So...I exported and imported the shared items...thinking that my rebuilt base file type would now be in the target environment as well. Didn't work.
    Any ideas how to fix my blunder? And oh by the way...NEVER DELETE A BASE FILE TYPE.
    Thanks for any help.

    hi dennis,
    looking at your problem i suggest opening a service request with oracle support services. this looks like a severe problem that will be hard to diagnose in this forum.
    regards,
    christian

  • Open Batch Multi Load file type error

    Hi,
    I have been trying to use Open Batch MultiLoad via FDM Workbench, but encountered error that it .csv file type is unknown at Import stage.
    A couple things that I have tried:
    - Using multiload via FDM Web Interface to load the .csv file: Success
    - Using open batch multiload via Workbench to load the .csv file: Failed
    - I tried to rename the .csv file itu .txt (without changing the content), tried to use open batch multiload via Workbench to load the .txt file: Success
    It seems that if I try to execute open batch multiload, FDM is able to read the CSV format but refuse the .csv file type to be processed.
    Do I miss something for using openbatch multiload to load .csv file?
    Thanks,
    Erico
    *[File Content]*
    LOC1
    Budget
    1/31/2008
    2
    R,M
    Center,Description,ACCouNT,UD1,UD3,UD4,DV,v,v,v,UD2
    Sunnyvale,Description,Sales,GolfBalls,,,Periodic,1001,2001,3000,Customer2
    Sunnyvale,Description,Purchases,GolfBalls,,,Periodic,2001,3001,4000,Customer2
    Sunnyvale,Description,OtherCosts,GolfBalls,,,Periodic,4001,5001,5000,Customer2*[Error Message Received]*
    Invalid object Node=ML40942.3981712963_P1?MULTILOADFILE.,CSV_UNKNOWN FILE TYPE IN MULTILOAD BATCH FOR FILE [MULTILOADFILE.CSV]! - 35610
    *[FDM Version]*
    FDM 11.1.2.1

    Kemp2 wrote:
    Hi Erico,
    What is the fix for this issue? I am having same issue.
    Thx
    KempHi Kemp,
    I didn't get the fix for this issue. Since we decided to not use the Open Batch Multi Load (not because this issue), I stopped researching on this issue.
    But some workaround that you might want to try:
    <li>Simply have the source file in .txt file type</li>
    or
    <li>Since open batch uses script, before executing the Multi Load script, change the file type from .csv to .txt using script</li>
    Hope this helps.
    -Regards

  • Podcast file type error?

    After updating to the latest version of iPod SW, my Podcast playlist disappeared and I get this error message when i try to update my podcasts
    "An error occurred while updating the default player for audio file types. You don not have enough access privileges for this operation."
    Any clue to why I get this and what happened to my podcasts?

    After updating to the latest version of iPod SW, my Podcast playlist disappeared and I get this error message when i try to update my podcasts
    "An error occurred while updating the default player for audio file types. You don not have enough access privileges for this operation."
    Any clue to why I get this and what happened to my podcasts?

  • Qucktime file type error in Firefox

    In Quicktime, the MIME types are not selected to play flash, yet in Firefox they continue to attempt to play flash (which they can't do). In IE they work fine, and it plays with Adobe Flash Player. But in Firefox, even when I change the file type specifications, Quicktime still tries to play the flash files. Is there a way to fix this? I have also gone into Firefox options and configured file types, but it still doesn't work. Someone help me!
    Custom Made PC   Windows XP  

    Open the Folder Options control panel click on File Types and check out how things are configured in there to open various file types with whatever application

  • FW MX, Mac OSX: "unknown file type" error

    Hi everyone,
    I'm having troubles opening a file created in FW MX.
    When I first tried saving it, I got a message that the "file
    could not
    be found". I figured that was due to the enclosing folders
    containing
    accented characters and I saved it to the HD's root instead.
    That seemed to work fine, however when trying to open the
    file, it now
    tells me "Could not complete your request. Unknown file
    type."
    Any ideas?
    Cheers Martin

    Hello Issebek1 and welcome to the Palm forums.
    The Voice Memo application on the Treo 755p is not compatible with the Voice Memo conduit that is available for Palm Dektop on the Mac and the PC.  If you need to sync voice memos, you may need to purchase a third-party application for voice memos that can sync them back to your Mac.  I would check with MotionApps' mVoice.
    As for the duplicate calendar records, the log indicates that you are making changes to the record on the Mac and on the Palm without first performing a HotSync after changing the appointment on either side.  I would clean up the records on the Mac, and then set the Calendar conduit to Desktop overwrites Handheld and then perform a sync.  Then switch the Calendar contact back to Synchronize.
    Alan G
    Post relates to: Treo 755p (Sprint)

  • Determine file type error

    Hello to everyone.
    I am developing my year 3 project and i have run into some trouble.
    I am trying to determine whether a file is or is not a directory. Using the file.isDirectory works flawlessly, locally on my computer. I am trying to do this remotely using sockets as well. I send a File[] with all the directory contents of a specific folder.
    Doing so, causes a very few folders to be identified as directories where as others return false when checked using the isDirectory method. I have checked to see if it is a permissions problem outside Java but no such case is valid, so i am assuming that it should be within my code. As i already mentioned, working locally works just fine.
    Anyone has any idea what might be causing such a problem? Any help would really be appreciated.
    Kind regards
    Chris

    Well the way i have it returns nothing. It wont identify the files as plain files nor as directories. It just prints false (is not directory) and hangs, Here's the code:
              int selectedIndex = list.getSelectionIndex();
              System.out.println(client.rec[selectedIndex].isDirectory()); //Prints true or false if it is a directory
              if (client.rec[selectedIndex].isDirectory()) {
                   text.setText(client.rec[selectedIndex].getPath());
                   try {
                        client.sendData("getFS", text.getText());
                        client.receiveData();
                        if (client.com.equals("fileSystem")) {
                             list.removeAll();
                             addToList(client.rec);
                   } catch (IOException e) {
                        e.printStackTrace();
              } else {
                   text.setText(client.rec[selectedIndex].getPath());
              }Note that client.rec is the File[] and the SelectedIndex is the index in a list. I have tried substituting the isDirectory() with isFile() == false which enters the if statement but when selecting a file it returns a NullPointerException

  • Return The remote server returned an error: (403) Forbidden error for some file types

    hi
    am using below code to get the byte array 
    byte[] myDataBuffer = client.DownloadData((new Uri(sourceUrl)));
    for source of type .txt/.jpg no problem with accessing.but the file type with .master/.wsp/.cs
    it is returning "The remote server returned an error: (403) Forbidden error for some file types" Error.how can i get rid of this.please help me
    Thanks in Advance

    Hi,
    It seems there is something wrong with your code, from your code the account and key are the same, because their appsetting name are the same.
    string account = ConfigurationManager.AppSettings["StorageAccountName"];
    //string account = CloudConfigurationManager.GetSetting("StorageAccountName");
    //string key = CloudConfigurationManager.GetSetting("StorageAccountAccessKey");
    string key = ConfigurationManager.AppSettings["StorageAccountName"];
    string connectionString = String.Format("DefaultEndpointsProtocol=https;AccountName={0};AccountKey={1}", account, key);
    return CloudStorageAccount.Parse(connectionString);
    If you use CloudConfigurationManager.GetSetting, please consider set azure project as the startup project, if not, this value will be null, this resulted in solution being started as a web project that didn't run inside the Azure emulator. Since CloudConfigurationManager.GetSetting
    tries to get setting by contacting Azure (or Azure emulator in this case), and it is not running, it returns null.
    Best Regards,
    Jambor
    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.

  • Quicktime .movs error Premiere CC. Damaged or unsupported file type.

    I'm having major problems with Quicktime .movs (anims & prores) in Premiere CC - which is making it completely unuseable.
    Sometimes the files load and work but 90% of the time I get the unsupported file type error.
    I've double checked the files are fine on various computers and they are, but Premiere CC refuses to work properly with them.
    A project with 10 clips - each time I open a few open fine and work - but never all of them and it randomly changes which ones work and which ones are unsupported.
    Any ideas would be most appreciated!
    Windows 8 64bit
    Premiere CC
    Quicktime 7.7.4
    Quadro 2000 - have tried both latest official driver and the later Beta driver with no difference.
    Cheers

    I wondered if the fact different ones load and then it stops was a memory issue.
    Can you suggest the best way to encode my clips for HD Quality on Premiere CC for PC? Would it be image sequences?

  • File error: wrong file type

    So my friend dropped my MacBook Pro the other day and broke my hard drive. Most of the data (well, 300 out of 500G) was recovered, but all I *really* cared about was the FEATURE LENGTH FILM I'd spent the last 4 months editing. And of course it was too big to fit on my external hard drive and I'm too broke to buy a new one, so if I can't get it open from the recovered data I'm going to have to re-edit the thing.
    The file itself did seem to survive the data recovery process, but when I open the file, it gives me an error: "File error: wrong file type." I've played around with the extensions- first saving the extensionless file as a .fce (this is actually FCE, not FCP, but I thought people might have better answers in this forum), which didn't work, then tried saving it as a .txt, then resaving as .fce, which also didn't work. No matter what I do, it's still giving me the "wrong file type" error.
    Is my data probably just corrupted and I'm screwed? Or is there anything else I can try to recover the project? Most of my source files seem to have survived (although they all lost their .mov extension), but the Final Cut file itself just won't open.
    Any help would be appreciated! Thanks!
    Amy

    You might give the following a try...
    1. open the .fcp file with TextEdit
    2. save the file again
    3. open with fcp
    Frank

  • Every time I download anything I get an error message stating ...could not open ....dmg because it is either not a supported file type or the file has been damaged." What do I need to do to fix this problem?

    For the last month or so, every time I download anything I get an error message stating "........could not open ...... .dmg because it is either not a supported file type or because the file has been damaged...." I do not know what to do to fix this issue. Any ideas?

    hmmm.... try this
    basic troubleshooting:
    Repair Disk Permissions http://support.apple.com/kb/PH5821
    Repair Disk http://support.apple.com/kb/ht1782
    reset ACLs http://osxdaily.com/2011/11/15/repair-user-permissions-in-mac-os-x-lion/

  • How can I open a cfm file in Dreamweaver CC using a Mac? Added to the Extensions.txt. Getting error adding to preferences-- file types.

    I am trying to open Cold Fusion files using Dreamweaver CC. We've never had a problem with the versions before the Cloud. My co-worker can open using a PC, but I'm using a Mac. I can connect to the server and see the files, but when I open, it opens the file in text editor. I have tried adding the extensions to the Extensions.txt file (they weren't there previously), editing the MMDocumentTypes.xml file (the file type WAS in that file), adding to the Preferences-->File Types/Editors (I can add the extension, but when I try to choose Dreamweaver CC as the editor, I get an error "You cannot use Adobe Dreamweaver CC as an external editor. Please choose a different application."). When I right-click the file, I do not see an "Open With" option, only "Open".  Does anyone know of another trick that could make Dreamweaver CC more than an HTML editor for Mac?  I cannot us CF Builder - no approval for loading the extra files server-side to use that IDE.

    Have you tried these suggestions...
    Open ColdFusion documents in Dreamweaver CC

Maybe you are looking for