Hi all,
I'm writing a code to create a shipment and generate the invoice at the same time.
Here is a very simplified part of my code
My question is: How can I find the shipment number and the invoice number newly created?
Regards
I'm writing a code to create a shipment and generate the invoice at the same time.
Here is a very simplified part of my code
Code:
...
:oAccpacLienCie>>OpenView("OE0520", vOEORDH)//Order header
:oAccpacLienCie>>OpenView("OE0500", vOEORDD)//Order detail
...
vOEORDD>>Fields("LINENUM")>>PutWithoutVerification(32)//' Item line number
vOEORDD>>Read
vOEORDD>>Fields("QTYSHIPPED")>>Value = 1//' Quantity Shipped
vOEORDD>>Update
vOEORDH>>Fields("INVPRODUCE")>>Value = "1"//Invoice Will Be Produced
vOEORDH>>Fields("OECOMMAND")>>Value = "4"//Process O/E Command
vOEORDH>>Process
//Get the shipment number
???
//Get the invoice number
???
My question is: How can I find the shipment number and the invoice number newly created?
Regards