2012 Mar 28 11:49 AM
Dear All,
I have a problem with definition of external operating system program to be executed from ABAP.
I have an external executable script sndssh which is tested and works from the shell with one parameter without any problems.
ssh -l username hostname /blahblah/$1
Now I want to defined this script in SM69 as follows
When I execute it with FM 'SXPG_CALL_SYSTEM' I get an error External program terminated with exit code 1 in the BTCXPM_TBL
BUT
If i put a contents of the script into the SM69 directly as follows
everything works properly.
The problem is with the scripts which are longer and cannot be defined as easy.
How to solve this problem?
Any suggestions appreciate,
Best regards,
Grzegorz Skorus
2012 Mar 28 12:02 PM
The parameter limit is 128 characters as mentioned here http://help.sap.com/saphelp_45b/helpdata/en/fa/097208543b11d1898e0000e8322d00/content.htm. See the exception PARAMETERS_TOO_LONG.
2012 Mar 28 12:15 PM
This is not the case. The parameter is definetely shorter than 128 chars.
The FM ends with sy-subrc = 0.
2012 Mar 28 12:52 PM
I think '&' only denotes one replacement parameter. I see more than one & in my system( seperated by space ).
Also ? is used as a replacement character.
2012 Mar 28 2:03 PM
This is not a problem with replacement characters (the second screenshot shows the configuration which works)