10-19-2006 7:18 AM
where to define message class in FM..
plz help
Message was edited by: sharadha sharma
10-19-2006 7: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,
10-19-2006 7: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.
10-19-2006 7:21 AM
10-19-2006 7:30 AM
Use Tcode SE91.
Best Regards,
Vibha
*Please mark all the helpful answers
10-19-2006 7: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