Skip to main content
Solved

Client_SYS.Add_Info message not alerted for Purchase Requisition MOQ

  • April 29, 2024
  • 1 reply
  • 301 views

Forum|alt.badge.img+4

Hi team,

 

The Supplier For Purchase Part screen contains a field named 'Min Order Qty', which according to the system help should trigger a warning/alert if a Purchase Requisition or Purchase Orders is raised for a lesser quantity. 

When adding a part requisition line in Purchase Requisition, PURCHASE_REQ_LINE_PART_API.NEW__ method is called.
Inside this method it calls Check_Insert___ method and that method checks below condition.

IF (newrec_.original_qty < part_supp_rec_.minimum_qty) THEN
p3_ := part_supp_rec_.minimum_qty||' '||newrec_.buy_unit_meas;
Client_SYS.Add_Info(lu_name_, 'LESSMIN: The minimum quantity when ordering Part No :P1 from Supplier :P2 is :P3.', newrec_.part_no, newrec_.vendor_no, p3_);
END IF;

This info message is alerted when the quantity is less than the MOQ in dev envs.

Test behavior:

When testing the same in the Test env I have noticed that this info message is not alerted. The code flow is same compared to dev and other messages like Client_sys.system_general is alerted expect Client_SYS.Add_Info. 

 

What can be the possible cause for this kind of issue?

Best answer by Inisha Subasinghe

There were several custom events related to the PurchaseReqLine and PurchaseReqLinePart LUs. 
Specifically, we observed that the event C_PUR_REQLINE_CREATED impacts the Purchase MOQ alert.

After disabling the C_PUR_REQLINE_CREATED event, we successfully received the MOQ alert.

1 reply

Forum|alt.badge.img+4
  • Author
  • Do Gooder (Employee)
  • 4 replies
  • Answer
  • June 4, 2024

There were several custom events related to the PurchaseReqLine and PurchaseReqLinePart LUs. 
Specifically, we observed that the event C_PUR_REQLINE_CREATED impacts the Purchase MOQ alert.

After disabling the C_PUR_REQLINE_CREATED event, we successfully received the MOQ alert.