Application Development 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: 

related to message class

Former Member
0 Kudos
203

I have created some mess nos and description in se91 say

001 user id (001) logged on

003 userid(003) logged on

but this 003 is import parameter in the function module.So it can have any value

But i need it as userid ( imprt from function module ) logged on

That is my final output should be user id 008 ( from function module ) logged on

Is there a way where we can declare variables and show this type of output taking some values from screen and some from message class

12 REPLIES 12

Former Member
0 Kudos
175

Hi

When define message use parameter.

like in SE91 define 001 user id & logged on

then in program use statement MESSAGE i001 with user_id

user_id is the parameter passed.

Former Member
0 Kudos
175

Hi

In ur msg class ...wherever u need a variable put '&' sign.

i.e. userid & logged on

and in ur program use:-

MESSAGE S003 WITH varible_name_imported_from_FM.

Hope this helps

Regards

Winnie

SuhaSaha
Advisor
Advisor
0 Kudos
175

Hello,

You can try creating your message as :

"& user id (&) logged on"

In the code write the MESSAGE stmt as:


MESSAGE W000 WITH v_userid v_userid.

V_USERID being the variable from the FM.

BR,

Suhas

Former Member
0 Kudos
175

Declare your message in msg class as

001 user id & logged on

In the main program call message as

message I001 with v_userid.

where v_userid is a variable in the program wid the value you want.

Hope this helps!!

Regards,

Prashant

Former Member
0 Kudos
175

Hi,

you can declare the messages in SE91 as following

001 user id & logged on

003 userid& logged on

using FM format_message you can replace the & with existing Values.

or Using statement Messages e001(Msgid) with <ur value>.

0 Kudos
175

Hi ,

I am not getting it i have used format message to get the function tex what is this s001 or w001 all are talking about. can somebody clearly tell me how do i replace that & symbol with my input

0 Kudos
175

Hi

S means Success

W means Warning

E means error

these alaphabets determines what type of message u require.

Regards

Winnie

0 Kudos
175

You have to specify one of the possible message types "A", "E", "I", "S", "W" or "X".

Determines in the MESSAGE statement the representation of the output and the remaining program flow. There are the message types information message (I), status message(S) , error message(E) , warning(W), termination message(A), and exit message(X).

As per my code you dont need to use any FM

Directly use & for the variable you want..rest refer the code

Regards,

Prashant

0 Kudos
175

Hi ,

i dont want something like message i100 with user_id i want it as in general. Not only i001 i want like message ( any mess no ) with user_id. something in general i dont want to mention as i001

0 Kudos
175

Then for your general message use Type S

message S001 with v_userid.

Thanks

0 Kudos
175

Hi aravind

Without using the message type you wont be able to post your meassage its syntax.

Message type also determines how your message comes, whether its popup(I), or on the status bar.

Please let us know if you where able to come out of your problem with the correct answer.

Regards

Winnie

Former Member
0 Kudos
175

Hi,

Use '&' in SE91 to create your message... '&' work as a place holder, you can pass your program variable in it at run time.

With luck,

Pritam.