Skip to Content
0

unix signal to abap program

Aug 04, 2017 at 08:43 AM

28

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

avatar image
Former Member Aug 04, 2017 at 11:22 AM
0

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.

Regards,

Patrick

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

Yes he is using

SXPG_COMMAND_EXECUTE

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.

Share
10 |10000 characters needed characters left characters exceeded