cancel
Showing results for 
Search instead for 
Did you mean: 

Reg : Passing multiple rows of table data to the RFC

Former Member
0 Kudos

Hi,

I am passing one row of data from webdynpro table to table of RFC.

How to pass multiple rows of data.

Please help me out.

Thanks

Risha

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi

In table ui element select the properties ,selection Mode should be muti and node selection should be 1..n and

Use this code

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

{

//if you using string

String Username=wdContext.nodename().getElementAt(i).getusername();

//if you using int

int UserId=wdContext.nodename().getElementAt(i).getuserid();

//pass this value to your bapi as a input

}

Regards,

Sundaresan

Edited by: SUNDARESAN BALARAMAN on Aug 4, 2008 11:08 AM

Answers (3)

Answers (3)

PradeepBondla
Active Contributor
0 Kudos

Hi,

many thread on this in SDN... check...

like

PradeeP

Former Member
0 Kudos

hi

Person--->node(cardinality 1..n)

FirstName-->Attribute

LastName-->Attribute.

Person1-->RFC table node.(cardinality 1..n)

FName-->Attribute

LName-->Attribute

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

{

//Retrieving values from table

IPrivate<View>.IPersonElement element1=wdContext.nodePerson().createPersonElement();

String fname=element1.getFirstName();

String lname= element1.getLastName();

wdContext.nodePerson().addElement(element1);

//Inserting into table of RFC

IPrivate<View>.IPerson1Element element2=wdContext.nodePerson1().createPerson1Element();

element2.setFname(fname);

element2.setLname(lname);

wdContext.nodePerson1().addElement(element2);

}

Regards

sowmya.

Former Member
0 Kudos

Hi,

you can acheive this by using supply functions .

Regards,

Satya.

Edited by: Satya on Aug 4, 2008 10:55 AM