<?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 get_attribute method in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-attribute-method/m-p/1634891#M283140</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I´ve created an instance of a local class and have set a special attribute.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I want to use the value of is attribute for a different class using &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lr_layout-&amp;gt;set_save_restriction( &lt;/P&gt;&lt;P&gt;       gr_default_values-&amp;gt;get_restriction( ) ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but this doesn´t work. any suggestions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I´ve found out that the following code works,&lt;/P&gt;&lt;P&gt;but in this case i have to declare alwas local variables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA: ls_val TYPE salv_de_layout_restriction.&lt;/P&gt;&lt;P&gt;  ls_val = gr_default_values-&amp;gt;get_restriction( ).&lt;/P&gt;&lt;P&gt;  CALL METHOD lr_layout-&amp;gt;set_save_restriction&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      value = ls_val.&lt;/P&gt;&lt;P&gt;As i want to predifine a lot of attributes it would be mor easy to use the first code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 Oct 2006 09:16:10 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-10-11T09:16:10Z</dc:date>
    <item>
      <title>get_attribute method</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-attribute-method/m-p/1634891#M283140</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I´ve created an instance of a local class and have set a special attribute.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I want to use the value of is attribute for a different class using &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lr_layout-&amp;gt;set_save_restriction( &lt;/P&gt;&lt;P&gt;       gr_default_values-&amp;gt;get_restriction( ) ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but this doesn´t work. any suggestions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I´ve found out that the following code works,&lt;/P&gt;&lt;P&gt;but in this case i have to declare alwas local variables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA: ls_val TYPE salv_de_layout_restriction.&lt;/P&gt;&lt;P&gt;  ls_val = gr_default_values-&amp;gt;get_restriction( ).&lt;/P&gt;&lt;P&gt;  CALL METHOD lr_layout-&amp;gt;set_save_restriction&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      value = ls_val.&lt;/P&gt;&lt;P&gt;As i want to predifine a lot of attributes it would be mor easy to use the first code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Oct 2006 09:16:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-attribute-method/m-p/1634891#M283140</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-11T09:16:10Z</dc:date>
    </item>
    <item>
      <title>Re: get_attribute method</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-attribute-method/m-p/1634892#M283141</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;is there any idea ??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Oct 2006 19:16:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-attribute-method/m-p/1634892#M283141</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-12T19:16:59Z</dc:date>
    </item>
    <item>
      <title>Re: get_attribute method</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-attribute-method/m-p/1634893#M283142</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Bernhard, you are thinking like a java developer, this is good.  &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;  Unfornately, this syntax is not yet supported by ABAP.  So for now, you will need to do as you have done with the variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Oct 2006 19:28:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-attribute-method/m-p/1634893#M283142</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-10-12T19:28:25Z</dc:date>
    </item>
  </channel>
</rss>

