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

Passing Variable in message

rahul2000
Contributor
0 Likes
547

Dear all,

In the syntax MESSAGE 'Invoice No is' TYPE 'I'.

how can i pass the number of the invoice number generated.This is saved in a variable NUMBER.

If I write MESSAGE 'Invoice No is' &NUMBER& TYPE 'I'. it throws a syntax error.

Plz let me know.

Rahul.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
519

Hey Rahul,

First of all create a message class,(say ztest) by going to SE91.

Then enter against message number 000 ( or against any number ),

Invoice No is &

and then go back to your code... and write the following command


MESSAGE i000(ztest) WITH number.

Cheers,

Vishnu

3 REPLIES 3
Read only

Former Member
0 Likes
519

MESSAGE 'Invoice numer is &' TYPE 'I' WITH NUMBER.

General:

MESSAGE 'Text &1 &2 &3' TYPE 'I' WITH VAR1 VAR2 VAR3.

Edited by: Amit Gupta on Nov 18, 2008 9:38 AM

Read only

Former Member
0 Likes
519

Hi,

MESSAGE ID mid TYPE mtype NUMBER num.

Regards

Shiva

Read only

Former Member
0 Likes
520

Hey Rahul,

First of all create a message class,(say ztest) by going to SE91.

Then enter against message number 000 ( or against any number ),

Invoice No is &

and then go back to your code... and write the following command


MESSAGE i000(ztest) WITH number.

Cheers,

Vishnu