on 04-27-2010 11:06 AM
Hi,
I have created two DCs - one for model and the other one for displaying the data after model execution.
I have done the required steps for Inter DC communication.
I want to execute the bapi BAPI_FLIGHT_GETLIST with given input fields CityFrom, CityTo, DateFrom, DateTo.
CityFrom bound to model node Destination_From->city
CityTo bound to model node Destination_To->city
Other two are bound to value attributes of type date
The problem is that CityTo and CityFrom input fields appear disabled.
I have initialized the nodes as follows in wdDoInit() of the DisplayCompView
bapiInput = new Bapi_Flight_Getlist_Input();
wdContext.nodeBapi_Flight_Getlist_Input().bind(bapiInput);
bapiInput.setDestination_From(new Bapisfldst());
bapiInput.setDestination_To(new Bapisfldst());
bapiInput.addDate_Range(new Bapisfldra());
Please go through the code.
Thanks
Hi Radhika,
If you bind any simple UI element to a Node attribute, you have to create an instance of the node Binded. Try creating 2 context attributes and bind it to the UI elements.
Set the BAPI input parameters taking from the context attribute.
bapiInput = new Bapi_Flight_Getlist_Input();
wdContext.nodeBapi_Flight_Getlist_Input().bind(bapiInput);
bapiInput.setDestination_From(wdContext.currentContextElement().get<attributeName>);
bapiInput.setDestination_To(wdContext.currentContextElement().get<attributeName>);
bapiInput.addDate_Range(new Bapisfldra());
Regards,
Poojith MV
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Check the cardinality of the node bound to the input fields. It should be 1..1
- Saravanan K
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
81 | |
9 | |
9 | |
7 | |
7 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.