Skip to Content
0
May 19, 2020 at 04:16 PM

disable field company code in the me22n

236 Views

Hi guys,

we got the task to disable the field company code in the me22n.

Therefore I used the badi: ME_PROCESS_PO_CUST

In the method IF_EX_ME_PROCESS_PO_CUST~FIELDSELECTION_HEADER, I add the following Code:

if sy-tcode eq 'ME22N'.

Loop at screen.
CASE SCREEN-NAME.
WHEN 'MEPO1221-BUKRS'.
SCREEN-INPUT = '*'.
ENDCASE.
endloop.
endif.

Unfortunately something does not work the field is still editable in the me22n. The debbuger does not jump in the code.

Maybe one of you have an idea for me please?

Thank you in advance and best regards