Advertisement
ignatov

Untitled

Oct 13th, 2021
1,199
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 0.65 KB | None | 0 0
  1. @AbapCatalog.sqlViewName: 'ZCDS_PRM'
  2. @AbapCatalog.compiler.compareFilter: true
  3. @AbapCatalog.preserveKey: true
  4. @AccessControl.authorizationCheck: #NOT_REQUIRED
  5. @EndUserText.label: 'CDS with params'
  6. define view zcds_params
  7.   with parameters
  8.     p_country_origin : char2
  9.   as select from ztbl1 as t1
  10.     inner join   ztbl2 as t2 on t1.id = t2.id
  11. {
  12.   key t1.id            as Id,
  13.  
  14.       t1.name          as Name,
  15.       t1.lastname      as Lastname,
  16.       t2.birthdate     as Birthdate,
  17.       t2.cellphone     as Cellphone,
  18.       t2.email         as Email,
  19.       t2.countryorigin as Countryorigin
  20. }
  21. where
  22.   countryorigin = $parameters.p_country_origin;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement