cancel
Showing results for 
Search instead for 
Did you mean: 

RFC: tables parameter

Former Member
0 Kudos

Hi,

I'm trying to call a FM, SAP_WAPI_WRITE_CONTAINER. It has a tables parameter so the model's node corresponding to the input (not the output) for the table is mapped to a model node in my controller's context.

I create new elements for this node, add them to a collection and bind the collection to the node. When I then execute this function module, and use the ABAP debugger to see what happens, the tables parameter is empty.

Any commonly used mistakes I might have made?

Accepted Solutions (1)

Accepted Solutions (1)

former_member197348
Active Contributor
0 Kudos

Hi,

Instead of creating elements of the input node, create a variable of the structure of the node. You can find out the structure name in properties of the node.

for(int i=0;i< tablenode.size();i++)

{

structure <package>.<name>

e.g. Zstrut input = new Zstrut();

Set the fields

input.setX();

.............

wdContext.current<FM_Input>Element().modelObject().add<node>(input);

}

This works fine.

regards,

Siva

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Lieven,

can u send the code u have written for passing the paramaters to RFC??

regards

Sumit