<?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: Error opening dataset, return code:        8 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-opening-dataset-return-code-8/m-p/2029340#M416320</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Now I deleted the perform PERFORM open_dataset USING dataset and PERFORM close_dataset USING dataset. When I execute the program the following appears:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Open session                   Return code      0                      &lt;/P&gt;&lt;P&gt;Insert transaction        SE16 Return code =     0  RECORD:          0 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The insert transaction appears for every line of the txt. Doesn't that mean that the data traveled OK to the transparent table? But what happens is that it doesn't appear in that table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 05 Mar 2007 20:10:53 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-03-05T20:10:53Z</dc:date>
    <item>
      <title>Error opening dataset, return code:        8</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-opening-dataset-return-code-8/m-p/2029331#M416311</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm passing the information from a txt to a transparente table. The problem is that it throws me the following message: Error opening dataset, return code:        8  .&lt;/P&gt;&lt;P&gt;When I debug it the first row of information enters to the internal table but after it this erro comes.&lt;/P&gt;&lt;P&gt;The code is the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF record,&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;data element: TABNAME&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        tablename_001(030),&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;data element: DESCR40&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        des_002(040),&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;data element: TYKLA&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        tipo_003(015),&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;data element: QUANTITY_I&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        quan_004(011),&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;data element: PRICE&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        precio_005(021),&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;data element: TOT01&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        total_006(017),&lt;/P&gt;&lt;P&gt;      END OF record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="3" type="ul"&gt;&lt;P&gt;End generated data section ***&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:&lt;/P&gt;&lt;P&gt;BEGIN OF i_tabla OCCURS 0,&lt;/P&gt;&lt;P&gt;dest(40),&lt;/P&gt;&lt;P&gt;type(15),&lt;/P&gt;&lt;P&gt;quan(10),&lt;/P&gt;&lt;P&gt;precio(15),&lt;/P&gt;&lt;P&gt;tot(15),&lt;/P&gt;&lt;P&gt;END OF i_tabla.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS:&lt;/P&gt;&lt;P&gt;p_user LIKE apqi-userid OBLIGATORY DEFAULT  sy-uname,&lt;/P&gt;&lt;P&gt;p_fich LIKE rlgrap-filename OBLIGATORY&lt;/P&gt;&lt;P&gt;DEFAULT: 'C:\Documents and Settings\lseri\My Documents\Book1.txt'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'UPLOAD'&lt;/P&gt;&lt;P&gt;   EXPORTING&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  CODEPAGE                      = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;     filename                      = p_fich&lt;/P&gt;&lt;P&gt;     filetype                      = 'DAT'&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      data_tab                      = i_tabla&lt;/P&gt;&lt;P&gt;   EXCEPTIONS&lt;/P&gt;&lt;P&gt;     conversion_error              = 1&lt;/P&gt;&lt;P&gt;     invalid_table_width           = 2&lt;/P&gt;&lt;P&gt;     invalid_type                  = 3&lt;/P&gt;&lt;P&gt;     no_batch                      = 4&lt;/P&gt;&lt;P&gt;     unknown_error                 = 5&lt;/P&gt;&lt;P&gt;     gui_refuse_filetransfer       = 6&lt;/P&gt;&lt;P&gt;     OTHERS                        = 7&lt;/P&gt;&lt;P&gt;            .&lt;/P&gt;&lt;P&gt;  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno&lt;/P&gt;&lt;P&gt;            WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  PERFORM open_dataset USING dataset.&lt;/P&gt;&lt;P&gt;  PERFORM open_group.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT i_tabla FROM 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; PERFORM bdc_dynpro      USING 'SAPLSETB' '0230'.&lt;/P&gt;&lt;P&gt;    PERFORM bdc_field       USING 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                                  'DATABROWSE-TABLENAME'.&lt;/P&gt;&lt;P&gt;    PERFORM bdc_field       USING 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                                  '=ANLE'.&lt;/P&gt;&lt;P&gt;    PERFORM bdc_field       USING 'DATABROWSE-TABLENAME'&lt;/P&gt;&lt;P&gt;                                  record-tablename_001.&lt;/P&gt;&lt;P&gt;    PERFORM bdc_dynpro      USING '/1BCDWB/DBZSTOCK_TEST' '0101'.&lt;/P&gt;&lt;P&gt;    PERFORM bdc_field       USING 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                                  'ZSTOCK_TEST-TOTAL'.&lt;/P&gt;&lt;P&gt;    PERFORM bdc_field       USING 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                                  '=SAVE'.&lt;/P&gt;&lt;P&gt;    PERFORM bdc_field       USING 'ZSTOCK_TEST-DES'&lt;/P&gt;&lt;P&gt;                                  record-des_002.&lt;/P&gt;&lt;P&gt;    PERFORM bdc_field       USING 'ZSTOCK_TEST-TIPO'&lt;/P&gt;&lt;P&gt;                                  record-tipo_003.&lt;/P&gt;&lt;P&gt;    PERFORM bdc_field       USING 'ZSTOCK_TEST-QUAN'&lt;/P&gt;&lt;P&gt;                                  record-quan_004.&lt;/P&gt;&lt;P&gt;    PERFORM bdc_field       USING 'ZSTOCK_TEST-PRECIO'&lt;/P&gt;&lt;P&gt;                                  record-precio_005.&lt;/P&gt;&lt;P&gt;    PERFORM bdc_field       USING 'ZSTOCK_TEST-TOTAL'&lt;/P&gt;&lt;P&gt;                                  record-total_006.&lt;/P&gt;&lt;P&gt;    PERFORM bdc_dynpro      USING '/1BCDWB/DBZSTOCK_TEST' '0101'.&lt;/P&gt;&lt;P&gt;    PERFORM bdc_field       USING 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                                  '/EBACK'.&lt;/P&gt;&lt;P&gt;    PERFORM bdc_field       USING 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                                  'ZSTOCK_TEST-DES'.&lt;/P&gt;&lt;P&gt;    PERFORM bdc_dynpro      USING 'SAPLSETB' '0230'.&lt;/P&gt;&lt;P&gt;    PERFORM bdc_field       USING 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                                  '/EBACK'.&lt;/P&gt;&lt;P&gt;    PERFORM bdc_field       USING 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                                  'DATABROWSE-TABLENAME'.&lt;/P&gt;&lt;P&gt;    PERFORM bdc_transaction USING 'SE16'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  PERFORM close_group.&lt;/P&gt;&lt;P&gt;  PERFORM close_dataset USING dataset.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me! &lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Mar 2007 18:29:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-opening-dataset-return-code-8/m-p/2029331#M416311</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-05T18:29:14Z</dc:date>
    </item>
    <item>
      <title>Re: Error opening dataset, return code:        8</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-opening-dataset-return-code-8/m-p/2029332#M416312</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;Error opening dataset, return code: 8 means the file could not be opened.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please paste the codes for PERFORM open_dataset USING dataset and PERFORM open_group?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ferry Lianto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Mar 2007 18:48:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-opening-dataset-return-code-8/m-p/2029332#M416312</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-05T18:48:29Z</dc:date>
    </item>
    <item>
      <title>Re: Error opening dataset, return code:        8</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-opening-dataset-return-code-8/m-p/2029333#M416313</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;Can you explain your problem in detail ? If the file is getting picked from the Presentation Server (FM Upoad) then why r you trying to use Open Dataset ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mukul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Mar 2007 18:49:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-opening-dataset-return-code-8/m-p/2029333#M416313</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-05T18:49:32Z</dc:date>
    </item>
    <item>
      <title>Re: Error opening dataset, return code:        8</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-opening-dataset-return-code-8/m-p/2029334#M416314</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are uploading the data from presentation server and again opening another file, don't know why is this ? Are you manipulating with data from the application server file too...post your code fully...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Error opening dataset, return code 8 is because its undable to open the file in application server. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I rather prefer to upload the data from the application server file to an internal table and then do the manipulations in your code .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Mar 2007 18:59:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-opening-dataset-return-code-8/m-p/2029334#M416314</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-05T18:59:46Z</dc:date>
    </item>
    <item>
      <title>Re: Error opening dataset, return code:        8</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-opening-dataset-return-code-8/m-p/2029335#M416315</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  open dataset                                                       *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM OPEN_DATASET USING P_DATASET.&lt;/P&gt;&lt;P&gt;  OPEN DATASET P_DATASET&lt;/P&gt;&lt;P&gt;               FOR INPUT IN TEXT MODE&lt;/P&gt;&lt;P&gt;               ENCODING DEFAULT.&lt;/P&gt;&lt;P&gt;  IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    WRITE: / TEXT-E00, SY-SUBRC.&lt;/P&gt;&lt;P&gt;    STOP.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  create batchinput session                                          *&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  (not for call transaction using...)                                *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM OPEN_GROUP.&lt;/P&gt;&lt;P&gt;  IF SESSION = 'X'.&lt;/P&gt;&lt;P&gt;    SKIP.&lt;/P&gt;&lt;P&gt;    WRITE: /(20) 'Create group'(I01), GROUP.&lt;/P&gt;&lt;P&gt;    SKIP.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  open batchinput group&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    CALL FUNCTION 'BDC_OPEN_GROUP'&lt;/P&gt;&lt;P&gt;         EXPORTING  CLIENT   = SY-MANDT&lt;/P&gt;&lt;P&gt;                    GROUP    = GROUP&lt;/P&gt;&lt;P&gt;                    USER     = USER&lt;/P&gt;&lt;P&gt;                    KEEP     = KEEP&lt;/P&gt;&lt;P&gt;                    HOLDDATE = HOLDDATE.&lt;/P&gt;&lt;P&gt;    WRITE: /(30) 'BDC_OPEN_GROUP'(I02),&lt;/P&gt;&lt;P&gt;            (12) 'returncode:'(I05),&lt;/P&gt;&lt;P&gt;                 SY-SUBRC.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using these performs because they appeared automatically when the recording became a program.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Mar 2007 19:17:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-opening-dataset-return-code-8/m-p/2029335#M416315</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-05T19:17:11Z</dc:date>
    </item>
    <item>
      <title>Re: Error opening dataset, return code:        8</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-opening-dataset-return-code-8/m-p/2029336#M416316</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How can it be that the program is unavaiable to get the data from the txt if the data appeas in the internal table? I believe the problem is when I try to move the data from the internal table to the transparent table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Mar 2007 19:18:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-opening-dataset-return-code-8/m-p/2029336#M416316</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-05T19:18:50Z</dc:date>
    </item>
    <item>
      <title>Re: Error opening dataset, return code:        8</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-opening-dataset-return-code-8/m-p/2029337#M416317</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;your Program flow is confusing...What is that you are doing after opening the file on the application server ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Mar 2007 19:25:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-opening-dataset-return-code-8/m-p/2029337#M416317</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-05T19:25:52Z</dc:date>
    </item>
    <item>
      <title>Re: Error opening dataset, return code:        8</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-opening-dataset-return-code-8/m-p/2029338#M416318</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Lucila,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please try this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
...

PERFORM open_dataset USING dataset.
PERFORM open_group.

LOOP AT i_tabla FROM 2.

PERFORM bdc_dynpro USING 'SAPLSETB' '0230'.
PERFORM bdc_field USING 'BDC_CURSOR'
'DATABROWSE-TABLENAME'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=ANLE'.
PERFORM bdc_field USING 'DATABROWSE-TABLENAME'
record-tablename_001.
PERFORM bdc_dynpro USING '/1BCDWB/DBZSTOCK_TEST' '0101'.
PERFORM bdc_field USING 'BDC_CURSOR'
'ZSTOCK_TEST-TOTAL'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=SAVE'.
PERFORM bdc_field USING 'ZSTOCK_TEST-DES'
record-des_002.
PERFORM bdc_field USING 'ZSTOCK_TEST-TIPO'
record-tipo_003.
PERFORM bdc_field USING 'ZSTOCK_TEST-QUAN'
record-quan_004.
PERFORM bdc_field USING 'ZSTOCK_TEST-PRECIO'
record-precio_005.
PERFORM bdc_field USING 'ZSTOCK_TEST-TOTAL'
record-total_006.
PERFORM bdc_dynpro USING '/1BCDWB/DBZSTOCK_TEST' '0101'.
PERFORM bdc_field USING 'BDC_OKCODE'
'/EBACK'.
PERFORM bdc_field USING 'BDC_CURSOR'
'ZSTOCK_TEST-DES'.
PERFORM bdc_dynpro USING 'SAPLSETB' '0230'.
PERFORM bdc_field USING 'BDC_OKCODE'
'/EBACK'.
PERFORM bdc_field USING 'BDC_CURSOR'
'DATABROWSE-TABLENAME'.
PERFORM bdc_transaction USING 'SE16'.

ENDLOOP.

PERFORM close_group.
*PERFORM close_dataset USING dataset.

...

FORM OPEN_DATASET USING P_DATASET.
  DATA: WA_LINES TYPE STRING.

  OPEN DATASET P_DATASET FOR INPUT IN TEXT MODE.
 
  IF SY-SUBRC &amp;lt;&amp;gt; 0.
    WRITE: / TEXT-E00, SY-SUBRC.
    STOP.
  ELSE.
    DO.
      READ DATASET P_DATASET INTO WA_LINES.
      IF SY-SUBRC &amp;lt;&amp;gt; 0.
        EXIT.
      ENDIF.
 
      I_TABLA = WA_LINES.
      APPEND I_TABLA.
    ENDDO.
  ENDIF.

  CLOSE DATASET  P_DATASET.

ENDFORM.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ferry Lianto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Mar 2007 19:43:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-opening-dataset-return-code-8/m-p/2029338#M416318</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-05T19:43:15Z</dc:date>
    </item>
    <item>
      <title>Re: Error opening dataset, return code:        8</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-opening-dataset-return-code-8/m-p/2029339#M416319</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;If your return code is 8 measn you dont have authorization to write to that network location.&lt;/P&gt;&lt;P&gt;Ask your BASIS to check that.&lt;/P&gt;&lt;P&gt;I once faced the same problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Amit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Mar 2007 19:49:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-opening-dataset-return-code-8/m-p/2029339#M416319</guid>
      <dc:creator>amit_khare</dc:creator>
      <dc:date>2007-03-05T19:49:21Z</dc:date>
    </item>
    <item>
      <title>Re: Error opening dataset, return code:        8</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-opening-dataset-return-code-8/m-p/2029340#M416320</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Now I deleted the perform PERFORM open_dataset USING dataset and PERFORM close_dataset USING dataset. When I execute the program the following appears:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Open session                   Return code      0                      &lt;/P&gt;&lt;P&gt;Insert transaction        SE16 Return code =     0  RECORD:          0 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The insert transaction appears for every line of the txt. Doesn't that mean that the data traveled OK to the transparent table? But what happens is that it doesn't appear in that table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Mar 2007 20:10:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-opening-dataset-return-code-8/m-p/2029340#M416320</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-05T20:10:53Z</dc:date>
    </item>
    <item>
      <title>Re: Error opening dataset, return code:        8</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-opening-dataset-return-code-8/m-p/2029341#M416321</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How can you insert the data directly to SE16 transaction ? I don't think you can write a BDC on it. Through the program using the SQL Statements you can add, delete or modify the data but not directly on se16.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Mar 2007 20:18:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-opening-dataset-return-code-8/m-p/2029341#M416321</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-05T20:18:08Z</dc:date>
    </item>
    <item>
      <title>Re: Error opening dataset, return code:        8</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-opening-dataset-return-code-8/m-p/2029342#M416322</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;You cannot write BDC for SAPLSETB. Its a function pool and not a transaction/report program.&lt;/P&gt;&lt;P&gt;I think you want to upload data into some table, then use the Tcode for accordingly. BDC cannot be wriiten for Tcodes like SE11, SE12, SE16 etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Amit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Mar 2007 21:42:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-opening-dataset-return-code-8/m-p/2029342#M416322</guid>
      <dc:creator>amit_khare</dc:creator>
      <dc:date>2007-03-05T21:42:27Z</dc:date>
    </item>
    <item>
      <title>Re: Error opening dataset, return code:        8</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-opening-dataset-return-code-8/m-p/2029343#M416323</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;make sure that the file is in application server and the delimeter in the file is same as the delimiter you specified in file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;plz check ur Application server path and dirctory on the application server .&lt;/P&gt;&lt;P&gt; is that dirctory is existed or not.&lt;/P&gt;&lt;P&gt; If that directory on the application server is existed then check that u are auth. to use that directory.&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt; or u can take basis people help for that if u are not auth.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Mar 2007 23:32:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-opening-dataset-return-code-8/m-p/2029343#M416323</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-05T23:32:16Z</dc:date>
    </item>
  </channel>
</rss>

