Skip to Content

In some of business case of MM ( Material Management ), you need to make all field in commitment item in SAP Change Purchase Requisition ( ME52N ) to be read only based on condition.

You can configure most of field of SAP Purchase Requisition ( ME52N ) to be  input or read only through SPRO Configuration but SPRO have a limit, it can’t  control all field on Commitment Item Tab.

For this case , i will use example : User cannot change commitment Item data  in purchase Requisition ( Preq ) document after that particular Preq document has been released 5 ( EBAN-BANPR )

Basically, SAP Preq ( ME52N ) commitment item field always input-able although all other field read only. but you can control it by creating an enhancement point .

me52n-sap-purchase-requisition

You need to create enhancement point which located in KACB Function Group and LKACBF01 Include program and in feldmodifikation_normal subroutine.

me52n-enhancement-point-sap

You can see on the picture above, I create enhancement-point and put ths code:

1

2

3

4

5

6

7

8

9

10

data : ls_eban type eban.

select single * from eban into ls_eban where banfn = coblawkey.

if ls_ebanbanpr = ’05’.

   loop at gt_coblf into l_coblf.

     l_coblfinput = 0.

     modify gt_coblf from l_coblf TRANSPORTING input.

   endloop.

endif.


Note : You just need to modify data ( L_COBLF-INPUT = 0 ) in internal table GT_COBLF .

Then the result is :

me52n-enhancement-point-sap

To report this post you need to login first.

Be the first to leave a comment

You must be Logged on to comment or reply to a post.

Leave a Reply