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: 

PO Creation/Change User Exit/Badi (Screen)

Former Member
0 Kudos

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

2 REPLIES 2

kesavadas_thekkillath
Active Contributor
0 Kudos

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 )

former_member213851
Active Contributor
0 Kudos

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