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

how to pass runtime values in form of messages kindly help me.

hi ,

how to pass runtime values in form of messages.

regards,

siri

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Mar 29, 2008 at 04:50 AM

    You maintain messages in transaction SE91 and the "placeholders" are normally "&" or "&1", "&2", "&3" and "&4"...

    http://help.sap.com/saphelp_nw04/helpdata/en/d1/801b3e454211d189710000e8322d00/content.htm

    http://help.sap.com/saphelp_nw04/helpdata/en/9f/dbaaaf35c111d1829f0000e829fbfe/frameset.htm

    In your ABAP, you simply use something like:

    message e398(00) with 'Hello' sy-uname 'the date is' sy-datum.
    

    i.e. you can you a mixture of literals and runtime values to fill a message (if you look at message 398 in 00 you will see it is simply & & & & ).

    Jonathan

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      As explained above, the syntax is:

      message e398(00) with 'Hello' sy-uname 'the date is' sy-datum.
      

      ... so either you could use

      message e398(00 with 'RFINO' zrfitab-rfino 'CREATED SUCCESSFULLY.' space.
      

      or define your own message in its own class - e.g. 999 in ZMY_MESS with text RFINO & CREATED SUCCESSFULLY and then use

      message e999(ZMY_MESS) with zrfitab-rfino.
      

      ... of course I'd suggest you don't use capitals!

      Jonathan

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.