Hello Adem.
1 - On your screen 'Webdynpro' by clicking the button to save, you will see below the option 'properties' in the EVENT exists 'OnAction', WITHIN THE SAME YOU CAN CREATE AN ACTION AND PUT YOUR 'LOOP' IN THE SAME AND WHEN clicking button in the application it executes its 'onAction'.
2-LINES OF ALV TO BE DISPLAYED ON SCREEN ARE ASSOCIATED WITH A CONTEXT WITHIN YOUR 'ACTION' USE WIZARD TO MOVE DATA LINES THAT ARE WITHIN A CONTEXT FOR AN INTERNAL TABLE.
Run a loop and pass this internal table to Ztable.