Application Development and Automation 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: 
Read only

error messages in include

Former Member
0 Likes
1,558

Hello gurus,

How can I give an error message in the INCLUDE program. I want to capture an error when run in the background.

Thank you,

Reeta

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,516

Anyone? Please.

Reeta

12 REPLIES 12
Read only

Former Member
0 Likes
1,517

Anyone? Please.

Reeta

Read only

0 Likes
1,516

what is the error and what is the include program consists of..

Provide full details, then some one can respond.

Read only

0 Likes
1,515

Thanks for your response.

I basically want to provide an error message in the INCLUDE program just like we do in the reports. I could use popups in the foreground but am looking for a solution in the background for include. Ideally I want the job to cancel with an error message.

Thanks,

Reeta

Read only

0 Likes
1,515

You could generate a Spool list showing the errors...Easiest way I can think off...

Greetings,

Blag.

Read only

0 Likes
1,515

as suggested by Blag , if you can use messages then you can see those messages in the spool list.

Read only

0 Likes
1,515

So, do I understand this right, that there isn't anyway to cancel the job from an INCLUDE with a message when running in the background.

Writing to a spool will not cancel the job.

Thanks,

Reeta

Read only

0 Likes
1,515

what i mean is if you raise the error message then background job will stop, and the message will be written to spool.

i am telling you to write the messages to spool. ifyou raise the error messages then it automatically stopped and written to spool

Read only

0 Likes
1,515

Thanks again Vijay Babu,

I am not able to raise an error message from an INCLUDE.

Please provide me the code, if I am wrong, because when I do give any type of message, I get the following.

"MESSAGE-ID xx" is missing in the "REPORT" statement.

and since, it's not a report , I am not able to add the above statement. I can't activate it.

Thoughts?

Read only

0 Likes
1,515

various ways we can give that

message e000(zz) with 'error message'.  "with message class ZZ

or

message with 'errormessage' type 'E'. with out any message class

Read only

0 Likes
1,515

That took care of it.

The one with the message class worked alright.

Thanks very much Vijay Babu. So much for messges yeah?... but it was good learning.

Thanks for all your time.

Reeta.

Read only

0 Likes
1,515

Hi,

you can use the FM BAPI_XBP_JOB_ABORT.

Thanks,

Kamesh Bathla

Read only

Former Member
0 Likes
1,515

I dont think you can debug a program running in background, but you can check the dumps in trx. ST22