cancel
Showing results for 
Search instead for 
Did you mean: 

Running the external programs from SM69 t-code and RSBDCOS0 report

Former Member
0 Kudos

Hi All,

I am trying to execute the external commands from SM69 and RSBDCOS0. It's throwing the below error:

26.10.2009 17:26:49 Job started 00 516

26.10.2009 17:26:50 Step 001 started BT 611

26.10.2009 17:26:50 External command: ZARCHIVELOG_COPY BT 630

26.10.2009 17:26:50 Related parameter: BT 613

26.10.2009 17:26:50 Ext. prog.: > Function: BtcXpgPanicCan't exec external program (No such file or directory) BT 606

26.10.2009 17:26:50 Ext. prog.: External program terminated with exit code 1 BT 606

26.10.2009 17:26:50 Ext. prog.: SAPXPG started on <hostname>_<SID>_00, Process ID 1632, Process Number 12 BT 606

26.10.2009 17:26:50 External program was cancelled BT 614

26.10.2009 17:26:50 Job cancelled 00 518

<SID>adm has full authorization on sapxpg.

Please let me know what might be the wrong.

Regards,

Sridhar

Accepted Solutions (0)

Answers (2)

Answers (2)

nelis
Active Contributor
0 Kudos

Also make sure the 'Target Server' you specified in the job for running the external command does in fact contain the external command. I've seen people leaving this blank and then it runs on a particular application server where the external command does not exist. Otherwise just make sure the external command is accessible from all application servers running background jobs.

--

Nelis

Former Member
0 Kudos

try to add

#!/usr/bin/csh

in the begining of script file.

markus_doehr2
Active Contributor
0 Kudos

> 26.10.2009 17:26:50 Ext. prog.: > Function: BtcXpgPanicCan't exec external program (No such file or directory) BT 606

sapxpg does not find the program. Did you give the full path to the programm to be called?

Markus

Former Member
0 Kudos

Hi Markus,

I am giving the full path to external program, for ex: mv i given as /usr/bin/mv.

If i want to move some file from one location to another location, i am giving the command as

/usr/bin/mv /part1/file1 /part2/backup/

Regards,

Sridhar

markus_doehr2
Active Contributor
0 Kudos

> I am giving the full path to external program, for ex: mv i given as /usr/bin/mv.

Ok.

What do you see in the syslog (SM21) and/or in the workprocess traces? dev_sapxpg?

Markus

Former Member
0 Kudos

Dear Markus,

The dev_xpg file contains the below information

Trace file of external program (trace level 3)

< Function: BtcTrcInit> Function: BtcXpgStart External program: mv

Process id: 29450

Parent process id: 29449

Rearrange StdErr to be collected in memory

Rearrange StdOut to be collected in memory

In t-code sm21 dont have any thing.

Regards,

sridhar