<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic CDS View - Session variable not all result in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/cds-view-session-variable-not-all-result/m-p/12323001#M1991235</link>
    <description>&lt;P&gt;Hi team,&lt;/P&gt;
  &lt;P&gt;I am playing with CDS view and I am not really confortable on this. &lt;/P&gt;
  &lt;P&gt;So I try to create simple CDS view, and link these CDS with more complex CDS. &lt;/P&gt;
  &lt;P&gt;On several CDS, I have language column : SPRAS / LANGU ... so I try to put a session variable to filter the entries for only one language (the session language).&lt;/P&gt;
  &lt;P&gt;And it does not work, it is really strange. For a table I have 62 entries instead of 1212 for a second table I have 1120 entries instead of 1124 &lt;/P&gt;
  &lt;P&gt;my code is really simple&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;@AbapCatalog.sqlViewName: 'ZIPMSTATUTLIB02'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@AccessControl.authorizationCheck: #CHECK
@EndUserText.label: 'PM - Statut - xx'
define view ZI_PM_STATUT_USER_LIB as select from tj30t as Lib_Statut 


  {
    key Lib_Statut.stsma  as Schema_Statut,
    key Lib_Statut.estat  as Code_Statut,
        Lib_Statut.txt04  as Libelle_court,
        Lib_Statut.txt30  as Libelle_long
  } 
  where spras = $session.system_language 
&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;I have tried to replace language with fixe value, and it works perfectly&lt;/P&gt;
  &lt;P&gt;Thanks for help&lt;/P&gt;
  &lt;P&gt;Fred&lt;/P&gt;</description>
    <pubDate>Fri, 18 Dec 2020 15:05:37 GMT</pubDate>
    <dc:creator>FredericGirod</dc:creator>
    <dc:date>2020-12-18T15:05:37Z</dc:date>
    <item>
      <title>CDS View - Session variable not all result</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cds-view-session-variable-not-all-result/m-p/12323001#M1991235</link>
      <description>&lt;P&gt;Hi team,&lt;/P&gt;
  &lt;P&gt;I am playing with CDS view and I am not really confortable on this. &lt;/P&gt;
  &lt;P&gt;So I try to create simple CDS view, and link these CDS with more complex CDS. &lt;/P&gt;
  &lt;P&gt;On several CDS, I have language column : SPRAS / LANGU ... so I try to put a session variable to filter the entries for only one language (the session language).&lt;/P&gt;
  &lt;P&gt;And it does not work, it is really strange. For a table I have 62 entries instead of 1212 for a second table I have 1120 entries instead of 1124 &lt;/P&gt;
  &lt;P&gt;my code is really simple&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;@AbapCatalog.sqlViewName: 'ZIPMSTATUTLIB02'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@AccessControl.authorizationCheck: #CHECK
@EndUserText.label: 'PM - Statut - xx'
define view ZI_PM_STATUT_USER_LIB as select from tj30t as Lib_Statut 


  {
    key Lib_Statut.stsma  as Schema_Statut,
    key Lib_Statut.estat  as Code_Statut,
        Lib_Statut.txt04  as Libelle_court,
        Lib_Statut.txt30  as Libelle_long
  } 
  where spras = $session.system_language 
&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;I have tried to replace language with fixe value, and it works perfectly&lt;/P&gt;
  &lt;P&gt;Thanks for help&lt;/P&gt;
  &lt;P&gt;Fred&lt;/P&gt;</description>
      <pubDate>Fri, 18 Dec 2020 15:05:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cds-view-session-variable-not-all-result/m-p/12323001#M1991235</guid>
      <dc:creator>FredericGirod</dc:creator>
      <dc:date>2020-12-18T15:05:37Z</dc:date>
    </item>
    <item>
      <title>Re: CDS View - Session variable not all result</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cds-view-session-variable-not-all-result/m-p/12323002#M1991236</link>
      <description>&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;In sap gui default language is English 'EN'.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;@AbapCatalog.sqlViewName: 'zcdslang'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@AccessControl.authorizationCheck: #CHECK
@EndUserText.label: 'Scn'
define view zcds_scn as select from tj30t {
    stsma as Stsma,
    estat as Estat,
    spras as Spras,
    txt04 as Txt04,
    txt30 as Txt30,
    ltext as Ltext
} where spras = $session.system_language 
 
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;it will fetch corresponding Spras-EN filed only or Use Parameter.&lt;/P&gt;</description>
      <pubDate>Sat, 19 Dec 2020 06:47:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cds-view-session-variable-not-all-result/m-p/12323002#M1991236</guid>
      <dc:creator>prabhu_04</dc:creator>
      <dc:date>2020-12-19T06:47:02Z</dc:date>
    </item>
    <item>
      <title>Re: CDS View - Session variable not all result</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cds-view-session-variable-not-all-result/m-p/12323003#M1991237</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;to fetch data for spras either you can use session variable or parameter.&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1871593-code.png" /&gt;&lt;/P&gt;&lt;P&gt;You can fetch data for field spras = $session.system_language.&lt;/P&gt;&lt;P&gt;here number of entries that meet &lt;IMG alt="" /&gt;selection criteria is 288.&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1871594-img1.png" /&gt;&lt;/P&gt;&lt;P&gt;it will show 100 rows (partial output) but if u want to see all the records in output top right corner max row is there select how many rows you want and refresh it will display all the output as shown in below image&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1871595-img.png" /&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 19 Dec 2020 09:26:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cds-view-session-variable-not-all-result/m-p/12323003#M1991237</guid>
      <dc:creator>former_member697514</dc:creator>
      <dc:date>2020-12-19T09:26:37Z</dc:date>
    </item>
  </channel>
</rss>

