cancel
Showing results for 
Search instead for 
Did you mean: 

BSP error message

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member233090
Active Contributor
0 Kudos

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