cancel
Showing results for 
Search instead for 
Did you mean: 

Default value for iView

Former Member
0 Kudos

Hello Experts,

My requirement : I need to have default value assigned everytime a user logs in on the EP.

Field country default value INDIA.

We have used standard iviews provided by sap for master data creation.

regards,

Abhishek

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

As per my understanding, u want to set a default value to a drop-down list. If it is so, then this can be done through client side eventing. What you need to do is set the default value of the field to the index number of the value INDIA.

countriesList.options<i>.selected = true;     // where i= index value for INDIA 

Add the above lines in the function which is fetching the values from the database.

Hope this is helpful.

Regards,

Nishant

Former Member
0 Kudos

You are creating through ITS? Or standart Web Dynpro ABAP iViews?

Former Member
0 Kudos

We are using the standard iViews provide by SAP.

Former Member
0 Kudos

Hi Abhishek,

Where do you create master data? If it is Java application, you can set users country to India and then you can get users country using APIs. If you can provide more detail we can help.

Former Member
0 Kudos

Hello,

Every new creation is done through EP.

But we have used the standard provided by SAP, we havent developed a custom Dynpro Solution.

So i am not sure, if JAVA API will help in this scenario,

Regards

Abhishek