Calling Component details in Webdynpro Component Usage Pop-up

Hi Experts,
We have a WD component, say ZWD1, which has been re-used(component usage) in many other WD components.
In all the usages the main window of ZWD1 is being called as a pop-up.
Now we have a requirement wherein i need to write certain logic in ZWD1 view method which should be executed only when
ZWD1 is called as a pop-up from 2 particular components out of all the components in which it has been reused.
Is there any way in which we can get the details of the Parent window (or) component from which ZWD1 has been called, in the methods of ZWD1? (Apart from calling an interface method of ZWD1 or setting the value of an interface node of ZWD1, from the parent component)
Thanks in advance.
Best Regards,
Sampath A.

Hi,
for your requirement you could use Assistance Classes in your Parent component and Used Component.
Use the Same Assistance class in all the components and set an Attribute in Assistance class while in Parent component.
Now in your Used Component , you can access that Attribute of Assistance class and check which Parent component it is calling.
To call the attribute/method use the instance wd_assist.
For more info on Assistance  class and its usage Refer the SAP Online Help :
http://help.sap.com/saphelp_nw70/helpdata/EN/43/1f6442a3d9e72ce10000000a1550b0/frameset.htm
I hope it helps.

Similar Messages

  • Embeding WebDynpro component into another webdynpro component

    Hi,
       I am trying to embed one (embeded) WebDynPro Component in to another(inner) . I have followed the tutorials for Server side eventing at
    http://help.sap.com/saphelp_nw04/helpdata/en/24/243ca46e1c334f8a6f8b0792656bc7/content.htm
    Here are the steps I did.
    1) Created two WebDynpro component "embeded" and "inner" components in  a project with two views embededView and innerView respectively.
    2) Defined the component usage in "embeded" component.
    3) created a viewset at "embeded" component. included embededView and innerView in the viewset.
    4) Included required controllers at embededView.
    5) Created two button at embededView and linked it to action and wrote code to create the componet using componentusage instance.
    But unfortunately i could not able se to any component created i.e the view of inner component is not visible at all.
    Could anybody have an answer to the above query.
    Regards
    Alok

    Hi Alok,
    As far i understood the scenario. You want to see/embed one webdynpro view inside another web dynpro view when you click some button in the outer web dynpro view.
    Is it correct ?
    I had the the following approach.
    >created two wen dynpro component in a project.
    >define the view for the inner component.
    > In the Outer component, i added View Container.
    > In the View Container, i embedded Interface View of inner component.
    > write some code to view this in the on action event of the button used to display the inner view.
    If you are working on the same scenario, it is one method to go
    Rgds,
    Vilish

  • Calling Adobe form from Webdynpro component?

    Hi All,
    I have a WD Component which displays all the personel nos and by selecting one personel no and clicking on a button  it has to show the Adobe form which gets the data from BADI.and this is working fine.
    but here my question is in the below code what is" Process"?
    where we find this? please explain me  this statement concatenate l_url '&process=ZORG_CHANGE' '&pernr_mem_id=' L_TEXT5 into l_url.
    my code is:
    method ONACTIONACT_FORM .
    wd_this->fire_from_main_plg(
      DATA lo_nd_pernr_tab TYPE REF TO if_wd_context_node.
      DATA lo_el_pernr_tab TYPE REF TO if_wd_context_element.
      DATA ls_pernr_tab TYPE wd_this->element_pernr_tab.
      DATA lv_objid LIKE ls_pernr_tab-objid.
      DATA L_TEXT5 TYPE TEXT5.
    navigate from <CONTEXT> to <PERNR_TAB> via lead selection
      lo_nd_pernr_tab = wd_context->get_child_node( name = wd_this->wdctx_pernr_tab ).
      IF lo_nd_pernr_tab IS INITIAL.
      ENDIF.
      lo_el_pernr_tab = lo_nd_pernr_tab->get_element(  ).
      IF lo_el_pernr_tab IS INITIAL.
      ENDIF.
      lo_el_pernr_tab->get_attribute(
        EXPORTING
          name =  `OBJID`
        IMPORTING
          value = lv_objid ).
      data l_pernr type p_pernr.
      move lv_objid to l_pernr.
      MOVE SY-UNAME TO L_TEXT5.
      CALL FUNCTION 'HR_ASR_WDA_SET_EMPLOYEE'
        EXPORTING
          PERNR = l_pernr
          ENAME = 'Rajak'
          ID    = L_TEXT5.
      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.
      data l_url             type string.
      data lt_parameters      type tihttpnvp.
      data ls_parameters      type IHTTPNVP.
    Generate the url to be called.
      call method cl_hrrcf_wd_services=>construct_wd_url
        EXPORTING
          iv_application_name = 'asr_process_execute'
          it_parameters       = lt_parameters
        RECEIVING
          rv_url              = l_url.
    Pass the data using Application Parameters
      concatenate l_url '&process=ZORG_CHANGE' '&pernr_mem_id=' L_TEXT5 into l_url.
      lo_api_component  = wd_comp_controller->wd_get_api( ).
      lo_window_manager = lo_api_component->get_window_manager( ).
      lo_window         = lo_window_manager->CREATE_EXTERNAL_WINDOW(
            url          = l_url
            title        = 'Submitted candidate'
            has_menubar  = abap_false
            has_toolbar  = abap_false
            has_location = abap_false                   ).
      lo_window->open( ).
    Regards,
    Lakshmi.

    Hi,
    in my scanario ,adobe form is updated or getting values from  BADI. How to find the BADI's name ?and how it triggers?where do i find the exit handler etc?
    Can you explain me this?
    Regards,
    Lakshmi.

  • Passing value from Portal Development component to Webdynpro component

    Hi experts
    how to pass a value from portal component to a webdynpro component , is it possible, i have both portal and webdynpro --- development components on diffrent tracks,
    Regards
    Govardan

    page 8.
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/c2fad86f-0401-0010-91ac-bdb38595a735?QuickLink=events&overridelayout=true&5003637509947
    any event you named.

  • How to call a RFC of a remote system from an ABAP webdynpro component

    Dear Experts,
    I am a newbie in ABAP Webdynpro.
    I am working on a requirement where I have a webdynpro component on ECC system.I need to call a RFC located on CRM system from my webdynpro component on the ECC system.
    How do I do that ?? Please help.
    Regards,
    Mamai.

    Calling RFC from some other system is same as local except the difference is that you have to give destination name while calling.
    And the regarding the method of calling it depends on your FM.
    if it is big RFC with complex structure, you can create the service call for it with destination given as RFC desitination.
    if it is simple straight forward RFC you can directly call it.
    for creating RFC service call call use this method
    1. Starting the Wizard
    To start the wizard, position the cursor on the Web Dynpro component to be edited in the object list at the left margin of the
    workbench window. Open its context menu and choose the entry Create->Service Call. The wizard is started and leads you
    through the creation process.
    Press Continue.
    2. Choice of Controller
    On the second dialog window of the wizard, you can choose whether the service call is to be embedded in an existing
    controller or whether a new controller is to be created for this purpose. Service calls can only always be embedded in
    global controllers u2013 that is, in the component controller or in additionally created custom controllers. It is not possible, to
    embed service calls in view controllers.
    a. Select radio button Use Existent Controller
    b. Do not change the default entry for component: <CC name>
    c. Enter for controller COMPONENTCONTROLLER
    d. Press Continue.
    3. Service Type and Service Selection
    a. You now select, which service type should be used for this service call. Select radio button Function Module. Fill the
    destination here. Press Continue.
    b. Select the service: for Function Module enter <RFC name>. Press Continue.
    4. The Required Methods and Context Elements
    On the two subsequent dialog windows, default values are listed for giving names to the context nodes and attributes
    required by the service call as well as to the required methods. The proposed names are based on the names of the
    embedded service, but you can change them as required. However, heed the respective notes in the corresponding dialog
    box.
    a. Adapt Context: Select from Nodes/Attributes . Press Continue.
    b. Specify Method Name: leave all entries as provided: Component:  Controller: COMPONENTCONTROLLER Method: EXCUTE_ Press Continue.
    5. Completing the Choice
    When you have confirmed the last dialog box, the generation is triggered. Afterwards you now have the required methods
    and contexts at your disposal for using them within your Web Dynpro component.
    or if you want to call directly the use the call statement with destination

  • Calling a method in another webdynpro component

    Hi,
    I have two webdynpro components say Comp A and Comp B.
    In Comp A I had a view View A and in Comp B I had a View in View B.
    In View A, I had a method X, I want to call this method in View B of Comp B.
    How I can do this?
    I created a public part of Comp A and tried to add in used webdynpro components. But in the list I am not able to find it.
    Please help.
    Regards
    MQ

    Hi,
    If both the components Comp A and Comp B are in the same DC you can use the interface controller to call the method in comp A. Add this comp A interface controller in Comp B controller by going to the properties tab, so that you can access the methods of comp A interface controller.
    If you have the components in different DC's you can follow the below steps:
    Go to public parts in DC meta data section and create a public part by selecting the first radio button option and add the Comp A by selecting the option (Webdynpro Component-->Selected Entities).
    Click on Finish button so that public part for comp A is created.
    Now build the DC and go to Used Webdynpro components of CompB, give some name and browse to select the used webdynpro component, it will show you the Comp A public part select it and try to finish it.
    Once again build the Dc after doing this.
    Now  you can access the method of comp A in Comp B
    wdThis.wdGetCompA.getX()...
    Hope this helps you..
    Regards,
    Saleem

  • Calling a potal application method in webdynpro component(class)

    Hi All,
    I have a requirement where i need to call a method created in a portal application(.par) in a webdynpro component.
    Any Pointers??
    Regards
    Radhika Kuthiala

    hi radhika,
    You need to create a portal service to call that method from webdynpro.
    I am providing u a url, hope it will help you.
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/b0446f5c-fcb9-2910-e082-88becbe3ddc9
    Regards,
    Ravi Shankar

  • How to call standard CRM transactions into Webdynpro component

    Hi,
    i have a requirement where i need to call the the standard CRM transaction like <i>activity worklist</i> and <i>activity creation</i> into the webdynpro component. Please let me know how to do it, would appreciate it, if provided with a sample code.
    Thanks,
    Suri

    Hi Suri,
    You could use suspend/resume mechanism to jump to the ITS version of these transactions (in case they are ITS-enabled). Starting the SAPGUI from within the browser environment, transferring data/starting a transaction and then returning to the browser is not possible.
    Best regards,
    Thomas

  • Calling a WebDynpro Component from other

    I have a WebDynpro Component. When i click on a button , i need to call another WD Component. How can i do this ?

    Hi Manju,
    You can proceed as shown below. You need to just get the URL of the component which you want to call from your component using the static method construct_wd_url of class cl_wd_utilities. You then just have to pass this URL to the create_external_window method of if_wd_window_manager. (This part can be done by using the code wizard itself.)
    Regards,
    Uday
    METHOD onactioncall .
      DATA : lv_url TYPE string.
      CALL METHOD cl_wd_utilities=>construct_wd_url
        EXPORTING
          application_name = 'Z187442_ALV1'
        IMPORTING
          out_absolute_url = lv_url.
      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( ).
      CALL METHOD lo_window_manager->create_external_window
        EXPORTING
          url    = lv_url
        RECEIVING
          window = lo_window.
      lo_window->open( ).
    ENDMETHOD.

  • Calling a java webdynpro component inside a SAP Workflow

    Hi Experts ,
    Is it possible to call a java webdynpro component inside a SAP Workflow  from the task .
    If yes please let me the procedures .
    Regards
    Sarmistha

    Someone has posted this, Take a look if it helps you:
    "1. Activate your service in transaction SICF;
    2. Activate the WS_HANDLER in SICF (probably you have to do more in SICF, SAP notes will be given to you in your browser when you want to call the service);
    3. Make the correct settings in WF_HANDCUST;
    4. Do ofcourse SWU3 including webserver activities;
    5. Define how you want to call the service via WF_EXTSRV including parameters;
    6. Generate a task from your defined service in WF_EXTSRV;
    7. Incorporate this task in your workflow definition;
    8. Test your workflow. Here you probably get some errror messages that the service cannot be called by for instance inactive ICF services. Activate the correct paths in transaction SICF."
    Regards, IA
    <MODERATOR: For reference, that 'Someone' was Joost in [this thread|Re: Callback from WebDynpro to Workflow]>
    Edited by: Mike Pokraka on Jun 19, 2008 4:52 PM

  • Calling WebDynpro Component from PDK

    Hi
    I need to pass portal runtime information to a webdynpro component. How do i call a webdynpro component from PDK.
    Any Help please.
    Regards
    NagaKishore V

    Were you able to call Webdynpro component fro PDK? Can you tell me how did you accomplish this?
    I have a similar requirement.

  • Call WebDynpro component interface

    Hi experts
    We have developed a WebDynpro component to export context data node to excel file using jakarta poi libs.
    This component have all logic to generate the excel file, and have only one method in component interface controller, this method is called with other WebDynpro components and work fine.
    Now we have new requeriments, we need to generate the same excel file with one scheduled task in KM.
    Anyone know if is possible to call our WebDynpro component interface method from scheduled task?
    Best regards

    Hi Xavier
    If I were you I'd just separate the logic to generate the excel from the WebDynpro component. If the logic is isolated in Java lib it can be invoked from WebDynpro component and also from the KM Scheduler. There is no necessity to invoke the whole WebDynpro component from KM scheduler. Moreover, I think that it's not possible.
    BR, Siarhei

  • 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

  • Enhancing Standard webdynpro component

    Hi friends,
    I have never worked on enhancing standard web dynpro components,
    Now i have got  requirement, In SRM webdynpro component  i have to place Custom Label and  Custom Hyper Link, when i click on that hyperlink, one pop up window shud be open, can any please guid how to enahnce this standard webdynpro component
    Thnx
    Kumar Srini

    Hi,
    To Enhance any standard compoenent, and specially a "VIEW" just follow the below steps:
    1. Go to SE80, Give the Component Name and press Enter
    2. Go to the Desired "View"
    3. Click enhance button (ICON Like spiral,6th from left to right of Application toolbar)
    4. A Pop up will appear asking your Coposite Enhancement name  and Enhancement Implementation name. Create "NEW" on both the occasion.
    Now for UI Enhancements:
    a) Click the "ROOT UI Element container" , right click add the custom UI elements and assign Property values as per your requirement( like binding,text,action etc.,). It is just like adding UI elements in Z-Compoent.
    b) Create actions wherevr required
    For Coding Level enhancements:
    Here, for all the methods which are in the standard compoenent will have "PRE" and "POST" Exits. The difference is "PRE" Exits will render before calling the actual code and "POST" Exit will render after rendering the actual code.
    Note: Till Enhancement Pack (EHP3) we had only PRE & POST Exits. And Now on from EHP 4 and More we do have an option "OVER WRITE" Exit.
    Apart from Exits, we can create our own Events/event Handlers. These Event Handlers will work only for the enhancements.
    We Can write our own logic in the newly created event/event handler.
    Regards,
    S.Meganadhan

  • Calling a View in Used Component

    Hi,
    I want to call View2 when user clicks a button on View1. Screen should refresh and show View2 when user clicks the button on View1.
    View1 is in Component1 from View2 is in Component2.
    Did the following
    1) Declared Component2 Usage In Component1.
    2) Declared an event in the Interface Controller of Component2
    3) Declared usage of Interface Controller of Component2 in the View1 of Component1
    4) Raised an event from the Interface Controller of Component2 based on an action in View1
    Now based on this event I want to load View2 in Component2. The View2 is Interface View of Component2 visible in Component1.
    a) My question is where should I declare a Event Handler for Subscribing the event raised in Component1?
    b) Even after subscribing to this event, how do I load View2
    (I don't want to define a navigation link from View1 to Interface View(View2) at design time, due to design constraints)
    I think I need to call the default plug of Interface View (View2) but how?
    Thanks

    Hi
      Well you can create a External Interface View.
    In addition to the steps you have done ie.
    1) Declared Component2 Usage In Component1.
    2) Declared usage of Interface Controller of Component2 in the View1 of Component1.
    3.Define a used webdynpro component of component2 in component1
    After you have defined the component 2 in component1 go to the Window Navigation modeler in component1.
    One of the options while you embed a view is
    "Embed external interface view. " (this is used for linking views from other components using plugs)
    You will get a window for selecting the Window interface view of component2. When you select that and say ok you would get the view2 of component2 in the diagram view with a inbound plug.
    Now create a outbound plug in Component1 View1 and then link this to the component2 view2 inbound plug.
    Now you can fire the plug on some action when required. That should do the trick.
    Hope that helps you.
    regards
    Ravi

Maybe you are looking for

  • Help With creating a trigger

    Hello All! I am writing regarding a trigger I must create. I have a table that has roughly 10 columns. I must insert rows into a 'history' table when any column in the parent table is updated or, of course if there is an insert on the parent table. I

  • 2 of 3 computers connected to the airport cannot connect to the internet

    I have an airport extreme that is connected to the cable modem, and is set to distribute IP addresses using a single 10.0.1.1 etc. All three computers, a ppc mac mini, a 12" powerbook, and the intel iMac are connected to the base station, and that is

  • HT3275 My back up is not occuring and I am getting the message: sparsebundle is already in use; any clues?

    My back up to time machine is not occuring and I am getting the message: sparsebundle already in use.  Any Clues?

  • Function call in SAP GUI with errors

    Dear All,              When i am calling FM of Comports using OLE Integration i got " Function call in SAP GUI with errors" error now my front end version is 6.40. how to solved this problem. In my Function Module i am creating object like this CREAT

  • JDBC Adaptor problem

    Hi I am doing JDBC-RFC-JDBC Scenario without BPM with quality of service  BE. In this, JDBC sender adaptor is updating the table1 with sent flag = 'X'. Now the prob is the receiver adaptor is also upadting  table1 with some data and  here it is hangi