cancel
Showing results for 
Search instead for 
Did you mean: 

Standard SRM application: how to call one component method from other webdynpro component

0 Kudos

I have enhanced a standard srm webdynpro application for Shopping cart.

I added custom fields on item level as well as header level.

How to set the visibility of item level fields based on header level fields.The item level fields should be reflected when action performed on header level fields.

Can I call method from item level in header level? or is there any other way?

Accepted Solutions (1)

Accepted Solutions (1)

daniel_marlen
Active Participant
0 Kudos

Dear Umesh,

The visibility of the fields depends on the Meta Data Framework. In this Framework you can maintain static and dynamic attribute for visibility. To make the field visible dynamically, you need to create a class and method that contains the relevant logic (checks the header field and sets the visible flag accordingly) and maintain it in the relevant SPRO customizing.

For more information, please refer to Wiki page https://wiki.scn.sap.com/wiki/x/EpjnH. Here you can also find an example standard dynamic class that you can use as a reference to know, which field you need to fill to make the field visible.

Best Regards,

Daniel

Answers (1)

Answers (1)

0 Kudos

Hi Daniel,

Thanks for answer. I have one doubt 'Can we set visibility of other fields based on action of current field through dynamic class. I checked CS_METADATA structure but i didnt found the field name' Please suggest.

Thanks in anticipation.

Best Regards,

Umesh

daniel_marlen
Active Participant
0 Kudos

Hi Umesh,

Could you please provide a specific example case? What action on header field should trigger the visibility change?

Best regards,

Daniel