Advertisement
ignatov

Untitled

Oct 13th, 2021
3,381
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQL 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