Skip to Content
author's profile photo Former Member
Former Member

I have Doubt in Message class

Hi all.

I need to create lengthy message in message class.

example: zreport message-id zmes.

message s001.

Right now i have message s001,it contains like "This record not applicable" but i want to change like "This is not applicable records for input user so you should give diffrent input in manual screen".capcity of message line nearly 70char only ,how can create lengthy message in message class?

please help me.

Regards,

Jay

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

6 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jan 10, 2007 at 09:22 AM

    Instead of typing in the whole message in the Message Class use place holders (&) and replace them with actual variables using the WITH statement when the message is displayed.

    E.g:

    S001: & & & &

    message s001 with text-001 text-002.

    text-001 and 002 will contain the message text

    Regards,

    Manoj

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 10, 2007 at 09:23 AM

    Hi,

    Use message with & in message class and write the message in text symbols.

    message i000 with text-001.

    text-001 'This is not applicable records for input user so you should give diffrent input in manual screen'.

    If you cannot type such a long text in text symbols,use more than one text symbol.

    message in message class

    000 & & &

    text-001 ''This is not applicable records '

    text-002 'for input user so you should give diffrent'

    text-003 'input in manual screen'

    Kindly reward points by clicking the star on the left of reply,if it helps.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Though this is a solution, it is generally not adviced to define such messages, only defined at runtime...

      If you work in an international context, your messages might need to be translated. The more static they are, the easier they will be to translate.

      However, maybe you do not care about translation... Then, it works.

  • Posted on Jan 10, 2007 at 09:28 AM

    Hi,

    U can break the 70 char text into two text elements.

    Then use as below:

    zreport message-id zmes.
    message s001 WITH text-001 text-002.

    Or you can do as

    DATA: v_text(70) Type c.
    CONCATENATE 'This is not applicable records for input user so you'
    'should give diffrent input in manual screen' INTO v_text.
    message s001 WITH v_text.

    Hope this solves ur problem.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 10, 2007 at 09:47 AM

    hi Jai,

    U can output upto 50 chars per field. So change coding like this,

    data : mymess1 type string,

    mymess2 type string.

    mymess1 = 'This is not applicable records for input user so y'.

    mymess2 = 'oushould give diffrent input in manual screen'.

    MESSAGE s000(zocm) WITH mymess1 mymess2.

    In message class zocm give like

    messageno message text

    000 & &

    This will solve ur problem.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 10, 2007 at 09:21 AM
    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 10, 2007 at 09:23 AM

    jay,

    can u concatenate everything in one string and

    give it like message e001(zz) with string.

    i am not sure about more than 70char.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.