08-18-2009 2:14 PM
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!
08-18-2009 2:18 PM
Try tis way
message e999(00) with i_emp-empno into lv_text.
press f1 in message will provide you more details
a®
08-18-2009 2:18 PM
Try tis way
message e999(00) with i_emp-empno into lv_text.
press f1 in message will provide you more details
a®
08-18-2009 2:21 PM
Thanks very much, solved the problem indeed !!
Well, my fingers still search for a 'Beer' button today ...
08-18-2009 2:27 PM
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