Skip to Content

unix signal to abap program

Aug 04, 2017 at 08:43 AM


avatar image

I have a unix program the last statement has an echo command .

This program takes the output from an abap program and ftp's it to a windows server.

The requirement now is for the sap program that creates the file to initiate the unix program.

this program has been configured through sm69 and works fine.

except that my echo command at the end is not seen by the abap program as a valid message to log that the program has completed fine.

The abap guy says he requires the unix program to output this in a correct method for him to pick it up.

can i get some help please?

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Patrick Weber Aug 04, 2017 at 11:22 AM

Hi Wayne,

How is your ABAPer invoking your script? Function SXPG_COMMAND_EXECUTE for instance defines in its interface a variable that should contain the exit code of your script, so by returning distinct codes in case of success and failure from the script, they should be able to know in their program if the logic was successful.



10 |10000 characters needed characters left characters exceeded
Wayne McNaughton Aug 04, 2017 at 12:00 PM

Yes he is using


but when the unix program completes successfully no message is sent to say it was successful. I then did an echo to &2 so that we got a message to stdeerr out. but i see nothing.

10 |10000 characters needed characters left characters exceeded