on 08-27-2007 12:29 PM
Hello Friends,
I am having following senario:
I am having a application with SAP R3 system as backend. I have to take a value from fornt -view and pass it to the RFC parameter ( any documenation would be gr8 to explain the binding of view elements with model elements ).
This same field is avaiable in one table, so when I do reimport model I can see this field in model context. But i am confused if I have to assign my view attribute to RFC or to this model attribute ?
Any suggestions would be gr8
regards.
Hi Shah:
Also <a href="http://help.sap.com/saphelp_webas630/helpdata/en/c3/76b45d9688e04abe1a1070410ddc1e/content.htm">Check this Too</a>
Will give you more idea.
Tnx,
MS
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Shah,
Check this code snippet, replace with your RFC model nodes:
If your model import paramer is directly binded with UI then.. do this in wdInit() of your component controller.
Zbapi<BAPINAME>_Input input = new Zbapi<BAPINAME>_Input();
wdContext.nodeZbapi<BAPINAME>_Input().bind(input);
Or
If you have some value attribute assigned to InputField then do this..
Zbapi<BAPINAME>_Input input = new Zbapi<BAPINAME>_Input();
wdContext.nodeZbapi<BAPINAME>_Input().bind(input);
input.setImportParameter(wdContext.currentContextElement().getInputValue());
Then execute the BAPI.
Regards
Abhilash
Following code is already there in custom controller:
Zport_Get_Fields_Input input = new Zport_Get_Fields_Input();
wdContext.nodeZport_Get_Fields_Input().bind(input);
The think is at view I have 4 input fields, 3 are going to RFC, one I have added and this fourth one is not going till RFC ( valled attribute )
I am try to enhance an existing code....
Regards,
Okey, I have found the followig in view : onActionSelect method it retrieve the remaing three fields, and set into the method
wdThis.wdFirePlugOutToFieldView
Now I tried to retrieve the fourth field in same way as the other three ( and I can see the value put into the inputfield) and extended the method wdFirePlugOutToFieldView to accept the fourth field. But when I try to deploy and run, I have got the following exception:
<b>java.lang.Error: Unresolved compilation problem: The method wdFirePlugOutToFieldView(String, String, String, String, String) in the type IPrivateTableManagerView is not applicable for the arguments (String, String, String, String, String, String) </b>
However I have manually extended the method wdFirePlugOutToFieldView for the string value......
Any idea how I can extended this method ?
Regards,
Message was edited by:
Shah H
null
null
Check if your fields are mapped from View Controller to Component Controller. Or it might be possible that the parameters are passed based on the event. so check the method call if you are passing the correct value or not. For debugging purpose you can add some debug statements using wdComponentAPI().getMessageManager().reportSuccess("Debug 1").
Regards
AG
Hello Abhilash,
I have checked, unfortunatelly, there is no mapping between context of view with custom controller context. I have checked in action as well, and there the program only calls another view and set the plug values. I am getting mad, I mean how in this application the x-programmer is sending values to RFC, the thing is when I debug the RFC in r3 system the RFC import parameters are filled with values. But I cant see it happening it via binding, nore with any action event.......
Experts is there any other way also avaiable, ????
Regards,
Shah,
Refer <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/761eba66-0401-0010-b982-d5f5bd9e8f90">Linking RFC to Webdynro</a> to understand it better.
You may also refer <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/49f2ea90-0201-0010-ce8e-de18b94aee2d#15">Accessing ABAP Functions in WebDynpro</a>.
Bala
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
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.