I am trying to insert an Invoice but getting the error: "10000156 - Posting Date deviates from the defined range. To complete the operation, define the posting period to match the entered Posting Date."
The Invoice parameters are;
OINV.CardCode ...
I am getting "ERROR:Series period does not match current period [ORCT.Series]" when inserting a Payment using DI API. First it worked, now it does not. SAP B1 9.1.
My code is;
Insert the Invoice and line.
OINV.Series = 1 'But this is set to -1 ...
Hi,
I have used DI API to create an invoice (OINV) with an associated item (INV1) but when I make a part payment to the invoice OINV.DocStatus is changed from 'O' to 'C'(Closed) preventing me from applying further payments to it.
How can I stop t...
I can create an invoice using the DI API SAPbobsCOM ok but can anyone tell me how to obtain the unique reference number [DocEntry] of the new OINV record?
After oInvoice.Add it would be nice if oInvoice.DocEntry were set so that I could retrieve it...
Having played some more, this seems be due to my setting OINV.DocNum which causes SAP to set OINV.Series=-1.I had set OINV.DocNum to a unique reference so that I could lookup the OINV again later by it.I will try storing my reference in another field...
Having played some more, this seems be due to my setting OINV.DocNum which causes SAP to set OINV.Series=-1.I had set OINV.DocNum to a unique reference so that I could lookup the OINV again later by it.I will try storing my reference in another field...
I am getting the same; "ERROR:Series period does not match current period [ORCT.Series]". First it worked, now it does not. SAP B1 9.1.My code is;Insert the Invoice and line.OINV.Series = 1 'But this is set to -1 (because Handwritten=1 ?)OINV.CardCo...
Hi Jitin,The link you posted does not seem to include an answer?I looked for ORCT.applied but cannot find it?The invoice INV1.Price = 24000My code is;Set ORCT = oCompany.GetBusinessObject(24) 'oIncomingPayments=24ORCT.Invoices.DocEntry = InvDocEntryO...
I was hoping that oCompany.GetNewObjectCode(DocEntry) would return the new OINV.DocEntry value into my DocEntry variable but unfortunately it returns the value BEFORE the one just created. E.g. my code generates OINV.DocEntry=1000 but GetNewObjectCod...