cancel
Showing results for 
Search instead for 
Did you mean: 

DropDownByIndex - filter values dinamically

matteo_montalto
Contributor
0 Kudos

Hi gurus,

I'd like to filter values in a standard dropDownByIndex on the basis of certain conditions.

In details:

we are working on SRM 7, specifically in the standard comp/IF webdynpro /SAPSRM/WDC_UI_PO_DOTC_IT, view V_PO_DODC_BASIC. This view contains a table showing an overview of the Purchase order items. A toolbar is available for the user and allows to add a position or a subposition.

By standard, a position can be a Material (goods) or a Structure (which is a node that can contain other structure or service items), while a subposition can be a service line, a limit or a structure itself.

Now, if the user press an ADD_SUBPOSITION button on a STRUCTURE item, the field PS_IPT -which contains the item's type- for the added position can either be filled with:

- service line;

- limit;

- structure.

In our scenario however, we don't want that a structure can itself contain another structure. So basically we'd like to have PS_IPT dropdownbyIndex showing only:

- service line;

- limit

for an added subposition.

I searched for fixed values binded to PS_IPT but cannot find any useful information on the view, also because that dropdownbyIndex field is already dynamic: for example, when we add a position only structure and material are available.

It changes on a subitem, allowing the three values above described.

How can I influence that behaviour in order to remove Structure from the values in a subposition?

Thanks in advance.

Accepted Solutions (1)

Accepted Solutions (1)

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

>How can I influence that behaviour in order to remove Structure from the values in a subposition?

I don't have advice on your specific application. In general, however, DropDownByIndex get their possible values from a context sub node. There must be some logic somewhere in the component that is filling this context node the DDLB is bound to. I would suggest searching through the component for any usage of this context node name.

matteo_montalto
Contributor
0 Kudos

Thanks thomas,

right, I had to investigate the component, there was a method to supply IPT dropdown.

Answers (0)