Control Regular Entry for Material Consumption

Problem Ticket:

In our company, recently we are observing that the users are not capturing the regular issue of material on daily basis, which is why the material consumption is not coming on time or the status is changing. Is there any option to make the entry a must or do you have any suggestion to control this loop hole?

Solution:

You can work with PP and ABAP person on this requirement.

I think the only way to you can control this is by implementing an USER EXIT or BADI

1) User-Exit 

Use below user exit for Production Order when saving exit will work - PPCO0007 (Go to SMOD)

Function exit

EXIT_SAPLCOZV_001 enhancement when saving order

&---------------------------------------------------------------------
*& Include ZXCO1U06
&---------------------------------------------------------------------

*Write code here
 

2) BADI

Implement the BADI - WORKORDER_CONFIRM in this there is method 
AT_SAVE under that 

write this code

method IF_EX_WORKORDER_CONFIRM~AT_SAVE.

data: lt_resb type standard table of resb,
        wa_resb type resb.

select * from resb into table lt_resb where rsnum eq i_order_header-rsnum and xloek eq space and bdmng gt 0.
check sy-subrc eq 0.

loop at lt_resb into wa_resb.
     if wa_resb-enmng < wa_resb-bdmng.
          message E499(sy) with 'Order is not fully consumed. Processing is STOPed'.
     endif.
endloop.

endmethod. 

Read Also:
Control Regular Entry for Material Consumption

SAP PP Reference Books:
SAP Production Planning , Configuration, Interview Questions and Certification, Books

Goto:
SAP MRP - Materials Requirements Planning Configuration Hints and Tips 

Back to:
SAP PP (Production Planning) Configuration Hints and Tips

Return to :-
SAP ABAP/4 Programming, Basis Administration, Configuration Hints and Tips

(c) www.gotothings.com All material on this site is Copyright.
Every effort is made to ensure the content integrity.  Information used on this site is at your own risk.
All product names are trademarks of their respective companies.  The site www.gotothings.com is in no way affiliated with SAP AG.
Any unauthorised copying or mirroring is prohibited.