Skip to Content
0
Former Member
Sep 12, 2007 at 02:53 AM

BBP_UI_CONTROL_BADI for supplier quote screen.

48 Views

Y'all...

Hello, I'm trying to implement the BADI BBP_UI_CONTROL_BADI to set some fields like PRICE_UNIT to read-only but the problem is that it doesn't work.

I'm wondering if I'm doing something wrong or the problem is that these fields are not in the BADI scope, or something like that, because I have reviewed the BADI filter and it's set correctly to BUS2202, the hole Badi is active, code is active as well, if someone call tell me some tips or something else to review, will be great, I will reward useful reply's.

The implementation code looks like this:

method IF_EX_BBP_UI_CONTROL_BADI~BBP_QUOT_UI_CTRL.

  if iv_mode eq 'E'.

    case flt_val.
      when 'BUS2202'.
        case iv_fieldname.
          when 'PRICE_UNIT'.
            cv_input_ready = ' '.
          when 'VALUE'.
            cv_input_ready = ' '.
          when 'INCOTERM_KEY'.
            cv_input_ready = ' '.
          when 'INCOTERM_LOC'.
            cv_input_ready = ' '.
          when 'PMNTTRMS'.
            cv_input_ready = ' '.
        endcase.
    endcase.
  endif.
endmethod.