FMUSFGA_COMPAT
Compatibility view for FMUSFGA replace with ACDOCA
FMUSFGA_COMPAT is a CDS View that provides data about "Compatibility view for FMUSFGA replace with ACDOCA" in SAP S/4HANA. It reads from 3 data sources (acdoca, fmfg_uj_activ, fmusfga) and exposes 39 fields.
Data Sources (3)
| Source | Alias | Join Type |
|---|---|---|
| acdoca | acdoca | union_all |
| fmfg_uj_activ | activation | inner |
| fmusfga | fmusfga | from |
Annotations (9)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | FMUSFGA_COMPAT_V | view | |
| ClientHandling.algorithm | #AUTOMATED | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | false | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| EndUserText.label | Compatibility view for FMUSFGA replace with ACDOCA | view |
Fields (39)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| rclnt | rclnt | |||
| gl_sirid | gl_sirid | |||
| rldnr | rldnr | |||
| rrcty | rrcty | |||
| rvers | rvers | |||
| ryear | ryear | |||
| rtcur | rtcur | |||
| drcrk | drcrk | |||
| poper | poper | |||
| docct | docct | |||
| docnr | docnr | |||
| docln | docln | |||
| rbukrs | rbukrs | |||
| racct | racct | |||
| rbusa | rbusa | |||
| rprctr | rprctr | |||
| rcntr | rcntr | |||
| rprojk | rprojk | |||
| rfarea | rfarea | |||
| posidrclnt | ||||
| gl_sirid | ||||
| rldnr | ||||
| rrcty | rrcty | |||
| rvers | ||||
| ryear | ryear | |||
| rtcur | rtcur | |||
| drcrk | drcrk | |||
| poper | poper | |||
| docct | ||||
| docnr | acdoca | belnr | ||
| docln | docln | |||
| rbukrs | rbukrs | |||
| racct | racct | |||
| rbusa | rbusa | |||
| rprctr | acdoca | prctr | ||
| rcntr | rcntr | |||
| rprojk | prps | pspnr | ||
| rfarea | rfarea | |||
| rfund | rfund |
@AbapCatalog.sqlViewName: 'FMUSFGA_COMPAT_V'
@ClientHandling.algorithm: #AUTOMATED // SESSION_VARIABLE causes short dump with CLIENT-SPECIFIED
@ObjectModel.usageType.dataClass: #TRANSACTIONAL
@ObjectModel.usageType.serviceQuality: #C
@ObjectModel.usageType.sizeCategory: #XL
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.viewEnhancementCategory: [#UNION, #PROJECTION_LIST]
@AbapCatalog.preserveKey:false
@AccessControl.authorizationCheck: #NOT_REQUIRED
@EndUserText.label: 'Compatibility view for FMUSFGA replace with ACDOCA'
define view FMUSFGA_COMPAT
as select from fmusfga
{
rclnt,
gl_sirid,
rldnr,
rrcty,
rvers,
ryear,
rtcur,
drcrk,
poper,
docct,
docnr,
docln,
rbukrs,
racct,
rbusa,
rprctr,
rcntr,
rprojk,
rfarea,
rfund
}
union all
select from acdoca
inner join fmfg_uj_activ as activation on acdoca.rclnt = activation.client
association [1..1] to finsc_ledger on acdoca.rldnr = finsc_ledger.rldnr
and finsc_ledger.xleading = 'X' // Leading ledger only
association [1..1] to bkpf on acdoca.rbukrs = bkpf.bukrs // TO GET HEADER FIELDS NOT DUPLICATED IN ACDOCA
and acdoca.gjahr = bkpf.gjahr
and acdoca.belnr = bkpf.belnr
association [0..1] to prps on acdoca.ps_posid = prps.posid // TO GET CORRECT FORMAT TO REPLACE FMUSFGA.PROJK
{
rclnt,
cast('000000000000000000' as abap.char( 18 )) as gl_sirid,
cast('95' as abap.char(2)) as rldnr,
rrcty,
cast('001' as abap.char(3)) as rvers,
ryear,
rtcur,
drcrk,
poper,
'S' as docct,
acdoca.belnr as docnr,
docln,
rbukrs,
racct,
rbusa,
acdoca.prctr as rprctr,
rcntr,
prps.pspnr as rprojk,
rfarea,
rfund
}
where
activation.uj_activation_timestamp <= acdoca.timestamp // Entered on or after UL activation
and acdoca.rldnr = finsc_ledger.rldnr
and(
bstat = ' '
or bstat = 'L'
or bstat = 'U'
or bstat = 'J'
or bstat = 'T'
or (bstat = 'C' and poper = '000')
) // Normal/clearing/reset clearing/noted items only
// Updated with new bstat values based on feedback from FI (Ruediger)
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"ACDOCA",
"FINSC_LEDGER",
"FMFG_UJ_ACTIV",
"FMUSFGA",
"PRPS"
],
"ASSOCIATED":
[],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/
Learn More
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- CDS View Annotations — A Complete Guide
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA