2007 Sep 04 8:55 PM
Hi,
I have a certain transaction ME2M and my requirement is like when i execute it in background, the output should be in a file ( like List->Export->Local File)
Does anyone know how to do this?
2007 Sep 07 5:32 AM
Hi Vamsee,
That is correct. This is because, SAP Control will move in serial order.
If you want to run your piece of code before displaying ALV, then simple cut & paste the code before the ALV Funciton Module call.
Best regards,
Prashant
2007 Sep 04 9:11 PM
Hi,
You can not download a local file in a background session.. However you can download the file in the application server in the Unix directories..
Thanks and Best Regards,
Vikas Bittera.
2007 Sep 04 10:14 PM
Vikas:
How can I save it in the application server in the background?
2007 Sep 04 11:07 PM
2007 Sep 05 12:12 AM
I know open data set.
my question is, if i run the SAP program background, i can get a spool, but i want the output in a file format....
2007 Sep 05 4:24 AM
Hi,
You are correct. The output would be in spool format. What you need to do is, the output internal table which as all the output data should be used to create file on application server.
Leave the spool aside, the output internal table will be holding the data, so loop over it & pass that content using OPEN dataset to application server.
Let me know, if you have any doubts.
Best regards,
Prashant
2007 Sep 05 10:52 PM
Prashant:
In FBL5N transaction, do you have any idea about the output internal table ?
2007 Sep 06 4:19 AM
The output table is it_pos. This is passed to ALV using FM "FI_ITEMS_DISPLAY". inside this FM, ALV is called.
2007 Sep 07 5:12 AM
Thanks Prashant. One more trick over here, when i write my code after the FM, it is not reading my statements for the output file......
its like, when i click on execute button i get the alv output and when i click on back icon, then it reads my abap statements.....any idea?
2007 Sep 07 5:32 AM
Hi Vamsee,
That is correct. This is because, SAP Control will move in serial order.
If you want to run your piece of code before displaying ALV, then simple cut & paste the code before the ALV Funciton Module call.
Best regards,
Prashant
2007 Sep 07 5:51 AM