Hi All,
I am working with Custom Business Objects in SAP S/4HANA Public Cloud and I have created two CBOs:
Product Group Management (CBO1)
CODPROD (CHAR, 4) → Product Group
CODDESCR (CHAR, 30) → Description
Assign Product Group (CBO2)
CODPROD (CHAR, 4) → Product Group
CODDESCR (CHAR, 30) → Description
CHECKSER (CHAR, 1) → Serial Check
ZSERIAL (CHAR, 30) → Mandatory List of serials
My requirement:
In CBO2, I want to fetch CODPROD and CODDESCR values from CBO1 (instead of maintaining them separately).
Problem:
I tried using association from CBO2 to CBO1, but I am getting errors. It seems the CBO framework only allows referencing the root entity, not directly fetching additional fields.
Question:
👉 How can I properly model this scenario so that CBO2 uses CODPROD from CBO1, and also displays CODDESCR without duplicating data? Should I handle this via association + custom CDS view join, or is there a direct way in CBO itself?
Thanks in advance for your guidance!
ABAP Development SAP S/4HANA Cloud Public Edition Extensibility
Request clarification before answering.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.