Hi,
You may set the required layout in the "scope of list" in the selection screen of ME5A and execute in foreground as well as background.
The scope of list can be customized and create your own in customizing in the path: OLME - Reporting - Maintain purchase requisition list - Define scope of list.
If you are using ALV, then you may create your own layout and save the layout as default. The same will be applied as output in background as well as foreground.
Regards,
AKPT