Character issue in Excel

Hi All,
For special character issue ..
in Report Builder--> XML Prolong Value: <?xml version="1.0" encoding="iso-8859-1"?>
then issue is vanished,its ok..
but now my issue is for some characters.. the description is printing like CM&U OWI Rußdorf  (1) SDL
instead CM&U OWI Rußdorf  (1) SDL. but some description printing properly,:(
Please let me know if I miss any thing ?
THanks
HTH
Edited by: user633508 on Oct 8, 2010 4:52 PM
Edited by: user633508 on Oct 8, 2010 5:10 PM

Hi Kavipriya,
Thanks for quick reply.
This issue after generating output -> Excel..
I am not getting any issue..
but in place of special character , it shows some squar box symbol.. remaining ok..
and remaining special characters are working fine..
the following examples which I got in my excel output..
CM&U Enertrag Randow-Höhe (8) SDL
CM&U Prützke 1-4  SDL  I & II
CM&U Kulder Hof Tönisvorst (4) SDL phase I+II
the output is generating perfect.. but client reports some bad characters are coming in place of Ö. Ü,ß,.....etc
Please let me know how can we correct the above one.
Thanks..

Similar Messages

  • A serious issue with excel file read in ODI

    hi gurus,
    Issue with excel file read is that we can read only one file by setting the path from ODBC Data Source Administrator-->System DNS -->Select Work book
    what i want to read the dynamic path(Every time I cant go back and set the Work book to select the excel file..
    So i came up with a solution to write a Vbscript that convert the excel to csv my problem got solved for dynamic paths the script is as follow:
    Set objArgs = WScript.Arguments
    For I = 0 to objArgs.Count - 1
    FullName = objArgs(I)
    FileName = Left(objArgs(I), InstrRev(objArgs(I), ".") )
    Set objExcel = CreateObject("Excel.application")
    set objExcelBook = objExcel.Workbooks.Open(FullName)
    objExcel.application.visible=false
    objExcel.application.displayalerts=false
    objExcelBook.SaveAs FileName & "csv",23
    objExcel.Application.Quit
    objExcel.Quit
    Set objExcel = Nothing
    set objExcelBook = Nothing
    Next
    Now this script convert the xls file to csv with comma seprated values
    e.g in excel sheet if data is ABC XYZ PQR
    csv will come with ABC,XYZ,PQR
    here the delimiter is , i want the delimiter as pipe | who's ascii code is 124
    but if i change 23 with 124 its not working i getting the error cannot save as...
    can anyone tell me that what should be the correct code for pipe
    so that the output is ABC|XYZ|PQR
    AS WE CAN USE THE SCRIPTS IN TOOLS
    Edited by: 789141 on Sep 14, 2010 11:33 PM

    I dont have the answer for your question but i have different approach in handling multiple Excel File.
    Step 1. Copy a sample source Excel File and Call it Final.xls .
    Step 2. Map this Final.xls to DSN and in Topology call this Final.xls
    Step 3. Do the Reversing and Map and test the Interface . Once its done.
    Step 4. Create a Package and using a http://odiexperts.com/?p=1426 get the list of all the Excel File
    Step 5 . Using this http://odiexperts.com/?p=273 create a Loop to Read the Excel File name
    Step 6 . Copy using OdiFileCopy to Final.xls and run your interface .
    Step 7. Increment the Loop and copy your next File for Final and run the interface
    Step 8 . Finally you will be able to read all the Excel File .
    Step 9 . Delete the source file [ Optional ]
    Hope this helps.

  • Character field in excel output exist some junk character's

    PlatForm :IBM630,PC
    Operation System:windows xp,windows 2003,AIX 5.3
    IAS version :10.1.2
    Language :Chinese
    When set desformat parameter equal to spreadsheet, character field in excel output exist some junk character's,
    and as excel output data gather volume,junk character's will more and more.
    But when I only get the record include junk character's,then the excel output will be ok.
    How can I do to solve the problem?
    Thanks in advance!
    lind
    Message was edited by:
    user565112

    PDF,RTF DESFORMAT is right,but users need spreadsheet desformat too.
    the characterset is unicode,and end signal of junk character is ?/SPAN>.
    When I get excel output include junk character,the same time get the junk character's record,and then get excel output only include the junk character's record,the excel output will be showed correctly,no junk characters.
    How to sovle the problem?
    thanks.
    Message was edited by:
    user565112

  • Special character issue while loading data from SAP HR through VDS

    Hello,
    We have a special character issue, while loading data from SAP HR to IdM, using a VDS and following the standard documentation: http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/e09fa547-f7c9-2b10-3d9e-da93fd15dca1?quicklink=index&overridelayout=true
    French accent like (é,à,è,ù), are correctly loaded but Turkish special ones (like : Ş, İ, ł ) are transformed into u201C#u201D in Idm.
    The question is : does someone know any special setting to do in the VDS or in IdM for special characters to solve this issue??
    Our SAP HR version is ECC6.0 (ABA/BASIS7.0 SP21, SAP_HR6.0 SP54) and we are using a VDS 7.1 SP5 and SAP NW IdM 7.1 SP5 Patch1 on oracle 10.2.
    Thanks

    We are importing directly to the HR staging area, using the transactions/programs "HRLDAP_MAP", "LDAP" and "/RPLDAP_EXTRACT", then we have a job which extract data from the staging area to a CSV file.
    So before the import, the character appears correctly in SAP HR, but by the time it comes through the VDS to the IDM's temporary table, it becomes "#".
    Yes, our data is coming from a Unicode system.
    So, could it be a java parameter to change / add in the VDS??
    Regards.

  • Issues with Excel for Mac

    Howdy.
    I am currently running excel on 10.5. The version i am using is 12.0(071130) .
    Its an intermittant issues whereby Excel will rnadomly crash when asked to copy and paste. My first instinct is to update but when i tried to download the installers for the 12.1 and the 12.9 updates , they won't install on my hard drive. I get an exclamation mark on my hard drive when going through the installer.
    I think the copy and paste issue can be sorted by the update, but how do i do the update needed.
    I tried running the microsoft updater through excel but it just hangs and hangs.
    Any ideas?

    I had a similar problem with the exclamation mark. I solved it by re-installing Office from the original disks and re-starting the computer. It seems that one of the main files must have been missing in the Microsoft Office 2008 folder. I now have 8 items in there after the update to 12.1.9.

  • Engineering character issue in conversion of jsp page to ms-excel format

    Hi,
    I have a requirement of down loading the jsp page into an ms-excel sheet. for this I am using following code:
    response.setContentType("application/vnd.ms-excel;charset=UTF-8");
    the conversion is fine but the numeric fields whose length exceeds 11 characters is appearing in the engineering format (i.e.,11E+3211). But it should appear as plain number.
    The following are the constraints that I do have:
    1. The version of java in client machine is 1.2.1
    2. I cannot use external jar files like (JExcel, EZJCom or POI)
    So please can you find some feasible solution.

    Reading between the lines, it appears that the issue is that the generated file is referencing a hard coded path to the CSS file. If the client does not actually have the file C:\LTS\CSS\main.css on their system at the time of the request, then the response is logical.
    This is clearly going to create issues with portability (why would an unknown client have the file C:\LTS\CSS\main.css) so unless you are doing this for your singular use, then you need to look at another method of relaying the css data. The most reliable mechanism would be to embed it directly in the generated file inside a <style> tag. You could also serve the css as its own page from your webserver, but it could create problems if the users are saving the generated files and then attempting to use them when disconnected from the network.

  • Strange character issue in textfields

    I've created a form in Livecycle Designer ES2 for a government company.
    The form contains several pages with text fields, radio buttons and check boxes.
    Also javascripts to enhance the form.
    I've used their company font for static text and Verdana for the textfields.
    My customer uses Windows XP (SP3) and Adobe Reader 10.1.x on all of their computers.
    When they open the form and start typing text in the formfields something strange happens.
    It looks like that if the first key they hit on the keyboard, directly after opening the form, acts strange in the entire form.
    For example:
    If the hit a letter "a" as the first key, after opening the form.
    The letter "a" will be followed with one or several spaces through the entire form.
    Also some letters shows on top of each other.
    I've tested the form on several other Windows XP computers with Reader 10.1.x and the problem didn't show.
    The test where made on different locations and companies.
    The problem only seems to exist on all of the computers of my customer.
    Is there a known problem dat looks like this?
    Maybe a third application is cousing this problem, but i don't know what it can be.
    Anyone seen this behaviour before??
    I recently upgraded to ES4 and exported the form using ES4, but the error seems to stay.

    Hi Kavipriya,
    Thanks for quick reply.
    This issue after generating output -> Excel..
    I am not getting any issue..
    but in place of special character , it shows some squar box symbol.. remaining ok..
    and remaining special characters are working fine..
    the following examples which I got in my excel output..
    CM&U Enertrag Randow-Höhe (8) SDL
    CM&U Prützke 1-4  SDL  I & II
    CM&U Kulder Hof Tönisvorst (4) SDL phase I+II
    the output is generating perfect.. but client reports some bad characters are coming in place of Ö. Ü,ß,.....etc
    Please let me know how can we correct the above one.
    Thanks..

  • XML Data from PL/SQL procedure -- special character issue (eBS)

    Hi All,
    I am developing a report, where the XML data is created by a PL/SQL procedure. I chose this approach over a data template, since there is a lot of processing involved in producing the actual data, and it cannot be done by select-statements alone. The report is run as a regular concurrent request.
    So far so good. There is a problem though. Every time the data contains special characters (ä, ö, umlauts), the concurrent request is completed with a warning, the log confirms that "One or more post-processing actions failed.", also there is no output file. The XML structure is valid as such. The report runs smoothly and produces the output when the XML data does not contain special characters.
    I am producing the XML lines by using the standard FND_FILE.PUT_LINE procedure: Fnd_File.put_line(Fnd_File.output, '<?xml version="1.0" encoding="UTF-8"?>'); This seems like a character encoding issue, but declaring the UTF-8 encoding in this way does not solve the problem.
    Any ideas what can be done to fix this? I have been searching Metalink but cannot find an answer. Many thanks for your kind help.
    Best Regards, Matilda

    Hi Rajesh,
    One idea I have, is that it might be possible to modify the PL/SQL code into a "before report" type trigger, attached to a data template. The code would process the data and write the lines into a temporary table, from which the data template could retrieve them in a simple select-query. However, it would be neat to be able to solve this without adding an extra layer of processing, since BI Publisher supposedly supports PL/SQL procedures as the data source.
    The data in this case is all correct, special characters are an intrinsic feature of the Finnish language. :)
    Best Regards, Matilda

  • Issue with Excel output in BI Publisher(OBIEE 11g)

    Hi All,
    I have designed my BIP report in RTF Layout, it contains pivot table( with one column and one row and a measure column).  when i export the report in Excel output format, i have 3 issues.
    i) I have fixed the pivot table row height as 13.75 pixels in RTF Layout but when i export it into Excel output it comes with 15 pixels as row height.
    ii) In layout i have Arial 8 as font formatting, in Excel output it comes with calibri 11 (when i double click on the cell it shows Arial 8).
    iii) Pivot table has month Column which grows horizontally when i run the report ie. Jan, Feb,..Dec.In Excel it has to show each month with a single column is my requirement like
    A
    B
    C
    D
    E
    Jan
    Feb
    Mar
    Apr
    Sales Quantity
    120
    110
    150
    120
    But it shows like below, each month occupied multiple columns; it affect the report structure.
    A
    B
    C
    D
    E
    Jan
    Feb
    Sales Quantity
    120
    110
    Can anyone help me on this.
    Thanks in Advance
    Arun.

    Try using substring instead of substr. You may want to try LOGO1 and LOGO2 as texts first just to ensure that the condition is working.
    <?xdofx: if substring(OU_NAME,1,3)='MAC' then LOGO1 else LOGO2 end if?>
    Hope this helps.

  • Issues Upload Excels: FM 'HR_KR_XSTRING_TO_STRING' don't exits

    Hi all,
    I'm trying to upload an excel sheet using WDA, I find a lot of  links like [this|http://wiki.sdn.sap.com/wiki/display/WDABAP/ExcelFileUploadAndDisplayDataUsingWebDynPro+ABAP] for do it.
    But in almost all use the FM HR_KR_XSTRING_TO_STRING. In my system this FM don't exits.
    I find other links like [this|https://wiki.sdn.sap.com/wiki/display/WDABAP/WDA%20for%20uploading%20Data%20from%20%20Excel%20sheet] or [this|Re: Function 'HR_KR_XSTRING_TO_STRING'; but when i trying to do it, is getting errors...
    This is my code;
    DATA lo_el_context TYPE REF TO if_wd_context_element.
      DATA ls_context TYPE wd_this->element_context.
      DATA lv_data TYPE wd_this->element_context-data_source.
    * get element via lead selection
      lo_el_context = wd_context->get_element( ).
    * get single attribute
      lo_el_context->get_attribute(
        EXPORTING
          name =  `DATA_SOURCE`
        IMPORTING
          value = lv_data ).
    DATA: convt type ref to cl_abap_conv_in_ce,
          s_cont type string,
          s_table type string_table.
    convt = cl_abap_conv_in_ce=>create( input = lv_data ).
    convt->read( importing data = s_cont ).  "" In this line is DUMPING !!!!!!!!!!!!!!!
    split s_cont at cl_abap_char_utilities=>cr_lf into table s_table.
    This is the error displayed in the browser:
    "A character set conversion is not possible."
    In my context i have an attribute called 'Data_source' type xstring...
    How can I fix it?
    Thanks in advance.

    Thanks for your answer.
    What is the meaning of "TAB Delimited Excel file" ? I use Office 2007. ¿xls not xlsx?
    I've tried to usethe FM ECATT_CONV_XSTRING_TO_STRING but is always dumpping... returning this message:
    "Error occurred during character conversion "
    This is my code;
    data: LV_DATA2 type ETXML_LINE_STR.
    lv_data2 = lv_data.
    CALL FUNCTION 'ECATT_CONV_XSTRING_TO_STRING'
      EXPORTING
        im_xstring        = lv_data2
       IM_ENCODING       = 'UTF-8'
    IMPORTING
       EX_STRING         = s_cont.
    I've also tried with the second option and this is my code;
    data binary_tab type standard table of x255.
    CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
      EXPORTING
        buffer                = lv_data
    *   APPEND_TO_TABLE       = ' '
    * IMPORTING
    *   OUTPUT_LENGTH         =
      tables
        binary_tab            = binary_tab.
    DATA ld_binlen TYPE i.
    DATA ld_str TYPE string.
    ld_binlen = XSTRLEN( lv_data ).
    CALL FUNCTION 'SCMS_BINARY_TO_STRING'
      EXPORTING
        input_length = ld_binlen
      IMPORTING
        text_buffer  = ld_str
      TABLES
        binary_tab   = binary_tab.
    But is still returning the strange value;  PK##########!#q#9+p###?#####?#[ Content_Types .xml ??#(?########################################################################################################################################################################################################

  • A temporary solution for issue of excel sheet for SO_NEW_DOCUMENT_ATT_SEND_

    Hi,
    we all sometime or the other have faced the problem with SO_NEW_DOCUMENT_ATT_SEND_API1, it passes all the data into a single excel sheet. the following is the code i have written using the same standard FM to resolve the issue.
    Problem's Facing     : To send the output of a report as mail attachment (Excel sheet) from SAP, to the User's outlook or TCP/IP
    What is happening     : All the data which is being passed to the excel is being put in a single cell of the excel sheet.
    Cause               : the difficulty lies in getting the internal table from SAP report, passing it to email Function Module If the structure of the internal Table is unknown .
    Solution:
    if the user while sending data to the Function module ( created using the following code) puts a '#' between field values, all the fields gets separated into individual cells and the data gets printed as required.
    <b>advantages</b> of the following code are:
    1) User just need to type userid or multiple userid's separated by comma.
    2) Performs multiple tasks with one function module.
    3) It can be used to send file with subject only
    4) It can be used to send file with subject and body
    5) It can be used to send file with subject, body, and attachment
    6) Attachment can be of 'TXT' format or 'XLS' format depending upon the choice of the user.
    7) User specific parameters for EMAILID, subject, body and attachment type avoiding the dump error of  "Type conflict"
    8) If the user requires to send output of a report as an excel file, then a single internal table will store the total output separating the field values by ' # ' and the data gets printed evenly. the ' # '  symbol is used as Tab delimiter.
    FUNCTION zemail_attachment.
    ""Local Interface:
    *"  IMPORTING
    *"     REFERENCE(EMAILID)
    *"     REFERENCE(SUBJECT)
    *"     REFERENCE(ATYPE)
    *"  TABLES
    *"      ATTACH_FILE STRUCTURE  SOLISTI1
    *"      BODY OPTIONAL
    *"  EXCEPTIONS
    *"      INCORRECT_PARAMETERS
    This table requires information about how the data in the
    tables OBJECT_HEADER, CONTENTS_BIN and CONTENTS_TXT are
    to be distributed to the documents and its attachments.
      DATA it_objpack LIKE sopcklsti1 OCCURS  2 WITH HEADER LINE.
    This table must contain the summarized data dependent on each object type.
    SAPscript objects store information here about forms and styles,
    for example. Excel list viewer objects store the number of rows and columns
    amongst other things and PC objects store their original file name.
      DATA it_objhead LIKE solisti1   OCCURS  1 WITH HEADER LINE.
    This table must contain the summarized content of the objects identified as binary objects.
      DATA   it_objbin TYPE STANDARD TABLE OF solisti1 INITIAL SIZE 0
                     WITH HEADER LINE.
    This table must contain the summarized content of the objects identified as ASCII objects.
      DATA it_objtxt  LIKE solisti1   OCCURS 10 WITH HEADER LINE.
    This table must contain the document recipients.
      DATA  it_reclist LIKE somlreci1 OCCURS 5 WITH HEADER LINE .
    This structure must contain the attributes of the document to be sent.
      DATA: doc_ching LIKE sodocchgi1.
      DATA: tab_lines LIKE sy-tabix.
    Create the internal table for body , subject
      DATA: it_body LIKE solisti1 OCCURS 10 WITH HEADER LINE.
    *creation of internal table for Email-id.
      DATA: BEGIN OF it_mailid OCCURS 0,
            email LIKE kna1-name1 ,
            END OF it_mailid.
    *VARIABLES
      DATA : v_hash(1) TYPE c VALUE '#'.
      DATA: v_string1 LIKE kna1-name1,
            v_string2 LIKE kna1-name1,
            v_string3(12) TYPE c VALUE '@GMAIL.COM'.
    *CONSATNTS
      CONSTANTS: c_con_cret TYPE c VALUE cl_abap_char_utilities=>horizontal_tab,
                 c_con_tab  TYPE c VALUE cl_abap_char_utilities=>cr_lf,
                 c_raw(3)   TYPE c VALUE 'RAW',
                 c_comma(1) TYPE c VALUE ',',
                 c_rec_type(1) TYPE c VALUE 'U',
                 c_space(1)    TYPE c VALUE ''.
    Move Body to Internal Table (body into it_body)
      LOOP AT body .
        MOVE body TO it_body .
        APPEND it_body .
      ENDLOOP.
      doc_ching-obj_descr = subject.   "Subject of the Email
    Move the Subject and Body to OBJTXT
      it_objtxt[] = it_body[].
      DESCRIBE TABLE it_objtxt LINES tab_lines.
      READ TABLE it_objtxt INDEX tab_lines.
      doc_ching-doc_size = ( tab_lines - 1 ) * 255 + STRLEN( it_objtxt ).
      CLEAR it_objpack-transf_bin.
    it_objpack-head_start = 1.
    it_objpack-head_num   = 0.
    it_objpack-body_start = 1.
    it_objpack-body_num   = tab_lines.
    it_objpack-doc_type   = c_raw.
      APPEND it_objpack.
    Convert to Excel format
    IF NOT attach_file[] IS INITIAL.
      IF atype IS INITIAL.
    RAISE INCORRECT_PARAMETERS.
      ELSEIF atype = 'XLS' .
        LOOP AT attach_file .
          CONCATENATE attach_file v_hash INTO attach_file.
          REPLACE ALL OCCURRENCES OF v_hash IN attach_file WITH c_con_cret.
          IF sy-tabix = 1.
            MOVE attach_file TO it_objbin.
          ELSE.
            CONCATENATE c_con_tab attach_file INTO it_objbin.
          ENDIF.
          APPEND  it_objbin.
        ENDLOOP.
      ELSEIF atype = 'TXT' .
    Convert to Text format
        LOOP AT attach_file .
          REPLACE ALL OCCURRENCES OF v_hash IN attach_file WITH c_con_cret.
          CONCATENATE attach_file c_con_tab  INTO it_objbin .
          APPEND it_objbin .
        ENDLOOP.
      ENDIF.
      DESCRIBE TABLE it_objbin LINES tab_lines.
      it_objhead = subject. APPEND it_objhead.
    Creating the entry for the compressed attachment
      it_objpack-transf_bin = 'X'.
      it_objpack-head_start = 1.
      it_objpack-head_num   = 1.
      it_objpack-body_start = 1.
      it_objpack-body_num   = tab_lines.
    *check for XLS ,TXT files
      IF atype = 'XLS'.
        it_objpack-doc_type   = atype.
      ELSEIF atype = 'TXT'.
        it_objpack-doc_type   = c_raw.
      ENDIF.
      it_objpack-obj_name   = 'ATTACHMENT'.
      it_objpack-obj_descr = 'ATTACHMENT'. "Attachment File Name
      it_objpack-doc_size   = tab_lines * 255.
      APPEND it_objpack..
    ENDIF.
    Entering names in the distribution list
    Concatenating the email with '@GMAIL.COM if the user doesnot specify any mail extension
    recipent type as U - for internet usage
      SPLIT emailid AT c_comma INTO TABLE it_mailid.
      APPEND it_mailid.
      LOOP AT it_mailid.
        SHIFT it_mailid-email LEFT DELETING LEADING c_space.
        SPLIT it_mailid-email AT '@' INTO: v_string1 v_string2.
        IF v_string2 IS INITIAL AND NOT it_mailid-email IS INITIAL.
          CONCATENATE v_string1 v_string3 INTO it_reclist-receiver.
          it_reclist-rec_type = c_rec_type.
          APPEND it_reclist.
          CLEAR: v_string1,v_string2.
        ELSE.
          it_reclist-receiver = it_mailid-email.
          it_reclist-rec_type = c_rec_type.
          APPEND it_reclist.
        ENDIF.
      ENDLOOP.
      CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
        EXPORTING
          document_data              = doc_ching
          put_in_outbox              = 'X'
          commit_work                = 'X'
        TABLES
          packing_list               = it_objpack
          object_header              = it_objhead
          contents_bin               = it_objbin
          contents_txt               = it_objtxt
          receivers                  = it_reclist
        EXCEPTIONS
          too_many_receivers         = 1
          document_not_sent          = 2
          operation_no_authorization = 4
          OTHERS                     = 99.
    ENDFUNCTION.
    If anyone, has a better solution, please share
    Cheers
    Ajay

    issue resolved

  • Multibyte Character Issue

    Hi,
    We just migrated our technology platform on one of the six servers yesterday on production d/b as follows :
    OAS Server - Linux Patch Applied (2.6.18-53.el5 #1 SMP Wed Oct 10 16:34:19 EDT 2007 x86_64 x86_64 x86_64 GNU/Linux)
    D/B Server - From Oracle 10.2.0.2.0 to Oracle 10.2.0.4.0
    Batch Server - From OpenVMS to Red Hat Linux
    Post Migration, we are facing some issues with Oracle Forms 10g, Text Items which contains one or more than one multibyte characters, is displaying only # character in the entire text box instead of what is stored in the database. In other words, information in the database is stored correctly. Before Migration everything was working perfectly fine.
    One other thing which I would like to tell here is that we compile forms using the following environment settings:
    NLS_LENGTH_SEMANTICS=CHAR
    NLS_LANG=AMERICAN_AMERICA.UTF8
    Please provide urgent remedy for this issue

    hi,
    how about this.
    SQL> with your_table as ( -- "sample data"
      2       select '1ξΣ' your_column from dual union all
      3       select 'ξΣξΣξΣξΣξΣ' your_column from dual union all
      4       select 'ξΣξΣξΣξΣξΣξΣξΣξΣξΣξΣ' your_column from dual union all
      5       select '1ξΣa' your_column from dual
      6  ) -- end "sample data"
      7  select your_column,
      8         substr(your_column || rpad(' ', 10 - length(your_column), 'x'),1,10) padded_column
      9    from your_table
    10  /
    YOUR_COLUMN                              PADDED_COLUMN
    1ξΣ                                      1ξΣ xxxxxx
    ξΣξΣξΣξΣξΣ                               ξΣξΣξΣξΣξΣ
    ξΣξΣξΣξΣξΣξΣξΣξΣξΣξΣ                     ξΣξΣξΣξΣξΣ
    1ξΣa                                     1ξΣa xxxxx

  • Issue in Excel to XML Conversion

    Hi Gurus,
    I am creating a custom java module in sap nwds 7.3 for Excel to XML Conversion. But I am getting following error
    Classpath dependency validator message.
    Classpath entry  will not be exported or published. Runtime ClassNotFoundExceptions may result.
    I imported the Jars from a different PI system and i am using NWDS in local PC with creating a separate folder with all JARs and also imported them using build path option.
    This issue is occuring for all the jars imported.
    I am using following code.
    import java.io.FileInputStream;
    import java.io.FileOutputStream;
    import java.io.InputStream;
    import java.io.OutputStream;
    import java.util.Map;
    import com.sap.aii.mapping.api.StreamTransformation;
    import com.sap.aii.mapping.api.AbstractTrace;
    import java.util.HashMap;
    import jxl.Cell;
    import jxl.Workbook;
    public class JavaMappingExcelToXML implements StreamTransformation{
    private Map map = null;
    private AbstractTrace trace = null;
    public void setParameter(Map arg0) {
    map = arg0; // Store reference to the mapping parameters
    if (map == null) {
    this.map = new HashMap();
    public static void main(String args[]) { //FOR EXTERNAL STANDALONE TESTING
    try {
    FileInputStream fin = new FileInputStream ("c:/ashu.xls"); //INPUT FILE (PAYLOAD)
    FileOutputStream fout = new FileOutputStream ("C:/Users/ashutosh.a.upadhyay/My Documents/ashuXML2.xml"); //OUTPUT FILE (PAYLOAD)
    JavaMappingXLStoXML mapping = new JavaMappingXLStoXML ();
    mapping.execute(fin, fout);
    catch (Exception e1) {
    e1.printStackTrace();
    public void execute(InputStream inputstream, OutputStream outputstream) {
    String msgType = "Message Type name will come here";
    String nameSpace = "Namespace Name will come here";
    String xmldata = "";
    try {
    Workbook wb = Workbook.getWorkbook(inputstream);
    xmldata ="<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"+ "<ns0:"+msgType+" "+"xmlns:ns0=\""+nameSpace+"\n">";
    Cell[] cells ;
    Cell[] cellNames ;
    cellNames = wb.getSheet(0).getRow(0);
    for(int j=1;j<wb.getSheet(0).getRows();j++){
    xmldata = xmldata+"\n<Record>\n";
    cells = wb.getSheet(0).getRow(j);
    for(int i=0;i<wb.getSheet(0).getColumns();i++){
    xmldata = xmldata+"\t<"+cellNames[i].getContents()+">"+cells[i].getContents()+"</"+cellNames[i].getContents()+">\n";
    xmldata = xmldata+"</Record>";
    xmldata = xmldata+"\n</ns0:"+msgType+">";
    System.out.print(xmldata);
    xmldata.getBytes();
    wb.close();
    byte by[] = xmldata.getBytes();
    outputstream.write(by);
    inputstream.close();
    outputstream.close();
    System.out.println("\n"+"File processed");
    catch (Exception e) {
    e.printStackTrace();
    Request you to guide how to resolve this issue.
    Thanks  in advance

    Thanks Anand,
    PDF shared by you was extremely helpful. Now I have successfully developed and deployed the adapter. But while using it in Communication Channel I am getting following error.
    Error: com.sap.engine.services.jndi.persistent.exceptions.NamingException: Exception during lookup operation of object with name localejbs/ExcelToXML, cannot resolve object reference. [Root exception is javax.naming.NamingException: Error occurs while the EJB Object Factory trying to resolve JNDI reference Reference Class Name: Type: clientAppName Content: sap.com/SAP_Exel_To_XMLEAR Type: interfaceType Content: local Type: ejb-link Content: Excel_To_XML Type: jndi-name Content: ExcelToXML Type: local-home Content: sap.com.excelToXML.Excel_To_XMLLocalHome Type: local Content: sap.com.excelToXML.Excel_To_XMLLocal com.sap.engine.services.ejb3.runtime.impl.refmatcher.EJBResolvingException: Cannot start applicationsap.com/SAP_Exel_To_XMLEAR; nested exception is: java.rmi.RemoteException: [ERROR CODE DPL.DS.6125] Error occurred while starting application locally and wait.; nested exception is: com.sap.engine.services.deploy.exceptions.ServerDeploymentException: [ERROR CODE DPL.DS.5029] Exception in operation [startApp] with application [sap.com/SAP_Exel_To_XMLEAR]. at com.sap.engine.services.ejb3.runtime.impl.DefaultContainerRepository.startApp(DefaultContainerRepository.java:398) at com.sap.engine.services.ejb3.runtime.impl.DefaultContainerRepository.getEnterpriseBeanContainer(DefaultContainerRepository.java:182) at com.sap.engine.services.ejb3.runtime.impl.DefaultRemoteObjectFactory.resolveReference(DefaultRemoteObjectFactory.java:55) at com.sap.engine.services.ejb3.runtime.impl.EJBObjectFactory.getObjectInstance(EJBObjectFactory.java:144) at com.sap.engine.services.ejb3.runtime.impl.EJBObjectFactory.getObjectInstance(EJBObjectFactory.java:63) at com.sap.engine.system.naming.provider.ObjectFactoryBuilderImpl._getObjectInstance(ObjectFactoryBuilderImpl.java:76) at com.sap.engine.system.naming.provider.ObjectFactoryBuilderImpl.access$100(ObjectFactoryBuilderImpl.java:33) at com.sap.engine.system.naming.provider.ObjectFactoryBuilderImpl$DispatchObjectFactory.getObjectInstance(ObjectFactoryBuilderImpl.java:226) at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:283) at com.sap.engine.services.jndi.implclient.ClientContext.lookup(ClientContext.java:434) at com.sap.engine.services.jndi.implclient.OffsetClientContext.lookup(OffsetClientContext.java:223) at com.sap.engine.services.jndi.implclient.OffsetClientContext.lookup(OffsetClientContext.java:242) at javax.naming.InitialContext.lookup(InitialContext.java:351) at javax.naming.InitialContext.lookup(InitialContext.java:351) at com.sap.aii.af.lib.util.ejb.FastEjbFactory.createEjbInstance(FastEjbFactory.java:69) at com.sap.aii.af.lib.util.ejb.FastEjbFactory.createEjbInstance(FastEjbFactory.java:50) at com.sap.aii.af.app.mp.ejb.ModuleProcessorBean.getModuleLocal(ModuleProcessorBean.java:419) at com.sap.aii.af.app.mp.ejb.ModuleProcessorBean.process(ModuleProcessorBean.java:287) at sun.reflect.GeneratedMethodAccessor946.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:592) at com.sap.engine.services.ejb3.runtime.impl.RequestInvocationContext.proceedFinal(RequestInvocationContext.java:46) at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:166) at com.sap.engine.services.ejb3.runtime.impl.Interceptors_StatesTransition.invoke(Interceptors_StatesTransition.java:19) at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:179) at com.sap.engine.services.ejb3.runtime.impl.Interceptors_Resource.invoke(Interceptors_Resource.java:74) at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:179) at com.sap.engine.services.ejb3.runtime.impl.Interceptors_Transaction.doWorkWithAttribute(Interceptors_Transaction.java:38) at com.sap.engine.services.ejb3.runtime.impl.Interceptors_Transaction.invoke(Interceptors_Transaction.java:22) at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:179) at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:191) at com.sap.engine.services.ejb3.runtime.impl.Interceptors_StatelessInstanceGetter.invoke(Interceptors_StatelessInstanceGetter.java:23) at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:179) at com.sap.engine.services.ejb3.runtime.impl.Interceptors_SecurityCheck.invoke(Interceptors_SecurityCheck.java:21) at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:179) at com.sap.engine.services.ejb3.runtime.impl.Interceptors_ExceptionTracer.invoke(Interceptors_ExceptionTracer.java:16) at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:179) at com.sap.engine.services.ejb3.runtime.impl.DefaultInvocationChainsManager.startChain(DefaultInvocationChainsManager.java:133) at com.sap.engine.services.ejb3.runtime.impl.DefaultEJBProxyInvocationHandler.invoke(DefaultEJBProxyInvocationHandler.java:164) at com.sun.proxy.$Proxy3299.process(Unknown Source) at com.sap.aii.adapter.file.File2XI.send(File2XI.java:3605) at com.sap.aii.adapter.file.File2XI.processFileList(File2XI.java:1374) at com.sap.aii.adapter.file.File2XI.invoke(File2XI.java:669) at com.sap.aii.af.lib.scheduler.JobBroker$Worker.run(JobBroker.java:534) at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37) at java.security.AccessController.doPrivileged(Native Method) at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:182) at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:280) ]
    pl
    please help

  • Issue with Excel Attachement in BI 7.0

    Hi,
    I have developed a custom report to send an e-mail with excel attachment in BI 7.0. When we are trying to open the excel sheet attachment in the e-mail. I am getting a message warning message stating that<b> 'This file is not in a recognizable format'</b>. but if we click on ok button then everything looks fine i.e the data is displaying as expected.
    I have developed the same reports in SAP R/3 and SRM but I don't see any issues over there.
    Can any one help me on this issue.
    Thanks in advance,
    Venkat Bomma

    When the selection screen pops up choose the KEY only function on the TOOLS on the top right corner of the screen. Then you will be able to enter the values manually.
    Hope this helps.

  • Special character issue with Adobe Reader 11.03 in hyperlink path

    Adobe Reader changes a [ character in a hyperlink path to a % sign, thus changing the path and destroying the link,when opened in version 11.03.  This does not happen with 11.01.  This is a serious problem for our customers with a critical linked document, because the customers are generall not tech savvy, and categorically refuse workarounds. They will not adjust their Adobe version for fear of security issues. Can this be corrected in a future version of Adobe Reader?

    This is the Bridge Forum, try posting in acrobat froum http://forums.adobe.com/community/acrobat

Maybe you are looking for