Application Development and Automation 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: 
Read only

writing message

Former Member
0 Likes
939

Hi,

I want to write very long message with one variable.Can any one give me the correct syntax.


message I000(ZM) with 'Part is within warranty.Sales order': T_VIS-SDAUFNR. 
   'Please create this item in Service Order as non-chargeable'.

Reward Guaranteed

cheers

kaki

7 REPLIES 7
Read only

Former Member
0 Likes
861

writing too long text is not possible so break the text into different text elements.

First create a message no. in message classs suppose zm.

000 - & & & &

Here u can place four fields or four text elements or combination of both

in the program u can use the same for ur message

text-001 = 'Part is within warranty.Sales order':

text-002 = 'Please create this item in Service Order as non-chargeable'

message I000(ZM) with text-001 T_VIS-SDAUFNR text-002.

This will help u...Sure

Read only

0 Likes
861

Hi Ateeq K

How to put text-001 in text symbols?Can any one give me step by step?

kaki

Read only

Former Member
0 Likes
861

Hi Kaki,

MESSAGE xnnn.

Additions

1. ... WITH f1 ... f4

Effect

Outputs the message no. nnn for the MESSAGE-ID specified in the REPORT statement with the message type x. Dialog control recognizes the following message types:

I - Info : Press ENTER to continue W - Warning : Correction possible E - Error : Correction required A - Abend : Transaction terminated X - Exit : Transaction terminated with short dump

MESSAGE_TYPE_X S - Success : Message on next screen

Addition 1

... WITH f1 ... f4

Effect

Inserts the contents of a field fi in the message instead of in the variables &i. If unnumbered variables (&) are used in a message text, these are replaced consecutively by the fields f1 to f4 .

To aid conversion, only numbered variables (&1 to &4) are to be used in future if several fields are involved.

If a "&" is supposed to appear in the message at runtime, you must enter "&&".

<b>In the long text of a message, the symbol &Vi& is replaced by the field contents of fi .

After WITH , you can specify 1 to 4 fields.</b>

<b>Note

You can output up to 50 characters per field. If the field contains more characters, these are ignored.</b>

Regards,

Raj

Read only

Former Member
0 Likes
861

Instead of this, put the texts in text-symbols

message I000(ZM) with 'Part is within warranty.Sales order' T_VIS-SDAUFNR 'Please create this item in Service Order as non-chargeable'.

text-001 = 'Part is within warranty.Sales order'

text-002 = 'Please create this item in Service Order as non-chargeable'

And say,

MESSAGE i000(zm) WITH text-001 t_vis-sdaufnr text-002.

But remember these texts which are put in text symbols, each must not go more than 50 chars.

Regards,

Srikanth

Read only

suresh_datti
Active Contributor
0 Likes
861

Hi Kaki,

You can use the place holder & in the message and do it.. in SE 91 under your message class ZM create a message with 3 place holders and use them in the message statement to write what you want. Getting the entire message in asingle line may not be possible with a type I message though.

Regards,

Suresh Datti

Read only

0 Likes
861

in the editor,double click on TEXT-001.. enter your text & activate..

Suresh

Read only

Former Member
0 Likes
861

Hi kaki,

1. There is a limit to the message issued

by this command.

78 characters - 100 (exactly i dn'tknow)

2. so what ever we use, &1, &2 etc,

it will not exceed the maximum limit.

                      • sorry

3. please use message s999(yhr) with 'abc' variable 'def'.

regards,

amit m.

Message was edited by: Amit Mittal