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:
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
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