cancel
Showing results for 
Search instead for 
Did you mean: 

How to pass multiple values from 1 dynpro component to another?

Former Member
0 Kudos

On click of button in view of dynpro component 1 i would like to call a particular view of the second dynpro component to display the details..

  • How to pass multiple value between them..how to pass internal tables?

      

  • how to call the particular view of the 2nd dynpro component.not as pop but in same.

Help me out..

Accepted Solutions (0)

Answers (4)

Answers (4)

chengalarayulu
Active Contributor
0 Kudos

Check the below document:

http://scn.sap.com/docs/DOC-25702

In this document create an Interface node in component: ZPP_TEST_COMP_USAGE_N

then, map this to context of main component ZPP_TEST_COMP_USAGE,

set the values to created node at main component level ZPP_TEST_COMP_USAGE_N,

now fire the plug / open popup...

try

former_member222068
Active Participant
0 Kudos

Hi,

   To pass the data between the components:

1. Create a node with required attributes and define the node as an interface node.

2. Go the other component and define external context mapping.

2. Create view container UI element in the view1

3. Define component 2 as used component and Enter Reuse as a alias name under the component Use column in the component 1.

4. Go to window of the view 1 assigned

5. Right click on the view container of the view-->embed view-->click on F4 of View to be embedded

6. From the displayed POP UP, Select View of the second component and click enter

This is the way,  how we access the data between the components and calling the view of other components.

Regards,

Sankar Gelivi

Former Member
0 Kudos

Hi ,

Question 1:-

  • how to call the particular view of the 2nd dynpro component.not as pop but in same.

->When ever u want to use one component view into  another component you have to use 'COMPONENT USAGE ' Concept. So to do this fallow below steps...

we have 2 components .. comp1   and comp2.

comp1  has  view1 & view11

comp2  has  view2 & view 22.

Now u want to call view 1  into view2...

Steps:-

in comp2 u have to inculde comp1....when ever u do this then automatically u can call the views of comp1  into comp2.

create view container in comp2 and embed the view1 into that view container....

Then it automatically comes into  comp2 -view2.

Pls refer below link to get more exposure...

http://www.saptechnical.com/Tutorials/WebDynproABAP/Reusability/demo.htm...

Question2:-

  • How to pass multiple value between them..how to pass internal tables?

-> If u want to send data from one comp1 to comp2...

then u have to declare  method as interface method... and u can access the nodes also  to do this  u have to create node with property  interface ...  when ever u do like above  then  automatically we can send data....

In above link  u can find  interface methods and nodes......  If u have any doubt post here...

Regards,

Venkat

shankar_gomare
Explorer
0 Kudos

Hi,

The context is media for passing values between two controllers, when you define reusable component control check interface property of context node. This will allow you to share values between different components.

There are several ways to call views based on dynamic conditions, easiest would be to create window for each view in 2nd component controller and embebd them in 1st component controller using viewuielement and call accordingly.