on 10-05-2016 6:59 AM
Hi Experts,
I am not able to execute customer external command from SM49 in Solman system, but i am able to execute the same command from OS level.
Also, I am able to execute the standard command(e.g. env) from sap.
I have given full permission to the customized scripts.
It is giving the below error:
can't exec external program (2) external program terminated with exit code 1.
Please suggest.
Regards,
Shyam Kumar
Hi Shyam.
1. Refer the SCN thread with same issue - Re: Error while Execute External Operating Syst... | SCN
2. Refer the SCN wiki link for reference Creation of External Commands with the help of UNIX Coding in SAP - ABAP Development - SCN Wiki
BR
SS
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear Shyam,
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
Above are the description for each exit code.
Earlier you were getting exit code 2 which mean command not found.
Which you have resolve by rectifying the input.
Now you are getting error as exit code 8.
Can you tell us what exactly is 900***.SID. It is not a cofile or data file name as it shuold start with K or D.
Regards,
Anil Bhandary
can we get here your script? In general for transports correspondance RFCs are created when we do configure in STMS, so please do check whether the correspondance RFCs are there or not & the TRANSPORT path/routes is still defined properly, just wanted to make sure from my side.
We can inform if any issue in the script. For example if you are looking to add a TR into the TR Buffer, the command would be like, tp addtobuffer <TR> <Target SID> client=<target client> pf=<the transport domain controller or with path for that>
Thanks,
Kaushik
Dear Shyam,
X_ERROR mean Command has terminated with unknown error.
What I understood is, you are manually passing K900***.ID or D900**.ID on OS level like
On OS level you run command as
For Cofile
/usr/sap/trans/scripts/<your script.sh> K900**.ID
For datafile
/usr/sap/trans/scripts/<your script.sh> D900**.ID
If my above understanding is right then the screenshot which you have shared does not have K or D before 900** in SM49 that is what the problem of failing External command in SAP
Regards,
Anil Bhandary
Hi Anil,
We dont need to give the different parameter for cofiles and data files.
We execute the script as : abc.sh 9000****.SID
It move the cofiles and data files in target system.
I am not getting the reason for this issue.
Regards,
Shyam
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Shyam,
Check below sap note and help link
https://launchpad.support.sap.com/#/notes/1663158/E
SXPG_CALL_SYSTEM: Run an External Command (Express Method) - Background Processing - SAP Library
Regards
Prithviraj
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.