Skip to Content
0
Former Member
Oct 04, 2005 at 03:39 AM

Segmented account code in DIAPI

56 Views

Hi,

I have developed an addon for SBO 2004B.

My addon is failing after we applied patch 40.

This failure occures in some places where i use DIPAI and try to pass account code information.

Example;

I am synchronising item master information between 2 databases.

When i try to create a new item in item master in current logged in company, i also create the item in the other company using DIAPI. While doing that, i pick up the ExpenseAccount property in Inventory tab->warehouse information and call oSBO.GetObjectKeyBySingleValue(oChartOfAccounts, "FormatCode", Replace(sAcctCd, "-", ""), bqc_Equal) function to get the SAP string for the segmented account and pass it to DIAPI.

Before patch 40 it was working fine.

But now i see that the account code which i pick up from the form field is already in SAP string format(_SYS****)

hence when i call function GetObjectKeyBySingleValue, the account code cannot be found.This causes my function to fail.

My problem is how to know which form field return account codes in SAP string format and which ones return the segmented a/c code.

Any one having similar problem?

Any solutions?

Please help.

Thanks.