SAP Message 0K534 - Program errors

Diagnosis
A common cause is that the output table passed to the ALV is notdefined globally but locally. Thus, the reference to the table is lost.The ALV no longer has an output table.

Procedure
Define the output table globally.