Skip to Content
author's profile photo Former Member
Former Member

Segmented account code in DIAPI


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.


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.


Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Oct 05, 2005 at 06:23 AM

    Hi Satish,

    By default SBO works with the "account codes in SAP string format" (_SYS****). You should use this where ever you can (it's much easer than trying to resolve the segemented account code - which is really only for displaying purposes).

    Hope this clarifies the situation a bit...

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.