cancel
Showing results for 
Search instead for 
Did you mean: 

Long Text Error message

Former Member
0 Kudos

Hi Experts,

I am displaying an error message when clicking on it ,It displays an long text.

Now the question is Can i display some dynamic values in long text

example

Hi todays is &

Thanks

Accepted Solutions (1)

Accepted Solutions (1)

arjun_thakur
Active Contributor
0 Kudos

Hi,

Can i display some dynamic values in long text

Yes, you can do that. For that create a message class in se91. Enter all the messages in that message class. Now in your code, simply call the massage manager and pass the required parameters.

In msgid pass the name of message class

in msgno pass the no. of the message you want to display

in msgty pass the type of message to be displayed i.e E or W or I etc.

I hope it helps.

Regards

Arjun

Answers (1)

Answers (1)

Former Member
0 Kudos

Try report_t100_message of the message manager using the code wizard.


P1,P2, P3, P4 can be used as &.

* get message manager
DATA lo_api_controller     TYPE REF TO if_wd_controller.
DATA lo_message_manager    TYPE REF TO if_wd_message_manager.

lo_api_controller ?= wd_this->wd_get_api( ).

CALL METHOD lo_api_controller->get_message_manager
  RECEIVING
    message_manager = lo_message_manager
    .

* report message
CALL METHOD lo_message_manager->report_t100_message
  EXPORTING
    msgid                    =
    msgno                    =
    msgty                    =
*    p1                       =
*    p2                       =
*    p3                       =
*    p4                       =
*    msg_user_data            =
*    view                     =
*    show_as_popup            =
*    is_permanent             =
*    scope_permanent_msg      =
*    controller_permanent_msg =
*    msg_index                =
*    cancel_navigation        =
    .

Edited by: Radhika Vadher on May 6, 2009 6:12 PM

Former Member
0 Kudos

Hi ,

ya you can do that .

just create a message class through transaction se91.

in that msg class give all the messages .

now in you application call the msg manager and pass the required msg class name,and msg no which you have created and and also the type of msg i.e. E for error msg.

thanks

Former Member
0 Kudos

With this we can only pass one message, but what if my message is long

Former Member
0 Kudos

as shown in my reply above, you can pass 4 values using p1,p2, p3 and p4 in report_t100_message.

& & & & corresponds to p1 p2 p3 p4.

Former Member
0 Kudos

hi,

for long text msg you can make use of the parameter p1,p2,p3.

thanks,

Former Member
0 Kudos

Hello Friend,

p1,p2,p3 does not works. Instead use V1 V2 V3.