on 2012 Oct 10 8:32 AM
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
Request clarification before answering.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
19 | |
17 | |
3 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.