Skip to Content
avatar image
Former Member

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

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...



Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Aug 02, 2010 at 11:16 AM

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

    [Webdynpro ABAP - Sample Code|]

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

    Add comment
    10|10000 characters needed characters exceeded

  • Aug 02, 2010 at 11:43 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded