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

SM69 problem

Former Member
0 Likes
930

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

4 REPLIES 4
Read only

kesavadas_thekkillath
Active Contributor
0 Likes
810

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.

Read only

0 Likes
810

This is not the case. The parameter is definetely shorter than 128 chars.

The FM ends with sy-subrc = 0.

Read only

0 Likes
810

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.

Read only

0 Likes
810

This is not a problem with replacement characters (the second screenshot shows the configuration which works)