cancel
Showing results for 
Search instead for 
Did you mean: 

Making a field enabled

Former Member
0 Kudos
49

Hi,

   I have a field net_value which is disabled.Now I want to make it enabled only if the field currency = 'USD'.Can anyone tell

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

You cannot manually change the NET VALUE as its calculated based on all pricing condition value entries . You can only change the pricing conditions value or amount  which in turn will affect net value .

Regards,

Nithish

former_member205429
Contributor
0 Kudos

Nithish,

Do u mean that using the logic given by RAJARAMA, can we make the NET VALUE field editable or not

Hope the above logic works ..

Pls correct me in case i go wrong !!

praveen_kumar194
Active Contributor
0 Kudos

hi

as nithish mentioned, it is not possible to edit that field even though you use code in the GET I method.

Former Member
0 Kudos

Hi Bharadwaj,

Try this in GET_I_NET_VALUE method

    DATA: current TYPE REF TO if_bol_bo_property_access.
   DATA lv_
currency TYPE string.

   IF iterator IS BOUND.
     current = iterator->get_current( ).
   ELSE.
     current = collection_wrapper->get_current( ).
   ENDIF.

   TRY.      

  lv_currency = current->get_property_as_string( 'currency' ).

      if  lv_currency = 'USD'

       rv_disabled = 'FALSE'.

     endif.

  CATCH cx_sy_ref_is_initial cx_sy_move_cast_error
           cx_crm_genil_model_error.
       RETURN.
   ENDTRY.

Regards

Rajarama U