cancel
Showing results for 
Search instead for 
Did you mean: 

blocking the user from changing the cos distribution if item quantity is more than one of shopping cart,can we achieve this using BBP_ITEM_CHECK_BADI?

0 Kudos

blocking the user from changing the cos distribution if item quantity is more than one of shopping cart,can we achieve this using BBP_ITEM_CHECK_BADI?

Cost distribution label should be non editable.

Accepted Solutions (0)

Answers (2)

Answers (2)

YayatiEkbote
Contributor
0 Kudos

Hello Venu,

Laurent is right. You need to make the field uneditable in field control. You can add dynamic customer class and method for controlling the field display properties based on some condtion.

In check BADI you will not be able to identify if the field is changed or not.

Regards,

Yayati Ekbote

0 Kudos

i have done implicit implementation on method get_meta_data of class.

case 1;

if iv_field eq 'acc_distr_ind'.

rs_meta_data-enable = false;

endif.

Above code has to make cost distribution drop down as non editable ,but its not working,able to select drop down which should not happen but with below code

case 2:

if iv_field eq 'acc_distr_ind'.

rs_meta_data-enable = false;

rs_meta_data-visible = false;

endif.

Above code is working i.e cost distribution drop down was hidded on click of account assignment tab.

my requirement is to make drop down non editable(As shown in case 1 ).

please help

YayatiEkbote
Contributor
0 Kudos

Hello,

Put visible = true and enable = false.

Regards,

Yayati Ekbote

laurent_burtaire
Active Contributor
0 Kudos

Hello,

you have to use metadata for this as you need to manage dynamically field property.

Regards.

Laurent.