Application Development 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: 

call function SHOW_JOBSTATE works only in debug mode?

Former Member
0 Kudos

Hi all,

the state ABORTED is set in debug mode using the call function SHOW_JOBSTATE. I can use it for the other processes but when I start the program normally it is not set. It is strange. What I am doing wrong here? What are the alternatives to call function SHOW_JOBSTATE that work in every mode not only debug.

Thanks

3 REPLIES 3

Former Member
0 Kudos

Hi Maria,

The FM SHOW_JOBSTATE returns the status of a job you cannot set the state with it.

SAP Help explains the exact use of it here is the link for reference

http://help.sap.com/saphelp_40b/helpdata/en/fa/096e10543b11d1898e0000e8322d00/content.htm

Let me know if I misunderstood your question.

Regards

0 Kudos

Hi,

you misunderstood my question. Of cause it sets the state. The problem is that the state aborted is set when I am debugging the code. With the same data it doesnt work when I just run the code. It shoud also set the state ABORTED=X . I am not setting it. I just used the state that is set by the FM for other processes.

Regards

former_member188827
Active Contributor
0 Kudos

Please check if  FM "BP_JOB_STATUS_GET" helps.

Regards