Technology Blogs by Members
Explore a vibrant mix of technical expertise, industry insights, and tech buzz in member blogs covering SAP products, technology, and events. Get in the mix!
cancel
Showing results for 
Search instead for 
Did you mean: 
Former Member

In this blog i will show how to pass variables to Long Text.

Data: lr_message_cont  TYPE REF TO cl_crm_genil_global_mess_cont,

         lr_core          TYPE REF TO cl_crm_bol_core.

lr_core = cl_crm_bol_core=>get instance( ).

lr_message_cont = lr_core->get_global_message_cont( ).

lr_message_cont->add_message( iv_msg_type           = lv_msg_type

                                                  iv_msg_id               = 'ZCL_MSG'

                                                  iv_msg_number       = lv_msg_no

                                                  iv_msg_v1               = lv_msg_v1

                                                  iv_msg_v2               = lv_msg_v2

                                                  iv_show_only_once  = abap_true ).


1) Position the Cursor on the message for which Long Text needs to be defined and click Long Text tab

2) Position the cursor where the variable(s) needs to be substituted at runtime in the Long Text. From the menu click Edit-->Command-->Insert Command. In the Symbols enter &V1& for first variable and so on.

3) After adding all the variables for Long Text click activate.

4) Error description as Short and Long Text with variables at runtime.

Thanks

Ram Vellanki

2 Comments
Labels in this area