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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

POP objects and methods.

Status
Not open for further replies.

jmcgarvey

IS-IT--Management
Feb 13, 2001
15
0
0
IE
Hi,

I am using the information in the SDK to do various things
in POP. I have no problems adding or deleting lines from a
POP doc but I cannot get the document totals to update.

I am using the following:

if l_change = true then
{ Create an instance of the PO object }
Status = Create(POP_POState
, table POP_PO
, l_po_number
, false) of form
POP_PO;

{calculate in case of multicurrency}
call RecalcCurrencyAmounts of form POP_PO,
POP_POState;

{update taxes}
call RecalcTax of form POP_PO, POP_POState, true;

{update doc totals}
call Reconcile of form POP_PO, POP_POState, table
POP_PO, POP_ExceptionListState, table
POP_ExceptionList_TEMP, 0;


{ Save the PO header }
Status = Commit(POP_POState
, table POP_PO) of
form POP_PO;

call Destroy of form POP_PO,
POP_POState
, table
POP_PO;
end if;

As I understand it this should update the doc header
amounts and save them. If I debug and look at the table
buffer the doc amounts are correct, it just dosent seem to
be commiting the document.

Has anyone any experience of this?

Any help/advice appreciated!

Regards,
James
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top