Submit and Return would help you get the control back to the main program ,
You could pass parameters directly or via selection table or using variants .
Please find a brief examples in the below link
ABAP SUBMIT - Pass parameters to Program | ABAP Help Blog
If the output you are expecting is simple write statement then the return syntax should work.