Can we use “Order No.” from “Sales Invoice Header” table to identify if Invoice is created from Order Document or from Invoice Document?
If “Sales Invoice Header”.“Order No.” = ‘’ THEN
MESSAGE(‘Created form INVOICE Document’)
Else If “Sales Invoice Header”.“Order No.” <> ‘’ THEN
MESSAGE(‘Created form ORDER Document’);
If Not what to use to identify this.