<?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 User restriction based on condition in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-restriction-based-on-condition/m-p/12802836#M2025061</link>
    <description>&lt;P&gt;Hi, In continuation of my previous question now i want to also check the conditions before locking object. The requirement is the user cannot open two sessions with same values. I have added locks as per last help material but now my problem is in order to compare values of first session with other session in same user, how do i save the values? I used import export for SAP values but it is still not working as expected. Sample code is-&amp;gt;&lt;BR /&gt;&lt;/P&gt; 
  &lt;PRE&gt;&lt;CODE&gt;* Define a constant for the memory ID&amp;lt;br&amp;gt;* Export relevant data to memory only if it's the first interaction with the section&amp;lt;br&amp;gt;IF sy-modno = 1 " Track session number&amp;lt;br&amp;gt;Export values.&amp;lt;br&amp;gt;endif.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;import values&amp;lt;br&amp;gt;if condition.&amp;lt;br&amp;gt;sy-subrc = 0&amp;lt;br&amp;gt;locking procedure&amp;lt;br&amp;gt;endif.&lt;/CODE&gt;&lt;/PRE&gt; .</description>
    <pubDate>Thu, 20 Jul 2023 11:07:49 GMT</pubDate>
    <dc:creator>shivangi_pant</dc:creator>
    <dc:date>2023-07-20T11:07:49Z</dc:date>
    <item>
      <title>User restriction based on condition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-restriction-based-on-condition/m-p/12802836#M2025061</link>
      <description>&lt;P&gt;Hi, In continuation of my previous question now i want to also check the conditions before locking object. The requirement is the user cannot open two sessions with same values. I have added locks as per last help material but now my problem is in order to compare values of first session with other session in same user, how do i save the values? I used import export for SAP values but it is still not working as expected. Sample code is-&amp;gt;&lt;BR /&gt;&lt;/P&gt; 
  &lt;PRE&gt;&lt;CODE&gt;* Define a constant for the memory ID&amp;lt;br&amp;gt;* Export relevant data to memory only if it's the first interaction with the section&amp;lt;br&amp;gt;IF sy-modno = 1 " Track session number&amp;lt;br&amp;gt;Export values.&amp;lt;br&amp;gt;endif.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;import values&amp;lt;br&amp;gt;if condition.&amp;lt;br&amp;gt;sy-subrc = 0&amp;lt;br&amp;gt;locking procedure&amp;lt;br&amp;gt;endif.&lt;/CODE&gt;&lt;/PRE&gt; .</description>
      <pubDate>Thu, 20 Jul 2023 11:07:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-restriction-based-on-condition/m-p/12802836#M2025061</guid>
      <dc:creator>shivangi_pant</dc:creator>
      <dc:date>2023-07-20T11:07:49Z</dc:date>
    </item>
  </channel>
</rss>

