on 08-04-2008 9:39 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
you can acheive this by using supply functions .
Regards,
Satya.
Edited by: Satya on Aug 4, 2008 10:55 AM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
98 | |
11 | |
11 | |
10 | |
10 | |
8 | |
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.