on 01-04-2008 3:52 PM
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?
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Lieven,
can u send the code u have written for passing the paramaters to RFC??
regards
Sumit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.