<?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 Issue with RAP singleton instance handle validation and message propagation in RAP OData V4 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-rap-singleton-instance-handle-validation-and-message-propagation/m-p/14020463#M2038551</link>
    <description>&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;We are working with a RAP Singleton OData V4 service that includes validations to restrict the &lt;STRONG&gt;SAVE&lt;/STRONG&gt; operation using the &lt;STRONG&gt;FAILED &lt;/STRONG&gt;structure under &lt;STRONG&gt;FOR VALIDATE ON SAVE&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="abap"&gt;APPEND VALUE #( %tky = ls_transactional_data-%tky ) TO  failed-ProjectSBUAlloc.
        APPEND VALUE #( %tky = ls_transactional_data-%tky
              %state_area = 'VALIDATE_PERCENT'
              %path-ProjectSBUAllocAll = CORRESPONDING #( ls_transactional_data )
              %element-distkey = if_abap_behv=&amp;gt;mk-on
              %msg     = new_message(

                  id       =  'ZTEST'
                  number   =  000
                  severity = if_abap_behv_message=&amp;gt;severity-error "CONV #( 'E')
                  v1       = 'Percentage value cannot be greater than 100'
                  )
        ) TO  reported-ProjectSBUAlloc.&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This works as expected in the Eclipse ADT preview, but we are facing an issue when accessing it via the Fiori app.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MKM_0-1739898785173.png" style="width: 999px;"&gt;&lt;img src="https://community.sap.com/t5/image/serverpage/image-id/227245iE72BE8FFEB9B0116/image-size/large?v=v2&amp;amp;px=999" role="button" title="MKM_0-1739898785173.png" alt="MKM_0-1739898785173.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The custom validation message does not appear on the UI; instead, only the framework error (RAP_DSP_REQUEST/023) is returned. Despite properly updating the FAILED AND REPORTED structures, the validation failures are not being correctly tied to the singleton instance, unlike regular entities.&lt;/P&gt;&lt;P&gt;The RAP framework is overriding the message, preventing it from being properly surfaced in the response.&lt;/P&gt;&lt;P&gt;What would be the best approach to ensure that our &lt;STRONG&gt;custom validation messages&lt;/STRONG&gt; are correctly displayed in the UI when using RAP?&lt;/P&gt;&lt;P&gt;Any suggestions would be greatly appreciated!&lt;/P&gt;</description>
    <pubDate>Tue, 18 Feb 2025 17:41:35 GMT</pubDate>
    <dc:creator>MKM</dc:creator>
    <dc:date>2025-02-18T17:41:35Z</dc:date>
    <item>
      <title>Issue with RAP singleton instance handle validation and message propagation in RAP OData V4</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-rap-singleton-instance-handle-validation-and-message-propagation/m-p/14020463#M2038551</link>
      <description>&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;We are working with a RAP Singleton OData V4 service that includes validations to restrict the &lt;STRONG&gt;SAVE&lt;/STRONG&gt; operation using the &lt;STRONG&gt;FAILED &lt;/STRONG&gt;structure under &lt;STRONG&gt;FOR VALIDATE ON SAVE&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="abap"&gt;APPEND VALUE #( %tky = ls_transactional_data-%tky ) TO  failed-ProjectSBUAlloc.
        APPEND VALUE #( %tky = ls_transactional_data-%tky
              %state_area = 'VALIDATE_PERCENT'
              %path-ProjectSBUAllocAll = CORRESPONDING #( ls_transactional_data )
              %element-distkey = if_abap_behv=&amp;gt;mk-on
              %msg     = new_message(

                  id       =  'ZTEST'
                  number   =  000
                  severity = if_abap_behv_message=&amp;gt;severity-error "CONV #( 'E')
                  v1       = 'Percentage value cannot be greater than 100'
                  )
        ) TO  reported-ProjectSBUAlloc.&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This works as expected in the Eclipse ADT preview, but we are facing an issue when accessing it via the Fiori app.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MKM_0-1739898785173.png" style="width: 999px;"&gt;&lt;img src="https://community.sap.com/t5/image/serverpage/image-id/227245iE72BE8FFEB9B0116/image-size/large?v=v2&amp;amp;px=999" role="button" title="MKM_0-1739898785173.png" alt="MKM_0-1739898785173.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The custom validation message does not appear on the UI; instead, only the framework error (RAP_DSP_REQUEST/023) is returned. Despite properly updating the FAILED AND REPORTED structures, the validation failures are not being correctly tied to the singleton instance, unlike regular entities.&lt;/P&gt;&lt;P&gt;The RAP framework is overriding the message, preventing it from being properly surfaced in the response.&lt;/P&gt;&lt;P&gt;What would be the best approach to ensure that our &lt;STRONG&gt;custom validation messages&lt;/STRONG&gt; are correctly displayed in the UI when using RAP?&lt;/P&gt;&lt;P&gt;Any suggestions would be greatly appreciated!&lt;/P&gt;</description>
      <pubDate>Tue, 18 Feb 2025 17:41:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-rap-singleton-instance-handle-validation-and-message-propagation/m-p/14020463#M2038551</guid>
      <dc:creator>MKM</dc:creator>
      <dc:date>2025-02-18T17:41:35Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with RAP singleton instance handle validation and message propagation in RAP OData V4</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-rap-singleton-instance-handle-validation-and-message-propagation/m-p/14111045#M2041892</link>
      <description>&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;Dear,&lt;/DIV&gt;&lt;DIV class=""&gt;was this issue solved..? we are on S4HANA ON PREMISE SAP S/4HANA 2022 (SP/FP 02 (05/2023) )..&lt;/DIV&gt;&lt;DIV class=""&gt;I am facing similar situation.&amp;nbsp;my custom validation message is not displayed and only we get to see the message ("Resolve data inconsistencies to save changes.").. I have exactly same code when mapping to failed and reported.. I have issue in both FLP and&amp;nbsp;&lt;SPAN&gt;Eclipse ADT preview..&lt;/SPAN&gt;&amp;nbsp;I am using SAP RAP based OData v4 service in FE template ..any guidance would be helpful.. best regards,&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Sun, 25 May 2025 13:58:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-rap-singleton-instance-handle-validation-and-message-propagation/m-p/14111045#M2041892</guid>
      <dc:creator>AZIZURRAHMAN</dc:creator>
      <dc:date>2025-05-25T13:58:59Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with RAP singleton instance handle validation and message propagation in RAP OData V4</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-rap-singleton-instance-handle-validation-and-message-propagation/m-p/14215853#M2042457</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I wanted to ask if there has been any further progress or solution discovered for this issue? If you have any new insights, fixes, or workarounds, I would really appreciate if you could share them.&lt;/P&gt;&lt;P&gt;Thanks in advance for your help!&lt;/P&gt;&lt;P&gt;Best Retards&lt;/P&gt;</description>
      <pubDate>Fri, 12 Sep 2025 13:04:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-rap-singleton-instance-handle-validation-and-message-propagation/m-p/14215853#M2042457</guid>
      <dc:creator>iliana</dc:creator>
      <dc:date>2025-09-12T13:04:41Z</dc:date>
    </item>
  </channel>
</rss>

