Skip to Content
avatar image
Former Member

BSP error message

Dear all

How to give the error message from SAP to BSP pages? for example, i have some input fields in the BSP page , when input the value and click the save button , will save these values to SAP tables , but maybe some of the values need to check from SAP DB tables, so when checked, how to give the error message back to BSP pages? thanks

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • Jun 07, 2010 at 05:48 PM

    Hi Jacky,

    check this sample

    http://wiki.sdn.sap.com/wiki/display/BSP/SampleBSPApplicationtoDisplayMessage(Validation)instatusbar

    else you can do onething i,e using Java script.

    suppose if you check against the DB table and you sy-subrc gets zero then set a flag against it.

    select * from ztable where condtion.

    if sy-subrc ne 0.

    flag = 'X'.

    endif.

    and use this flag in the view in javascript then give the alert message.

    Hope this helps.

    Regards,

    Bhavana

    Edited by: Bhavana Amar on Jun 8, 2010 11:55 AM

    Add comment
    10|10000 characters needed characters exceeded