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
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