cancel
Showing results for 
Search instead for 
Did you mean: 

Error adding invoice [OACT], No matching record found.

Former Member
0 Kudos

I wrote a Delphi program to load all open invoices from a legacy system into SAP BO. I get the account number using the following code:

-


vBob := Company1.GetBusinessObject(BOBridge) as ISBOBob;

aRecordSet:= vBob.GetObjectKeyBySingleValue(oChartOfAccounts, 'FormatCode','40000000495',bqc_equal);

AcctCode := aRecordSet.Fields.Items(0).Value;

I checked AcctCode and its value is '_SYS00000000292', this value is passed as AccountCode. I verified that key on table OACT and it corresponds to account '4000000495'. When I try to post the invoice with the Add method I get error 2028:

Error adding invoice [OACT], No matching record found.

I even tried to pass the key value as a constant. The Data Transfer Workbench gives me the same error.

Any ideas???

Accepted Solutions (1)

Accepted Solutions (1)

AdKerremans
Active Contributor
0 Kudos

your account code is '4000000495' and not '_SYS00000000292'

Former Member
0 Kudos

From previous posts I understand that if I use segmented accounts I must pass the '_SYS000...' key value, instead of the acctual account number. Is that true???

Thanks for your reply.

barend_morkel2
Active Contributor
0 Kudos

That is true '_SYS000...' key value is the ID of the account in table OACT. Thus you would be using this key through out the DI API. (The Account name is just for displaying purposes)

Answers (0)