cancel
Showing results for 
Search instead for 
Did you mean: 

Bind values to RFC

Former Member
0 Kudos

how to set values to the I_T_Area of the table in RFC from the Web dynpro application

Thanks in advance

CSP

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Pradeep,

Set the table and the structure in the wdDoInit () of the component controller.You can use the following code to set the values to RFC:

//instantiate the RFC

<Z_Test_Function_Input> input = new <Z_Test_Function_Input()>;

wdContext.node<Z_Test_Function_Input()>.bind(input);

Setting the values in the table "I_T_Area":

I_T_Area area;

for(int i=0;i<10;i++){

area = new I_T_Area();

area.set<Name>(<"name">);

area.set<Number>(<i>);

input.add<Mytab>(area);

}

and also follow the following link:

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/user-interface-tec...

Thanks n Regards,

Jhansi Miryala