<?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: Problem on TY_SAPLANES in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-on-ty-saplanes/m-p/3572214#M859872</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;This occurs because the type &lt;STRONG&gt;ty_planetypes&lt;/STRONG&gt; that you defined have only one field from the saplane structure and in the &lt;STRONG&gt;select&lt;/STRONG&gt; you´re are retrieving all the fields from the structure. Try to change the select command like follows:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT planetype FROM saplane INTO TABLE list_of_planetypes.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; or change the type to have the same structure from the DDIC. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use the select command as follow, too:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; SELECT * FROM saplane INTO CORRESPONDING FIELDS OF TABLE list_of_planetypes.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But for performance reasons the first select it's recommended.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 24 Mar 2008 20:45:44 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-03-24T20:45:44Z</dc:date>
    <item>
      <title>Problem on TY_SAPLANES</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-on-ty-saplanes/m-p/3572213#M859871</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have code the  folowing example and i Keep recieving the error MSG The work area "list_of_planetypes" is not long enough, any suggestions???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THanks ins Advance!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erick&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLASS lcl_airplane DEFINITION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  PUBLIC SECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    METHODS: constructor IMPORTING&lt;/P&gt;&lt;P&gt;                                    im_name TYPE string&lt;/P&gt;&lt;P&gt;                                    im_planetype TYPE saplane-planetype,&lt;/P&gt;&lt;P&gt;             display_attributes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CLASS-METHODS: display_no_airplanes,&lt;/P&gt;&lt;P&gt;                   class_constructor.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  PRIVATE SECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    DATA:   name TYPE string,&lt;/P&gt;&lt;P&gt;            planetype TYPE saplane-planetype.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    TYPES:BEGIN OF ty_planetypes,&lt;/P&gt;&lt;P&gt;            planetype TYPE saplane-planetype,&lt;/P&gt;&lt;P&gt;          END OF ty_planetypes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CLASS-DATA no_airplanes TYPE i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CLASS-DATA: wa_list_of_planetypes TYPE ty_planetypes,&lt;/P&gt;&lt;P&gt;                list_of_planetypes TYPE STANDARD TABLE OF ty_planetypes.&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;ENDCLASS.                    "lcl_airplane&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLASS lcl_airplane IMPLEMENTATION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  METHOD constructor.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    name         = im_name.&lt;/P&gt;&lt;P&gt;    planetype    = im_planetype.&lt;/P&gt;&lt;P&gt;    no_airplanes = no_airplanes + 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDMETHOD.                    "constructor&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  METHOD display_attributes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    WRITE: / icon_ws_plane AS ICON,&lt;/P&gt;&lt;P&gt;           / 'Name of airplane:'(001), AT 30 name,&lt;/P&gt;&lt;P&gt;           / 'Airplane type'(002), AT 30 planetype.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDMETHOD.                    "display_attributes&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  METHOD display_no_airplanes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    WRITE: /, /'Total of number planes'(ca1), AT 30 no_airplanes LEFT-JUSTIFIED.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDMETHOD.                    "display_no_airplanes&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  METHOD class_constructor.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    SELECT * FROM saplane INTO TABLE list_of_planetypes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDMETHOD.                    "class_constructor&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDCLASS.                    "lcl_airplane IMPLEMENTATION&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Mar 2008 20:02:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-on-ty-saplanes/m-p/3572213#M859871</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-24T20:02:25Z</dc:date>
    </item>
    <item>
      <title>Re: Problem on TY_SAPLANES</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-on-ty-saplanes/m-p/3572214#M859872</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;This occurs because the type &lt;STRONG&gt;ty_planetypes&lt;/STRONG&gt; that you defined have only one field from the saplane structure and in the &lt;STRONG&gt;select&lt;/STRONG&gt; you´re are retrieving all the fields from the structure. Try to change the select command like follows:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT planetype FROM saplane INTO TABLE list_of_planetypes.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; or change the type to have the same structure from the DDIC. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use the select command as follow, too:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; SELECT * FROM saplane INTO CORRESPONDING FIELDS OF TABLE list_of_planetypes.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But for performance reasons the first select it's recommended.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Mar 2008 20:45:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-on-ty-saplanes/m-p/3572214#M859872</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-24T20:45:44Z</dc:date>
    </item>
  </channel>
</rss>

