Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Stop a job from program.

Hi All,

I am using the FM - SXPG_COMMAND_EXECUTE , to execute an unix commands from my report program.

If there are any errors in the execution of the commds , i am capturing them and stopping the execution of program using STOP.

The report is being run as backgroung job.

Even though STOP is executed in the report, in SM37 the status of the job is shown as finished.

I want the status of the job to be cancelled when the program encounters STOP or when the execution of unix commands fails.

Can you please tell me how to make the job as cancelled when the execution of unix commands fails.

Regards,

Chandan

Tags:
Former Member
Not what you were looking for? View more on this topic or Ask a question