cancel
Showing results for 
Search instead for 
Did you mean: 

init context which is bound to model and discripes a R/3 Tabeltype

Former Member
0 Kudos

Hi everybody,

I'm using WebDynpro to call a RFC in a R/3 backend. The import and export parameters of the RFC contain a R/3 tabletype. I know that I have to initialize the context of the customer controller which is bound to the model, but I don't know how exactly I have to do this.

Does anybody know how this works?

Thanks in advance!

Martin

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

I finally solved the problem, but I still don't get why it didn't work in the beginning.

I tried it as you suggested. My context attributes were filled afterwards but not the attributes of the context nodes.

Finally I tried it this way:


wdContext.myNodenodeGet_Input().bind(new myNodeGet_Input());

Now it works!

Does anybody know, what the difference is?

Former Member
0 Kudos

As far as I know, there's no difference.

Both the codes are the same.

Thanks,

Rajit

Former Member
0 Kudos

That's what I thought, but it didn't work!

Message was edited by:

fischerman

Former Member
0 Kudos

Hi

Following is the difference

One binds the model and the other the element.

Ex:

Binds a single IFb_Bpvt_Get_Pvt_Info_InputElement to the node.

public void bind(IPrivateTestRFcComp.IFb_Bpvt_Get_Pvt_Info_InputElement element)

Creates a new IFb_Bpvt_Get_Pvt_Info_InputElement with the given model object

and binds it to this node

public void bind(test.sap.testrfc.model.Fb_Bpvt_Get_Pvt_Info_Input model)

Regards

Ayyapparaj

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Create an instance of the model object and bind it to the node and then the context will be initialised. This will initialize all the input/output parameters of the RFC.

Z_BAPI_MY_RFC_Input model = new Z_BAPI_MY_RFC_Input();

wdContext.nodeZ_BAPI_MY_RFC_Input().bind(model);

Am I upto your point?

Regards,

Rajit