<?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 Re: unicode error READ DATASET p_path INTO table. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-error-read-dataset-p-path-into-table/m-p/2663412#M614562</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; OPEN DATASET P_PATH FOR INPUT IN TEXT MODE ENCODING DEFAULT.&lt;/P&gt;&lt;P&gt;  IF SY-SUBRC NE 0.&lt;/P&gt;&lt;P&gt;    WRITE:/ 'FILE NOT FOUND'.&lt;/P&gt;&lt;P&gt;    STOP.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DO.&lt;/P&gt;&lt;P&gt;    READ DATASET P_PATH INTO TABLE.&lt;/P&gt;&lt;P&gt;    IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;      EXIT.&lt;/P&gt;&lt;P&gt;    ELSE.&lt;/P&gt;&lt;P&gt;      APPEND TABLE.&lt;/P&gt;&lt;P&gt;      CLEAR TABLE.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;  ENDDO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DESCRIBE TABLE TABLE LINES V_LINES.&lt;/P&gt;&lt;P&gt;  IF V_LINES EQ 0.&lt;/P&gt;&lt;P&gt;    WRITE:/ 'NO RECORDS IN FILE'.&lt;/P&gt;&lt;P&gt;    STOP.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CLOSE DATASET P_PATH.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 24 Aug 2007 18:04:52 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-08-24T18:04:52Z</dc:date>
    <item>
      <title>unicode error READ DATASET p_path INTO table.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-error-read-dataset-p-path-into-table/m-p/2663409#M614559</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI can any one suggest me how to handle this unicode error "&amp;lt;b&amp;gt;READ DATASET p_path INTO table.".&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;p_path is of type rlgrap-filename and table is an internal table with 15 fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;points rewarded.....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Aug 2007 17:37:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-error-read-dataset-p-path-into-table/m-p/2663409#M614559</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-24T17:37:25Z</dc:date>
    </item>
    <item>
      <title>Re: unicode error READ DATASET p_path INTO table.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-error-read-dataset-p-path-into-table/m-p/2663410#M614560</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you transfer the file from application server to the internal table in one step. I think we need to read line by line and append to itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Kriss&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Aug 2007 17:50:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-error-read-dataset-p-path-into-table/m-p/2663410#M614560</guid>
      <dc:creator>former_member192429</dc:creator>
      <dc:date>2007-08-24T17:50:15Z</dc:date>
    </item>
    <item>
      <title>Re: unicode error READ DATASET p_path INTO table.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-error-read-dataset-p-path-into-table/m-p/2663411#M614561</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 think you are working on UNICODE system. If yes then you need to apply OPEN DATASET in the following way&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
ld_file = p_infile.
OPEN DATASET ld_file FOR INPUT IN TEXT MODE ENCODING DEFAULT.
IF sy-subrc NE 0.
ELSE.
  DO.
    CLEAR: wa_string, wa_uploadtxt.
    READ DATASET ld_file INTO wa_string.
    IF sy-subrc NE 0.
      EXIT.
    ELSE.
      SPLIT wa_string AT con_tab INTO wa_uploadtxt-name1
                                      wa_uploadtxt-name2
                                      wa_uploadtxt-age.
      MOVE-CORRESPONDING wa_uploadtxt TO wa_upload.
      APPEND wa_upload TO it_record.
    ENDIF.
  ENDDO.
  CLOSE DATASET ld_file.
ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;a®&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Aug 2007 17:59:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-error-read-dataset-p-path-into-table/m-p/2663411#M614561</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2007-08-24T17:59:44Z</dc:date>
    </item>
    <item>
      <title>Re: unicode error READ DATASET p_path INTO table.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-error-read-dataset-p-path-into-table/m-p/2663412#M614562</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; OPEN DATASET P_PATH FOR INPUT IN TEXT MODE ENCODING DEFAULT.&lt;/P&gt;&lt;P&gt;  IF SY-SUBRC NE 0.&lt;/P&gt;&lt;P&gt;    WRITE:/ 'FILE NOT FOUND'.&lt;/P&gt;&lt;P&gt;    STOP.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DO.&lt;/P&gt;&lt;P&gt;    READ DATASET P_PATH INTO TABLE.&lt;/P&gt;&lt;P&gt;    IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;      EXIT.&lt;/P&gt;&lt;P&gt;    ELSE.&lt;/P&gt;&lt;P&gt;      APPEND TABLE.&lt;/P&gt;&lt;P&gt;      CLEAR TABLE.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;  ENDDO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DESCRIBE TABLE TABLE LINES V_LINES.&lt;/P&gt;&lt;P&gt;  IF V_LINES EQ 0.&lt;/P&gt;&lt;P&gt;    WRITE:/ 'NO RECORDS IN FILE'.&lt;/P&gt;&lt;P&gt;    STOP.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CLOSE DATASET P_PATH.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Aug 2007 18:04:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-error-read-dataset-p-path-into-table/m-p/2663412#M614562</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-24T18:04:52Z</dc:date>
    </item>
    <item>
      <title>Re: unicode error READ DATASET p_path INTO table.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-error-read-dataset-p-path-into-table/m-p/2663413#M614563</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;thanks for your reply.&lt;/P&gt;&lt;P&gt;should i take another wa of type string?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Aug 2007 18:29:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-error-read-dataset-p-path-into-table/m-p/2663413#M614563</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-24T18:29:57Z</dc:date>
    </item>
    <item>
      <title>Re: unicode error READ DATASET p_path INTO table.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-error-read-dataset-p-path-into-table/m-p/2663414#M614564</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;Yes &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a®&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Aug 2007 18:34:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-error-read-dataset-p-path-into-table/m-p/2663414#M614564</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2007-08-24T18:34:37Z</dc:date>
    </item>
    <item>
      <title>Re: unicode error READ DATASET p_path INTO table.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-error-read-dataset-p-path-into-table/m-p/2663415#M614565</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;this is the structure of table....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BEGIN OF table OCCURS 0,&lt;/P&gt;&lt;P&gt;          docno LIKE bsid-belnr,        "Internal document&lt;/P&gt;&lt;P&gt;          bukrs LIKE bsid-bukrs,        "Company Code&lt;/P&gt;&lt;P&gt;          kunnr LIKE knb1-kunnr,        "Customer&lt;/P&gt;&lt;P&gt;          budat LIKE bsid-budat,        "Posting date in the document&lt;/P&gt;&lt;P&gt;          bldat LIKE bsid-bldat,        "Document date in document&lt;/P&gt;&lt;P&gt;          blart LIKE bsid-blart,        "Document type&lt;/P&gt;&lt;P&gt;          bschl LIKE bsid-bschl,        "Posting key&lt;/P&gt;&lt;P&gt;          xblnr LIKE bsid-xblnr,        "Reference document number&lt;/P&gt;&lt;P&gt;          zuonr LIKE bsid-zuonr,        "Assignment number&lt;/P&gt;&lt;P&gt;          waers LIKE bsid-waers,        "Currency Key&lt;/P&gt;&lt;P&gt;          wrbtr LIKE bsid-wrbtr,        "Amount in document currency&lt;/P&gt;&lt;P&gt;          shkzg LIKE bsid-shkzg,        "Debit/credit indicator&lt;/P&gt;&lt;P&gt;          saknr LIKE bsid-saknr,        "G/L account number&lt;/P&gt;&lt;P&gt;          kursf LIKE bkpf-kursf,        "Currency Rate&lt;/P&gt;&lt;P&gt;          dmbtr LIKE bsid-dmbtr,        "Amount in local currency&lt;/P&gt;&lt;P&gt;          zterm LIKE bsid-zterm,        "Terms of payment key&lt;/P&gt;&lt;P&gt;          zfbdt LIKE bsid-zfbdt,        "Baseline date for due date&lt;/P&gt;&lt;P&gt;          umskz LIKE bsid-umskz,        "Special G/L Indicator&lt;/P&gt;&lt;P&gt;          zlsch LIKE bsid-zlsch,        "Payment method&lt;/P&gt;&lt;P&gt;          anfae LIKE bsid-anfae,        "Bill of Exch.Pay. Req. Due Date&lt;/P&gt;&lt;P&gt;          wlzbp LIKE bsed-wlzbp,        "State central bank location&lt;/P&gt;&lt;P&gt;          wbzog LIKE bsed-wbzog,        "Bill of exchange drawee&lt;/P&gt;&lt;P&gt;          wort2 LIKE bsed-wort2,        "City of bill of exchange drawee&lt;/P&gt;&lt;P&gt;          wbank LIKE bsed-wbank,        "Bank address&lt;/P&gt;&lt;P&gt;          wort1 LIKE bsed-wort1,        "City of bill of exchange drawer&lt;/P&gt;&lt;P&gt;          wname LIKE bsed-wname,        "Name of bill of exchange drawer&lt;/P&gt;&lt;P&gt;          sgtxt LIKE bsid-sgtxt,        "Item text&lt;/P&gt;&lt;P&gt;          mwskz LIKE bsid-mwskz,        "Tax on sales/purchases code&lt;/P&gt;&lt;P&gt;          name1 LIKE bsec-name1,&lt;/P&gt;&lt;P&gt;          name2 LIKE bsec-name2,&lt;/P&gt;&lt;P&gt;          name3 LIKE bsec-name3,&lt;/P&gt;&lt;P&gt;          name4 LIKE bsec-name4,&lt;/P&gt;&lt;P&gt;          pstlz LIKE bsec-pstlz,&lt;/P&gt;&lt;P&gt;          ort01 LIKE bsec-ort01,&lt;/P&gt;&lt;P&gt;          land1 LIKE bsec-land1,&lt;/P&gt;&lt;P&gt;          stras LIKE bsec-stras,&lt;/P&gt;&lt;P&gt;          pfach LIKE bsec-pfach,&lt;/P&gt;&lt;P&gt;          pstl2 LIKE bsec-pstl2,&lt;/P&gt;&lt;P&gt;          pskto LIKE bsec-pskto,&lt;/P&gt;&lt;P&gt;          bankn LIKE bsec-bankn,&lt;/P&gt;&lt;P&gt;          bankl LIKE bsec-bankl,&lt;/P&gt;&lt;P&gt;          banks LIKE bsec-banks,&lt;/P&gt;&lt;P&gt;          stcd1 LIKE bsec-stcd1,&lt;/P&gt;&lt;P&gt;          stcd2 LIKE bsec-stcd2,&lt;/P&gt;&lt;P&gt;          stkzu LIKE bsec-stkzu,&lt;/P&gt;&lt;P&gt;          stkza LIKE bsec-stkza,&lt;/P&gt;&lt;P&gt;          regio LIKE bsec-regio,&lt;/P&gt;&lt;P&gt;          bkont LIKE bsec-bkont,&lt;/P&gt;&lt;P&gt;          dtaws LIKE bsec-dtaws,&lt;/P&gt;&lt;P&gt;          dtams LIKE bsec-dtams,&lt;/P&gt;&lt;P&gt;          spras LIKE bsec-spras.&lt;/P&gt;&lt;P&gt;DATA : END OF table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Aug 2007 18:39:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-error-read-dataset-p-path-into-table/m-p/2663415#M614565</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-24T18:39:31Z</dc:date>
    </item>
    <item>
      <title>Re: unicode error READ DATASET p_path INTO table.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-error-read-dataset-p-path-into-table/m-p/2663416#M614566</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to read the data into a table of a flat structure with some form of delimiter between the fields, and then split the fields into your table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example - the 11th field of your table is WRBTR - internally in SAP this will be a packed field, but the upload file will have characters at this position because you are reading it as text - this will cause a problem.  Dates will also cause problems - the field for a date is 8 long, and has YYYYMMDD, but dates in text files are generally 10 long and DD/MM/YYYY or MM/DD/YYYY - 10 chars dont fit into an 8 char field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so define a table of CHAR(2000) or of STRING, load the data, and then split it and convert each field inside the program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andrew&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 Aug 2007 07:51:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-error-read-dataset-p-path-into-table/m-p/2663416#M614566</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-25T07:51:04Z</dc:date>
    </item>
  </channel>
</rss>

