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

Creating a Step for Background Job from within ABAP Program

Former Member
0 Likes
412

Step-1: I have a Report in ECC, which is scheduled as Background Job, which writes the file to the Application Server(UNIX)

Step-2: Trigger a Unix Command to ftp the file to other server.

Both Step-1 & Step-2 can be done from SM36.

Another Scenario:

Users can run the report in background from SE38 or using the transaction code for the report, In this case we want to call the external command.

Instead of calling the External Command as below in the report, I want to create a Step from within the program when it is scheduled in background mode.

CALL 'SYSTEM' ID 'COMMAND' FIELD lc_unixcom. [ Here lc_unixcom has the External Command ].

Any ideas??? Appreciate help.

Step-1: I have a Report in ECC, which is scheduled as Background Job, which writes the file to the Application Server(UNIX)

Step-2: Trigger a Unix Command to ftp the file to other server.

Both Step-1 & Step-2 can be done from SM36.

Another Scenario:

Users can run the report in background from SE38 or using the transaction code for the report, In this case we want to call the external command.

Instead of calling the External Command as below in the report, I want to create a Step from within the program when it is scheduled in background mode.

CALL 'SYSTEM' ID 'COMMAND' FIELD lc_unixcom. [ Here lc_unixcom has the External Command ].

Any ideas??? Appreciate help.

1 REPLY 1
Read only

Sandra_Rossi
Active Contributor
0 Likes
343

Hi,

For submitting a report step, you may use either SUBMIT ... VIA JOB ... or JOB_SUBMIT function module.

For external commands, this should be done only by calling JOB_SUBMIT function module.

Sandra