Hi Bal,
I have had to extract Accounting Document info for a Customer Invoice but not through service integration.
From a ByDesign ABSL point of view, to get the data you want, you would have to code something like this:
//get Accounting Documents
var QueryAccDoc = AccountingDocument.QueryByElements;
var ParamsAccDoc = QueryAccDoc.CreateSelectionParams();
//specify Chart Of Accounts
ParamsAccDoc.Add(QueryAccDoc.ItemChartOfAccountsCode,"I","EQ","1000");
//specify Closing Step value
ParamsAccDoc.Add(QueryAccDoc.AccountingClosingStepCode,"I","EQ","020");
//specify Document types to search for
ParamsAccDoc.Add(QueryAccDoc.TypeCode,"I","EQ","00025"); //Customer Invoice
ParamsAccDoc.Add(QueryAccDoc.TypeCode,"I","EQ","90025"); //Customer Invoice Cancellation
//if you know the accounting document number you can use this section
// if (!this.AccDoc.IsInitial())
// {
// ParamsAccDoc.Add(QueryAccDoc.ID.content,"I","EQ",{AccDoc}.content.RemoveLeadingZeros());
// }
//you can further restrict by COmpany ID
ParamsAccDoc.Add(QueryAccDoc.CompanyID,"I","EQ",{Company ID}.RemoveLeadingZeros());
//only get relevant Customer Invoice Accounting Docs
ParamsAccDoc.Add(QueryAccDoc.OriginalEntryDocumentReference.ObjectID.content ,"I","EQ",{Customer Invoice}.ID.content);
var ResultFirst = QueryAccDoc.Execute(ParamsAccDoc);
Hope that helps as a starting point!
Jay