<?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 I_SALESDOCUMENTITEM subsequentDocument in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/i-salesdocumentitem-subsequentdocument/m-p/12676377#M2016638</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;
  &lt;P&gt;i am selecting some data from the CDS-View "I_SALESDOCUMENTITEM" and want to add some Information of the Subsequent Document.&lt;/P&gt;
  &lt;P&gt;The following statement is not responding a result for the Subsequent Document, even when the VBFA table contains the matching data:&lt;/P&gt; 
  &lt;PRE&gt;&lt;CODE&gt;  select I_SalesDocumentItem~* , \_MaterialText[ Language = @lv_lang ]-MaterialName as Materialtext,
  \_TotalDeliveryStatus-TotalDeliveryStatus as TotalDeliveryStatus,
  \_Product\_ProductStatus-Status as Materialstatus,
  \_SubsequentDocument[ SubsequentDocumentCategory = 'J' ]-SubsequentDocument as Lieferschein,
  \_SubsequentDocument[ SubsequentDocumentCategory = 'J' ]-SubsequentDocumentItem as Lieferscheinposition,
  \_SubsequentDocument[ SubsequentDocumentCategory = 'M' ]-SubsequentDocument as Faktura,
  \_SubsequentDocument[ SubsequentDocumentCategory = 'M' ]-SubsequentDocumentItem as Fakturaposition
  from I_SalesDocumentItem where
  SalesDocument = @i_salesordernumber
  into table @data(lt_salesdocitem).&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;I know that the associated CDS I_SDDocumentMultiLevelProcFlow has authorization check #priviledged_only , but the I_SALESDOCUMENTITEM has privilegedAssociations to that. &lt;/P&gt;
  &lt;P&gt;Any Idea why I am getting no result? &lt;/P&gt;</description>
    <pubDate>Thu, 06 Apr 2023 12:27:50 GMT</pubDate>
    <dc:creator>sebastianbocksh</dc:creator>
    <dc:date>2023-04-06T12:27:50Z</dc:date>
    <item>
      <title>I_SALESDOCUMENTITEM subsequentDocument</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/i-salesdocumentitem-subsequentdocument/m-p/12676377#M2016638</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
  &lt;P&gt;i am selecting some data from the CDS-View "I_SALESDOCUMENTITEM" and want to add some Information of the Subsequent Document.&lt;/P&gt;
  &lt;P&gt;The following statement is not responding a result for the Subsequent Document, even when the VBFA table contains the matching data:&lt;/P&gt; 
  &lt;PRE&gt;&lt;CODE&gt;  select I_SalesDocumentItem~* , \_MaterialText[ Language = @lv_lang ]-MaterialName as Materialtext,
  \_TotalDeliveryStatus-TotalDeliveryStatus as TotalDeliveryStatus,
  \_Product\_ProductStatus-Status as Materialstatus,
  \_SubsequentDocument[ SubsequentDocumentCategory = 'J' ]-SubsequentDocument as Lieferschein,
  \_SubsequentDocument[ SubsequentDocumentCategory = 'J' ]-SubsequentDocumentItem as Lieferscheinposition,
  \_SubsequentDocument[ SubsequentDocumentCategory = 'M' ]-SubsequentDocument as Faktura,
  \_SubsequentDocument[ SubsequentDocumentCategory = 'M' ]-SubsequentDocumentItem as Fakturaposition
  from I_SalesDocumentItem where
  SalesDocument = @i_salesordernumber
  into table @data(lt_salesdocitem).&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;I know that the associated CDS I_SDDocumentMultiLevelProcFlow has authorization check #priviledged_only , but the I_SALESDOCUMENTITEM has privilegedAssociations to that. &lt;/P&gt;
  &lt;P&gt;Any Idea why I am getting no result? &lt;/P&gt;</description>
      <pubDate>Thu, 06 Apr 2023 12:27:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/i-salesdocumentitem-subsequentdocument/m-p/12676377#M2016638</guid>
      <dc:creator>sebastianbocksh</dc:creator>
      <dc:date>2023-04-06T12:27:50Z</dc:date>
    </item>
    <item>
      <title>Re: I_SALESDOCUMENTITEM subsequentDocument</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/i-salesdocumentitem-subsequentdocument/m-p/12676378#M2016639</link>
      <description>&lt;P&gt;Hi &lt;SPAN class="mention-scrubbed"&gt;sebastianbockshecker&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;From my view not possible from above query. Create few CDS views for each document for header and item category, use it where condition to retrieve data. &lt;/P&gt;</description>
      <pubDate>Mon, 10 Apr 2023 03:46:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/i-salesdocumentitem-subsequentdocument/m-p/12676378#M2016639</guid>
      <dc:creator>SURYA_ABAP</dc:creator>
      <dc:date>2023-04-10T03:46:15Z</dc:date>
    </item>
  </channel>
</rss>

