<?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: Abap Objects . in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-objects/m-p/766700#M37656</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Herzel,&lt;/P&gt;&lt;P&gt;what John tried to explain the table defintion should be fixed not the line definition. Can you please try the following?&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Klaus&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
report  kzi_test_01.

data:
  gt_Color type lvc_T_Scol,
  gs_Color like line of gt_Color.


insert gs_Color into table gt_Color.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 23 Nov 2004 17:26:32 GMT</pubDate>
    <dc:creator>former_member183804</dc:creator>
    <dc:date>2004-11-23T17:26:32Z</dc:date>
    <item>
      <title>Abap Objects .</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-objects/m-p/766695#M37651</link>
      <description>&lt;P&gt;i'm building a new class and i got an srious problem . &lt;/P&gt;
  &lt;P&gt;here's the code : &lt;/P&gt;
  &lt;P&gt;CLASS lcl_alv_control DEFINITION .&lt;/P&gt;
  &lt;P&gt; PUBLIC SECTION.&lt;/P&gt;
  &lt;P&gt;*Structure to transfer to the Alv Grid&lt;/P&gt;
  &lt;P&gt; TYPES : BEGIN OF scrdisp ,&lt;/P&gt;
  &lt;P&gt; ts_icons(30) TYPE c,&lt;/P&gt;
  &lt;P&gt; dp_icons(30) TYPE c,&lt;/P&gt;
  &lt;P&gt; symbols(30) TYPE c,&lt;/P&gt;
  &lt;P&gt; info(4) TYPE c,&lt;/P&gt;
  &lt;P&gt; colinfo TYPE lvc_t_scol ,&lt;/P&gt;
  &lt;P&gt; cellstyles TYPE lvc_t_styl ,&lt;/P&gt;
  &lt;UL&gt; 
   &lt;LI&gt; &lt;P&gt; checkbox,&lt;/P&gt;&lt;/LI&gt;
   &lt;LI&gt; &lt;P&gt; lights,&lt;/P&gt;&lt;/LI&gt;
  &lt;/UL&gt;
  &lt;P&gt; links TYPE i ,&lt;/P&gt;
  &lt;P&gt; END OF scrdisp.&lt;/P&gt;
  &lt;P&gt; DATA:&lt;/P&gt;
  &lt;P&gt; gtab_scrdisp TYPE TABLE OF scrdisp INITIAL SIZE 0 ,&lt;/P&gt;
  &lt;P&gt; gstr_scrdisp LIKE LINE OF gtab_scrdisp,&lt;/P&gt;
  &lt;P&gt;*Field Catalog for the ALV Grid&lt;/P&gt;
  &lt;P&gt;gt_fieldcat_lvc TYPE TABLE OF lvc_t_fcat INITIAL SIZE 0 ,&lt;/P&gt;
  &lt;P&gt;gs_fieldcat_lvc LIKE LINE OF gt_fieldcat_lvc ,&lt;/P&gt;
  &lt;P&gt;*Color Table for handle all the cells colors .&lt;/P&gt;
  &lt;P&gt; gt_color TYPE TABLE OF lvc_t_scol INITIAL SIZE 0 ,&lt;/P&gt;
  &lt;P&gt; gs_color LIKE LINE OF gt_color .&lt;/P&gt;
  &lt;P&gt;*Another Global Data&lt;/P&gt;
  &lt;P&gt; METHODS:&lt;/P&gt;
  &lt;P&gt; set_ctl_name ,&lt;/P&gt;
  &lt;P&gt; build_layout ,&lt;/P&gt;
  &lt;P&gt; build_fieldcat ,&lt;/P&gt;
  &lt;P&gt; set_hendlers ,&lt;/P&gt;
  &lt;P&gt; exclude_toolbar_buttons ,&lt;/P&gt;
  &lt;P&gt; display ,&lt;/P&gt;
  &lt;P&gt; build_data ,&lt;/P&gt;
  &lt;P&gt; on_double_click ,&lt;/P&gt;
  &lt;P&gt; handle_user_command ,&lt;/P&gt;
  &lt;P&gt; handle_toolbar_set .&lt;/P&gt;
  &lt;P&gt;ENDCLASS.&lt;/P&gt;
  &lt;P&gt;CLASS lcl_alv_control implementation. &lt;/P&gt;
  &lt;P&gt; method build_layout. &lt;/P&gt;
  &lt;P&gt; gs_color-fname = 'whatever'. &amp;lt;--- the problematic line&lt;/P&gt;
  &lt;P&gt; endmethod. &lt;/P&gt;
  &lt;P&gt;endclass.&lt;/P&gt;
  &lt;P&gt;in the implementation section when i use the gs_color structure i got error that tells me : "GS_COLOR" is a table without a header line and therefore has no component called "FNAME".&lt;/P&gt;
  &lt;P&gt;could someone can help with this ??&lt;/P&gt;</description>
      <pubDate>Tue, 23 Nov 2004 15:32:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-objects/m-p/766695#M37651</guid>
      <dc:creator>herzelhaimharel_gilor</dc:creator>
      <dc:date>2004-11-23T15:32:47Z</dc:date>
    </item>
    <item>
      <title>Re: Abap Objects .</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-objects/m-p/766696#M37652</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Herzel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have defined gt_color as a table of lvc_t_scol. However, type lvc_t_scol is already a table. As a consequence the definition of gs_color is also a table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suggested correction:&lt;/P&gt;&lt;P&gt;gt_color TYPE lvc_t_scol,&lt;/P&gt;&lt;P&gt;gs_color TYPE lvc_s_scol.&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;&lt;/P&gt;&lt;P&gt;John.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Nov 2004 15:42:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-objects/m-p/766696#M37652</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2004-11-23T15:42:48Z</dc:date>
    </item>
    <item>
      <title>Re: Abap Objects .</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-objects/m-p/766697#M37653</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;gt_color is table type of lvc_t_scol &lt;/P&gt;&lt;P&gt;and gs_color is like line of gt_color &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so why should be a problem with it ???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Herzel Elmalme&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Nov 2004 16:24:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-objects/m-p/766697#M37653</guid>
      <dc:creator>herzelhaimharel_gilor</dc:creator>
      <dc:date>2004-11-23T16:24:37Z</dc:date>
    </item>
    <item>
      <title>Re: Abap Objects .</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-objects/m-p/766698#M37654</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Again: lvc_t_scol is already a table; the way you define gt_color will create a table of a table. And thus gs_color (LIKE LINE OF) will be table also, and in OO you can not address a field in a table, you should use a falt structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Nov 2004 16:39:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-objects/m-p/766698#M37654</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2004-11-23T16:39:06Z</dc:date>
    </item>
    <item>
      <title>Re: Abap Objects .</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-objects/m-p/766699#M37655</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ok . &lt;/P&gt;&lt;P&gt;but if i declare gs_color type lvc_s_scol &lt;/P&gt;&lt;P&gt;after wards i need to append &lt;/P&gt;&lt;P&gt;and then i write : &lt;/P&gt;&lt;P&gt;append gs_color to gt_color. &lt;/P&gt;&lt;P&gt;  and again i got an error .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Nov 2004 17:16:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-objects/m-p/766699#M37655</guid>
      <dc:creator>herzelhaimharel_gilor</dc:creator>
      <dc:date>2004-11-23T17:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Abap Objects .</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-objects/m-p/766700#M37656</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Herzel,&lt;/P&gt;&lt;P&gt;what John tried to explain the table defintion should be fixed not the line definition. Can you please try the following?&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Klaus&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
report  kzi_test_01.

data:
  gt_Color type lvc_T_Scol,
  gs_Color like line of gt_Color.


insert gs_Color into table gt_Color.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Nov 2004 17:26:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-objects/m-p/766700#M37656</guid>
      <dc:creator>former_member183804</dc:creator>
      <dc:date>2004-11-23T17:26:32Z</dc:date>
    </item>
    <item>
      <title>Re: Abap Objects .</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-objects/m-p/766701#M37657</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would be nice to get any feedback if the remark was of any help....&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;&lt;/P&gt;&lt;P&gt;John.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Nov 2004 14:05:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-objects/m-p/766701#M37657</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2004-11-30T14:05:46Z</dc:date>
    </item>
  </channel>
</rss>

