on 06-07-2010 2:10 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.