Calling a view into another Dynpro Component

Hi,
        Could you please let me know the steps involved in calling one of the view into another abap webdynrpo applications.
Thanks,
Kumar

If you want to use a view from another WD Component, then you have to have a Component Usage for that other view.  Have you ever used the ALV Component?  If so this is exactly the process that you would follow.  You can read more about the techique here:
http://help.sap.com/saphelp_nw70ehp1/helpdata/en/a7/1d8b412bb5b35fe10000000a1550b0/frameset.htm

Similar Messages

  • How to include one view into another view

    Hi SDN's,
                   Could any please tell me,How to include one view into another view.
    In my requirment.I want to create a 'Z' view for an interface .In that  view i have to take,
    1) Ship-to-email adrr by
                              LIKP-KUNNR -> KNA1-ADRNR
                              KNA1-ADRNR -> ADR6-ADDRESNUMBER.
    2) E-mail addr of person who created the document.i.e
        LIKP-ERNAM -> USR21-BNAME.
        USR21-ADDRESNUMBER ->  ADR6-ADDRESNUMBER 
        USR21-PERSNUMBER -> ADR6-PERSNUMBER.
       In both the case we have to pass ADDRESSNUMBER to ADR6 table.
    If we pass these condition it fails,B'Coz at a time it passes Two ADDRESSNUMBER and a PERSNUMBER.
    So i created two which fetches only the email addr of  person who created the document.and another view fetches Ship-to-email addr.
    Now i want to include the second view into first view . Is it possible?or please
    tell me someother way to get these email addresses in a single view.

    hi
    as per my knowledge, nested views are not possible. However, while creating a new view, selection method will not giv u option to select the already created view(S) except the tables..i think so.
    regards,
    shamim

  • Problem in changing CAPTION (header) of a View in Web dynpro component

    Hi All,
    I want to change the Caption (header) text of a View in Web dynpro component. But when i transport it the changes are not reflecting in other systems.
    Also when i activate the Web dynpro component in development system, it issues a message "The text belongs to package $TMP". But the Web dynpro component is assigned to a custom package.
    Any pointers to resolve this is appreciated.
    Thanks in advance.
    Regards,
    Navin.

    Hi
    Please check the 'text' property of the caption.
    e.g : If you are using OTR to bind the text then it might be possible that the OTR text belongs to $TMP package.
    Please explain how have you binded the caption ?
    Regards,
    Puneet

  • Call a view's method from Component Controller.

    Hi
    Is it possible to call a view's method from Component Controller.
    Regards
    Nikhil

    Hi Tummuru,
    I have created an event in Component Controller by the name toMenuView. Now I created a method in which this event is getting fired. Foll. is the code of the method.
      public void fireToMenuView( )
       wdComponentAPI.getMessageManager().reportSuccess("fireToMenuView");
       wdThis.wdFireEventToMenuView();
    Now I have created an event handler "handleToMenuView" in the MenuView and subscribed the event handler to the event in Component Controller.
    The control is reaching to the fire event in component controller but not to the Event handler in view controller.
    What am I missing.
    Regards
    Nikhil

  • Reading the data from one component view into another component view

    Hi All,
    I have requirement to read the data from one component into another component while creating the service order. Here are the details.
    Main View for Service order: BT116H_SRVO in that we have two assignment blocks like Organizational data(BTORGSET) and amount allocation(BTAMNTALL).This two blocks are two different component which are associated with main component(BT116H_SRVO).
    I need to read the sales org data from component/View(BTORGSET/Orgsetdata) into Component/View(BTAMNTALL(HdrBillPlanDet) method DO_VALIDATE_INPUT.
    I searched in SDN but all the posts are related to the data exchange between two views in same component. But My scenario is different as explained above.
    Refer the attachments for the component link..
    Please let me know how we can achieve this one..
    Thanks,
    Sapsar.

    Finally I was able to fix my code...My Mistakes were need to read the parent node above three levels and need to use the relation entity name while reading the data..
    Below is the correction code
    IF iv_index IS NOT INITIAL.
         lr_iterator ?= collection_wrapper->get_iterator( ).
         lr_current ?= lr_iterator->get_by_index( iv_index ).
         lr_entity ?= lr_iterator->get_by_index( iv_index ).
       ELSE.
         lr_current = collection_wrapper->get_current( ).
       ENDIF.
    *loop back to root entity
             WHILE lr_entity->get_name( ) NE 'BTAdminH'.
               lr_entity = lr_entity->get_parent( ).
             ENDWHILE.
    *Get the related entity
             IF lr_entity IS BOUND.
               lr_collection ?= lr_entity->get_related_entities( iv_relation_name = 'BTHeaderOrgmanSet' ) .
               IF lr_collection IS BOUND.
                 lr_orgset_m = lr_collection->get_current( ).
    *            lr_orgset = lr_orgset_m->get_related_entity( iv_relation_name = 'BTOrgSet' ).
                 lr_orgset = lr_orgset_m->get_property_as_string( 'SALES_ORG' ).
               ENDIF.
             ENDIF.
    Thanks,
    Sapsar.

  • How can we call methods of one web dynpro component in another one

    Hello Team,
    How do I call  one Web Dynpro component methods in another Web Dynpro component.
    How do we use public parts.
    thanks

    Hi,
    You want to use Comp2's getData() method in Comp1
    If both the WebDynpro components are in the same DC:
    1. Create a wrapper method (with the same signature) in the Comp2's Interface controller. And invoke the Component contorller's getData() method in this method using the below code.
    wdThis.wdGetComp2Controller.getData()
    2. Now Go to the Comp1 and right click on UsedWebDynproComps and add this Comp2 as a UsedWebDypro component.
    3. Now go to the Component Controller of Comp1 and in properties tab add the usage declaration of Interface controller of Comp2.
    4. Now using this below code you can access the method of InterfaceController of Comp2.
    wdThis.wdGetComp2Interface().getData();
    If both the WebDynpro components are in different DCs:
    1. Right click on Comp2 and select Add to public part on Comp2 in DC2.
    2. Now Add this public part in DC1 UsedDCs.
    Now repeat the above stpes 1...to..4. of  "If both the WebDynpro components are in the same DC" same.
    Regards,
    Charan

  • How to call a view from another

    Hello Experts,
            I have embedded a view (let us call this view 'A') in standard homepage. This works fine. Now on click of a button on this embedded view I want to launch another view that is also created by me, in the same component in which I had created view A. But I do not know how to launch this second view
         Could you please tell me how to call/launch a view from another on click of a button?
    Regards,
    Prafful

    Hello Prafful,
    I guess by launching you mean substituting one view by another. It can be achieved by declaring a navigational link in the runtime repository from one view to another. You have to create an event handler on the button and outbound plug in your view using the wizard. Then, on the event handler you call an outbound plug where you trigger a navigation using this navigational link and the view A will be replaced by view B.
    A code which needs to be done in outbound plug:
    me->view_manager->navigate(
    source_rep_view = me->rep_view
    outbound_plug   = 'NAVLINKNAME'
    data_collection = iv_data_collection ).
    Best Regards,
    Yevgen

  • 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

  • How to call one  JSFF into another JSFF

    Hi,
    I am very new to ADf. Could you please tell me how to call one JSFF inside another JSFF. We have a common pop-up written in one JSFF. Is there any best approach to get this pop-up into other JSFF.
    Thanks in Advance.
    Regards
    Narasimha

    If you want to resue the jsff code, make use of bounded task flow with page fragment and then use it as a region.
    For more details you can refer: http://docs.oracle.com/cd/E21764_01/web.1111/b31974/taskflows_regions.htm
    One more:
    http://docs.oracle.com/cd/E18941_01/tutorials/jdtut_11r2_57/jdtut_11r2_57.html

  • Calling one application into another

    how can i call one application file into another so that
    session should not expire in any way
    Has anyone done such like that

    Put the code into a cfc or custom tag and have both
    applications call it as required.

  • Transaction CKECP into Web Dynpro component

    Hi,
    I have created a dynpro component, and via the 'Code Wizard' have imported the different screens under the SAPLCK_ECP_GUI program. The GUI is all setup, but I have a problem in implementing the function modules that are behind each of the three select buttons. I actually thought that Dynpro would import this, because it imports calendar and F4 search functions etc in other fields.. Via debugging in the 'CKECP' transactions I have documented some function modules etc. I have tried calling some of these functions in an action that I have mapped to the correct pushbutton, but I cannot get it to work. It results in rabax_state error messages, and "cannot find functkonmodule" etc....
    Does anyone have any tips in general about creating dynpro components from existing R/3 programs?
    Thanks!
    Best Regards
    Arne Jakob
    Edited by: Arne Jakob Hidle on Apr 1, 2008 11:12 AM

    There is a exercise # 24 in BC400 document. Please follow it. This exercise helps to call your own function module.  If you have more question, please reply to this mail.

  • Setting text to overflow into another text component in flex

    This was pretty easy when I've done it in html but I can't find any info on how to incorporate this into flex. I want to get this sort of thing into my app where once the text reaches the bottom it wraps underneath the bottom of the left hand image the way it does in the top product here in this html site:-
    http://www.imageproduct.co.uk/acatalog/glass_mirror_tvs.html
    I've tried to emulate this and I have a top left container containing all my images which is within a hbox and also within this hbox on the right is my text. The text box has it's height and width set to 100 so it takes up 100% of the h box height wise and the remainder of the width left over from the product image which resizes based on what product is selected. The  maxHeight of the h box is set to 400 (my images only go up to this size) but what I want is when the textbox exceeds this it will 'overflow' into another text box below the image/text like in that example. I have no clue how to implement this though.
    Can anyone help me out?

    Thanks coldMiner,
    I tested that. I presume that it can be expanded to go
    page1_txt, page2_txt, page3_txt (replacing test_txt and rest_txt)
    and so on. And I can see how it works for the text string, but how
    do I import an external text file to replace the string?
    Thanks,
    Art

  • How to call method of one View into another view?

    Hi Gurus,
    I am having 2 views defined in a main window say view1 & view2 i have method get_data defined in view1 & now want to call it in view2.
    Is this possible?
    Can this is also possible if the 2 views belong to a different window?
    Regards
    Rahul

    Hi.
    what type of sample code do you need? You do already have the method.
    What ever you do in it do it in the component controller.
    when calling it from the view instead of wd_this->get_data call wd_comp_controller->get_data( ).
    What data do you fetch in this method?
    If you just read context data you have to put these nodes in the component controller context also to share it between multiple views.
    If you need more info just paste the code of the get data method and explain what you are doing in it.
    Cheers,
    Sascha

  • Call view of another WDA Component and pass the value to it

    Dear Experts,
    I have a wda component1 with window1 and view1
    wda1 has a node1 with one attribute carrid (no default value).
    view1 also has the same structure and is mapped with it.
    (here i have one input field of type carrid)
    This view will be shown in wda2.
    now i have wda2 with window2 and view2 with the same structure & names as above (node & attribute)
    But here the carrid has a default value of 'AA'(so that when view1 is displayed in wda2,data is passed from here wda2).
    in wda property->used components i have used wda component1
    in view property->used components i have used wda component1
    view2 has a viewcontainer.
    In window2, in the view container i have embedded the view1 of the wda1.
    In the component2 context node, the default value of carrid is AA.
    when i have executed the application of wda2, it was showing the input field of view1 of wda1.
    but it was empty ie., had no value (AA).
    Now My problem is if i have the value AA in wda2 for the attribute, how does it get passsed to wda1.
    Regards
    Sajid

    Hi Sajid,
    Let me first try to say as to what I thought you were trying to achieve.
    You have 2 components say SUB & MAIN. Now in both the components you are trying to display an input field on your layout. This input field is bound to an context attribute CARRID & you have given it an initial value in only 1 component. (MAIN component) Now within your component MAIN you have an VIEWCONTAINERUIELEMENT & you are trying to display the view from SUB within it. But you end up with the input field from your MAIN view displaying the default value as AA whereas the view from SUB displays a blank input field. You now want to be able to have this input field fetch the value from your MAIN component and get initialized. So if this is your requirement then you can continue reading below:
    1) When you create your context at component controller level in component MAIN you have a property for the node which says as: "Interface Node" Just checkmark this checkbox. When you do this you would be able to share the data within your context nodes across other components.
    2) Specify a default value of AA in the "Default Value" property of the attribute in component MAIN
    3) Now go to your other component SUB which you would like to also get initialised. Define a usage of your component MAIN within this component.
    4) Go to your component controller & create your context node & attribute with exactly the same names as how you had created in your MAIN component.
    5) Do a mapping between the interface controller of your MAIN component & the component controller of your SUB component
    6) You would be able to see that the appearance of the node has changed to an interface node. This means that your SUB component now has an exact replica of your MAIN components context data.
    Test your application after following all these steps & you should be fine.
    Regards,
    Uday

  • 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

Maybe you are looking for

  • Payment terms of the credit memo

    Hi When I create a normal credit memo, the credit memo payment terms are derived while when I create a credit memo against an MIRO document, the purchase order payment terms are derived. But even for the credit memo created via MIRO we want the credi

  • Why is the right side of my MacBook Pro screen distorted?

    I've had my MacBook Pro for 4.5 years and have really had little trouble with it. A little over a year ago, however, someone in my family dropped something on the laptop when it was closed and broke the screen.  One trip to the Genius Bar later and w

  • Receiver SOAP Adapter (HTTP AXIS)

    Hi Experts, I need to use receiver soap adapter to communicate with a WebService, actually it is a AXIS service i can see when i give the soap url in web browser. my question is for axis service, does it mean i have to use HTTP AXIS in the receiver c

  • Implement Java Class into Report Builder

    Hi, I have problems implementing own java classes into the Report Builder. OK, let say I am running a simple report using STUDENT_ID and STUDENT_NAME. What I wanted to do is to concatenate a string "XXXX" to one of the records in STUDENT_NAME (e.g. S

  • Modifying the redirect page of an input behavior

    I created a user input behavior for a user registration page. I also added a check new username behavior. It all works well. The problem isn't really a big problem because it all still works. But, it would be nice if I could modify the code that Drea