Skip to Content

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

How-to use the TradeReceivablesPayablesRegister BO?

Hello ByD experts,

I am facing a problem with the TradeReceivablesPayablesRegister BO.

I want to add a Project ID assigned to the Payables and Receivables according to the assignment done on the corresponding Invoices.

The logic is not hard, but the context of the BO is I think.

Here is how the BO is structured:

Root node: NO Public write access, NOT extensible

Item node: NO Public Write Access, IS extensible

ItemOverview node: NO Public write access, NOT extensible

Finally, the QueryByelements is in the ItemOverview Node.

So what I did is I used the query from the ItemOverview node and I extended the Item node with my require extension field.

However, when I code and I am in the ItemOverview after my query, I cannot use the ToRoot or the ToParent association. This is making impossible for me to go and put a value for my extension field in the Item node.

I already encountered a similar problem with a BO structured the same way as this one (ProjectExpenseView BO).

- Is this due to the fact this BO has no Public Write Access?

- Do all the Business Administration Object have no Public Write Access?

- When a BO or its nodes have NO public write access, does this means we cannot even create our own BO and write in it?

- Finally, do I need to ask SAP to release this BO for Public Write Access?

Thank you all for your attention.

Best regards.
Jacques-Antoine

Tags:
replied

Hello Jacques-Antoine,

The "RetrievedItem" is a data structure not a node. Therefore you see all elements of this data structure but nothing from the node like associations, queries, ...

Please replace the statement "resultData = query.ExecuteDataOnly(..." by "resultData = query.Execute(..."

HTH,

    Horst


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