Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Passing Table as Input to Model RFC?

hi @,

I have a RFC which needs input table. I have data populated in another node.How to pass the data directly from Node to Model input table as this input table doesn't have any method like .add or so.

My RFC struct is like this --

Z_A havning struc

-


strucZ_B having ele

-


1

-


2

-


3

I have to loop at the available niode and populate but in the add method for the RFC context I am getting method with model as input .

Regards,

Former Member
Former Member replied

Hi,

Private<name>View.I<value node name >Node node = wdContext.node<value node name >();

Private<name>View.I<value node name>Element ele;

<your rfc name> input = new <your rfc name>(); // your rfc name

wdContext.node<your rfc name>().bind(input); // bind

<table name> inputTable;

for (int i=0; i < node.size(); i++ ) // value node - where data is available

{

inputTable= new <table name>();

ele = node.get<value node>ElementAt(i);

inputTable.set<Attribute>(ele.get<Attribute>());

......

input.add<table name>();

}

// execute rfc.

0 View this answer in context

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question