‎2012 Feb 28 12:32 PM
Hi,
Current Scenario:
1st step: running a report in foreground and reading a file from application server.
2nd Step: Using GUI_Run to call an (EXE File) external program; and saving the new generated file with a new name.
Returning back to SAP ABAP code and sending the new generated file through email.
The whole processing in foreground.
Required scenario:
The report runs in background reads file. (Possible)
But how will an external program will be called and excuted in background?
This scenario had been discussed in the past but no satisfactory answer available.
Any Ideas?
‎2012 Feb 28 2:00 PM
Hi,
As it is mentioned in description this FM is obsolete. Use class CL_GUI_FRONTEND_SERVICES instead.
It makes no sense to execute any GUI function in background process since there is no coneection to client computer. How ever you can execute program on application server instead. Maybe this is enough in your case.
BR
Marcin Cholewczuk
‎2012 Feb 28 1:21 PM
‎2012 Feb 28 1:21 PM
‎2012 Feb 28 1:21 PM
‎2012 Feb 28 2:00 PM
Hi,
As it is mentioned in description this FM is obsolete. Use class CL_GUI_FRONTEND_SERVICES instead.
It makes no sense to execute any GUI function in background process since there is no coneection to client computer. How ever you can execute program on application server instead. Maybe this is enough in your case.
BR
Marcin Cholewczuk
‎2012 Feb 28 2:58 PM
Ok i agree. But how do i or which command should be used in abap program to execute that .exe file in background (in sap) which converts the file and saves it in application server (serving my purpose).
‎2012 Feb 28 3:32 PM
First look at [External Commands and External Programs|http://help.sap.com/saphelp_nw70/helpdata/EN/c4/3a7f2c505211d189550000e829fbbd/frameset.htm]
- Create/display external command - SM49
- Execute external command in Abap program - FM [SXPG_COMMAND_EXECUTE|http://help.sap.com/saphelp_wp/helpdata/en/fa/0971fb543b11d1898e0000e8322d00/frameset.htm] or [SXPG_CALL_SYSTEM|http://help.sap.com/saphelp_45b/helpdata/en/fa/0971ee543b11d1898e0000e8322d00/frameset.htm]
Regards,
Raymond