GUI_UPLOAD PROBLEM Exception : bad file format

Hi All i am using GUI_UPLOAD FM to upload some data fromm excel file.
cade is as folloes :
CALL FUNCTION 'GUI_UPLOAD'
    EXPORTING
      filename                    = p_v_file
   filetype                      = 'DAT'
  has_field_separator           = 'X'
  HEADER_LENGTH                 = 0
  READ_BY_LINE                  = 'X'
  DAT_MODE                      = ' '
  CODEPAGE                      = ' '
  IGNORE_CERR                   = ABAP_TRUE
  REPLACEMENT                   = '#'
  CHECK_BOM                     = ' '
  VIRUS_SCAN_PROFILE            =
  NO_AUTH_CHECK                 = ' '
IMPORTING
  FILELENGTH                    =
  HEADER                        =
    TABLES
      data_tab                      = it_data[]
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.
but data is not upladed and gives me the exception 8 : bad_data_format               = 8
PLS HELP....
THANKS..

I have a problem close to this .
I want to upload a file in SAP, I am using a recorded Script but I want to give the File and path directly in the script file. Is there anyone who can help me to change this line :
session.findById("wnd[0]/usr/tabsTAB_MAIN/tabpTSMAIN/ssubSCR_MAIN:SAPLCV110:0102/btnPB_FILE_BROWSER").press
Here is the complete recorded code for CV01N:
If Not IsObject(application) Then
   Set SapGuiAuto  = GetObject("SAPGUI")
   Set application = SapGuiAuto.GetScriptingEngine
End If
If Not IsObject(connection) Then
   Set connection = application.Children(0)
End If
If Not IsObject(session) Then
   Set session    = connection.Children(0)
End If
If IsObject(WScript) Then
   WScript.ConnectObject session,     "on"
   WScript.ConnectObject application, "on"
End If
session.findById("wnd[0]").resizeWorkingPane 92,24,false
session.findById("wnd[0]/tbar[0]/okcd").text = "cv01n"
session.findById("wnd[0]").sendVKey 0
session.findById("wnd[0]/usr/ctxtDRAW-DOKNR").text = "filename foe SAP-test1"
session.findById("wnd[0]/usr/ctxtDRAW-DOKAR").text = "mtx"
session.findById("wnd[0]/usr/ctxtDRAW-DOKAR").setFocus
session.findById("wnd[0]/usr/ctxtDRAW-DOKAR").caretPosition = 3
session.findById("wnd[0]").sendVKey 0
session.findById("wnd[1]").sendVKey 0
session.findById("wnd[0]/usr/tabsTAB_MAIN/tabpTSMAIN/ssubSCR_MAIN:SAPLCV110:0102/txtDRAT-DKTXT").text = "Description for file upload in SAP"
session.findById("wnd[0]/usr/tabsTAB_MAIN/tabpTSMAIN/ssubSCR_MAIN:SAPLCV110:0102/txtDRAT-DKTXT").caretPosition = 34
session.findById("wnd[0]/usr/tabsTAB_MAIN/tabpTSMAIN/ssubSCR_MAIN:SAPLCV110:0102/btnPB_FILE_BROWSER").press
session.findById("wnd[0]/tbar[0]/btn[11]").press
session.findById("wnd[0]/tbar[0]/btn[15]").press

Similar Messages

  • Photoshop CS5-Could not complete your request because of a problem with the file-format module interface.

    When I always try to open a picture, a pop-up always open displaying the said message. What will I gonna do? Help, please!

    Without proper system information and other details like what pictures you are trying to open from which storage locations nobody can tell you much.
    Mylenium

  • How to get the document file format?

    Hi all,
    Im using Illustrator CS3 SDK to find the file format. In pluginhandler.cpp,the following code showing as inactive preprocessor block(disabled)
    #ifdef ADDS_FILE_FORMAT
        if ( sSPBasic->IsEqual( caller, kCallerAIFileFormat ) ) {
            if ( sSPBasic->IsEqual( selector, kSelectorAIGetFileFormatParameters ) )
                error = goGetFormatParms( ( AIFileFormatMessage* )message );
            else if ( sSPBasic->IsEqual( selector, kSelectorAIGoFileFormat ) )
                error = goFileFormat( ( AIFileFormatMessage* )message );
            else if ( sSPBasic->IsEqual( selector, kSelectorAICheckFileFormat ) )
                error = goCheckFormat( ( AIFileFormatMessage* )message );
        else
    #endif
    So the above code is not executing so im not getting the file format. Can anyone guide me regarding this... Will this cause any problem in getting file format?? Im blank regarding this. Anyone pls guide me

    The code you posted only coms into play if you have added a file format of your own for saving, exporting or opening. It shouldn't matter to getting the file format.
    If Illustrator is giving you the right results in CS3 but not in AI10, its very possible AI10's version was simply busted. Or it was subject to a limitation CS3 is not. I know at one point certain document attributes were not available until the document had been saved; could that be the problem here?

  • CS5 error message - file-format module interface

    First post - sorry if it's not in the best place.  CS5 has suddenly fallen over with the following error message when trying to open a raw file (.CR2 / 5DII), which it could open previously:
    "Could not complete request because of a problem with the file-format module interface".
    Googling has not produced much at all on this topic, and none of it helpful.
    Any thoughts on this please?

    Thanks for getting back to me.  I've made a little progress.  It seems that my usual identity is corrupted, or is being affected by PS crashes, which are crashing the DDE server window and also preventing some other applications (such as Adobe Acrobat Pro 9 and even Internet Explorer) from running in that identity too.  If I close and restart that identity, it's fine again as long as I don't even open PS.
    So I created a new identity just to see if PS would run OK there, and it did, for about 4 hours, but then errors started to recur, such as 'PS has encountered an expected problem and needs to close....' when opening raw files.  As I'm trying to finish off editing a set of wedding photos, this is a pain.
    I'll try reinstalling PS, but I suspect the problems I'm seeing may be due to a lack of resources.  So, reluctantly, I'm thinking it may be time to replace my faithful and carefully maintained Pentium 4 running XP, and enter the dizzy world of 64-bit.  One issue may be installing CS5 on a new machine, since I only have an upgrade disk, having migrated all the way from a full copy of PS6, via a CS2 upgrade.  I understand that it would be wise to go for Windows 7 Pro, which contains an emulation of XP and therefore allows older 32-bit software to be installed.  Any other points to consider?
    By the way, your suggested search for the file 'camera raw.8bi' turned up two versions - the CS5 one, and the older CS2 file.

  • BAD DATA FORMAT using cl_gui_frontend_services= gui_upload

    Hello SAPients!
    I'm using the method cl_gui_frontend_services=>gui_upload to upload a file to my program like this
    CALL METHOD cl_gui_frontend_services=>gui_upload
        EXPORTING
          filename                = lvs_input_f1
          filetype                = 'ASC'
        CHANGING
          data_tab                = in_rec[]
        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
          not_supported_by_gui    = 17
          error_no_gui            = 18
          OTHERS                  = 19.
    The SY-.SUBRC field always returns with a value of 8 (Bad data format?). The thing is that the last field of the structure IN_REC is of type i (integer) and I think this is the problem. I modified the file with a text editor and set the last field with 2, 4, 8 and 16 chars but I always receive the same error. I can't change the last field to char. Does any one have an idea of what is the problem? How can I ensure that the last field have an integer value?
    Thank you.

    Ok, I have modified the code a bit,  you might want to try it.  First upload to a table of type STRING, then move the values to the other internal table.
    report zrich_0001 .
    data: begin of in_rec occurs 0,
             matnr(18),        "Material Number
             bwkey like mbew-bwkey,         " For Plant
             werks like mbew-bwkey,         " Add Plant
             type(2) type c,                " TYPE.
             cname(50) type c,              " Changble Name
             bom(1) type c,                 " BOM Usage
             task(2) type c,                " task type
             verid_nd like ckmlmv001-verid_nd,  "Production Version
             perc(16) type c,               " Percent for Plant1
    * above are user inputs ; below are program flag.
             flag(1) type c,                " Program flag.
             kalnr like ckmlmv001-kalnr,     "
             mix_flag(1) type c,                " Program flag.
             cnt type i,
          end of in_rec.
    data: istr type table of string with header line.
    parameters: p_file type localfile.
    at selection-screen on value-request for p_file.
      data retfiletable type filetable.
      data retrc type sysubrc.
      data retuseraction type i.
      call method cl_gui_frontend_services=>file_open_dialog
        exporting
          multiselection    = abap_false
        changing
          file_table        = retfiletable
          rc                = retrc
          user_action       = retuseraction.
      read table retfiletable into p_file index 1.
    start-of-selection.
      perform open_file.
    *&      Form  OPEN_FILE
    form open_file.
    *------------------------ Begin Change - UN001 ------------------------*
    *  CALL FUNCTION 'WS_UPLOAD'
    *    EXPORTING
    *      filename = input_f1
    *      filetype = 'DAT'
    *    TABLES
    *      data_tab = in_rec.
      data:
        lvs_input_f1 type string.              " To store filename
    *    lit_mat_tbl  TYPE TABLE OF lt_raw_tab, " To store file lines
    *    lwa_mat_tbl  TYPE lt_raw_tab.          " Work area
      lvs_input_f1 = p_file.
    *    lvs_input_f1 = input_f1.
      call method cl_gui_frontend_services=>gui_upload
        exporting
          filename                = lvs_input_f1
          filetype                = 'ASC'
        changing
          data_tab                = istr[]
        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                  = 19.
      if sy-subrc ne 0.
    *    WRITE / text-e01.
        message e000(fb) with text-e01.
      endif.
      loop at istr.
        in_rec = istr.
        append in_rec.
      endloop.
      loop at in_rec.
        write:/ in_rec.
      endloop.
    *------------------------ End Change   - UN001 ------------------------*
    *SKD 08/02/06---------DEVK980441-----------v
      delete in_rec where perc = 0.
    *SKD 08/02/06---------DEVK980441-----------^
    endform.                    "OPEN_FILE
    Regards,
    Rich Heilman

  • Excel File Format Problem while downloading in ALV Grid

    Hi All,
    My program gives an ALV Grid Output which contains the file download button , when I choose spread sheet as the file format , the actual data starts only from 4th line and the lines above it contain date, heading etc and the rest are blank. Is it possible that I can download only the records in the grid output with the column names and not the unnecessary log?
    Also the format is not proper excel format, this same file will be used for upload into another program using the Function Module 'TEXT_CONVERT_XLS_TO_SAP'. When I load the file saved in the above format, this Function Module always fails.
    Please let me know any solution for this problem
    Thanks in Advance.

    Hi
    try this code----
    *&      Form  DOWNLOAD_EXCEL_TEMPLATE
          text
    -->  p1        text
    <--  p2        text
    FORM download_excel_template .
      TYPES: BEGIN OF lt_data,
                field1(20),
                field2(30),
                field3(20),
                field4(20),
                field5(20),
                field6(30),
                field7(15),
                field8(10),
                field9(10),
                field10(20),
                field11(20),
                field12(10),
                field13(20),
                field14(20),
              END OF lt_data.
      DATA: lv_file TYPE rlgrap-filename,
            li_data TYPE STANDARD TABLE OF lt_data,
            wa_data TYPE lt_data,
            lv_pathcheck type c,
            lv_file1 type string.
      wa_data-field1 = ''.
      APPEND wa_data TO li_data.
      REFRESH gi_header.
      wa_header-name = 'Company Code'.
      APPEND wa_header TO gi_header.
      wa_header-name = 'Main Asset Number'.
      APPEND wa_header TO gi_header.
      wa_header-name = 'Asset Sub Number'.
      APPEND wa_header TO gi_header.
      wa_header-name = 'Document Date'.
      APPEND wa_header TO gi_header.
      wa_header-name = 'Posting Date'.
      APPEND wa_header TO gi_header.
      wa_header-name = 'Asset Value Date'.
      APPEND wa_header TO gi_header.
      wa_header-name = 'Item Text'.
      APPEND wa_header TO gi_header.
      wa_header-name = 'Reference'.
      APPEND wa_header TO gi_header.
      wa_header-name = 'Allocation'.
      APPEND wa_header TO gi_header.
      wa_header-name = 'Amount Posted'.
      APPEND wa_header TO gi_header.
      wa_header-name = 'Percentage Rate'.
      APPEND wa_header TO gi_header.
      wa_header-name = 'Quantity'.
      APPEND wa_header TO gi_header.
      wa_header-name = 'Prior-Yr Quantity'.
      APPEND wa_header TO gi_header.
      wa_header-name = 'Curr-Yr Quantity'.
      APPEND wa_header TO gi_header.
      lv_file = gv_file.
      lv_file1 = gv_file.
      CALL METHOD cl_gui_frontend_services=>directory_exist
        EXPORTING
          directory            = lv_file1
        RECEIVING
          result               = lv_pathcheck
        EXCEPTIONS
          cntl_error           = 1
          error_no_gui         = 2
          wrong_parameter      = 3
          not_supported_by_gui = 4
          OTHERS               = 5.
       FIND '.xls' IN lv_file IGNORING CASE.
      IF sy-subrc = 0.
        REPLACE '.XLS' IN lv_file WITH ' ' IGNORING CASE.
      ENDIF.
      FIND '.TXT' IN lv_file IGNORING CASE.
      IF sy-subrc = 0.
        REPLACE '.TXT' IN lv_file WITH ' ' IGNORING CASE.
      ENDIF.
      CALL FUNCTION 'MS_EXCEL_OLE_STANDARD_DAT'
        EXPORTING
          file_name                 = lv_file
          data_sheet_name           = 'DATA'
        TABLES
          data_tab                  = li_data
          fieldnames                = gi_header
        EXCEPTIONS
          file_not_exist            = 1
          filename_expected         = 2
          communication_error       = 3
          ole_object_method_error   = 4
          ole_object_property_error = 5
          invalid_pivot_fields      = 6
          download_problem          = 7
          OTHERS                    = 8.
      IF sy-subrc <> 0.
        MESSAGE ID gv_msgid TYPE 'E' NUMBER 002.
      ENDIF.
    ENDFORM.                    " DOWNLOAD_EXCEL_TEMPLATE
    regards,
    Prashant

  • HT202020 Using a SDHC card adapter I can import directly on my iPad2 videos (.mov) taken with a Panasonic DMC-ZS3. The same video files (same file format) imported in Aperture 3.3 cannot be synchronized with iPad. Is Aperture causing the problem?

    Using a SDHC card adapter I can import directly on my iPad2 videos (.mov) taken with a Panasonic DMC-ZS3. The same video files (same file format) imported in Aperture 3.3 cannot be synchronized with iPad. Is Aperture causing the problem?

    Oh, baby! This bad boy flies!! Here's what to expect:
    I had 40,000 images in Aperture 3 and it was dog slow at everything. I installed 3.1 update today. It took 5 minutes to update the database and then behaved marginally better than before at ASIC library navigation. I was disappointed.
    Then I QUIT the app. It took a couple of hours to "update files for sharing" with a counter that went to 110,000 images. So it must have updated every thumbnail and variation of preview. Turned it back on , and BAM. Came up fully in seconds. Paused for 10 seconds ten everything was lickrty split. For the first time ever, I can use the Projects view with all 791 projects and scroll quickly. I even put it in photos modevand whipped thru all 49,000 images!
    Haven't done anybprocessing yet, but i'm liking it!!
    Jim

  • Problem with the DME file format MT101

    Hello Experts,
    We are generating the DME file format MT101 for bank data transfer for Portugal with program SAPLZFPAYM_SWIFT_PT .But sadly we found that the line 71A:SHA is missed.
    Noting that this problem occurs with payment method "U" which is similar to payment method "T" except the two fields "EU Internal Transfer" and "IBAN required" which are not ticked in transaction FBZP.
    When we use the payment method "T" it works fine but with payment method "U" the line 71A:SHA is missed.
    I made some tests and tried to find if those two mentionned fields are causing the problem or not and I found that this not the reason. It's related to other problem
    Any Ideas would be highly appreciable.

    Hello Experts,
    No idea about this issue ?
    Regards

  • Exits/Badis for FP03DM to change file format(row length)

    Hello Experts,
    I want to find out the exits/BADI's for changing the file format while submitting a file for collection agency during mass processing ( FP03DM ).
    I know there are events 5062, 5063, 5064 but they only enable me to change the existing  field contents and not the length..etc of rows in the file.
    Please suggest
    Thanks
    Ricky

    Hi Ricky,
    Your problem can have two solutions:
    1. Fill the data in event 5062, 5063 and 5064. These events update table 'dfkkcolfile_p_w'. From there by passing Issue Date and ID, you can pick all records to be submitted to Collection Agency. The using event 1799, you can pick all these records and create your own file. (Preferable)
    2. You can customize structures FKKCOLFILE_HEADER, FKKCOLFILE, FKKCOLFILE_TRAILER to include your own fields. But in this case, it fields would be in same order as structure.
    Thanks.
    Ravi

  • SQLException: Io exception: socket closed: Bad file number;

    Hi,
    My server application connects oracle 8i using thin driver.
    My code opens a connection and create a statement object:
    DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    Connection connection = DriverManager.getConnection(url, username, password);
    connection.setAutoCommit(false);
    Statement statement = connection.createStatement();
    After a few hours it runs just fine I get the following error:
    java.sql.SQLException: Io exception: socket closed: Bad file number;
    The code line that couses this exception is:
    statement.executeQuery("my SQL query");
    after this there are more errors:
    ;java.sql.SQLException: Protocol violation;
    (in code line: connection.execCommit())
    and than a repeated exception of :
    java.sql.SQLException: Io exception: Broken pipe;
    Does anyone knows a solution? (is the problem in my code or in the oracle account?)
    Thank!!!

    Which package you are using? if you don't have
    classes12.zip, try again by including that package in
    the classpath. If you are already using classes12.zip
    then try by including nls_charset12.zip in the
    classpath.
    You can get these packages in Oracle (otn) website.
    SudhaThanks!
    I had classes12.zip in my classpath, but my classpath also had: classes111.zip
    so i removed classes111.zip from the classpath and as far as now,
    the problem did not occur again!
    (i also added nls_charset12.zip just to be sure)
    Lilach

  • Acrobat pdf file format is having difficulties. Object label badly formatted.

    I'm using Adobe Illustrator CS5 on a PC (Windows XP)
    When I try to open one particular file, I get the following message:
    "Acrobat pdf file format is having difficulties. Object label badly formatted."
    I've seen some discussions about this error msg previously, but only when using CS4, and everyone was referring to some type of "suitcase fusion", which I am not using.
    Any help that you can provide would be greatly appreciated

    I created the file in Illustrator CS5 and saved it as an .ai file.
    It does not open in Acrobat or Reader... not sure what other programs you think I should try?
    It's basically a bunch of lines and some text... the text is a Font that we use here at the MTO (FHWA)
    This is the first time I've ever had this problem.
    The weird thing is if I try to open the file in Illustrator by clicking "File", then "Open..." and then highlight the file in the "Open Dialog Window", I can see a preview of the file.  But then when I finally click "open" in the dialog window, I get that error message?

  • 23EL933G problems with media player - file format not supported

    Hello,
    i joust bought a 23EL933G led tv.
    The tv works well, except from the media player:
    it not plays a lot o media, souch as pictures, mp3, mkv...it answers: File format not supported.
    i have updated firmware from original version 112 to the most updated 116 but the problem is still there.
    i used both a usb key and a usb hard drive.
    I have all my file organized in directoryes. Is the player capable to explore the directories and play only the compatible files?
    thanks

    I found user manual for this TV series EL933
    http://www.toshiba-om.net/LCD/PDF/English/EL933-1923-English.pdf
    on the page 27 you will find a list of media files which are supported my Media Player

  • ABAP to XML file - Formatting problem and UTF-8 requirement

    Hi Everyone,
    Could you please guide us on the ABAP coding required to get the proper XML file format. We have prepared the code for downloading SAP transaction data into an XML file format. However, we are stuck with an improper format as per Example 1.
    The file format we get is this:
    Example 1:
    <?xml version="1.0"?><FDXLMDOrd><FXNHdrLp><CrtDtTm>20070613094517</CrtDtTm><MsgID>319304155</MsgID><MsgTyp>850</MsgTyp><MsgSubTyp>SALES_A</MsgSubTyp><Pr
    <RcvTP>FSCS</RcvTP><SndSrc>FXN</SndSrc><RcvSrc>EIB</RcvSrc><UsrID>VAR</UsrID></FXNHdrLp><OrdHdrLp><OrdNbr>319304155</OrdNbr><OrdActnCD>9</OrdActnCD><Ord
    teCarrReq>FDE</RteCarrReq><RteTptSvcReq>FEIP</RteTptSvcReq></DprtRteLp><SpecInstrLp><SpecInstrTyp>SHIP</SpecInstrTyp><SpecInstr>Example Packing Instruct
    les Order</RefDesc></RefLp><RefLp><RefIDQual>CPO</RefIDQual><RefID>test 1 line 1 pc - s</RefID><RefDesc>Customers Customer Purchase Order</RefDesc></Ref
    Typ><EntIDQual>91</EntIDQual><EntID>H00092</EntID><EntNm>VLAD BOBES</EntNm><Cty>MONTREAL</Cty><PstlCD>H3X 2N5</PstlCD><RgnalCD>QC</RgnalCD><CtryISOCD>CA
    ></AdrLnLp><ConLp><ConTypCD>IC</ConTypCD><ConNm>VLAD BOBES</ConNm><CommLp><CommNbrQual>TE</CommNbrQual><CommNbr>514-731-8361</CommNbr></CommLp></ConLp><
    <Cty>MONTREAL</Cty><PstlCD>H3X 2N5</PstlCD><RgnalCD>QC</RgnalCD><CtryISOCD>CA</CtryISOCD><AddlNmLp><AddlNm1>VLAD BOBES</AddlNm1></AddlNmLp><AdrLnLp><Str
    However, the format need to look like this as in Example 2 below.
    We also need help in how to get  " encoding="UTF-8"?> " as part of the file format.
    Example 2:
    <?xml version="1.0" encoding="UTF-8"?>                
    <FDXLMDProdRcpt>                                      
        <FXNHdrLp>                                        
            <CrtDtTm>20070612151817</CrtDtTm>             
            <SessID>26796</SessID>                        
            <MsgTyp>861</MsgTyp>                          
            <MsgSubTyp>WRE_A</MsgSubTyp>                  
            <PrcsingPrty>5</PrcsingPrty>                  
            <SndTPQualCD>ZZ</SndTPQualCD>                 
            <SndTP>FSCS</SndTP>                           
            <RcvTPQualCD>ZZ</RcvTPQualCD>                 
            <RcvTP>EIB</RcvTP>                            
            <SndSrc>YANTRA</SndSrc>                       
            <RcvSrc>EIB</RcvSrc>                          
            <UsrID>VAR</UsrID>                            
        </FXNHdrLp>                                       
        <ProdRcptHdrLp>                                   
            <ShpID>VAR20070612NCHIC1</ShpID>              
            <ShpTyp> </ShpTyp>                            
            <ShpActnCD>00</ShpActnCD>                     
            <InTransMrgTyp> </InTransMrgTyp>              
            <ShpVolUOM>CI</ShpVolUOM>                     
            <ShpWgtUOM>LB</ShpWgtUOM>                     
            <ShpTotVol>310022.00</ShpTotVol>              
            <ShpTotWgt>861.00</ShpTotWgt>                 
            <DtTmLp>                                      
                <DtTyp>050</DtTyp>                        
                <DtTmQual>501</DtTmQual>                  
                <DtTm>2007-06-12T15:07:41-04:00</DtTm>    
            </DtTmLp>                                     
            <AdrLp>                                       
                <EntTyp>RC</EntTyp>                       
                <EntIDQual>93</EntIDQual>                 
                <EntID>NCHIC</EntID>                      
                <EntNm>NCHIC</EntNm>                      
                <AutoCrtTrdPar>0</AutoCrtTrdPar>          
                <AutoCrtTrdParRole>0</AutoCrtTrdParRole>  
                <AutoUpdtTrdPar>0</AutoUpdtTrdPar>        
            </AdrLp>                                      
            <ProdRcptTptLp>                               
                <TptIDQual>BOL</TptIDQual>                
                <TptSCAC> </TptSCAC>                      
                <TptID> </TptID>   
    Thanks and Best Regards
    Sitaraman

    You could try to use the following coding:
    *& Report  ZUS_SDN_UC_XML_TO_UTF8_TRANSF
    REPORT  zus_sdn_uc_xml_to_utf8_transf.
    define local data
    CONSTANTS:
      gc_encoding           TYPE string VALUE 'UTF-8'.
    DATA:
      gd_result             type string,
      go_ixml               TYPE REF TO if_ixml,
      go_stream_factory     TYPE REF TO if_ixml_stream_factory,
      go_encoding           TYPE REF TO if_ixml_encoding,
      go_resstream          TYPE REF TO if_ixml_ostream.
    DATA:
      gt_knb1    TYPE STANDARD TABLE OF knb1,
    gd_xml     TYPE string,
      gt_xml     TYPE TABLE OF string.
    START-OF-SELECTION.
      SELECT * FROM knb1 INTO TABLE gt_knb1 UP TO 10 ROWS
          WHERE bukrs = '1000'.
      go_ixml = cl_ixml=>create( ).
      go_stream_factory = go_ixml->create_stream_factory( ).
      go_encoding = go_ixml->create_encoding( character_set = gc_encoding
                                            byte_order = 0 ).
      go_resstream =
                  go_stream_factory->create_ostream_cstring( gd_result ).
      CALL METHOD go_resstream->set_encoding
        EXPORTING
          encoding = go_encoding.
    XML Transformieren
      CALL TRANSFORMATION id_indent
        SOURCE     itab = gt_knb1
        RESULT XML go_resstream.
      APPEND gd_result TO gt_xml.
      CALL METHOD cl_gui_frontend_services=>gui_download
        EXPORTING
         BIN_FILESIZE              =
          filename                  = 'C:\temp\xml_to_utf8.txt'
         FILETYPE                  = 'ASC'
         APPEND                    = SPACE
         WRITE_FIELD_SEPARATOR     = SPACE
         HEADER                    = '00'
         TRUNC_TRAILING_BLANKS     = SPACE
         WRITE_LF                  = 'X'
         COL_SELECT                = SPACE
         COL_SELECT_MASK           = SPACE
         DAT_MODE                  = SPACE
         CONFIRM_OVERWRITE         = SPACE
         NO_AUTH_CHECK             = SPACE
         CODEPAGE                  = SPACE
         IGNORE_CERR               = ABAP_TRUE
         REPLACEMENT               = '#'
         WRITE_BOM                 = SPACE
         TRUNC_TRAILING_BLANKS_EOL = 'X'
       IMPORTING
         FILELENGTH                =
        CHANGING
          data_tab                  = gt_xml
        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
          not_supported_by_gui      = 22
          error_no_gui              = 23
          OTHERS                    = 24.
      IF sy-subrc <> 0.
      MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                 WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    END-OF-SELECTION.
    However, I like to mention that the file created from out ECC 5.0 (6.40, non-Unicode) contains a special character between the XML header and the data part (when displayed using NotePad Editor):
    ...xml version="1.0" encoding="utf-8"?>[special character]<asx:abap xmlns:asx="http://www.sap.com/a...
    Using a HexEditor the special character (0x0A) is displayed as a dot.
    Also Check with FM - TREX_TEXT_TO_UTF8
    Reward Points if it is helpful
    Thanks
    Seshu

  • Error while opening pdf in reader in windows 8:Can't open this file. There's a problem with file format

    I have a problem with a pdf file which does not open with reader in windows 8 but it opens properly with adobe pdf reader. All other pdf can be opened in reader.But when i open a pdf(see this link for pdf for which i got error http://incometaxsoft.com/temp/Form.pdf)
    it gives error as "Can't open this file. There's a problem with file format".
    The same file opens properly in adobe pdf reader.You can check the pdf file which i have mentioned in the link above.But the reader which comes with windows 8 can open some other pdf in the same PC.What may be the error causing this??

    This has turned out to be an enormous issue for me as I sell PDF files as ebooks. I have done a fair amount of investigating this for my system.
    My files have to be compatible not just across readers but across operating systems.
    To date, I have over 200 PDFs that have functioned flawlessly across Mac, PC (Windows 7 and below), Android, iPhone/iPad, Linux.
    I personally test my PDFs using a variety of readers and PDF editors including
    PDF XChange (my favorite)
    Foxit (runner up for me and I recommend for most people)
    Adobe (the bloated monster)
    Nitro 9 (great for moving graphical elements around)
    ABBYY
    And the Nuance PDF Create toolsets
    Those are off the top of my head. There are a bunch on Android that I test with too.
    I am running the Windows 10 Pro Tech Preview and I have this same problem so I know it isn't fixed yet in any kind of pre-release way (-sigh-)
    Here is what I've learned for my situation
    The PDFs I created using NUANCE'S PDF CREATE PROFESSIONAL VERSION 8
    all fail using the built-in Windows 8/10 PDF reader.
    When I look at the PDF properties for these Nuance created files, the underlying engine used to write them is called "ImageToPDF". Using ABBYY it indicates their own engine as does everyone else that I've tried. It is easy for you to check to see
    what created your PDF by doing a "Control D" (look at the document properties). Perhaps there's a common engine causing issues.
    If I use the exact same source files to create a PDF using any of my other tools I have no issues. I checked the PDF versions made by the tools and they are all set to 1.5.
    A customer mentioned being able to convert them in a way they worked by saving them without having to do any kind of extraction, but I have not been able to duplicate that. Perhaps he did a "print" which seems like it could work.
    In summary, the workaround everyone is talking about, using an alternate reader, of course works. But not everyone wants to change.
     The culprit I have found is my Nuance PDF Creation tools that are using the ImageToPDF engine.
    I hope it gets FIXED as I really don't want to have to regenerate all of my PDF files.

  • Problems emailing any other file format other than a .jpg

    I am having problems emailing any other file format other than a .jpg in mac Mail in Leopard. Is anyone else having this problem?
    I have tried PDF, .tif and .doc documents, and they are small files, less than 150 kb. I have checked to ownership on the images and it says that I can read and write to them. I have also checked with my ISP and my mailbox capacity is 10 MB and was recently emptied. I am able to log into my ISP's webmail portal and send these types of attachments through there successfully, which has made me convinced that it has to do with Leopard or Mac Mail because I did not have these problems in Tiger.
    When I send a message like this, Mail says, "Sending" for a while, and then says "Cannot send message using server:(Name of my server) Sending the message content to the server failed. Select a different outgoing mail server."

    I've been sending .doc files with/without also .jpg as attachments without problems so it is possibly not a Leopard problem. I know this doesn't solve your problem though. Someone else may be able to solve the problem.

Maybe you are looking for

  • Problem in starting sqlplus after installing http server only on red hat linux 7.1

    I have installed http server on my pc. it was installed successfully mt http server is running on port 7777 but when i am trying to run sqlplus from user root /home/oracle/OraHome1/bin > ./sqlplus it's giving msg1<lang>.msb file not found. error 6 in

  • New youtube videos detail page

    Last time I generated my app I found the new detail page for youtube videos, with the WP 8.1 player. Seems cool, but it have many many problems: - The layout is different from the rest of the app (small letters in title and description, icon and name

  • Tables that store the "Personalization" values in Demantra CWB

    Hi All, Can some tell me, which tables stores the basic "personalize information" on CWB Demantra.Like i am looking for tables that stores "MY worksheets" information in the home page of CWB. Thanks,

  • Packaging Multi-SCO Captivate Projects - query

    Hi We are considering upgrading to the eLearning Suite so that we can use the Multi-SCO Packager.  For the timebeing I am tried using a free software called Relead Editor.  With this, when a learner clicks out of the course early, the next file autom

  • My iphone 4 'phone app' suddenly won't work

    My iphone 4 'phone app' suddenly won't work. It's not a microphone or other hardware problem because I can use viber normally. I have already upgraded to iOs 6.1.2 from a 5.1 (when the problem started), and even after the restore it still won't work.