Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Passing variables to long text messages

satya_devaraju
Explorer
0 Kudos
537

I am trying to validate a PO in user exit. I need to pass all error items into the long text of the error message. Please lets me how to pass varialbles into the long text

3 REPLIES 3

Former Member
0 Kudos
66

Hi,

In the long text editor choose Edit -> Command -> Insert Command, then enter symbol &V1&, &V2&, &V3& or &V4& to represent the four message variables.

Regards,

Nick

Former Member
0 Kudos
66

Hello,

You can use the following function to get long message text.

call function 'FORMAT_MESSAGE'

exporting

id = itab_balm-msgid

lang = sy-langu

no = itab_balm-msgno

v1 = itab_balm-msgv1

v2 = itab_balm-msgv2

v3 = itab_balm-msgv3

v4 = itab_balm-msgv4

importing

msg = w_msg_text

exceptions

not_found = 1

others = 2.

Thanks,

Venu

satya_devaraju
Explorer
0 Kudos
66

thanks