on 10-24-2007 1:57 PM
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
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.