on 01-05-2012 1:28 PM
Hello Friends,
I trying to capture the name of event liek EDIT,CLOSE,NEXT etc.. that are defined in FPM in a std WDC.
I need this because based on the ID of the button , i need to process some information.
Could you pls let me know how to handle this or any code would be fine. ?
Regards,
Vinay
Hello All,
Any ideas thru FPM component controller usages OR i have no other option but to enhance the FPM WDC and go thru singleton class method.
Regards,
Vinay
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Vinay,
Get the IF_FPM instance from CL_FPM=>GET_INSTANCE
Type cast it to CL_FPM
In CL_FPM attributes, you'll get the current event instance MO_CURRENT_EVENT and in the attributes of this, you'll be able to get the current event MV_EVENT_ID and all the event data.
Irrespective of the place of calling, this piece of code will work wherever you write it in the LUW.
Regards,
Indu.
Hi folks,
just for clarification. NEVER EVER cast an instance of IF_FPM to CL_FPM !!! The class CL_FPM is an FPM-internal class that may not be accessed by applications.
Back to the original question of the author. If there is a free-style WD component used in your FPM application this component has to implement the WD interface IF_FPM_UI_BUILDING_BLOCK. This WD interface offers several method; one of them is method PROCESS_EVENT. This method is called by the FPM runtime and it has an importing parameter IO_EVENT that is an instance of the FPM event that is currently processed.
Best regards,
Jens
In transaction SE80 double-click on the WD component name and go to the tab "Implemented interfaces". In edit mode add the interface IF_FPM_UI_BUILDING_BLOCK to the list of implemented interfaces and press the button "Reimplement". Afterwards, you can add your application-specific coding to the methods that have been added to the component controller of the WD component.
Hello Jens..
I am not trying to go into EDIT mode in std..WDC delivered by SAP .. but thru enh implementation..
I do have dev authorization.
The interface IF_FPM_UI_BUILDING_BLOCK is already implemented in WDC
What I did was..
In the component controller methods.. the method... PROCESS_EVENT is not in EDIT mode..
But i wrote i wrote the code for capturing the instance of the FPM event in the post-exit of that method..
When i tested this in portal.. this code not executed and hence unable to caputre the event.
Is the design approach correct ? or is there another way
Many thanks..
Regards,
Vinay
Edited by: Vinay Reddy on Feb 6, 2012 12:12 PM
Edited by: Vinay Reddy on Feb 6, 2012 12:24 PM
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
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.