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

Message Class in FM

where to define message class in FM..

plz help

Message was edited by: sharadha sharma

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

5 Answers

  • Posted on Oct 19, 2006 at 06:21 AM

    Hai ,

    Goto TOP INCLUDE OF FUNCTION GROUP.

    GOTO EDIT MODE.

    THERE YOU CAN DEFINE THE MESSGE ID AS GLOBAL TO ALL FMS INTHAT GROUP

    REGARDS,

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 19, 2006 at 06:21 AM

    Message class in FM??

    Normally u define messages in se91.

    In FM,after Exceptions give numbers to parameters like 0 1.

    if sy-subrc = 0.

    message sy-msgv1 sy-msgv2 etc.

    endif.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 19, 2006 at 06:21 AM

    HI,

    you can define message class by transaction 'SE91'.

    REgards,

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 19, 2006 at 06:30 AM

    Use Tcode SE91.

    Best Regards,

    Vibha

    *Please mark all the helpful answers

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 19, 2006 at 06:32 AM

    Hi

    We can do that in the top include of the function group.

    This statement will be similar like REPORT statement of a program.

    Eg:

    FUNCTION-POOL ZTEST LINE-SIZE 200 NO STANDARD PAGE HEADING.

    "MESSAGE-ID ..

    Also as the documentation says:

    <b>FUNCTION-POOL

    Effect

    The FUNCTION-POOL statement is equivalent to the REPORT statement and introduces a function group.

    A function group contains function modules introduced by the FUNCTION statement and is called with the CALL FUNCTION statement.</b>

    Hope this gives you some idea.

    Kind Regards

    Eswar

    Add a comment
    10|10000 characters needed characters exceeded

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.