Hello,

Sign up to join our community!

Welcome Back,

Please sign in to your account!

Forgot Password,

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

You must login to ask a question.

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

SAP EWM Help Latest Questions

  • 0
  • 0
basantbharti

Creating CDS View with table Join and Where condition

Example CDS view to join delivery table LIKP and LIPS on VBELN field and with LFART in where condition

------------------------------------------------------------
CDS VIEW:
------------------------------------------------------------
@AbapCatalog.viewEnhancementCategory: [#NONE]
@AccessControl.authorizationCheck: #NOT_REQUIRED
@EndUserText.label: 'CDS - Inner Join'
@Metadata.ignorePropagatedAnnotations: true
@ObjectModel.usageType:{
    serviceQuality: #X,
    sizeCategory: #S,
    dataClass: #MIXED
}
define view entity ZI_CDS_INNER_JOIN 
as select from LIKP               //Left
inner join LIPS                   //Right
on LIKP.VBELN = LIPS.VBELN        //Join Condition
{
    key likp.vbeln,
    key lips.posnr,
    likp.erdat,
    likp.lfart,
    lips.lfimg,
    @Semantics.amount.currencyCode: 'meins'
    lip.meins}
where likp.lfart = 'LF'

Related Questions

Leave an answer

Leave an answer