cancel
Showing results for 
Search instead for 
Did you mean: 

How to make fields of Web dynpro screen editable/non editable dynamically?

Former Member
0 Kudos

Hi all,

We are upgrading from SRM5.0 to SRM7.0.

I have a problem while creating a shopping cart. After selecting the items from catalogue and reaching the SRM screen , we need the price of the items to be in editable mode.

The price field should be editable if BBP_PDS_SC_ITEM_D-zedit-price_ind = 'X'.

Intoto What I need is ,how to make a field editable dynamically .

Is there any way (place) where in which I can code my conditions for making fields editable/noneditable based on some criteria.

Your inputs will be helpful...

Thanx..

Vishal

Accepted Solutions (0)

Answers (2)

Answers (2)

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

Normally this is done via context bindings - as is demonstrated in the WIKI link you were already given. However from your description I take it that you might be enhancing a standard SAP component? Is that true? If so are you wanting to control the editability on fields that were SAP created or that you added the enhancement?

If they are SAP created, then first look to see if their edit property is already bound to a context attribute or context attribute property and you can just switch this value in your enhancement. If it isn't bound, then this could be more complicated. You might have to enhance the WDDOMODIFYVIEW method and add a binding.

Former Member
0 Kudos

Check the below link for using the editable and non editable property of the UI element.

[Webdynpro ABAP - Sample Code|http://wiki.sdn.sap.com/wiki/display/WDABAP/SimpleapplicationtochangepropertiesofUIElementsduringruntimeinWebDynpro+ABAP]

It will give you the step by step procedure for creating the same.