Skip to Content
author's profile photo Former Member
Former Member

web dynpro application performance help...

Hello Gurus,

I've started developing a web app using web dynpro, there are many places to raise different error messages and success messages. Using the wizard I am raising those messages repeatedly at different places in my coding. Is there any way to declare them once and calling them wherever I needed.

Please Help me on this.

thank you

regards,

Nagendra

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Jan 07, 2015 at 06:07 AM

    Yes, its possible.

    Proceed as below

    • Create a method REPORT_MESSAGE( ) in component controller with importing parameters

    id_message_type of type sy-msgty

    it_messages .... type string_table / other type

    • Inside report_message( ) method, use the wizard and call the different messages as below

    >>> Component controller method

    lo_message_manager = .... get message manager .. here

    case id_message_type.

    when 'E'.

    lo_message_manager->report_error( )

    when 'S'.

    lo_message_manager->report_success( )

    when others.

    endcase.

    >>> In views, you can call this method

    To raise error message ...

    wd_comp_controller->report_message(

    exporting

    id_message_type = 'E'

    it_messages = lt_messages ).

    To raise success message ...

    wd_comp_controller->report_message(

    exporting

    id_message_type = 'S'

    it_messages = lt_messages ).

    Hope this helps you.

    Regards,

    Rama

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.