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

PROBLEM IN SXPG_COMMAND_EXECUTE

Former Member
0 Likes
462

Hi,

Can anyone solve my problem I m using function module to zip three excel sheet which were present in the application file and shell script is written accordingly.

But my query is this is working fine in Production and in development but it is failing in Quality with SU 53 screen shot showing auth. object S_RZL_ADM Object class BC_A with acticvity 01 is highlighted in red.

Does these are in correspondence with each other?

CALL FUNCTION 'SXPG_COMMAND_EXECUTE'

EXPORTING

commandname = c_zcompressall

additional_parameters = w_missingtargz

stdout = c_x

stderr = c_x

terminationwait = c_x

TABLES

exec_protocol = w_protocol

EXCEPTIONS

no_permission = 1

command_not_found = 2

parameters_too_long = 3

security_risk = 4

wrong_check_call_interface = 5

program_start_error = 6

program_termination_error = 7

x_error = 8

parameter_expected = 9

too_many_parameters = 10

illegal_command = 11

wrong_asynchronous_parameters = 12

cant_enq_tbtco_entry = 13

jobcount_generation_error = 14

OTHERS = 15.

Here after executing the w_protocol is giving me two values

1.Can't exec external program (No such file or directory)

2.External program terminated with exit code 1

Would please suggest me why it is happening?

regards

M jacks

1 REPLY 1
Read only

Former Member
0 Likes
305

Hi All,

There is a Quality refresh happened which means the Production data overwrites the Quality In such case the path that is defined in SM69 of the external command Zcompressall got overwrite with the production path which is the reason for failing of the external command.

Cheers

Jacks M.