Skip to Content
author's profile photo Former Member
Former Member

How to display error message in BSP

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.

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Dec 12, 2011 at 10:41 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 12, 2011 at 11:49 AM

    Hi,

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

    Regards

    krishnakiran

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.