cancel
Showing results for 
Search instead for 
Did you mean: 

How to pass information from one SAP standard webdynpro component to anothe

Former Member
0 Kudos

How to pass information from one SAP standard webdynpro component to another?

On the click of the tabs in one SAP standard webdynpro component, we want to display some help text in the vertical navigation strip which is in another SAP standard Webdynpro component?

Accepted Solutions (0)

Answers (4)

Answers (4)

Chaitanya_Priya
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi,

You can refer the below thread.

[]

you can refer the link which explains about navigation in WD.

[http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/308ebfe9-a07a-2c10-e494-9849d50efc88&overridelayout=true]

Priya

Former Member
0 Kudos

hi Sandeep ,

hv u folowed these steps :

// component B using component A

1 in the component B , Double click the component in the object tree and choose the tab Used Components.

2 Define a usage of your component A within this component.

3 Do a mapping between the interface controller of ur MAIN component B & the component controller of

ur SUB component A 4 Before you can call the Interface Controller method of the used component in ur view ,you have to declare that the view controller can use the Interface Controller of the used component. By default only the component controller can access used components directly, view controllers have to specify this explicitly.

5 go to the tab Properties of the B, click the button Create Controller Use and select the INTERFACECONTROLLER of the component A for component use .

6 go to WINDOWS , inside ur View container right clck to select embed view to select the view to be embedded

n hv u refered this article on component usage :

http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/2e71ce83-0b01-0010-11a4-98c28a331...

regards,

amit

Former Member
0 Kudos

hi,

Use the concept of Assistance Classes.

REfer teh SAP Online help :

http://help.sap.com/saphelp_nw70/helpdata/EN/43/1f6442a3d9e72ce10000000a1550b0/frameset.htm

Use the Same Assistance class in all the components and set an Attribute in Assistance class with the information while in One Component.

Now in your 2nd Component , you can access that Attribute of Assistance class and check the value set.

To call the attribute/method use the instance wd_assist.

SAP Standard Component : DEMO_COMMON_ASSISTANCE1

Former Member
0 Kudos

hi Sandeep ,

u need to do component usage for the same

refer the tutorial :

http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/2e71ce83-0b01-0010-11a4-98c28a331...

Example :Declaration of u201CDEPARTMENT_INFO u201CComponent use within the component u201CZWORKEXu201D for Component Usage

follow these steps :

1 Double click the component in the object tree and choose the tab Used Components. Create new Component Use DEPARTMENT_INFO by adding the entries directly in the Used Components List.

Before you can call the Interface Controller method of the used component you have to declare that the view controller can use the Interface Controller of the used component. By default only the component controller can access used components directly, view controllers have to specify this explicitly.

Therefore go to the tab Properties of the ZWORKEX, click the button Create Controller Use and select the INTERFACECONTROLLER of the DEPARTMENT_INFO component use .

2 go to WINDOWS , inside ur View container right clck to select embed view to select the view to be embedded

regards,

amit