cancel
Showing results for 
Search instead for 
Did you mean: 

Display data in a view by writing action in other component

Former Member
0 Kudos

Hi all

I need some help to diaply data. My problem is like this...

I have a component ComponentA. In the ComponentA

I am using a BAPI model and mapped to controller context .In the component controller I have code for executeBapi() and code for wdDoInit() to initialise BAPI parameters.

I want to call executeBapi() method from another component ComponentB.I want to call this executeBapi()method automatically so as to prepopulate the data in the view beased on the parameters defined in WdDoInit() method of ComponentA.

I hope my problem is clear to you all.Can any one help me .Help is very much appreciated and I promise to award points.

Regards

Maruti

chandra-s@mailcity.com

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi maruti.

1.Its Possible. But How?

Select your first custom controller. Goto the properties tab. There U ll find Required Controller. Click add and select your second controller.

2. Goto your code.

paste this

wdThis.wdGetyour2Controller().executeBapi();

Get back for help...

Vijay

Former Member
0 Kudos

Hi Vijayasarathy

Thank you for your mail. I am trying your code.I just want to check that if I keep the code in WDinit() method if a new view will it execute..?. I need that code to execute with out firing any event.i.e It should

execute automaticall.

Regards

Maruti

Former Member
0 Kudos

Hi,

Can plz expalin your problem in details again.