12-01-2008 11:04 AM
Hi experts,
I created a report with message-id ZMESSAGE_CLASS1. This class is filled with 30 texts.
REPORT zreport1 MESSAGE-ID ZMESSAGE_CLASS1.
Then I added a few includes for various routines (PBO, PAI, POV, ...). When I call a text via lv_textvar = text-001 or MESSAGE i002 from the report, all works fine. But if I call these texts out of any include it won't work.
If I view a include and go over the menu: Goto >> Messages I can see my message class.
How can I implement or call the text elements right from the message class? Do I need to create a Module-Pool first?
Thanks, regards,
Steffen
12-01-2008 11:07 AM
12-01-2008 11:07 AM
12-01-2008 11:15 AM
I'm sorry: I figured out that the statements:
MESSAGE E003.
works well in Includes.
Just the statements with
lv_textvar = text-003.
doesn't work. The text text-003 have to be a lokal text symbol for the include and cannot be refer to the message class.
How is it possible to refer to the message class for a var?
Thanks, regards
Steffen
12-01-2008 11:18 AM
Hi,
Text symbols are no where related to your message class.It has to be declared locally in the program.
Cheers,
Hakim
12-01-2008 11:20 AM
Hi
Also note that Message Class is an independent repository object where as text symbols are not.
So you cannot call message using text-001.
Cheers,
Hakim
12-01-2008 11:23 AM
> I'm sorry: I figured out that the statements:
>
MESSAGE E003.
> works well in Includes.
>
> Just the statements with
>
lv_textvar = text-003.
> doesn't work. The text text-003 have to be a lokal text symbol for the include and cannot be refer to the message class.
>
> How is it possible to refer to the message class for a var?
>
> Thanks, regards
> Steffen
if u want todo like this v_textvar = text-003
use write message to retrieve the message text thru write_message then assign the text to variable