<?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>Question Re: RAP Application EMail Template CDS Data Source picks... in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/rap-application-email-template-cds-data-source-picks-old-value-before-save/qaa-p/14469330#M4947879</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.sap.com/t5/user/viewprofilepage/user-id/15571"&gt;@sh4il3sh&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;The email template is likely reading data directly from the CDS view before the updated department code is committed to the database. In save_modified, the new value may exist only in the transactional buffer.&lt;/P&gt;&lt;P&gt;To get the new department code in the email:&lt;/P&gt;&lt;P&gt;Read the updated value from the RAP transactional buffer (entities) instead of the database.&lt;BR /&gt;Or trigger the email after successful save/commit so the CDS view reads the latest persisted data.&lt;BR /&gt;If using a CDS-based email template, ensure the updated record is committed before the template is generated.&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Sravan&lt;/P&gt;</description>
    <pubDate>Fri, 21 Aug 2026 13:00:57 GMT</pubDate>
    <dc:creator>sravan_aleshwaram</dc:creator>
    <dc:date>2026-08-21T13:00:57Z</dc:date>
    <item>
      <title>RAP Application EMail Template CDS Data Source picks old value before save.</title>
      <link>https://community.sap.com/t5/technology-q-a/rap-application-email-template-cds-data-source-picks-old-value-before-save/qaq-p/14469041</link>
      <description>&lt;P&gt;I have a RAP Read Only application with a button made with CDS Custom Entity.&lt;BR /&gt;This throws a popup with value help for user to pick a new departmentcode.&lt;BR /&gt;&lt;BR /&gt;At the &lt;STRONG&gt;METHOD&amp;nbsp;save_modified&amp;nbsp;&lt;/STRONG&gt;I am calling the email template created in SE80, the CDS view in email template is the Root CDS View which joins my custom table with sales tables.&lt;BR /&gt;&lt;BR /&gt;The custom table has new departmentcode field which is getting updated.&lt;BR /&gt;How do I get the new departmentcode in email CDS instead of old departmentcode please?&lt;/P&gt;</description>
      <pubDate>Fri, 21 Aug 2026 06:27:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/rap-application-email-template-cds-data-source-picks-old-value-before-save/qaq-p/14469041</guid>
      <dc:creator>sh4il3sh</dc:creator>
      <dc:date>2026-08-21T06:27:34Z</dc:date>
    </item>
    <item>
      <title>Re: RAP Application EMail Template CDS Data Source picks...</title>
      <link>https://community.sap.com/t5/technology-q-a/rap-application-email-template-cds-data-source-picks-old-value-before-save/qaa-p/14469330#M4947879</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.sap.com/t5/user/viewprofilepage/user-id/15571"&gt;@sh4il3sh&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;The email template is likely reading data directly from the CDS view before the updated department code is committed to the database. In save_modified, the new value may exist only in the transactional buffer.&lt;/P&gt;&lt;P&gt;To get the new department code in the email:&lt;/P&gt;&lt;P&gt;Read the updated value from the RAP transactional buffer (entities) instead of the database.&lt;BR /&gt;Or trigger the email after successful save/commit so the CDS view reads the latest persisted data.&lt;BR /&gt;If using a CDS-based email template, ensure the updated record is committed before the template is generated.&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Sravan&lt;/P&gt;</description>
      <pubDate>Fri, 21 Aug 2026 13:00:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/rap-application-email-template-cds-data-source-picks-old-value-before-save/qaa-p/14469330#M4947879</guid>
      <dc:creator>sravan_aleshwaram</dc:creator>
      <dc:date>2026-08-21T13:00:57Z</dc:date>
    </item>
    <item>
      <title>Re: RAP Application EMail Template CDS Data Source picks...</title>
      <link>https://community.sap.com/t5/technology-q-a/rap-application-email-template-cds-data-source-picks-old-value-before-save/qaa-p/14470366#M4947937</link>
      <description>thanks for the reply, is there anyway I can pick it up from CDS views? Need the client to change templates in future without code change.</description>
      <pubDate>Mon, 24 Aug 2026 06:20:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/rap-application-email-template-cds-data-source-picks-old-value-before-save/qaa-p/14470366#M4947937</guid>
      <dc:creator>sh4il3sh</dc:creator>
      <dc:date>2026-08-24T06:20:55Z</dc:date>
    </item>
  </channel>
</rss>

