Hello Experts,
I have got one requirement to automatically save the Spool request generated in sp01 as a local file.
Actually i have generated one report, a few days back. In that report, if the user clicks on the button ( Execute in Background) in the Menu bar, my program needs to be navigated to the transaction SP01 and the recently generated spool request should be saved as a local file automatically....I need to use BDC on the transaction SP01.
But i don't know where to write the necessary code. Because i have debugged the program by clicking 'Execute in Background'. After 'AT SELECTION SCREEN' event, the control is transferred to Background processing and finally it is giving a message that 'Background job was scheduled for the program' and returning to the selection screen.
After the job was scheduled, i need to write the BDC code for saving the spool request as a local file. Please suggest me the the place where i have to write the code.
Any helpful answer will surely be rewarded.
Thanks in advance.
Pavan.