cancel
Showing results for 
Search instead for 
Did you mean: 

How to access columns of ALV(in Component B) through Component A?

preethi_santhanam
Participant
0 Kudos

Hi,

I have 2 Web Dynpro Components; 'Component A' and 'Component B'.Component A has a WD application.

Component A has a component usage of Component B. Component B has an ALV component usage.

How can I add a new column to the ALV of Component B from Component A?

Thanks & Best regards,

Preethi.

Accepted Solutions (0)

Answers (1)

Answers (1)

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

You can place the component usage of the ALV into a pulibc attibute of the component controller of Component B or pass it back as a returning/exporting parameter of an interface method in Component B's controller. Either way Component A can get access to the ALV usage object without having to actually declare a component usage.

preethi_santhanam
Participant
0 Kudos

Hi Thomas,

Thanks for your reply. Component A has ViewA which just contains a View Container. Component B has ViewB which fits into this View Container via Component Usage. This ViewB has an ALV usage. I need to make changes to this ALV columns.

Unfortunately, Component B, is a standard component (FKK_WDY_DMS) and the attributes are not public. Any other views?

Thanks & Regards,

Preethi.

preethi_santhanam
Participant
0 Kudos

Hi Thomas,

Apologies, I see that they are public attributes. I shall give it a go.

Thanks & Best Regards,

Preethi.

preethi_santhanam
Participant
0 Kudos

Hi Thomas,

Tried it, wasn't able to.Could you please direct me to the code snippet?

Best Regards,

Preethi.