This website is not affiliated with, sponsored by, or approved by SAP AG.

External Operating System Commands

Development (ABAP Development WorkBench, ABAP/4 programming)

Moderators: Snowy, thx4allthefish, YuriT, Gothmog

External Operating System Commands

Postby Outlaw » Mon Oct 21, 2002 3:49 am

I have set up a command in SM69 that calls a shell script.
When I test run my ABAP to call this external command using SXPG_COMMAND_EXECUTE I get a "NO PERMISSION" exception.

The permissions on the shell script have execute for all users.

My question is : Does the external operating system command get executed by R3 Admin even though I am logged onto R/3 myself ?

Thanks
Outlaw
Outlaw
 
Posts: 35
Joined: Mon Oct 21, 2002 3:46 am

Postby Wolfgang G Propfe » Mon Oct 21, 2002 7:41 am

Dear Outlaw:
I think, the whole shell is executed under <sysid>adm, the R/3 admin user ID. If you write files under UNIX, you see that ID as the owner. To prove this, you could use a 'call system' command from ABAP and issue a 'whoami'.

Regards,
Wolfgang
Wolfgang G Propfe
 
Posts: 469
Joined: Sun Oct 20, 2002 5:57 pm
Location: Houston, TX, USA

Postby Incho » Mon Oct 21, 2002 8:04 am

Hi guys,

if you run RSBDCOS0 from se38 and try "set" command under Windows or "env" under UNIX you can see, that the user name is SAPService{SID} even in the header it is {SID}adm.
The same method used in SM49/SM69.

Incho
Incho
 
Posts: 1537
Joined: Mon Oct 21, 2002 3:32 am
Location: Belgium


Return to ABAP

Who is online

Users browsing this forum: Google [Bot] and 6 guests





This website is not affiliated with, sponsored by, or approved by SAP AG.