إنجاز الإنتاج من نظام MES → إيصال/صرف من الإنتاج في SAP B1
حدث إنجاز من نظام MES يُرحّل إلى SAP Business One: إيصال المنتجات التامة عبر InventoryGenEntries (المستند الأساسي = أمر الإنتاج)، صرف المكونات عبر InventoryGenExits، ثم إغلاق أمر الإنتاج عبر PATCH، مع منع التكرار حسب معرّف حدث MES.
خطوات التدفق
- MES: Completion Event Webhook
- Guard: MES Completion Event
- SL Login (401→relogin, retry once)
- SL: POST /InventoryGenEntries (receipt)
- Backflush BOM?
- SL: POST /InventoryGenExits (component issue)
- Order Complete? (final or qty reached)
- SL: PATCH /ProductionOrders (close)
- Notify: Production Posted