Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Alternative to Gui_run function module

Former Member
0 Likes
1,796

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?

1 ACCEPTED SOLUTION
Read only

marcin_cholewczuk
Active Contributor
0 Likes
1,265

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

6 REPLIES 6
Read only

Former Member
0 Likes
1,265

Hi.

Do you have to execute that EXE in a specific station?

Read only

Former Member
0 Likes
1,265

Hi.

Do you have to execute that EXE in a specific station?

Read only

Former Member
0 Likes
1,265

Hi.

Do you have to execute that EXE in a specific station?

Read only

marcin_cholewczuk
Active Contributor
0 Likes
1,266

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

Read only

Former Member
0 Likes
1,265

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).

Read only

0 Likes
1,265

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