cancel
Showing results for 
Search instead for 
Did you mean: 

Dropdown field in Table

Former Member
0 Kudos

Dear Gurus,

I have a Table In which I was using one fied as drop down. I am getting These drop down values from BAPI..

Now I need to Populate these Valuse in the dropdown element and Must again save the selected element to BAPI.

Once I add another row in the table then also the same functionality must be done.

Can someone please help me in this As soon as possible??

Regards,

Radha.

Accepted Solutions (0)

Answers (2)

Answers (2)

p330068
Active Contributor
0 Kudos

Hi Radha

Please refer to below thread and populate the dropdown values in the table.

Search how to populate data's in the dropdowns. Search for supply fuction for more details in the SDN.

Hope it will helps

Regards

Arun Jaiswal

former_member214651
Active Contributor
0 Kudos

Hi,

Please refer to the code below to add values dynamically to a Dropdown from a BAPI:

IWDAttributeInfo attrDD = wdContext.node<nodename>().getNodeInfo().getAttribute("<attribute name>");
ISimpleTypeModifiable DDSimp = attrDD.getModifiableSimpleType();
IModifiableSimpleValueSet DDValueSet = DDSimp.getSVServices().getModifiableSimpleValueSet();

for(int i = 0; i < <size of BAPI table>; i++)
{
     DDValueSet.put(<key at position i of the node>,< value at position i of the node>);
}

For saving the value to BAPI write the following code:

for(int i = 0; i < <size of your table>; i++)
{
     //set the values to the BAPI structure
}

Regards,

Poojith MV