<?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: Internal Table Error in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-error/m-p/5299430#M1222230</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;dont use type use like if u have to use this structure for ALV.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Mar 2009 06:41:59 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-03-18T06:41:59Z</dc:date>
    <item>
      <title>Internal Table Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-error/m-p/5299425#M1222225</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need the first column of the internal table as a checkbox. Please give me the syntax to do that.&lt;/P&gt;&lt;P&gt;Itried like&lt;/P&gt;&lt;P&gt;types:begin of is_ty,&lt;/P&gt;&lt;P&gt;a type c as checkbox,&lt;/P&gt;&lt;P&gt;matnr type matnr,&lt;/P&gt;&lt;P&gt;end of is_ty.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But its throw an error in the first row...Please give me the correct syntax....i am not writing my internal table in the output.I am just passing it to a Container alv and i am not using any table controls...So please tell me how can we make a Checkbox in Container ALV......plz help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Mar 2009 04:52:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-error/m-p/5299425#M1222225</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-18T04:52:45Z</dc:date>
    </item>
    <item>
      <title>Re: Internal Table Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-error/m-p/5299426#M1222226</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;Refer to the demo program BCALV_EDIT_05 .. you can find the code init.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Mar 2009 04:57:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-error/m-p/5299426#M1222226</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-18T04:57:35Z</dc:date>
    </item>
    <item>
      <title>Re: Internal Table Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-error/m-p/5299427#M1222227</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;declare your structure as,&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;types:begin of is_ty,
a type c, "Check box field
matnr type matnr,
end of is_ty.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for the check box logic, when you build the field catalog write like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  wa_fieldcat-col_pos = 1.&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;wa_fieldcat-fieldname = 'A'. "Check box field name
  wa_fieldcat-seltext_m = 'Select'.
  wa_fieldcat-checkbox = 'X'. "It's a checkbox!
  wa_fieldcat-edit = 'X'.
  APPEND wa_fieldcat TO it_fieldcat.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Manoj Kumar P&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Mar 2009 04:59:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-error/m-p/5299427#M1222227</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-18T04:59:10Z</dc:date>
    </item>
    <item>
      <title>Re: Internal Table Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-error/m-p/5299428#M1222228</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;BEGIN OF T_final ,&lt;/P&gt;&lt;P&gt;      chk(1)    TYPE c, " for checkbox&lt;/P&gt;&lt;P&gt;      ebeln     LIKE ekko-ebeln,&lt;/P&gt;&lt;P&gt;      ebelp     LIKE ekpo-ebelp,&lt;/P&gt;&lt;P&gt;      bstyp     LIKE ekko-bstyp,&lt;/P&gt;&lt;P&gt;      bsart     LIKE ekko-bsart,&lt;/P&gt;&lt;P&gt;      lifnr     LIKE ekko-lifnr,&lt;/P&gt;&lt;P&gt;      ekorg     LIKE ekko-ekorg,&lt;/P&gt;&lt;P&gt;      ekgrp     LIKE ekko-ekgrp,&lt;/P&gt;&lt;P&gt;      matnr     LIKE ekpo-matnr,&lt;/P&gt;&lt;P&gt;      werks     LIKE ekpo-werks,&lt;/P&gt;&lt;P&gt;      lgort     LIKE ekpo-lgort,&lt;/P&gt;&lt;P&gt;      menge     LIKE ekpo-menge,&lt;/P&gt;&lt;P&gt;      meins     LIKE ekpo-meins,&lt;/P&gt;&lt;P&gt;      eindt     LIKE eket-eindt,&lt;/P&gt;&lt;P&gt;      END  OF  T_final.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IT_final TYPE STANDARD TABLE OF T_final,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at the time of building field catalog&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WA_fieldcat-fieldname = 'CHK'.&lt;/P&gt;&lt;P&gt;  WA_fieldcat-seltext_m = 'CheckBox'.&lt;/P&gt;&lt;P&gt;  WA_fieldcat-checkbox = 'X'. "This declaration create the checkbox&lt;/P&gt;&lt;P&gt;  WA_fieldcat-edit = 'X' .&lt;/P&gt;&lt;P&gt;  WA_fieldcat-input = 'X'.&lt;/P&gt;&lt;P&gt;  WA_fieldcat-tabname = 'IT_FINAL'.&lt;/P&gt;&lt;P&gt;  WA_fieldcat-col_pos = 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  APPEND WA_fieldcat TO IT_fieldcat.&lt;/P&gt;&lt;P&gt;  CLEAR WA_fieldcat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sarbajit&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Sarbajit Majumdar on Mar 18, 2009 11:23 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Mar 2009 05:03:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-error/m-p/5299428#M1222228</guid>
      <dc:creator>sarbajitm</dc:creator>
      <dc:date>2009-03-18T05:03:47Z</dc:date>
    </item>
    <item>
      <title>Re: Internal Table Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-error/m-p/5299429#M1222229</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;There is no need to declare the first field as checkbox in your internal table, inseat declare your internal table as:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
types : begin of t_final,
          chk(1) type c, " &amp;lt;-- check box field
          "other fields,
        end of t_final.

data : it_final TYPE TABLE OF t_final,
       wa_final TYPE t_final.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now to include check box in alv, build the field catalog as:-&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  wa_fieldcat-fieldname = 'CHK'. "&amp;lt;--check box field in internal table
  wa_field-tabname = 'IT_FINAL'. "&amp;lt;--internal table
  wa_fieldcat-seltext_m = ' '.
  wa_fieldcat-checkbox = 'X'. "&amp;lt;--display as checbox
  wa_fieldcat-edit = 'X'.
  APPEND wa_fieldcat TO it_fieldcat.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When checkbox is selected the field chk in internal table is &lt;STRONG&gt;X&lt;/STRONG&gt; else it is blank.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Tarun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Mar 2009 05:59:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-error/m-p/5299429#M1222229</guid>
      <dc:creator>I355602</dc:creator>
      <dc:date>2009-03-18T05:59:29Z</dc:date>
    </item>
    <item>
      <title>Re: Internal Table Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-error/m-p/5299430#M1222230</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;dont use type use like if u have to use this structure for ALV.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Mar 2009 06:41:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-error/m-p/5299430#M1222230</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-18T06:41:59Z</dc:date>
    </item>
    <item>
      <title>Re: Internal Table Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-error/m-p/5299431#M1222231</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;instead of taking a variable in intrenla table as checkbox just declare as C type only &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;types:begin of is_ty,
a type c ," as checkbox,
matnr type matnr,
end of is_ty.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then at the time of setting the field catalog set the value of Checkbox foe 'a' as X. this will set the 'a' as a checkbox.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pooja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Mar 2009 06:53:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-error/m-p/5299431#M1222231</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-18T06:53:46Z</dc:date>
    </item>
    <item>
      <title>Re: Internal Table Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-error/m-p/5299432#M1222232</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Biju,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    As also said by other's create your internal table with first field as type c length 1 and just pass the value as 'X' in your fieldcat-checkbox. cause a type c as checkbox will help when you are using classical report there youe can use write a as checkbox.,&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;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With luck,&lt;/P&gt;&lt;P&gt;Pritam.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Mar 2009 07:03:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-error/m-p/5299432#M1222232</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-18T07:03:03Z</dc:date>
    </item>
    <item>
      <title>Re: Internal Table Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-error/m-p/5299433#M1222233</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thnks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Nov 2009 07:33:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-error/m-p/5299433#M1222233</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-26T07:33:03Z</dc:date>
    </item>
  </channel>
</rss>

