Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

JournalVoucher + TaxGroup problem in SBO2005ASP01 (Any workarounds?)

Hi All

I have the following code that add a JournalVoucher:

SAPbobsCOM.JournalVouchers v = (SAPbobsCOM.JournalVouchers)c.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oJournalVouchers);
SAPbobsCOM.JournalEntries je = v.JournalEntries;
je.AutoVAT = SAPbobsCOM.BoYesNoEnum.tYES;
je.ReferenceDate = DateTime.Today;
je.Lines.AccountCode = "4000";
je.Lines.Debit = 100;
je.Lines.TaxGroup = "S0"; //S0 does exist
je.Lines.AccountCode = "4990";
je.Lines.Credit = 100;
int result = v.Add();

Running this code in SBO2005ASP01 PL50 gives me the following error: [OJDT.Series] , 'The connected value 'S0' was not found in table Tax Definition

Doing the same in SBO2007A SP00 PL41 does not give any problem so there must be some bug in SBO2005... Also it is possible to add the same data as a direct Journal Entry


- Anyone who can confirm this

- Have any kind of workaround (it is not an option to upgrade to SBO2007A)

- Have logged this to SAP Support (I'm in the process of doing it also)

/Rasmus Wulff Jensen

Not what you were looking for? View more on this topic or Ask a question