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: 

Message Class in FM

Former Member
0 Kudos

where to define message class in FM..

plz help

Message was edited by: sharadha sharma

5 REPLIES 5

shishupalreddy
Active Contributor
0 Kudos

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,

Former Member
0 Kudos

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.

dani_mn
Active Contributor
0 Kudos

HI,

you can define message class by transaction 'SE91'.

REgards,

Former Member
0 Kudos

Use Tcode SE91.

Best Regards,

Vibha

*Please mark all the helpful answers

Former Member
0 Kudos

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