Skip to Content

How to create an instance of BO AccountingDocument programmaticly in ByD?


It seems there is not Create method in BO AccountingDocument. So, How can I create an instance in ABSL?

We found a Web service ManageJounalEntryIn in ByD Service Explorer (Application and User Management Work Center).

However, there is not the Web service in SAP Cloud Applications Studio in Repository Explorer.

Please, could you help us?

Thank you.

000105.jpg (108.1 kB)
Add comment
10|10000 characters needed characters exceeded

3 Answers

  • Best Answer
    Posted on Sep 21, 2017 at 12:36 PM

    Hi Aleksei,

    yes, Horst is right. If you want to create accounting documents, you need to start with the business transaction. Please check if the

    Business Object AccountingEntry is what you were looking for. This Business Object creates Journal Entry Vouchers. If you have different requirements, please share more details.

    Best regards

    Add comment
    10|10000 characters needed characters exceeded

  • Posted on Sep 18, 2017 at 11:33 AM

    Hello Aleksei,

    As the documenation of an AccountingDOcument states:

    • A representation of changes to values of general ledger and subledger accounts resulting from a business transaction and relating to a company and a set of books.

    it is the result of transactions. It can not manually be created or maintained. The system takes care of that.
    Of course you can query for it retrieve the data.

    . Horst

    Add comment
    10|10000 characters needed characters exceeded

  • Posted on Sep 22, 2017 at 08:52 AM

    Thank you, Marlene,

    As far as I can see we can use BO AccountingEntry (Journal Entry Voucher) for that purpose. If I am not mistaken it does the same what BO AccountingDocument does - creates a new accounting entry in the accounting journal.

    In our case, we have invoices where the gross amount value is different from the exact value (=quantity*price*(1*tax%) - it is rounded in some irregular way (it is supposed to be input manually).

    If invoices let negative items we could just create one more item in the invoice - for the rounding difference (negative or positive)

    For now, we have found some work around by creating a Credit Memo for each invoice, quite complicated way, though.

    Thank you.


    Add comment
    10|10000 characters needed characters exceeded

    • Motaz, First of all CompanyUUID expects an UUID. You're giving it a normal ID.

      Secondly AccountingEntry is in Deployment Unit "Financial". You cannot write across Deployment Units, you have to use an "Internal Communication" object for that or a web service call. You will probably also need to create a BO that is IN Deployment Unit "Financial".