05-29-2012 8:23 AM
Hi experts,
I have got a requirement to change the PO creation/change screen to activate the Net Price (NETPR) in the line item section.
When Creating /Changing POs with Consignment line items (item category = K )Net price column is inactive ( in default ). Could you please let me know any suggestions to activate this column for enter data.
I'm not an expert in MM so may be this is kind of a contradiction.
Anyway please give me some ideas.
Thanks,
Chaminda
05-29-2012 8:57 AM
Try defining the screen layouts through SPRO. Logistics->purchasing->PO.
Also through badi ME_PROCESS_PO_CUST & its method FIELDSELECTION_ITEM it can be done. For sampel code look at the example class CL_EXM_IM_ME_PROCESS_PO_CUST & its method FIELDSELECTION_ITEM( check if there is any existing code which disables the field )
05-29-2012 8:57 AM
Hi Chaminda,
you can try using below EXISTS:
EXIT_SAPLEINR_001
EXIT_SAPLEINR_003
EXIT_SAPMM06E_004
Or you can add your code inside INCLUDE LMEGUICIM or LMEGUICJM using ur enhancement :
loop at lt_oci_item into ls_oci_item.
l_tabix = sy-tabix.
read table im_item_table index l_tabix into ls_cat_item.
if ls_oci_item-PSTYP EQ ' K'.
is_input_allowed 'NETPR'.
map ls_cat_item-data 'NETPR' ls_oci_item-matgroup.
endif.
modify im_item_table from ls_cat_item index l_tabix.
endloop.
Best Regards,
Sachin