Skip to Content
0
Aug 05, 2013 at 02:06 PM

Change fields' attributes in customer tab (ME21N)

76 Views

Hi everybody,

I'm trying to change the attributes of a customer field in a new tab in the purchase order. I have used the BAdI's:

ME_PROCESS_PO_CUST

ME_GUI_PO_CUST

And I've modified the field's attributes in the method FIELDSELECTION_HEADER.

Something like that:

IF l_persistent EQ mmpur_yes.
READ TABLE ch_fieldselection ASSIGNING <fs> WITH TABLE KEY metafield = mmmfd_cust_01.
IF sy-subrc IS INITIAL.
<fs>-fieldstatus = '*'. " Display
ENDIF.
ENDIF.

ENDIF.

It works fine, but I have a problem because I want to change the attributes depending of the value of the company code, but this method is not accesible when I change the company code, I mean this method isn't in the call stack.

Do you know what is the problem and if it possible to solve that?

Thanks in advance

Best regards