Skip to Content
0
Former Member
Oct 11, 2006 at 09:16 AM

get_attribute method

23 Views

Hello,

I´ve created an instance of a local class and have set a special attribute.

Now I want to use the value of is attribute for a different class using

lr_layout->set_save_restriction(

gr_default_values->get_restriction( ) ).

but this doesn´t work. any suggestions?

I´ve found out that the following code works,

but in this case i have to declare alwas local variables.

DATA: ls_val TYPE salv_de_layout_restriction.

ls_val = gr_default_values->get_restriction( ).

CALL METHOD lr_layout->set_save_restriction

EXPORTING

value = ls_val.

As i want to predifine a lot of attributes it would be mor easy to use the first code