Skip to Content
0
Jan 13, 2011 at 11:32 PM

Getting the message from a Cancel event Message Box

490 Views

Hi there,

I would like to know if a user select from menu in SAP 8.8 Data-> Cancel. We get a message box for confirmation Yes/No user wants to cancel the document so that it is status is changed to cancel. I would like to know how can you get the message and the caption from that message box in order to know the appropriate action to take with respect to the form type. In purchare order, when you select cancel, the message box has a caption "Purchase Order" and the text of the message box is "Cancelling a document is irreversible. Document status will be changed to "Canceled" and the document will not appear in the Sales/Purchase analysis reports. Do you want to continue?"

I want to know how may I get these two piece of information. Actually I know there is a button caption property but I must know the message in order to distinguish in code which is 'YES' is clicked.

Any help or lead will be greatly appreciated, thanks!