on 03-15-2011 4:00 AM
Dear all,
I am facing an issue in a standard Webdynpro FPM Application. The requirement is once a button is pressed in the Webdynpro view,based on some validations I should stop the transaction and throw some error message.But I am not able to identify where I'll check whether the button is pressed.I saw in the FPM controller methods too where in PROCESS_EVENT I can may be stop the user but I have close to 10 webdynpro components used in my standard application.
Please guide me where am I wrong?
Regards,
Nishant
Hi ,
Where is the button created?
In the WD view or it as a FPM 'Other Function' button?
If its a FPM button , event will be raised with the click of the button and can be handled it in PROCESS_EVENT() method.
data lo_fpm type ref to if_fpm.
data lo_event type ref to cl_fpm_event.
IF IO_EVENT->MV_EVENT_ID EQ 'FPM_EVENT_ID'.
"DO validations
ENDIF.
If its a normal WD button , then check for the handler.
Hope I have understood the question correctly , or else please clarify a bit more.
Thanks,
Aditya.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Aditya,
The button is an FPM button no doubt..But the PROCESS_EVENT() method is at Controller level.How will the system know whether from which Component(View) the user has pressed an FPM Button?
Moreover when I tried to but a break-point in PROCESS_EVENT() it doesn't stop there.
I don't understand why this is happening.Please guide where I am wrong.
Regards,
Nishant
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.