cancel
Showing results for 
Search instead for 
Did you mean: 

Binding input and Output node elements

Former Member
0 Kudos

Hi all,

Binding Input and Output nodes of a model node.

Most of the time, we create a object of the input model node and then,

bind that object with wdContext.

Do we need to bind output node objects too in RFC Models?

Regards

Neha Singh

Accepted Solutions (1)

Accepted Solutions (1)

p330068
Active Contributor
0 Kudos

Hi Neha,

There is only need to bind for model Input node.

>> Do we need to bind output node objects too in RFC Models?

No, Output node is required when you want to disply data from backend RFC.

Like, when you execute the RFC, you will get the output data from backend that you need to show in the web dynpro screen.

Hope it will helps

Regars

Arun

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Neha,

There is no need to create/bind the model node. you can execute a bapi using classes.

To execute a bapi, you should do the following things.

1. Import the RFC and create the model.

2. Create an object of the input class of the bapi

e.g. :

Zbapi_Test_Input  commision_Input = new Zbapi_Testn_Input();

3. Set the input

commision_Input.setSpart(division);

4. execute the bapi

commision_Input.execute();

5. Disconnect the model

commision_Input.modelInstance().disconnectIfAlive();

6. Get the output. Create an object for output class

Zbapi_Test_Output output = commision_Input.getOutput();
String commission = output.getCommision();

Hope this helps you.

former_member214651
Active Contributor
0 Kudos

Hi,

You need not bind the output to the node after u create the object. All u need is the object of the Input() node and bind it to the Input node.

Output is used only after executing the model.

Regards,

Poojith MV

Former Member
0 Kudos

Hi,

Binding input node is enough

- Saravanan K