on 2024 Oct 02 4:25 PM
Hello, I am working on a sql S/4 HANA db.
Anyone has an idea how to join the tables BSEG, BKPF with EKBE and EKPO.
Thank you.
Request clarification before answering.
There are several standard CDS view involving those 4 tables.
You can run statement like this one to identify them
SELECT TOP 10
"DEPENDENT_SCHEMA_NAME",
"DEPENDENT_OBJECT_NAME",
"DEPENDENT_OBJECT_TYPE",
STRING_AGG("BASE_OBJECT_NAME", ', ' ORDER BY "BASE_OBJECT_NAME" ) "TABLES"
FROM (SELECT
DISTINCT "BASE_SCHEMA_NAME",
"BASE_OBJECT_NAME",
"BASE_OBJECT_TYPE",
"DEPENDENT_DATABASE_NAME",
"DEPENDENT_SCHEMA_NAME",
"DEPENDENT_OBJECT_NAME",
"DEPENDENT_OBJECT_TYPE",
1 "COUNTER"
FROM "SYS"."OBJECT_DEPENDENCIES"
WHERE "BASE_OBJECT_TYPE" = 'TABLE'
AND "BASE_OBJECT_NAME" IN ('BSEG', 'BKPF', 'EKBE', 'EKPO'))
GROUP BY "DEPENDENT_SCHEMA_NAME",
"DEPENDENT_OBJECT_NAME",
"DEPENDENT_OBJECT_TYPE"
ORDER BY SUM("COUNTER") DESC
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
11 | |
10 | |
2 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.