Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

BADI ME_PROCESS_PO_CUST Method FIELDSELECTION_ITEM not working

Former Member
0 Kudos

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.

2 REPLIES 2

former_member262988
Active Contributor
0 Kudos

Hi ,

This method will not work for standard fields.

Thanks,

Shailaja Ainala.

0 Kudos

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.