2006 Oct 11 10:16 AM
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
2006 Oct 12 8:28 PM
Bernhard, you are thinking like a java developer, this is good. Unfornately, this syntax is not yet supported by ABAP. So for now, you will need to do as you have done with the variable.
Regards,
Rich Heilman
2006 Oct 12 8:16 PM
2006 Oct 12 8:28 PM
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |