Hi all,
I've added new client fileds at header level in the PO. For that i have implemented the badi ME_PROCESS_PO_CUST method FIELDSELECTION_HEADER. I'm having some trouble in the code here. How can i control the Input or display field property according to the t-code me21n me22n or me23n ? Here is my sample code:
FIELD-SYMBOLS: <fs> LIKE LINE OF ch_fieldselection.
READ TABLE ch_fieldselection ASSIGNING <fs> WITH TABLE KEY metafield = mmmfd_cust_01.
IF sy-subrc IS INITIAL.
<fs>-fieldstatus = '.'. " Input <-- this i added to make the field mandatory.
ENDIF.
Regards,
Pedro