on 05-22-2008 3:11 PM
hi
i have a scenario where i need to set the
Structure to the RFC and the structure iam getting it from backend
ZLgs_car_data cardata=new Zlgs_Car_data();
cardata.setpxxx(pxxx);
cardata.setpyyy(pyyy);
cardata.setpzzz(pzzz);
pxxx,pyyy,pzzz are element of Structure of GXX,GYY,GZZ
and this structure too i am getting from backend.
now i need to set this cardata to my RFC
ZRFC rfc=new ZRFC();
how can i set my rfc . as the return type its
asking for Abstract LIst.
can any one help me . its urgent issue .
please help me out?
Hi
Try this,
ZRFC rfc=new ZRFC();
wdContext.nodeZRFC_Input().bind(rfc);
ZLgs_car_data cardata=new Zlgs_Car_data();
cardata.setpxxx(pxxx);
cardata.setpyyy(pyyy);
cardata.setpzzz(pzzz);
wdContext.currentZRFC_InputElement().modelObject().set<StructureName>(cardata);
wdContext.currentZRFC_InputElement().modelObject().execute();
Thanks & Regards
Roshni
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Kishore,
If you can post the signature of your RFC, it would help others to understand how it looks like when it is imported to your model.
My guess is you would need to do something like rfc.addXXX(cardata) assuming XXX is the name of table.
Cheers,
~kranthi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I'm not sure i've understood your question !
If you are asking how to add a structure to a model node for RFC calling, try this :
ZLgs_car_data cardata=new Zlgs_Car_data();
wdContext.nodexxx.createxxxElement(cardata);
cardata.setpxxx(pxxx);
cardata.setpyyy(pyyy);
cardata.setpzzz(pzzz);
wdContext.nodexxx.bind(cardata);
wdContext.currentModelNodeElement().modelObject().setxxx(cardata);
Hope this helps
Regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
81 | |
10 | |
10 | |
9 | |
7 | |
6 | |
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.