Skip to Content
0
Former Member
Oct 12, 2005 at 12:53 PM

Adding another element to a model node

11 Views

Hi,

After calling a BAPI I want to add another element to a model node. My problem is, that when I use bind() or addElement() all elements are deleted and only the one i added is there in the end.

My coding for that is the following:

// Add SalesOrg 9999 = Combo

IPublicZ_Hus_P22_Get_Properties.IIt_Sales_OrgNode soNode =

wdContext.nodeOutput_Z_Hus_P22_Get_Properties().nodeIt_Sales_Org();

Zvkorg model = new Zvkorg();

model.setVkorg("9999");

model.setVtext("Combo");

IPublicZ_Hus_P22_Get_Properties.IIt_Sales_OrgElement combo =

soNode.createIt_Sales_OrgElement(model);

wdContext.nodeIt_Sales_Org().addElement(combo);

Would be great, if you can tell me what's wrong with that coding. Thanks in advance.