<?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: bdc problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-problem/m-p/2520577#M570464</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try to use like this the internal table declaration&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT ZSAMPLEBDC .

tables :kna1.

types : begin of ty_itab,
          kunnr like kna1-kunnr,
          name1 like kna1-name1,
          land1 like kna1-land1,
        end of ty_itab.

data : itab type table of ty_itab, " Internal table
       ltab type ty_itab. " Work Area

CALL METHOD cl_gui_frontend_services=&amp;gt;gui_upload
  EXPORTING
    FILENAME = 'c:praveen.txt'
    FILETYPE = 'asc'
  CHANGING
    data_tab = itab.

loop at itab.
  write :/tab.
endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since that you are using classes, you can not use Header Line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Gopi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Jul 2007 02:24:00 GMT</pubDate>
    <dc:creator>gopi_narendra</dc:creator>
    <dc:date>2007-07-18T02:24:00Z</dc:date>
    <item>
      <title>bdc problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-problem/m-p/2520575#M570462</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi this is my first bdc prog,, i am unable to sort out what the problem,, error message is itab is not compatible with formal parameter "data_itab",,pls help me out points will be rewarded...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT  ZSAMPLEBDC                              .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables :kna1.&lt;/P&gt;&lt;P&gt;data : begin of itab occurs 0,&lt;/P&gt;&lt;P&gt;kunnr like kna1-kunnr,&lt;/P&gt;&lt;P&gt;name1 like kna1-name1,&lt;/P&gt;&lt;P&gt;land1 like kna1-land1,&lt;/P&gt;&lt;P&gt;end of itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL METHOD cl_gui_frontend_services=&amp;gt;gui_upload&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;   FILENAME                = 'c:\praveen.txt'&lt;/P&gt;&lt;P&gt;    FILETYPE                = 'asc'&lt;/P&gt;&lt;P&gt;  CHANGING&lt;/P&gt;&lt;P&gt;    data_tab  = itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        &lt;/P&gt;&lt;P&gt;        loop at itab.&lt;/P&gt;&lt;P&gt;        &lt;/P&gt;&lt;P&gt;        write :/tab.&lt;/P&gt;&lt;P&gt;        endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2007 02:18:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-problem/m-p/2520575#M570462</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-18T02:18:13Z</dc:date>
    </item>
    <item>
      <title>Re: bdc problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-problem/m-p/2520576#M570463</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Praveen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to change internal table declaration,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;see the below link:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="298511"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Seshu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2007 02:22:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-problem/m-p/2520576#M570463</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-18T02:22:28Z</dc:date>
    </item>
    <item>
      <title>Re: bdc problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-problem/m-p/2520577#M570464</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try to use like this the internal table declaration&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT ZSAMPLEBDC .

tables :kna1.

types : begin of ty_itab,
          kunnr like kna1-kunnr,
          name1 like kna1-name1,
          land1 like kna1-land1,
        end of ty_itab.

data : itab type table of ty_itab, " Internal table
       ltab type ty_itab. " Work Area

CALL METHOD cl_gui_frontend_services=&amp;gt;gui_upload
  EXPORTING
    FILENAME = 'c:praveen.txt'
    FILETYPE = 'asc'
  CHANGING
    data_tab = itab.

loop at itab.
  write :/tab.
endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since that you are using classes, you can not use Header Line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Gopi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2007 02:24:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-problem/m-p/2520577#M570464</guid>
      <dc:creator>gopi_narendra</dc:creator>
      <dc:date>2007-07-18T02:24:00Z</dc:date>
    </item>
    <item>
      <title>Re: bdc problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-problem/m-p/2520578#M570465</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;in ur gui download function module pass internal table body not work area.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for ex: if internal table is with out header line u have to pass body of taht internal table and if internal table is with header line then give internal table name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL METHOD cl_gui_frontend_services=&amp;gt;gui_upload&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;FILENAME = 'c:\praveen.txt'&lt;/P&gt;&lt;P&gt;FILETYPE = 'asc'&lt;/P&gt;&lt;P&gt;CHANGING&lt;/P&gt;&lt;P&gt;data_tab = itab[]. ///////// when internal table is with out header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and data_tab = itab //// when internal table is with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if helpful reward some points.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with regards,&lt;/P&gt;&lt;P&gt;Suresh.A&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2007 04:18:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-problem/m-p/2520578#M570465</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-18T04:18:54Z</dc:date>
    </item>
  </channel>
</rss>

