cancel
Showing results for 
Search instead for 
Did you mean: 

workflows - badi - error message

Former Member
0 Kudos

Hi Experts,

I am working on SAP-CRM Workflows. I have a requirement that I need a BADI that generates an Error Message, on the status bar of UI. Is there any standard BADI, that could do so..!!

I also need a Function Module that can be used to change the tagging/un-tagging of a field on the UI like Checking/un-checking of a Checkbox.

Please send in your Suggestions.

With Best Regards,

Kanika

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

hi carsten,

my requirement is not from UI..it is from sap-gui...that should be reflected in UI automatically...

and for the checkbox...we can't hardcode that field directly to 'X'..it should be done dynamically in UI and i should b able to catch that is SAP-GUI..

for that i need a function module..

CarstenKasper
Active Contributor
0 Kudos

Hi,

I suppose you are talking about the WebClient UI and not the SAPGUI.

For the first question: I do not know how to modify the status bar, but if adding a message to the message area (were all other CRM related information messages are shown) is enough you can use the global message container.


    lr_msg_service = cl_bsp_wd_message_service=>get_instance( ).
    MESSAGE e<<msg_number>> INTO lv_msg WITH lv_msg_v1.
    CALL METHOD lr_msg_service->add_message
      EXPORTING
        iv_msg_type   = sy-msgty
        iv_msg_id     = sy-msgid
        iv_msg_number = sy-msgno
        iv_msg_v1     = sy-msgv1.

Changing values of UI fields you got two options:

1. You modify the UI components code to change the field value over the GET/SET methods on some kind of event

2. You modify the underlying data in the BOL object.

Checking is done by simply adding a 'X' to the variable representing the checkbox.

cheers Carsten