on 07-21-2006 3:28 PM
I need to place in httpsession the "model" (structure) returned from my RFC call.
This code does not work:
Zemployee = wdThis.wdGetGetEmployeeController().wdGetContext().nodeOutput().nodeE_Employee().currentE_ReturnElement();
How do you get a handle to the "model" following an adaptive rfc execute?
Thanks,
Kevin
Hi
try This
//If the out put is one record
Zemployee =wdContext.currentOutputElement().getE_Employee();
//for multi records
IPrivate<ViewName>.I<DropName>Node node = wdContext.node<DropName>();
int len=wdContext.node<BAPIList>().size();
for(int l=0;l<len;l++) {
String returndata=String.valueOf(((IPrivate<viewname>.I<BAPIList>Element)(wdContext.node<BAPIList>().getElementAt(l))).get<Parameter>());
IPrivate<ViewName>.I<DropName>Element element = wdContext.create<DropName>Element();
element.set<Param>(returndata);
node.addElement(element);
}
Kind Regards
Mukesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Kevin,
Every executable RFC model class has "Output" relation which contain result model class. So, to get instance of model object (<i>the whole structure at one time</i>) at one time you need to do something like:
wdContext.currentOutputElement().modelObject()
And you will get the model class of result where you can find all properties by typed access.
Best regards, Maksim Rashchynski.
Hi kevin
get this like
wdContext.currentmodeloutputelement().getmethod();
And explain you want to handle the outputelement?
Handle the outputelement means,
Determine the number of outputs
Case 1:
if single
get,
wdContext.current<BapiOutputElement>.get<attribute>
Case2:
If it is multiple rows,
using the loop,
for(int i=0;i<size of the outputnode;i++)
{
wdContext.node<BapiInputElement>.getElementAt(i).get<Attribute>
}
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.