Custom Messages WAD
I am running a planning funtion type exit, IF_RSPLFA_SRVTYPE_IMP_EXEC_REF
In my planning function I compare 2 values and need an output message at the top of the screen if certain conditions are met.
So far I have set up my ZCX exception class, it is properly tied up to the T100 table. When I run it with the 'E' type message, the entire screen changes to system error screen, with the proper message inside.
I just can't get the message to appear at the top of the planning screen after running my planning function while staying in the planning screen.
Sample code would be real good
Any help appreciated, points awaiting.
Matthias Nutt replied
maybe taking a look at some standard code examples may help here. E.g. take a look at the implementation of class CL_RSPLFC_COPY. Here you can see that error messages are raised using the following scheme.
data: l_dummy type char100. message e004(zplanning) into l_dummy. i_r_msg->add_msg( ).
Hope this helps.
SAP Consulting Switzerland