cancel
Showing results for 
Search instead for 
Did you mean: 

Executing external command and program in background

Former Member
0 Kudos

Hi,

how to execute external command and external program in background.

please provide me some tips on the same.

while creating external command, what is the significance of "operating system command" and "parameters for operating system command".

Thanks,

Dinesh.

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member

Hi Dinesh,

1.We will create external command in T-code SM69.

2.let us take example of creating external command for SAPDBA.(This is for up to 4.7EE version).

3.We will create Ext. commands in SM69 and execute in Sm49.

4.For newer version we can create and execute both in SM69 or SM49.

Goto SM69 --> Change -->create --> Specify ZSAPDBA --> Specify OS command and

save.

Now goto SM49 and select the command ZSAPDBA and execute.

Inorder to run this Command in Backgroung

goto SM36 -->specify jobname and jobclass and then select STEP tab and select External command tab --> specify ZSAPDBA and target server and save.

Now the job in Scheduled status.In order to run this command specify time.

Now select Start condition tab and select your required option like Immediate or Specify Date and time.

Now your job is in Released mode.Once time comes the job will run and send you out put to your specified spooldevice.

Regards,

Suraj

Former Member
0 Kudos

Hi,

You can define external commands using transaction code SM69.

External commands are commands which would be executed at your operating

system with or without parameters.

Operating system commands are those which you execute at OS level like

mkdir, cat, rm, cp, ls

Parameters are options that you add to os commands to get more functionalities.

like, < ls -l > : will give you a long listing of files where " l " is the parameter

< ls -lt > : will give you a long listing with last changed file at top where " lt " is the parameter.

You can mention these in SM69 when you define the external commands.

Now, in order to execute these in your background job. In the steps click on "external command" and give your command name in SM36 while creating your job.

" Points for solution ".

Thanks and Regards,

Sandeep.

Former Member
0 Kudos

How do you implement via abap program ?

I have met the same question.

Can you help me?