Skip to Content
author's profile photo Former Member
Former Member

Placing a new button with WD configuration

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

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jul 31, 2009 at 11:14 AM

    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



    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member


      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?


      Where to place the io_event and how to instantiate the developed WD?

      Thanks a lot!


      André Sousa

  • author's profile photo Former Member
    Former Member
    Posted on Oct 16, 2009 at 11:08 AM

    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.



    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Rajkumar Shanmuganathan

      Hi, Rajkumar S.

      Thnx for link. I looked at this.

      I created a new component and changed HANDLEDEFAULT. My URL address contains several parameters. But in debug wd_event-> parametrs is null.

      Whats is the problem?

      Thanks for your help.

      Salavat P.

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.