Skip to Content
avatar image
Former Member

Global Data : Pass data from one component to another (used) component ?

Hi guys.

Can someone give me some guidance on the following :

I am aware of how to pass Global data using the attributes section of the controllor. This can thus be shared amongst views of that component.

However, my issue is that my component uses another component.

How do i pass data from componentA ( and its viewA) to componentB ( and its viewB) where B is used in A

I thought i could use the attribute section but wasnt working so i guess that only works within one component.

At the moment i have to use export/import memory id....which doesnt look that good 😊

Thanks...

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    avatar image
    Former Member
    Jun 17, 2011 at 09:00 AM

    you can pass data to the used componets in following ways

    solution 1:

    1. expose the method on Component B, which will accept the parameters which you want to pass

    2. while initialising the Component B, call the exposed method of B and pass the values

    Solution 2:

    1. Create a context node and attributes in Component B, and set 'InputElement (ext')

    2. in the source component A, set the values for the context node

    BR Saravanan

    Add comment
    10|10000 characters needed characters exceeded

  • Jun 17, 2011 at 06:37 AM

    Hi

    Please check this...

    http://wiki.sdn.sap.com/wiki/display/WDABAP/ExampleforpassingvaluesfromoneApplicationtoanotherApplicationinWebDynproABAP.

    Cheers,

    Kris.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jun 21, 2011 at 06:26 AM

    Tnks.

    Add comment
    10|10000 characters needed characters exceeded