cancel
Showing results for 
Search instead for 
Did you mean: 
Subscribe

Hi All,

I am working with Custom Business Objects in SAP S/4HANA Public Cloud and I have created two CBOs:

  1. Product Group Management (CBO1)

    • CODPROD (CHAR, 4) → Product Group

    • CODDESCR (CHAR, 30) → Description

  2. 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 

0 Likes
View Entire Topic
Chuma
Active Contributor
0 Likes