2007 Dec 06 6:54 PM
Hi Experts,
Can i still use message class inside a function module?
Thank you very much.
All you have to do is to do the declaratioin in the TOP include.
this will flow down to all the function modules in the function group.
cheers
A
2007 Dec 06 6:58 PM
Yes you can. In the function Pool use the following statement.
FUNCTION-POOL (Funcctioni Grp Name) MESSAGE-ID (Message class Name).then in the function modules you can use statements like
Example
MESSAGE S377 RAISING CORR_EXIT.Amandeep
2007 Dec 06 6:58 PM
Yes as long as you have declared the message class in the REPORT statement like
Report ztest Message ID ztest_msg.
at the starting of your program.
2007 Dec 06 7:02 PM
Hi Don,
You can not use Message class in Function module
Go to the main program of the Function module from Attributes --> Program name --> Double click, you will find TOP include in that.
Maintain the message class there as below
FUNCTION-POOL <Function Pool Name> MESSAGE-ID <Message ID>.
Regards,
Satish
2007 Dec 06 7:03 PM
Thanks everyone.
can i declare like this?
FUNCTION <function_name> message-id <message_ID>.
Thanks
2007 Dec 06 7:05 PM
No...
As below
FUNCTION-POOL <function_name> message-id <message_ID>.
<function_name> - this will come automatically.
Regards,
Satish
2007 Dec 06 7:08 PM
All you have to do is to do the declaratioin in the TOP include.
this will flow down to all the function modules in the function group.
cheers
A
2007 Dec 06 7:09 PM
2007 Dec 06 7:11 PM
2007 Dec 06 7:16 PM
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |