Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Get Invoice number and Shippment number 1

Status
Not open for further replies.

joelabine

Programmer
Feb 28, 2013
21
CA
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
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
 
Forgot the update at the end.
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
vOEORDH>>Update

//Get the shipment number
???
//Get the invoice number
???
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top