hi,
i want to use an internal for USR02.
In type definition, i wrote :
types: begin of s_usr02,
bname type usr02-bname,
end of s_usr02.
In OnInitialisation, i wrote :
data : tb_usr02 type table of s_usr02.
All is ok but in the layout, i cannot access it. It says :
"tb_usr02 is neither specified under tables nor defined as an internal table"
What can i do ?
Thanks
Hi Cédric,
The answer is in the question. :-o
You declared tb_usr02 under OnInitialization, so You declared tb_usr02 locally for OnInitialization event
only
.If you want to see your internal table from each event (and you don't want to create a structure and a table type under DDIC), you need to declare a table type under types:
TYPES: ty_t_usr02 type standard table of s_usr02 with default key .
and declare tb_usr02 under page attributes:
tb_usr02 type ty_t_usr02
Enjoy yourself.
Dany 😊
Add a comment