cancel
Showing results for 
Search instead for 
Did you mean: 

Reg:report Exception

Former Member
0 Kudos

Hi,

I would like to know the basic difference between true/false kept in the following lines of reportException.

WdcomponentAPI.MessageManager().reportException("Message",true);

WdcomponentAPI.MessageManager().reportException("Message",false);

What are the different scenarios where we come across these MessageManager.

Thanks and regards,

Chandrashekar.

Accepted Solutions (0)

Answers (3)

Answers (3)

former_member197348
Active Contributor
0 Kudos

Hi Chandrashekar,

WdcomponentAPI.MessageManager().reportException("Message",true);

Report the exception Message to the client and cancels the subsequent navigations.

WdcomponentAPI.MessageManager().reportException("Message",false);

Report the exception Message to the client and doesn't cancel the subsequent navigations.

regards,

Siva

former_member751941
Active Contributor
0 Kudos

Hi chandrashekar ,

true: All navigation steps should be canceled due to this error message.

false: All navigation steps should be continued due to this error message.

Right Click on <b>reportException </b> then choose the <b> Open Declaration </b> Option all the details will be shown.

http://help.sap.com/saphelp_nw70/helpdata/en/59/e8e95d1eba48dfa86ae91ad8816f5d/frameset.htm

Regards,

Mithu

Former Member
0 Kudos

true - terminates after executing your exception.

false - Continue to excute other statements even after excuting your exception.