cancel
Showing results for 
Search instead for 
Did you mean: 

Adding Bapi Values Dynamically to Dropdowns.

Former Member
0 Kudos

Hi,

I am Using Bapi for Dropdowns and I want to add the BAPI's Value dynamically to the Simple type of that Dropdown.Kindly help on this scenario and also Provide the Link to refer this material.

Accepted Solutions (1)

Accepted Solutions (1)

anand_govardhan
Active Participant
0 Kudos

Hi,

Create DropDownByIndex, bind its texts property to the vaue attribute of the BAPI.

The drop down will be filled with the values returned by BAPI dynamically.

Regards,

Anand G

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Karthik,

First import the model by using adaptive RFC model and after import the model you can mapping to component controller and same way to mapping to component to view controller after go to view controller -->go to layout -->create drop down by index -->binding the context of the filed so that we that display Drop down dynamically

Hope this information help you

Thanks&Regards

G.srinu

Former Member
0 Kudos

Hi Karthick,

Hi Ratish,

After importing the Adaptive RFC model, do the following steps:

1) Add the particular model in to the component. This you can do by right clicking "Used Models" and adding the particular model.

2) Go to the Diagram view of component and make a context mapping between model and component controller. (ie, from component controller to model).

3) Save all the meta data.

4) Then add a mapping from view controller to component controller and select the appropriate context node.

5) Save all the meta data

6) Open the particular view and drag and drop a "Drop down by Index" control on to the view. Make sure that it is "Drop down by Index".

7) Take the drop down's properties and do a context binding to the text's property.

If you are doing all these steps, it should work. Reply me if you are facing any issues.

Regards,

Jithin