I've tried also this solution to loop in lt_fieldcat but the program show me this error:
"LS_FIELDCAT" cannot be converted to the line type of "LT_FIELDCAT".
I've defined ls_output like:
DATA ls_output like slis_t_fieldcat_alv.
Thanks Kiran.
Regards,
Andrea