Pop-Up inbound-plug parameters

Hello,
i want co call a Pop-up with a interface view from another component.
The code i use:
data lo_window_manager type ref to if_wd_window_manager.
data lo_api_component  type ref to if_wd_component.
data lo_window         type ref to if_wd_window.
lo_api_component  = wd_comp_controller->wd_get_api( ).
lo_window_manager = lo_api_component->get_window_manager( ).
lo_window         = lo_window_manager->create_window_for_cmp_usage(
                   interface_view_name    = 'W_MAIN'
                   component_usage_name   = 'CALL_TRANS'
                   message_display_mode   = if_wd_window=>co_msg_display_mode_selected
lo_window->open( ).
How can i supply the parameters i defined in the default plug of this window?
By calling the wd with an url, i can supply the parameters (&<parameter=<value>).
Best regards,
Tobias Arnold
Edited by: Tobias_Arnold_GMHSO on Jan 11, 2012 11:13 AM
Solved

it`s pretty easy:
In my Compponent 'CALL_TRANS' i created an Interface Node with my parameters.
The Component which call the CALL_TRANS Comp, mapped this Node and supplied the data.
regards Tobias Arnold

Similar Messages

  • Calling Inbound Plug of one Window of one Component in another WD Component

    Hi All,
        Can anyone please tell me how to call a Window's Inbound Plug of one WD Component in another WD Component.
    Thanks in advance!
    Best Regards,
    Devyani

    Hi Devyani,
        are you calling the view (embeded in a window ) of a component 1 in component 2. If so,
    1. Define the used component(Component 1) in the using component (Component 2)
    Component Use : Comp1
    Component        : Component 1(Name of the component)
    2. On action: using component usage window, window of component can be called as a pop up window in component 2
    If this is not your requirement, let me know. i will try to help
    Regards,
    Sankar

  • Event handler of inbound plug not called when plug fired by event handler

    Hello All,
    I have a rather bizzare problem, hopefully someone out there can figure out what is going on, as I'm rather stumped.
    I have 2 views, A and B. They are linked by plugs, InA, InB, OutToA, OutToB. OutToB is linked to InB from A to B, OutToA is linked to InA from B to A.
    There is an onActionLink in view A. Clicking on this triggers an action which calls the wdFirePlugOutToB method.
    In view B some handling is done in the method onPlugInB, then wdFirePlugOutToA is called to change the displayed view back to A.
    As far as the user is concerned they don't ever see view B. (this bit works perfectly!)
    Now also in view A I have an event handler which handles a event from the component controller. It also calls wdFirePlugOutToB.
    If I trigger an event in the component controller this event handler is called and the method called. However, when I put a breakpoint in the onPlugInB, flow never reaches here. Flow does get to the wdDoModifyView of view B but never to the inbound plug event handler.
    Any suggestions as to what I might need to do? I would have thought calling the wdFirePlugOutToB method would ALWAYS trigger the linked event handler onPlugInB.
    I am running NW04 SP18.
    Thanks!

    Hi Bharathwaj,
    The project I'm working on has a requirement to allow for a road-mapped process (FPM) which has one step in which multiple screens can be accessed. I'll give an example: A user in step A selects the cost centre that they want to work with, in step B they need to maintain several pages of information about this cost centre. The do not want to break this information into steps, as there is no logical progression from one step to the next, and it may well be that the user wishes to go from maintaining screen 1 to screen 3, and then screen 2, and then screen 4. Stepping between all screens (1->2->3->2->3->4) wastes time and is not very user friendly. Step C of the process confirms the data that the user entered in step B, and Step D is the validation that the changes have been committed to the database. (a very familar 4 step process for those using ESS).
    To allow for this requirement, I have designed a left navigation pane type screen. links appear on the left of the screen and the user can use these to navigate between different screens (implemented as FPM IVAC VCs) on the right of the screen.
    It is quite an elegant solution (even if I do say so myself although quite complex to implement. I have relied very heavily on reading the code SAP put together for the FPM. The most complex part is that in order to update the the content of view containers in an application you must trigger a web dynpro view navigation by firing a plug to a different view.
    Unfortunately I don't have any sample application code, only the finished product, which I can't really share. But I can say that if you look at the FPM code carefully, working from where the wdInit of the FPM is called, it will eventually make sense.
    One thing I found slightly frustrating, you can't use the FPM's component usage register (FPM method attachComponentUsage(IWDComponent, IWDComponentUsage)) to add a VC... darned inconvienient really (you'd think that the web dynpro framework could have implemented the concept of extending an interface, but the IBLC and IVAC interfaces are different! - even though the IVAC is just IBLC + a few methods), but then again you can manage the instantiation of the used VC yourself and call the onInit method of the VC passing the current fpm reference, to attach it to a common FC, and given that you should be sharing context through the FC and never the VC, then really this isn't too much of an issue. (I spent ages worrying that I couldn't add the instances of the VC that I was using within my navigation pane VC to the fpm instance list, until I realised that it really didn't matter!)
    One day - when I have time (yeah right!) I might put together a blog about this sort of stuff, in the meantime, it keeps me plenty busy enough not to have the time!
    Hope this helped in some small way,
    Cheers,
    Chris

  • Can't call Inbound Plug before DO_VIEW_INIT_ON_ACTIVATION

    Hi everyone,
    I have a custom quotation search page containing an extra column (quotation-ID) that:
    shows the quotation id
    acts as a link
    points the user to a completely custom screen
    In this custom screen I need to access the GUID of the selected quotation. Here's how I solve this:
    Event handler -- called when user clicks Quotation ID
    Using dynamic navigation, I redirect the user to the page containig my custom UI object type 'ZREA_FOLLOW_BCG', and I pass along the quotation that was selected, the entire entity. (see partly code below)
    CALL METHOD cl_crm_ui_descriptor_obj_srv=>create_entity_based
        EXPORTING
          ir_entity           = lr_entity
          iv_ui_object_type   = 'ZREA_FOLLOW_BCG'
          iv_ui_object_action = 'B'            "display
        RECEIVING
          rr_result           = lr_desc_object.
    Inbound Plug -- fired when navigating
    I created an inbound plug 'IP_FROM_SEARCH' in my custom window. In SPRO I made sure this IP is called when navigating dynamically using my UI object type. (see image)
    In the body of this inbound plug I can access the quotation in the local variable 'iv_collection'. I pass the GUID of this entity on to a public attribute of the component controller. This way I will be able to access it from everywhere in the component. (see code partly below)
    lv_guid = lr_entity->get_property_as_string( 'GUID' ).
    lr_coco->current_rea_guid = lv_guid.
    DO_VIEW_INIT_ON_ACTIVATION
    In DO_VIEW_INIT_ON_ACTIVATION the following code lets me access the GUID from the attribute in the component controller:
    lr_coco ?= me
    ->comp_controller.
    CHECK lr_coco IS BOUND.
    lv_value = lr_coco->current_rea_guid.
    As a result, I now possess the GUID I wanted, and I can load my custom screen using this GUID.
    However.....
    All of this works fine. The inbound plug is fired, and then comes the DO_VIEW_INIT_ON_ACTIVATION, as it should.
    But when I test this in the webui, and I then click the 'Back' button, I'm being redirected to my custom search page. If i then select another quotation, the custom page loads again, but using the quotation that I selected the first time!
    I debugged this and I noticed the following: The second time (after I pressed 'back'), the DO_VIEW_INIT_ON_ACTIVATION is loaded BEFORE my inbound plug is. This is why the GUID is not updated yet...
    Can anyone tell me how I can make SAP fire the inboud plug first? Maybe I need to clean something up?
    Thanks in advance!
    Jonathan

    Hi Jonathan,
    have you tried to put the code you have in the DO_VIEW_INIT_ON_ACTIVATION method in a different method? I'd suggest putting this code in the DO_PREPARE_OUTPUT method.
    The following post contains th eorder in which the different methods of a component are called: Order of methods in WEB UI. Maybe this is also useful for you.
    Best,
    Christian

  • Inbound Plug in standard SAP (create as an interface)

    Hi All- I have a standard SAP component that I create an Inbound PLUG at the window level, I'm using that component (standard SAP) in another component (custom) but I don't have access to the inbound plug that I just create in the standard SAP because the check-box for interface is not "CHECKED".
    When I try to enhanced the standard SAP the interface check-box disappear, how can I check that check-box interface box?
    How I can make my custom inbound plug accessible globally?
    thanks!
    Jason PV

    You Can not enhance that.( creating interface  inbound plug) according to the sap enhancement documentation.

  • Can any bady send the WDJ application on event handler & plug  parameters?

    Hi,
    Experts,
    I have no idea no WDJ Event handler and plug parameters usage if any bady can send me few WDJ application or scenarios which is based on event handler parameters and plug parameters and method parameters. 
    Thans in advance,
    Shaber Ahmed.

    Hi
    Use this pdf(Example) for event handler
    http://www.sappro.com/downloads/WebDynproJava.pdf
    for plug parameters usage
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/91b6ad90-0201-0010-efa3-9626d2685b6e?overridelayout=true
    Thanks

  • Call Inbound Plug or other method of usage component

    Hi guys,
    in crm web ui  i created one component named "A" which has several component usages. One of the usage component is named "B".
    Now the usage component "B" has an inbound plug called "ClearAll", which i want to trigger from component A.
    How do i do that? Or more specific, how do i get the interface controller of component B, so that i can call a the inbound plug method "clearall",
    My Problem is not about Popups.
    in WD_USAGE_INITIALIZE i'm already able to populate the context, but what i need is a method call before or after sharing the context node:
    call method super->wd_usage_initialize
         exporting
           iv_usage = iv_usage.
       case iv_usage->usage_name.
         when 'CUBP_HEAD_SEARCH'.
           try.
             iv_usage->bind_context_node( iv_controller_type  = cl_bsp_wd_controller=>co_type_component
                                          iv_target_node_name = 'PARTNER2'
                                          iv_node_2_bind      = 'PARTNER' ).
    Thanks!

    Very Good ! thanks for this, i also analysed a little bit yesterday and achieved to really call the window controller:
    What i wanted to do is to call the clear_all of BP_HEAD_SEARCH - component, which i always specified as component B.
    In Component A using BP_HEAD_SEARCH, i hooked some coding into method DO_PREPARE_OUTPUT of the only View, which is an overview Page
    Hooking up this method, i'm sure that the initialitation of all context nodes etc. of component B took place and i'll be able to successfully call the inbound plug:
    if me->prepared_output <> 'X'.
      data lr_usage type ref to cl_bsp_wd_component_usage.
      data lr_if_window type ref to cl_bp_head__searchhelpwin_impl.
      data lr_if_window_abstr type ref to  cl_bsp_wd_window.
      lr_usage      ?= me->comp_controller->get_component_usage( 'CUBP_HEAD_SEARCH' ).
      lr_if_window ?= lr_usage->get_interface_view_contr( 'SearchHelpWindow' ).
      lr_if_window->ip_clear_all(  ).
    endif
    the clue was not to use the interface if_bsp_wd_component_usage, but to use the class cl_bsp_wd_component_usage as type of the usage object.
    Doing so, i'll be able to call method get_interface_view_contr which will give me the window controller finally.
    But your solution is good as well !
    Thanks!

  • Inbound plug error in so_basket

    Hi
            we are getting inbound plug error in so_basket. it is working in  one client, but it is not working in other testing  client.  do any body have idea about this inbound plug error.
    regards
    ram

    Ram,
      Did you check your navigationa link. Are the names exactly same ?
    Cheers,
    Ankur

  • CRM IC Web - Inbound Plugs

    Hi,
    I have created a Custom view and attached the same within the Viewset 'BuPaIdentifyCustomer'. The Custom view is displayed as needed.
    I am trying to link 'BuPaSelectCustomer' and my Custom view. BuPaSelectCustomer displays all the customers in tabular format, and the first column is a button, on click of which method EH_ONSELECT is triggered.
    I have created a navigational link in BuPaNavigationalLinkGlobal.xml as follows:
                       <NavigationalLink name="intrec">
                        <Source viewRef="BuPaSelectCustomer" outboundPlugRef="default"/>
                        <Targets>
                             <Target viewRef="Z_CRM_IC/IntRecords" inboundPlugRef="INBOUNDPLUG"/>
                        </Targets>
                   </NavigationalLink>
    The Outbound plug method in the source view is triggered.
    I have created manually an inbound plug method 'IP_INBOUNDPLUG' in the target view controller class.  This method is not getting triggered.
    Can anyone please help me out in the same?
    Thanks,
    Shankar

    Hi All,
    The problem is solved. The inbound plug method's visibility was protected, it has now been set to Public and its working fine.
    Thanks,
    Shankar

  • Calling parent's view inbound plug from modal window?

    Hi,
    I have a window A with a view ("the parent") that calls another window B as a modal one. This window B uses own buttons for actions, no standard ones (OK, Yes, No ...). The problem is that the actions in window B are changing the content in window A. I want  that after closing the modal window B a specific inbound plug of the view of the other window A is called (where a refreshing mechanism is available). How to do that? I tried with the - at other posts - suggested method of exit-plugs, but that didn't work (because outbound and requested inbound plug belong to different windows ???).
    Thanks for your help,
    Alexander

    Hi,
    thanks for your reply. My problem was that in my popup window no standard buttons are available, so that the SET_ON_CLOSE_ACTION can't be used (cf. documentation it only works with the CANCEL-Button). But with this hint I was able to find another solution (which was by the way explained in another thread answered by you 8-) ): I have to create an event in the component controller and fire this event from my window B. Then I have to subscribe a method of window/view A to that event which does the required refreshing. [trigger event from "child" webdynpro;.
    Best regards,
    Alexander

  • Is one out bound plug pointing to many inbound plugs ?

    Hai Experts,
                              i hav the doubt one outbound plug is pointing to many inbound plugs  in different view is it possible.
                             in web dynpro ABAP.
                              plz help.

    Hi,
    Yes it is possible to have one outbound plug for multiple inbound plug
    depends on the condition you mention.
    For example
    If you enter range between 10 to 20 you may fire VIEW1 or
    if you enter range between 20 to 100 you may fire VIEW2.
    When creating navigation link you can set one outbound plug to multiple inbound plugs.
    Regards and Best wishes.

  • Inbound Plug

    Hi,
    Can we use more than one Inbound Plugs for a single view. If yes what is the use?
    For example i have three view in one application. Each view can navigate to other two views. For each view i have one inbound plug and two outbound plugs. There is no problem in navigation in run time.
    So what is the use of creating more than one Inbound plug for a single view?
    Thanks In Advance,
    Krish

    Hi Krish,
    If you want two buttons in different views to be triggering to/pointing to same view in the next navigation you can have two inbound plugs for that view.
    For eg. if you have a view which takes input from manager and other view which takes input strictly from non manager employee, but you want to navigate both to same success view you can have two inbound plugs for the success view.
    Hope your doubt/query is cleared.
    Thanks & Regards
    Sagar Ingalwar

  • How to link Inbound plug between 2 windows

    Dear All,
    I create a linktoaction link,
    and I want come out when I click this link then windows.open a new view in other windows,
    by the way have some data transfer between 2 views,
    if 2 viewes in one windows is easy ,but my task is in  2 different windows !!
    I don't know  how to use Inbound plug or Outbound plug ?
    can you help me  ?

    Doke,
    In a Web Dynpro project, only applications can be addressed by a URL. So, trying to get a URL for your new Window may not be possible. There are 2 ways to get past this issue though.
    1. Use the approach suggested by Satyajit in [this Blog|https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/7143].
    or go this way. I tested this and it works.
    2(a). In your popup window, 'Win_Popup' embed an 'Interface View' say"Popup_InterfaceView".
    2(b). Assign a plug of type 'Startup' to this Interface View and to embedding Window too if you are using CE 7.1.
    2(b). Create a new Application say "Popup_App"and assign your newly created Interface View "Popup_InterfaceView" as its target.
    2(c). Get URL for this new application like this.
                 String deployableObjectName = wdComponentAPI.getDeployableObjectPart().getDeployableObjectName();
                   try {
                            WDDeployableObjectPart deployableObjectPart = WDDeployableObject.getDeployableObjectPart(
                            deployableObjectName,"Popup_App",WDDeployableObjectPartType.APPLICATION);
                            String urlToTargetApp = WDURLGenerator.getApplicationURL(deployableObjectPart);
                   catch (WDURLException e)
                          messageMgr.reportException(e.getLocalizedMessage(), false);
    2(d) Use the generated URL for navigation.
    IWDWindow window = wdComponentAPI.getWindowManager().createNonModalExternalWindow(urlToTargetApp ,"title");
    wdContext.currentContextElement().setWindowRef(window);
         window.setWindowSize(300, 300);
         window.setWindowPosition(50, 50);
         window.setTitle("Title Name");
         window.open();
    This works.
    Hope this helps.
    Vishwas.

  • The "What can I help you with" Box pops up when plugging in a line in cord

    I have the retina ipad 4 and when I plug in headphones no problems, but if I plug in a cord that you would use for external speaker sound into the headphone jack the What can I help you box pops up like I pushed the Home button to give it a command. Not sure why it would do that , the ipad funtions fine, just thought I would this out there.
    Thanks, Shawn

    i figured this would be a no amswer one

  • Passing plug parameters

    Hi all,
    I try to add parameter to a plug and get the following build error:
        [wdgen] ERROR: Unknown exception during generation null (com.sap.webdynpro.generation.ant.GenerationAntTaskError)
         [wdgen] ERROR: Generation failed due to errors (3 seconds)
    Error: C:\Documents and Settings\michael\.dtc\LocalDevelopment\DCs\sap.com\ph_manager\_comp\gen\default\logs\build.xml:102: [Error]   Generation failed!
    Without parameters all is working fine.
    What may be the problem?
    Thanks
    Michael

    Hi Michael,
    This exception can occur for different reasons. Could you post the log file, so that we might get some idea about the reason for this exception.
    Regards,
    PG.

Maybe you are looking for

  • Error reading project file : no protocol

    I have followed the instructions exactly as in the j2ee tutiorial ,but, when I run asant , an error occurs: : Error reading project file : no protocol: ../../common/targets.xml Urgent!

  • Invoking Imaging Web Service from BPEL is failing

    Hi, My Env is on latest 11g 11.1.1.8. I am trying to invoke the Imaging Web Services (http://host:port/imaging/ws/ApplicationService?wsdl)deployed in another Weblogic Server from Bpel. When I tried to invoke this web service with out security credent

  • 5/13/2014 - Release - Flash Player 13

    The next version of Flash Player is available for immediate download.  In today's release we've updated Flash Player with important security updates and bug fixes.  We recommend users update to the latest version. With today's release, we have also u

  • How to use full qualified table names in RPD

    Hi, We are implementing the BI Financial Analytics, we have a requirement to use diffrent user accounts for DAC , ETL and OBIEE DAC, ETL we are using user as XXOBI For OBIEE RPD we have to use user with read only access such as XXOBI_APP How can i ma

  • Extractor for table S115

    Hi, Im looking for a standar extractor that can obtain the information that i have in the table s115 of R/3; or its necessary to create an extractor generic? Thanks for the information Mónica