cancel
Showing results for 
Search instead for 
Did you mean: 

How to display error message in BSP

Former Member
0 Kudos

Hi,

I am working on a BSP application where I want to display some error messages if a particular validation fails.

I have written the code for adding the message using CL_BSP_MESSAGES->ADD_MESSAGE in event DO_HANDLE_EVENT. The message passed is added successfully in table M_MESSAGES in method ADD_MESSAGE . But I want to know what code should be written in the layout to display this error message.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

Also Refer http://wiki.sdn.sap.com/wiki/display/BSP/SampleBSPApplicationtoDisplayMessage%28Validation%29instatusbar

Regards

krishnakiran

Former Member
0 Kudos

Hi,

In javascript you have to do validation(Eror Message) below is the sample code for message

var yourwords = "Enter Carrid" !';

vae speed = 500;

var control = 1;

function flash()

{

if ( control == 1 )

{

windows.status = yourwords ;

control = 0;

}

regards

krishnakiran

Edited by: Krishna KiranN on Dec 12, 2011 11:53 AM