on 02-14-2007 8:01 AM
Hi,
I have the following scenario.
I have a webdynpro application (form) which allows the user to change some data. When the page loads, the data already available is displayed in the corresponding UI elements in the form. This is done using a BAPI call. Then after the user modifies the values and clicks modify, the corresponding values should be updated using a different BAPI call.
Here, for displaying the values at first, I have mapped the view context to the controller context and in turn to the corresponding model. But to update using a different Model class, how can we map the updated values dynamically, say on submit? Can the view context attributes, mapped to multiple controller context attributes? Or is there any other way to acheive this.
I have another question. I have a dropdown UI element in the same application. It is populated with data coming from a BAPI call. But how can we set the selected value to the one which the user has already stored previously? Remember, the user is modifying the values.
thanks in advance!
KK
Hi KK,
As you are using differnt BAPI for updating the record, you need to explicitly pass the parameters from BAPI1 to BAPI2.
You need to instatiate BAPI2 model as you do for BAPI1.
set the parameters for BAPI2 model from BAPI1.
Regards, ANilkumar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Anil,
Thanks for your reply.
I have mapped the view context elements to a set of Model attributes through the controller context. But that is for one BAPI. If the user changes the values a updates, how can we get the changed values to the second BAPI? Can we map a view context attribute to multiple controller context attributes?
Any Idea about the second problem?
Thanks again
KK
User | Count |
---|---|
91 | |
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.