I am creating new Bill in Acumatica using web service API. I wrote below code but it throws exception.
Looking for a solution to below issue. Any help is appreciated.
The button Save is disabled. at PX.Data.PXAction`1.d__c.MoveNext() at PX.Api.SyImportProcessor.SyStep.CommitChanges(Object itemToBypass, PXFilterRow[] targetConditions)
AP301000Content AP301000Header = context.AP301000GetSchema();
context.AP301000Clear();
AP301000Content[] AP301000ImportHeaderResult = context.AP301000Submit
(
new Command[]
{
new Value { Value = "ARKTAK", LinkedCommand = AP301000Header.DocumentSummary.Vendor },
new Value { Value = "Bill", LinkedCommand = AP301000Header.DocumentSummary.Type },
new Value {Value = "ARKTAK ref123", LinkedCommand = AP301000Header.DocumentSummary.VendorRef },
new Value{Value = "False", LinkedCommand = AP301000Header.DocumentSummary.Hold },
new Value{Value = "MAIN ", LinkedCommand = AP301000Header.DocumentSummary.Location },
new Value{Value = "90D", LinkedCommand = AP301000Header.DocumentSummary.Terms },
new Value{Value = "3/8/2015", LinkedCommand = AP301000Header.DocumentSummary.DueDate },
new Value{Value = "12/8/2014", LinkedCommand = AP301000Header.DocumentSummary.CashDiscountDate },
new Value{ Value = "MAIN", LinkedCommand = AP301000Header.FinancialDetailsLinkToGL.Branch},
new Value{ Value = "200000", LinkedCommand = AP301000Header.FinancialDetailsLinkToGL.APAccount},
new Value{ Value = "US-00-00-US-000", LinkedCommand = AP301000Header.FinancialDetailsLinkToGL.APSubaccount},
new Value{ Value = "3/8/2015", LinkedCommand = AP301000Header.FinancialDetailsDefaultPaymentInfo.PayDate},
new Value{ Value = "MAIN", LinkedCommand = AP301000Header.FinancialDetailsDefaultPaymentInfo.Location},
AP301000Header.Actions.Save, AP301000Header.DocumentSummary.ReferenceNbr
}
);
Thanks, Manish
...missing code...
with your actual code – Mmmh mmh