‎2011 Jan 26 3:24 AM
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.
‎2011 Jan 26 4:18 AM
Hi Anitha,
What is the message in the short dump?
Regards,
Immanuel.
‎2011 Jan 26 4:21 AM
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.
‎2011 Jan 26 6:55 AM
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.
‎2011 Jan 26 7:20 AM
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
‎2011 Jan 26 8:08 AM
‎2011 Jan 27 7:53 AM
Hello Anitha,
Please mention the user exit name and the code written in that.
Regards,
Madhu.
‎2011 Jan 27 8:51 AM
Hi,
write the code like below
if sy-subrc NE 0.
Message........
leave screen <Screen No>
endif.Regards
Ganesh Reddy
‎2011 Jan 27 10:18 AM
hi,
dump is coming due to leave screen code.
if you want to exit
write message type 'I'.
LEAVE TO CURRENT TRANSACTION.
Regards,
pankaj