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: 

how to not delete po item details once GR is done

Former Member
0 Kudos

Hi,

how to restrict end user not delete po item details once GR is done from ME22N.

rewarded with points.

Regards

Naveen.

2 REPLIES 2

Former Member
0 Kudos

You can use the BADI ME_PROCESS_PO_CUST Method: OPEN to make the PO diplay only if the GR is done.

Something like

  • Read Goods Movement Status

SELECT SINGLE wbstk INTO l_wbstk

FROM vbuk

WHERE vbeln EQ l_vbeln.

IF l_wbstk EQ 'C'.

ch_display_only = 'X'. "Display PO only.

ENDIF.

( Add the required authorizations and validation)

Former Member
0 Kudos

Solved..