<?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: Validation not triggering - ABAP RAP Unmanaged in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/validation-not-triggering-abap-rap-unmanaged/qaa-p/12770415#M4794166</link>
    <description>&lt;P&gt;No feedback in the forum, that's unfair to the people who have read the question and helped. But okay for watching a 43 minutes video, possibly subscribing to your channel.&lt;/P&gt;&lt;P&gt;Think to write a summary here, reading 30 seconds would be a fair counterpart...&lt;/P&gt;</description>
    <pubDate>Mon, 18 Dec 2023 18:49:43 GMT</pubDate>
    <dc:creator>Sandra_Rossi</dc:creator>
    <dc:date>2023-12-18T18:49:43Z</dc:date>
    <item>
      <title>Validation not triggering - ABAP RAP Unmanaged</title>
      <link>https://community.sap.com/t5/technology-q-a/validation-not-triggering-abap-rap-unmanaged/qaq-p/12770407</link>
      <description>&lt;P&gt;Hi I am trying to put simple validation in Unmanaged RAP. Below is my validation method looks like&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2230702-image.png" /&gt;&lt;/P&gt;
  &lt;P&gt;I am seeing message in yellow color... what this message means?&lt;/P&gt;
  &lt;P&gt;After some reading got to know we need to add &lt;STRONG&gt;determine action &lt;/STRONG&gt;and added that method (commented in above screen shot).&lt;/P&gt;
  &lt;P&gt;Still Validation is not triggered...&lt;/P&gt;
  &lt;P&gt;In unmanaged scenario validation needs to be done in &lt;STRONG&gt;check_before_save&lt;/STRONG&gt; method. So is that means Validations can not be used in Unmanaged scenario ?&lt;/P&gt;
  &lt;P&gt;I have already used Validation in Managed scenario and it works fine...&lt;/P&gt;
  &lt;P&gt;Any direction to documentation regarding this issue will help...&lt;/P&gt;
  &lt;P&gt;Thanks-&lt;/P&gt;
  &lt;P&gt;Abhishek&lt;/P&gt;</description>
      <pubDate>Fri, 08 Dec 2023 23:54:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/validation-not-triggering-abap-rap-unmanaged/qaq-p/12770407</guid>
      <dc:creator>AbhishekSharma</dc:creator>
      <dc:date>2023-12-08T23:54:13Z</dc:date>
    </item>
    <item>
      <title>Re: Validation not triggering - ABAP RAP Unmanaged</title>
      <link>https://community.sap.com/t5/technology-q-a/validation-not-triggering-abap-rap-unmanaged/qaa-p/12770408#M4794159</link>
      <description>&lt;P&gt;As per documentation, validation works with only draft instances. Have you enabled draft for your BO ?&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.sap.com/docs/ABAP_PLATFORM_NEW/fc4c71aa50014fd1b43721701471913d/171e26c36cca42699976887b4c8a83bf.html?locale=en-US"&gt;https://help.sap.com/docs/ABAP_PLATFORM_NEW/fc4c71aa50014fd1b43721701471913d/171e26c36cca42699976887b4c8a83bf.html?locale=en-US&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 09 Dec 2023 03:48:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/validation-not-triggering-abap-rap-unmanaged/qaa-p/12770408#M4794159</guid>
      <dc:creator>Muthu_raja</dc:creator>
      <dc:date>2023-12-09T03:48:12Z</dc:date>
    </item>
    <item>
      <title>Re: Validation not triggering - ABAP RAP Unmanaged</title>
      <link>https://community.sap.com/t5/technology-q-a/validation-not-triggering-abap-rap-unmanaged/qaa-p/12770409#M4794160</link>
      <description>&lt;P&gt;Mention to enable efficient indexing of the question:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;Validation "validateMethod" is not assigned to any determine action (not even "Prepare").&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 09 Dec 2023 14:28:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/validation-not-triggering-abap-rap-unmanaged/qaa-p/12770409#M4794160</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2023-12-09T14:28:24Z</dc:date>
    </item>
    <item>
      <title>Re: Validation not triggering - ABAP RAP Unmanaged</title>
      <link>https://community.sap.com/t5/technology-q-a/validation-not-triggering-abap-rap-unmanaged/qaa-p/12770410#M4794161</link>
      <description>&lt;P&gt;Hi  &lt;SPAN class="mention-scrubbed"&gt;muthuraja.muthaiah&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;yes, draft is enable in application.&lt;/P&gt;&lt;P&gt;Thanks-&lt;/P&gt;</description>
      <pubDate>Mon, 11 Dec 2023 14:38:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/validation-not-triggering-abap-rap-unmanaged/qaa-p/12770410#M4794161</guid>
      <dc:creator>AbhishekSharma</dc:creator>
      <dc:date>2023-12-11T14:38:22Z</dc:date>
    </item>
    <item>
      <title>Re: Validation not triggering - ABAP RAP Unmanaged</title>
      <link>https://community.sap.com/t5/technology-q-a/validation-not-triggering-abap-rap-unmanaged/qaa-p/12770411#M4794162</link>
      <description>&lt;P&gt;Hi Abhishek,&lt;/P&gt;&lt;P&gt;When using validations in Unmanged Scenario + Draft. The validations must be attached to any of the Draft Actions (SAP names them "Actions", but I see them as events).&lt;/P&gt;&lt;P&gt;In my case, I created the following validation to validate Mandatory Fields when Draft is going to be persisted:&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2232684-image.png" /&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Dec 2023 16:49:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/validation-not-triggering-abap-rap-unmanaged/qaa-p/12770411#M4794162</guid>
      <dc:creator>DiegoValdivia</dc:creator>
      <dc:date>2023-12-11T16:49:21Z</dc:date>
    </item>
    <item>
      <title>Re: Validation not triggering - ABAP RAP Unmanaged</title>
      <link>https://community.sap.com/t5/technology-q-a/validation-not-triggering-abap-rap-unmanaged/qaa-p/12770412#M4794163</link>
      <description>&lt;P&gt;Hi  &lt;SPAN class="mention-scrubbed"&gt;diegovaldivia&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;Thanks much for your response...&lt;/P&gt;&lt;P&gt;I understood this and I tried this as well but I don't know how to call this &lt;STRONG&gt;"Prepare"&lt;/STRONG&gt; method (in your example)&lt;/P&gt;&lt;P&gt;Do I need to implement determination as well ? How this validation will get Triggered ?&lt;/P&gt;&lt;P&gt;This validation will not Trigger until there is a Draft entry in system or Validation will only be Triggered when opening Draft entry to make any changes ?&lt;/P&gt;&lt;P&gt;Thanks-&lt;/P&gt;&lt;P&gt;Abhishek&lt;/P&gt;</description>
      <pubDate>Mon, 11 Dec 2023 16:58:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/validation-not-triggering-abap-rap-unmanaged/qaa-p/12770412#M4794163</guid>
      <dc:creator>AbhishekSharma</dc:creator>
      <dc:date>2023-12-11T16:58:00Z</dc:date>
    </item>
    <item>
      <title>Re: Validation not triggering - ABAP RAP Unmanaged</title>
      <link>https://community.sap.com/t5/technology-q-a/validation-not-triggering-abap-rap-unmanaged/qaa-p/12770413#M4794164</link>
      <description>&lt;P&gt;Hi Abhishek,&lt;/P&gt;&lt;P&gt;The Prepare method will be called automatically by the RAP framework as soon as you press the Save button.&lt;/P&gt;&lt;P&gt;The RAP Framework usually calls those Draft actions implicitly, that is, we developers don't need to implement any code to handle such Actions, but in cases where we need to do "something" when certain action occurs, then we need to add some code to given actions. In the code in my screenshot, I'm telling the framework to execute given validation when the user presses the Save button. &lt;/P&gt;&lt;P&gt;You don't need to implement the Determination in my screenshot, I'm using it for other stuff not related to your question.&lt;/P&gt;&lt;P&gt;Please refer to following documentation for further information:&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.sap.com/docs/abap-cloud/abap-rap/draft-actions?version=sap_btp" target="_blank"&gt;RAP - Draft Actions&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I would suggest to implement the Validation method, then set a breakpoint inside it and save a Draft document. You will be able to see the moment it's called.&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Dec 2023 18:28:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/validation-not-triggering-abap-rap-unmanaged/qaa-p/12770413#M4794164</guid>
      <dc:creator>DiegoValdivia</dc:creator>
      <dc:date>2023-12-11T18:28:15Z</dc:date>
    </item>
    <item>
      <title>Re: Validation not triggering - ABAP RAP Unmanaged</title>
      <link>https://community.sap.com/t5/technology-q-a/validation-not-triggering-abap-rap-unmanaged/qaa-p/12770414#M4794165</link>
      <description>&lt;P&gt;Hi Abhishek,&lt;/P&gt;&lt;P&gt;check if the draft determine action is already exposed in Projection Behaviour ?&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;// if you use validation in custom determine action - The way you commented in your code&lt;BR /&gt;use action trigger_all ;&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;Or &lt;PRE&gt;&lt;CODE&gt;// if you use the validation in standard prepare action. &lt;BR /&gt;// --Base behaviour&lt;BR /&gt;draft determine action prepare &lt;BR /&gt;{&lt;BR /&gt;validation validate_age ;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;// -- Projection behaviour&lt;BR /&gt;use action prepare ;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;Best wishes,&lt;P&gt;Ramjee Korada&lt;/P&gt;</description>
      <pubDate>Tue, 12 Dec 2023 10:01:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/validation-not-triggering-abap-rap-unmanaged/qaa-p/12770414#M4794165</guid>
      <dc:creator>Ramjee_korada</dc:creator>
      <dc:date>2023-12-12T10:01:23Z</dc:date>
    </item>
    <item>
      <title>Re: Validation not triggering - ABAP RAP Unmanaged</title>
      <link>https://community.sap.com/t5/technology-q-a/validation-not-triggering-abap-rap-unmanaged/qaa-p/12770415#M4794166</link>
      <description>&lt;P&gt;No feedback in the forum, that's unfair to the people who have read the question and helped. But okay for watching a 43 minutes video, possibly subscribing to your channel.&lt;/P&gt;&lt;P&gt;Think to write a summary here, reading 30 seconds would be a fair counterpart...&lt;/P&gt;</description>
      <pubDate>Mon, 18 Dec 2023 18:49:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/validation-not-triggering-abap-rap-unmanaged/qaa-p/12770415#M4794166</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2023-12-18T18:49:43Z</dc:date>
    </item>
    <item>
      <title>Re: Validation not triggering - ABAP RAP Unmanaged</title>
      <link>https://community.sap.com/t5/technology-q-a/validation-not-triggering-abap-rap-unmanaged/qaa-p/12770416#M4794167</link>
      <description>&lt;P&gt; &lt;SPAN class="mention-scrubbed"&gt;sandra.rossi&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;Noted... and I have updated the answer... &lt;/P&gt;&lt;P&gt;and I have no Intension and I am not asking anyone to view videos, there are also many answers and blogs which have just sap help link or youtube video...&lt;/P&gt;&lt;P&gt;Thanks-&lt;/P&gt;</description>
      <pubDate>Mon, 18 Dec 2023 19:26:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/validation-not-triggering-abap-rap-unmanaged/qaa-p/12770416#M4794167</guid>
      <dc:creator>AbhishekSharma</dc:creator>
      <dc:date>2023-12-18T19:26:12Z</dc:date>
    </item>
    <item>
      <title>Re: Validation not triggering - ABAP RAP Unmanaged</title>
      <link>https://community.sap.com/t5/technology-q-a/validation-not-triggering-abap-rap-unmanaged/qaa-p/12770417#M4794168</link>
      <description>&lt;P&gt;So, you removed the link to the video you did, but you did not take time to write a small feedback. Please take back the video and &lt;STRONG&gt;add a feedback &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Dec 2023 07:17:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/validation-not-triggering-abap-rap-unmanaged/qaa-p/12770417#M4794168</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2023-12-19T07:17:38Z</dc:date>
    </item>
  </channel>
</rss>

