Skip to Content

unix signal to abap program

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?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    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.

    Regards,

    Patrick

    Add comment
    10|10000 characters needed characters exceeded

  • Aug 04, 2017 at 12:00 PM

    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.

    Add comment
    10|10000 characters needed characters exceeded