Hi,
I have a following issue 😔 - I am not sure whether this is possible - so I need your feedback/expertise.
I have a custom table (example ZABC) with several fields in it - one of them being TABNAME . Content of that table ZABC is
MANDT TABNAME ZCHECK
800 KNA1 X
800 KNVV X
800 KNVP
etc.
There is no rule how many entries will be in this ZABC table - I guess it will be less than 20 - but this is not business rule.
MANDT and ZCHECK fields are not important at this stage.
The challenge I have is to fetch all data from all those physical tables (KNA1, KNVV, KNVP) in their matching internal tables.
I need to keep those "internal" table with content throughout the entire program for certain validation.
I know that I should dynamically define those internal tables but I have issues not knowing how many tables will be defined in ZABC table and I personally do not want to declare "<fs_itab> TYPE ANY TABLE" 20 or so times as fs_itab1 - fs_itab20.
Is there any way I can dynamically create as many internal tables as needed and keep their content throughout program run-time.
Regards
Goran