<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic open dataset binary in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-binary/m-p/8254154#M1631411</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've a problem with the open dataset command and the german umlauts (ä, ö, ü) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here's my coding:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
*file is a csv-text file (UTF-8)

DATA: datab LIKE solix OCCURS 0 WITH HEADER LINE.


  OPEN DATASET file FOR INPUT IN legacy binary  mode.
                                                                                DO.
    READ DATASET file INTO datab.
    IF sy-subrc &amp;lt;&amp;gt; 0.
      EXIT.
    ENDIF.
                                                                                append datab to binary_content.
                                                                                ENDDO.

**     add the binary table  as attachment to document object
      document-&amp;gt;add_attachment(
        i_attachment_type    =  p_typ                       "#EC NOTEXT
        i_attachment_subject = 'Meldeliste'                 "#EC NOTEXT
        i_attachment_size    = size
        i_att_content_hex    = binary_content ).


&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;all worked fine, besides the german umlauts (ä, ö, ü) &lt;/P&gt;&lt;P&gt;I get faulty signs like Ã¼&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can anyone help.&lt;/P&gt;&lt;P&gt;which addition I must add to the open datset - command&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or must I convert the datab-field?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Oct 2011 10:41:36 GMT</pubDate>
    <dc:creator>andreas_mann3</dc:creator>
    <dc:date>2011-10-26T10:41:36Z</dc:date>
    <item>
      <title>open dataset binary</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-binary/m-p/8254154#M1631411</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've a problem with the open dataset command and the german umlauts (ä, ö, ü) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here's my coding:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
*file is a csv-text file (UTF-8)

DATA: datab LIKE solix OCCURS 0 WITH HEADER LINE.


  OPEN DATASET file FOR INPUT IN legacy binary  mode.
                                                                                DO.
    READ DATASET file INTO datab.
    IF sy-subrc &amp;lt;&amp;gt; 0.
      EXIT.
    ENDIF.
                                                                                append datab to binary_content.
                                                                                ENDDO.

**     add the binary table  as attachment to document object
      document-&amp;gt;add_attachment(
        i_attachment_type    =  p_typ                       "#EC NOTEXT
        i_attachment_subject = 'Meldeliste'                 "#EC NOTEXT
        i_attachment_size    = size
        i_att_content_hex    = binary_content ).


&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;all worked fine, besides the german umlauts (ä, ö, ü) &lt;/P&gt;&lt;P&gt;I get faulty signs like Ã¼&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can anyone help.&lt;/P&gt;&lt;P&gt;which addition I must add to the open datset - command&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or must I convert the datab-field?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Oct 2011 10:41:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-binary/m-p/8254154#M1631411</guid>
      <dc:creator>andreas_mann3</dc:creator>
      <dc:date>2011-10-26T10:41:36Z</dc:date>
    </item>
    <item>
      <title>Re: open dataset binary</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-binary/m-p/8254155#M1631412</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Andreas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;have you tried to open dataset with code page UTF-8?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it should be OPEN DATASET file FOR INPUT IN legacy binary  mode CODE PAGE cp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't remember which is the cp for utf...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this could be helpful&lt;/P&gt;&lt;P&gt;Andrea&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here maybe there are the encoding&lt;/P&gt;&lt;P&gt;&lt;A href="http://wiki.sdn.sap.com/wiki/display/ABAP/Character" target="test_blank"&gt;http://wiki.sdn.sap.com/wiki/display/ABAP/Character&lt;/A&gt;&lt;EM&gt;encoding&lt;/EM&gt;conversion&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Andrea Marangon on Oct 26, 2011 1:03 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Oct 2011 10:59:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-binary/m-p/8254155#M1631412</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-10-26T10:59:52Z</dc:date>
    </item>
  </channel>
</rss>

