Skip to Content
avatar image
Former Member

I have to call the view layout of first component in second component

Hi all ,

I have to call the view layout of first component in second component whenever I click a button on the second component.

I need to create a view where i have button which needs to be clicked in the second component.

Again on clicking the button of the second component , I have to call the first component view layout in the second view of the second component.

Please specify in detail as to how to do this?

santosh.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Feb 23, 2010 at 08:16 AM

    Check for [Component Usage Help Documentation|http://aiokeh.wdf.sap.corp:50000/SAPIKS2/contentShow.sap?_SCLASS=IWB_STRUCT&_SLOIO=7C3545415EA6F523E10000000A155106&TMP_IWB_TASK=DISPLAY&RELEASE=690&LANGUAGE=EN&_SEQNUM=57&_LOIO=0E496AD66C601349A730502D3EA26E05&_CLASS=IWB_EXTHLP] in WebDynpro.

    For the called view you have to mark it as interface view.

    Also the context nodes and attributes which have to be exposed for usage in called component hve to be marked as Interface nodes.

    In the calling component you have to declare a component usage for the component which is to be called and then proceed further.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Feb 23, 2010 at 10:18 AM

    First create 2 views. Create inbound and outbound plugs for both the view.

    Go to Windows and add both the views.

    In the outbound plug of the main view, right click and click on create navigation link. Use the F4 help and choose the inbound plug of the second view.

    Do the same for the other view also.

    In the button click do the following..

    Click on Code Wizard -> General. In that select the Start navigation radio button and give the outbound plug.

    Refer to the below link for example.

    [Navigation Between Views|http://wiki.sdn.sap.com/wiki/display/sandbox/NavigationBetweentheviewinWEBDYNPRO+ABAP]

    Add comment
    10|10000 characters needed characters exceeded