<?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 Re: ABAP SQL with CDS Path Exprssion Attributes(n|*) in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-sql-with-cds-path-exprssion-attributes-n/m-p/12570725#M2008458</link>
    <description>&lt;P&gt;For people interested to see more from the ABAP documentation:&lt;/P&gt;&lt;P&gt;Link 1: &lt;A href="https://help.sap.com/doc/abapdocu_754_index_htm/7.54/en-US/index.htm?file=abencds_path_expression_attr.htm"&gt;ABAP documentation (structure up to ABAP 7.54): ABAP CDS - path_expr, attributes&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Link 2: &lt;A href="https://help.sap.com/doc/abapdocu_latest_index_htm/latest/en-US/index.htm?file=abencds_path_expr_attr_v1.htm"&gt;Latest ABAP documentation (structure from ABAP 7.55) - CDS DDL - DDIC-based View, path_expr, attributes&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 04 Sep 2022 10:15:15 GMT</pubDate>
    <dc:creator>Sandra_Rossi</dc:creator>
    <dc:date>2022-09-04T10:15:15Z</dc:date>
    <item>
      <title>ABAP SQL with CDS Path Exprssion Attributes(n|*)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-sql-with-cds-path-exprssion-attributes-n/m-p/12570724#M2008457</link>
      <description>&lt;P&gt;Dear Experts:&lt;/P&gt;
  &lt;P&gt;I am studying Path Exprssion Attributes with below example.&lt;/P&gt; 
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2089791-image.png" /&gt;&lt;/P&gt; 
  &lt;P&gt;I have got a very big confusion when I change the cardinality in the example. I got some different results with different cardinalities. Are there any experts can explain the REASONs?&lt;/P&gt; 
  &lt;P&gt; &lt;/P&gt; 
  &lt;P&gt;My scar, spfli, sflight, sairport are below.&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2089793-image.png" /&gt;&lt;/P&gt; 
  &lt;P&gt; &lt;/P&gt; 
  &lt;P&gt;My doubtful SQL case1:&lt;/P&gt; 
  &lt;P&gt;WITH&lt;BR /&gt; +pathexpresson AS ( SELECT scarr~carrname,&lt;/P&gt;
  &lt;P&gt; \_spfli[ (1) ]-connid AS connid,&lt;BR /&gt; \_spfli[ (*) ]\_sflight[ (*) ]-fldate AS fldate,&lt;BR /&gt; \_spfli[ (*) ]\_sairport[ (1) ]-name AS name&lt;BR /&gt; FROM demo_cds_assoc_scarr AS scarr&lt;BR /&gt; WHERE scarr~carrid = 'AA'&lt;BR /&gt; ORDER BY carrname, connid, fldate&lt;BR /&gt; )"&lt;BR /&gt; SELECT carrname,connid,fldate,name FROM +pathexpresson INTO TABLE @DATA(lt_c01).&lt;/P&gt;
  &lt;P&gt; The result is &lt;/P&gt; 
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2089794-image.png" /&gt;&lt;/P&gt; 
  &lt;P&gt;I think the LFDATE=2021-05-08 is a wrong data. Why can it be output? &lt;/P&gt; 
  &lt;P&gt; &lt;/P&gt; 
  &lt;P&gt;My doubtful SQL case2:&lt;/P&gt; 
  &lt;P&gt;WITH&lt;BR /&gt; +pathexpresson AS ( SELECT scarr~carrname,&lt;/P&gt;
  &lt;P&gt; \_spfli[ (1) ]-connid AS connid,&lt;BR /&gt; \_spfli[ (1) ]\_sflight[ (*) ]-fldate AS fldate,&lt;BR /&gt; \_spfli[ (*) ]\_sairport[ (1) ]-name AS name&lt;BR /&gt; FROM demo_cds_assoc_scarr AS scarr&lt;BR /&gt; WHERE scarr~carrid = 'AA'&lt;BR /&gt; ORDER BY carrname, connid, fldate&lt;BR /&gt; )"&lt;BR /&gt; SELECT carrname,connid,fldate,name FROM +pathexpresson INTO TABLE @DATA(lt_c01).&lt;/P&gt; 
  &lt;P&gt;The result is&lt;/P&gt; 
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2089795-image.png" /&gt;&lt;/P&gt; 
  &lt;P&gt;I think the NAME= San Francisco Int Apt,USA is a wrong data. Why can it be output? &lt;/P&gt; 
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;Waiting for your answers. Thank you very much!&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 04 Sep 2022 02:11:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-sql-with-cds-path-exprssion-attributes-n/m-p/12570724#M2008457</guid>
      <dc:creator>bohong_liu</dc:creator>
      <dc:date>2022-09-04T02:11:07Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP SQL with CDS Path Exprssion Attributes(n|*)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-sql-with-cds-path-exprssion-attributes-n/m-p/12570725#M2008458</link>
      <description>&lt;P&gt;For people interested to see more from the ABAP documentation:&lt;/P&gt;&lt;P&gt;Link 1: &lt;A href="https://help.sap.com/doc/abapdocu_754_index_htm/7.54/en-US/index.htm?file=abencds_path_expression_attr.htm"&gt;ABAP documentation (structure up to ABAP 7.54): ABAP CDS - path_expr, attributes&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Link 2: &lt;A href="https://help.sap.com/doc/abapdocu_latest_index_htm/latest/en-US/index.htm?file=abencds_path_expr_attr_v1.htm"&gt;Latest ABAP documentation (structure from ABAP 7.55) - CDS DDL - DDIC-based View, path_expr, attributes&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 04 Sep 2022 10:15:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-sql-with-cds-path-exprssion-attributes-n/m-p/12570725#M2008458</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2022-09-04T10:15:15Z</dc:date>
    </item>
  </channel>
</rss>

