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!

PO Receipts via XAPI

Status
Not open for further replies.

PeggyJo

Programmer
May 17, 2006
1
I'm working on a program to receive a PO via the XAPI. I started with a one line PO and ran a macro to receive it. Using the same logic I'm getting this error:

View: PO0699. View call failed
Receipt Comment
Invalid field index: 202.
Internal error. getting old field (2698 PORCPG1.C).

Below my Pascal code. The error occurs on the FuncView.Process command. Does anyone know what this means?

RcvrView.Fields.Field[22].value := 10000;
i := RcvrView.Exists;
RcvrView.Fields.Field[41].value := 11111; //po#
RcvrView.Order := 0;
hdrseq := RcvrView.Fields.Field[0].value; //Hdr Seq
FuncView.Fields.Field[2].value := 11111; //po#
FuncView.Fields.Field[5].PutWithoutVerification('4');
FuncView.Process;
 
Sounds like your view compositions are off. Record a macro in Accpac and see how it does it.

Jay Converse
IT Director
Systemlink, Inc.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top