on 08-16-2010 8:37 AM
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
78 | |
9 | |
9 | |
7 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.