cancel
Showing results for 
Search instead for 
Did you mean: 

setting the structure to the RFC

Former Member
0 Kudos

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?

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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