cancel
Showing results for 
Search instead for 
Did you mean: 

How to get the data from RFC ?

Former Member
0 Kudos

Hi,

I am using the Import Adaptive RFC Model, where the RFC display the amatrial Information date.

But when I deploy the application I am not getting the data.

How to test the bindings are correct as well as is any lines of code has to be written in the Implementation part?

Please suggest

regards,

CSP

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi,

First, drag and drop the Z<RFCNode>_Input node from model to custum controller.

From there, u can select both input and output parameters.

After that, Make sure that In custom controller's init(), the following code is present

Z<RFCNode>_Input input=new Z<RFCNode>_Input();

wdContext.nodeZ<RFCNode>_Input().bind(input);

Create execute() method in custom controller and in execute method, check whether u added

wdContext.currentZ<RFCNode>_InputElement().set<InputParam>(inputparametervalue); // If any i/p parameter is there. You can set this from view also if u mapped the RFC node to view

wdContext.currentZ<RFCNode>_InputElement().modelObject().execute();

Also check all mappings are done correctly.

After saving all, Call execute() method from view as wdThis.wdget<custcontroller>().execute();

After execute(), u will get the output from node Output, which is inside Z<RFCNode>_Input node.

Regards

Fahad Hamsa

PradeepBondla
Active Contributor
0 Kudos

Hi Pradeep,

In R/3 check whether your Bapi has any import parameters, I mean to say your RFC needs any input or not. If yes, as satish said, set the value to the import parameters. if not, just execute the model.

Your RFC is returning results, so catch them by get method and use it for displaying or input to other RFCs.

by

Pradeep

Former Member
0 Kudos

Hi Pradeep..

You need to write this coding in your init() CC..

wdContext.nodeBapi_Flight_Getlist_Input().bind(new Bapi_Flight_Getlist_Input());

try

{

wdContext.currentBapi_Flight_Getlist_InputElement().setFlightId("");

wdContext.currentBapi_Flight_Getlist_InputElement().modelObject().execute();

wdContext.nodeOutput().invalidate();

}

catch(Exception e)

{

wdComponentAPI.getMessageManager().reportException("Exception"+e, true);

}

Then check your bindings and cardinality values..

URs GS

Former Member
0 Kudos

Hi all ,

small mistake in the previous message.

Once again i corrected and sent.....

Hi,

I am using the Import Adaptive RFC Model, where the RFC display the material Information data.

But when I deploy the application I am not getting the data.

How to test the bindings are correct as well as is any lines of code has to be written in the Implementation part?

Please suggest

regards,

CSP