06-14-2011 9:53 AM
Hi All,
I am trying to make NETPR and KBETR fields display only on Tcode ME22N for this I am using BADI ME_PROCESS_PO_CUST
and method FIELDSELECTION_ITEM. I dont know where I am going wrong. Here is my code which I have developed. Please suggest if anybody has same thing done before.
field-symbols: <fs> like line of ch_fieldselection.
data: ls_mepoitem type mepoitem.
ls_mepoitem = im_item->get_data( ).
break-point.
move 'NETPR' to <fs>-metafield.
move '.' to <fs>-fieldstatus.
append <fs> to ch_fieldselection.
read table ch_fieldselection assigning <fs> with table key metafield = 'MEPO1211-NETPR'."079.
if sy-subrc = 0.
<fs>-fieldstatus = '*'.
endif.
06-14-2011 11:41 AM
Hi ,
This method will not work for standard fields.
Thanks,
Shailaja Ainala.
06-14-2011 12:44 PM
Hi Shailaja,
Thanks, is there any other way for doing this requirement. I tried it by creating transaction variant also but I can make it for only field NETPR for KBETR transaction variant is not working. Please suggest something.
Thanks in Advance.