Application Development and Automation 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: 
Read only

Message Class in FM

Former Member
0 Likes
1,148

where to define message class in FM..

plz help

Message was edited by: sharadha sharma

5 REPLIES 5
Read only

shishupalreddy
Active Contributor
0 Likes
841

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,

Read only

Former Member
0 Likes
841

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.

Read only

dani_mn
Active Contributor
0 Likes
841

HI,

you can define message class by transaction 'SE91'.

REgards,

Read only

Former Member
0 Likes
841

Use Tcode SE91.

Best Regards,

Vibha

*Please mark all the helpful answers

Read only

Former Member
0 Likes
841

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