Application Development 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: 

SXPG_COMMAND_EXECUTE return wrong parameter value

Former Member
0 Kudos

Dear all.

We have an Abap program that pulls an encrypted FTP file and saves it to our network.

After that we activate an external command via transaction SM69 by calling FM SXPG_COMMAND_EXECUTE.

This command is an execution of a batch file that executes a decryption method via PGP decryption software.

The problem is that we get an output parameter of this FM (STATUS) as u201CEu201D (error) although the decryption is being executed successfully.

We have the same process being activated same way successfully with another folders (rest is exactly the same).

Why does SXPG_COMMAND_EXECUTE return wrong status value ?

Regards,

Rebeka

4 REPLIES 4

Former Member
0 Kudos

SXPG_COMMAND_EXECUTE runs under certain operating system user account. Looks like that account does not have enough privileges to do what you want it to do. Look at the operating system for privileges (read,write,execute) of the user account SAPServiceuser or equivalent.

/Simo

Former Member
0 Kudos

SAP OSS helped.

0 Kudos

HI Rebecca,

CAn you please s e n d m e the code and step by step solution for pulling file and decrypting it through PGP.

I would highly appreciate your help

thanks,

Sandesh

former_member182040
Active Contributor
0 Kudos

can u pl explain how to solve your issue and which SAP OSS you use?