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

Dump when call error message in User Exit

Former Member
0 Likes
2,304

hi all,

In one of the user exit I am using. If process not sucessfull need to give error message and come out of the transaction without saving.

But when for me it is giving short dump.

i followed:

message E001(ZMESSAGE).

Please advise.

ANu.

8 REPLIES 8
Read only

Former Member
0 Likes
1,392

Hi Anitha,

What is the message in the short dump?

Regards,

Immanuel.

Read only

0 Likes
1,392

Hi,

The short dump is:

The COMMIT WORK processing must not be interrupted.

Error in the ABAP Application Program

The current ABAP program "SAPLXCO1" had to be terminated because it has

come across a statement that unfortunately cannot be executed.

Thank you,

ANu.

Read only

0 Likes
1,392

Hi Anitha,

I think you cannot issue error messages in the user-exit that you are using now.

Look for another user exit.

Regards,

Immanuel.

Read only

Former Member
0 Likes
1,392

Hi,

we can raise error message in user exit only the corresponding exits customer function FM is called in PAI event .

Please check that the user exit your using is called in PAI Event ,then only it will work otherwise it will get dump.

Regards

Devi

Read only

SujeetMishra
Active Contributor
0 Likes
1,392

Hello Anitha,

could you send your code ?

Regards,

Sujeet

Read only

madhu_vadlamani
Active Contributor
0 Likes
1,392

Hello Anitha,

Please mention the user exit name and the code written in that.

Regards,

Madhu.

Read only

Former Member
0 Likes
1,392

Hi,

write the code like below

if sy-subrc NE 0.

Message........

leave screen <Screen No>

endif.

Regards

Ganesh Reddy

Read only

0 Likes
1,392

hi,

dump is coming due to leave screen code.

if you want to exit

write message type 'I'.

LEAVE TO CURRENT TRANSACTION.

Regards,

pankaj