<?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 Re: User Authentication in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-authentication/m-p/1768209#M331868</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Balaji,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can u please explain ur reply in a detailed manner&lt;/P&gt;&lt;P&gt;any sample code would be of great help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Pratyusha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 03 Jan 2007 04:11:41 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-01-03T04:11:41Z</dc:date>
    <item>
      <title>User Authentication</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-authentication/m-p/1768203#M331862</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello SDN's&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a customised screen where in user enters a RFQ Number. Now what i require is if a RFQ No is being processed by one user User1 and at the same if another user User2 tries to process the same using the same screen on a different system or in the same system in a diff session, How do i prompt for the user that the it is being processed by User1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Its similar to that of the standard SAP.&lt;/P&gt;&lt;P&gt;For ex :&lt;/P&gt;&lt;P&gt;If at the same time 2 users tries to change the same Sales Order, then we are being prompted a msg or a pop up window that the Sales Order is already being processed by &amp;lt;User&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggest as to how to proceed for this requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Awards for sure.&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;Pratyusha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jan 2007 03:53:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-authentication/m-p/1768203#M331862</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-03T03:53:40Z</dc:date>
    </item>
    <item>
      <title>Re: User Authentication</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-authentication/m-p/1768204#M331863</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use the standard sap lock function module ENQUEUE_EMEKKOE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to lock the RFQ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the function module returns sy-subrc &amp;lt;&amp;gt; 0..Means the record is already locked in another session..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS: P_RFQ(10).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'ENQUEUE_EMEKKOE'&lt;/P&gt;&lt;P&gt;   EBELN                = P_RFQ&lt;/P&gt;&lt;P&gt; EXCEPTIONS&lt;/P&gt;&lt;P&gt;   FOREIGN_LOCK         = 1&lt;/P&gt;&lt;P&gt;   SYSTEM_FAILURE       = 2&lt;/P&gt;&lt;P&gt;   OTHERS               = 3&lt;/P&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt; MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;P&gt;         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;P&gt;         &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; LEAVE LIST-PROCESSING.&lt;/P&gt;&lt;P&gt;         &lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jan 2007 03:58:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-authentication/m-p/1768204#M331863</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-03T03:58:09Z</dc:date>
    </item>
    <item>
      <title>Re: User Authentication</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-authentication/m-p/1768205#M331864</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Usha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Before Calling the screen,lock the database table which has RFQ number field for write access and display a message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Balaji Reddy G&lt;/P&gt;&lt;P&gt;**Reward if helpful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jan 2007 03:58:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-authentication/m-p/1768205#M331864</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-03T03:58:33Z</dc:date>
    </item>
    <item>
      <title>Re: User Authentication</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-authentication/m-p/1768206#M331865</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use Fm ENQUEUE_EMEKKOE..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jan 2007 04:00:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-authentication/m-p/1768206#M331865</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-03T04:00:08Z</dc:date>
    </item>
    <item>
      <title>Re: User Authentication</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-authentication/m-p/1768207#M331866</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;FYI.. the interface which i use is completely a customised one.&lt;/P&gt;&lt;P&gt;I &amp;lt;b&amp;gt;dont&amp;lt;/b&amp;gt; use any standard tables. the RFQ No which i am talking is also from a customised table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If this is the case i am sure that the FM:ENQUEUE_EMEKKOE will not serve the purpose.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggest keeping in view the whole customised scenario.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks Again&lt;/P&gt;&lt;P&gt;Pratyusha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jan 2007 04:06:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-authentication/m-p/1768207#M331866</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-03T04:06:46Z</dc:date>
    </item>
    <item>
      <title>Re: User Authentication</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-authentication/m-p/1768208#M331867</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create a lock object for the custom table...It will generate enqueue and dequeue FMs..Use the enqueue FM to lock the record..and use dequeue FM to unlock the record..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this link of how to create lock object..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw2004s/helpdata/en/cf/21eef3446011d189700000e8322d00/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw2004s/helpdata/en/cf/21eef3446011d189700000e8322d00/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jan 2007 04:09:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-authentication/m-p/1768208#M331867</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-03T04:09:07Z</dc:date>
    </item>
    <item>
      <title>Re: User Authentication</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-authentication/m-p/1768209#M331868</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Balaji,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can u please explain ur reply in a detailed manner&lt;/P&gt;&lt;P&gt;any sample code would be of great help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Pratyusha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jan 2007 04:11:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-authentication/m-p/1768209#M331868</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-03T04:11:41Z</dc:date>
    </item>
    <item>
      <title>Re: User Authentication</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-authentication/m-p/1768210#M331869</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Follow the steps...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create the lock object for the custom table ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw2004s/helpdata/en/cf/21eef3446011d189700000e8322d00/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw2004s/helpdata/en/cf/21eef3446011d189700000e8322d00/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you activate the lock object..It will generate two function modules..&lt;/P&gt;&lt;P&gt;It will generate enqueue and dequeue FMs..Use the enqueue FM to lock the record..and use dequeue FM to unlock the record..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example if you create a lock object EY_TEST_LOCK in SE11..It will generate two FMs &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DEQUEUE_EY_TEST_LOCK&lt;/P&gt;&lt;P&gt;ENQUEUE_EY_TEST_LOCK&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the program..call the enqueue function module to lock the record..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS: P_RFQ LIKE ZTABLE-RFQ.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'ENQUEUE_EY_TEST_LOCK'&lt;/P&gt;&lt;P&gt; EXPORTING&lt;/P&gt;&lt;P&gt;   RFQ                 = P_RFQ&lt;/P&gt;&lt;P&gt; EXCEPTIONS&lt;/P&gt;&lt;P&gt;   FOREIGN_LOCK          = 1&lt;/P&gt;&lt;P&gt;   SYSTEM_FAILURE        = 2&lt;/P&gt;&lt;P&gt;   OTHERS                = 3&lt;/P&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;If the sy-subrc &amp;lt;&amp;gt; 0..Means the record is already by another user or the same&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;user in another session..&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt; MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;P&gt;         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;continue processing if the sy-subrc check is successful..&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jan 2007 04:18:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-authentication/m-p/1768210#M331869</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-03T04:18:27Z</dc:date>
    </item>
    <item>
      <title>Re: User Authentication</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-authentication/m-p/1768211#M331870</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the valuable info Narendran.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also can you please confirm as to when and how to the Enqueue and Dequeue fm's. Since its a dialog programing i feel that dequeue should be used before a enqueue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggest me the correct way.&lt;/P&gt;&lt;P&gt;And also please tell me in detail as what exactly is the lock mode i need to use.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks to all.&lt;/P&gt;&lt;P&gt;Pratyusha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jan 2007 05:09:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-authentication/m-p/1768211#M331870</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-03T05:09:20Z</dc:date>
    </item>
    <item>
      <title>Re: User Authentication</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-authentication/m-p/1768212#M331871</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Before the processing..Lock the RFQ using the ENQUEUE FM..At end of the transaction...Unlock the RFQ using the DEQUEUE FM..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And regarding the mode...Check my example above..You do not have to change the mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jan 2007 16:09:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-authentication/m-p/1768212#M331871</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-03T16:09:04Z</dc:date>
    </item>
    <item>
      <title>Re: User Authentication</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-authentication/m-p/1768213#M331872</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Narendran,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I face a problem in this, the table which i used to create the Lock Object has 3 Key fields. But my transaction is totally based on a differenet field. So when i create the Lock Object the FM's generated have the import parameters as the key fields of the table only. But how do i lock the transaction now based on a non-key field which is not shown in the lock object -&amp;gt; lock parameter tab&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Pratyusha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Jan 2007 01:49:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-authentication/m-p/1768213#M331872</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-31T01:49:49Z</dc:date>
    </item>
  </channel>
</rss>

