on 03-22-2012 1:03 PM
Hello,
I have build a FPM application with 6 tabbed guibb on it. When I save everything I want to check all the mandatory fields in my whole application and not just on the current tab (which by the way works quite well).
I had the idea to use the fpm message manager (fpm dev guide). I was wondering what you be the right place to use such a methode because I don't have access to the component controller.
For a try out I made couple of lines in the flush method of the feederclass.
The goal is to have the message create an url to the field that's giving the error. So how do I fill the value for IV_PARAMETERS and IO_ELEMENTS?
if change_log-name = 'NV_DATUM'.
data message_manager type ref to if_fpm_message_manager.
data fpm type ref to if_fpm.
fpm = cl_fpm_factory=>get_instance( ).
message_manager = fpm->mo_message_manager.
message_manager->report_message(
exporting
iv_message_text = 'Test'
io_component = me
" IV_PARAMETERS = ''
" io_element = ''
).
endif.
Hi Matthias Gamsjager,
You can use below code for raising the fpm message.
lv_fpm = cl_fpm_factory=>get_instance( ).
"Get handle to the FPM Message Manager
lv_message_manager = lv_fpm->mo_message_manager.
CALL METHOD lv_message_manager->report_t100_messag
EXPORTING
iv_msgid = '<MSG_CLS_NAME>'
iv_msgno = <MSG_NO>
io_component = me
iv_severity = 'W'.
If you want to navigate to the appropriate tab field you can set IS_NAVIGATION_ALLOWED flag for the above method . It will directly go into the field.
Hope it will help you.
Thanks & Regards
Praveen Gupta
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Praveen,
Thank you for your help.
In the method documentation it says for the parameter IS_NAVIGATION_ALLOWED: "Applicable only for GAF. Enable step navigation on E message".
And we'd still have the problem, that we can't pass a value to the method declaring to which field it should link. IV_ATTRIBUTE_NAME only works in combination with IO_ELEMENT...
Or do I get something wrong here?
Best Regards,
Arne
Hi Matthias,
I'm having the same problem. I don't know what to pass for IO_ELEMENT but I can't any other possibility except for this message_manager.
Since the post ist from last year, have you been able to find a solution or a workaround of some sort?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.