on 09-02-2014 8:00 AM
Hi
Can any one suggest me , how to display custom error message on BP SAP GUI Screen.
I'm using sap CRM 5.O version, Where I have a requirement to display custom error message for EEWB-ZFIELD.
I have tried all BADI's none of them are working and no return parameters.
Thanks
Hello Jhon,
Try FM - BUS_MESSAGE_STORE. SAP uses this FM to store error message.
See FM - BUP_BUPA_PAI_BUP310 and other similar functions in its function group. All of them use BUS_MESSAGE_STORE to store error message for checks like Title, Gender, etc.
Hope you can use it for your Z field.
Cheers,
Niraj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Jhon,
keep a break point in this class cl_exithandler , get_instance method line number 14 for finding out the desired correct badi. You can write logic to provide error message using the FM 'CRM_MESSAGES_COLLECT' and CRM_MESSAGE_DELETE fms to delete the message.
Best Regards,
Dhharmakasi.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for your reply.
CRM_MESSAGES_COLLECT and CRM_MESSAGE_DELETE are not working on SAP BP GUI Screen.
which are working for WEB-UI.
If you have sample code , Can you post it here please.
Hi John,
Unfortunately even i did not find these 2 standard FMs used for BP GUI screen.
I dont know whether you have all other ways to generate message like,
using class cl_crm_genil_global_mess_cont sample code
lr_msg_service = cl_crm_bol_core=>get_instance( ).
IF lr_core1 IS BOUND.
lr_msg_service = lr_core1->get_global_message_cont( ).
ENDIF.
lr_msg_service ->add_message(
iv_msg_type = 'E'
iv_msg_id = ' ' "message class
iv_msg_number = '000'
iv_show_only_once = 'X' ).
you can try with incompleness check option in spro settings as well if it is relevant for you.
Best Regards,
Dharmakasi.
User | Count |
---|---|
7 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.