on 07-27-2009 10:28 AM
Hi experts,
I'm trying to place a new button in Web Dynpro component /SAPSRM/WDC_UI_BEV_CA, with component configuration /SAPSRM/WDCC_FPM_UI_BEV_RFQ_CA.
I've already placed a button on toolbar block and also added a new FPM event ID NEW_EVENT.
When I debug the WD application FPM_OIF_COMPONENT, I'm able to detect that the new event is raised. But now I want to add some code for opening a new window. Where should I place this code? Please note that I need 1 parameter from the WD application (OBJECT_ID).
Can you help me?
Thanks in advance.
André Sousa
Hello Andre,
If I understand your requirement correctly, then you need to open a window on click of a button from the toolbar.
To achieve this, you need to add a button in the toolbar and associate an event ID with it (This you already have done). Now in the configuration, you would have added UIBB (Interface view) from a particular WD component (I assume that the component name is /SAPSRM/WDC_UI_BEV_CA). In this component, you should implement the WD interface IF_FPM_UI_BUILDING_BLOCK.
When you do this, you will get a set of methods in you component controller. One of these would be PROCESS_EVENT. In this method, you will have an importing parameter IO_EVENT which shall contain the event ID triggered. You need to check the event ID and then write the code to open up your new window.
Regards
Rohan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sousa,
You can catch the event in process_event method of your component through the importing parameter io_event. you have to check the event id and add your code to perform your need
Thanks
Senthil
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Thanks for your answer.
I was not able to understand if I need to change the standard WD component FPM_OIF_COMPONENT.
If not how does the developed WD know that should be started? Does this component need to instantiated somehow?
Could you please give me more detail regarding what I need to do to implement this need?
Example:
Where to place the io_event and how to instantiate the developed WD?
Thanks a lot!
Cheers,
André Sousa
User | Count |
---|---|
101 | |
13 | |
13 | |
11 | |
11 | |
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.