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: 

Error message into a Variable.

Former Member
0 Kudos

Dear users,

I have a rather usual (unusual from the weekend beers for me though!!) query which I can't figure out a proper way to implement.

My requirement is like this:

I have a message class in which I want to define a text 'Employee number & not found'.

I want to use this in the program, but not to raise this error. Instead, I want to move this error message with the Employee number into a Character(200) variable.

So instead of using MESSAGE e0xx(messageclass) USING employee number, I would like to move the error text into a variable which looks like:

lv_text = e0xx(messageclass) USING '1234' which stores the text 'Employee number 1234 not found' in lv_text.

How would I acheive it??

Thanks, V!

1 ACCEPTED SOLUTION

former_member194669
Active Contributor
0 Kudos

Try tis way


message e999(00) with i_emp-empno into lv_text.

press f1 in message will provide you more details

3 REPLIES 3

former_member194669
Active Contributor
0 Kudos

Try tis way


message e999(00) with i_emp-empno into lv_text.

press f1 in message will provide you more details

0 Kudos

Thanks very much, solved the problem indeed !!

Well, my fingers still search for a 'Beer' button today ...

Former Member
0 Kudos

Hi,

try this.

maintain 'Employee number' and 'not found' as two text symbols text-01 & text-02.

concatenate text-01 wa_emp-number (employee number) text-02 into lv_text.

Regards,

Satish