2008 Nov 25 8:52 AM
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
2008 Nov 25 8:56 AM
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.
2008 Nov 25 8:57 AM
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
2008 Nov 25 8:57 AM
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
2008 Nov 25 8:57 AM
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
2008 Nov 25 8:59 AM
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>.
2008 Nov 25 9:20 AM
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
2008 Nov 25 9:26 AM
Hi
S means Success
W means Warning
E means error
these alaphabets determines what type of message u require.
Regards
Winnie
2008 Nov 25 9:27 AM
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
2008 Nov 25 9:29 AM
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
2008 Nov 25 9:35 AM
Then for your general message use Type S
message S001 with v_userid.
Thanks
2008 Nov 25 10:14 AM
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
2008 Nov 25 9:39 AM
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.