Skip to Content
0
Former Member
Nov 10, 2006 at 11:43 AM

How to handle an Adaptive RFC table and structure in context?

13 Views

I cannot successfully populate and pass a structure import parameter for Adaptive RFC (SAP BAPI). For a table the following works:

ModelStructure modelstrucvar = new ModelStructure();

Tablestruct tablestructvar = new Tablestruct();

tablestructvar.setvarparam( value );

.......

modelstrucvar.addTablestruct( tablestructvar );

wdcontext.nodeModelStructure().bind( modelstrucvar );

wdcontext.nodeTablestruct().bind ( tablestructvar );

I have tried wdcontext.createStructname();

and then

wdcontext.currentStructname().setparams( values );

but this does not seem to work either.

What should I use to create and populate the context instance of the structure import parameter?

Thanks

Vicky