<?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 Shared memory and ABAP in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/shared-memory-and-abap/m-p/1998266#M406487</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear developers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have some documentation on ABAP SHARED OBJECTS and I wonder how I could define shared memory objects at run time ( so I would need something like an API ) instead of using the SHMA transaction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I actually also wonder what would happen if 2 users of the same shared object would call on one of its methods ? Can we have concurrent access ? How does the whole locking thing works ? Is it possible to implement waiting calls/locks ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have any serious/technical documentation on semaphores/locks in SAP/ABAP I'd also be very interested.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sincerely,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Olivier MATT&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 12 Mar 2007 12:43:06 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-03-12T12:43:06Z</dc:date>
    <item>
      <title>Shared memory and ABAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/shared-memory-and-abap/m-p/1998266#M406487</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear developers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have some documentation on ABAP SHARED OBJECTS and I wonder how I could define shared memory objects at run time ( so I would need something like an API ) instead of using the SHMA transaction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I actually also wonder what would happen if 2 users of the same shared object would call on one of its methods ? Can we have concurrent access ? How does the whole locking thing works ? Is it possible to implement waiting calls/locks ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have any serious/technical documentation on semaphores/locks in SAP/ABAP I'd also be very interested.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sincerely,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Olivier MATT&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Mar 2007 12:43:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/shared-memory-and-abap/m-p/1998266#M406487</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-12T12:43:06Z</dc:date>
    </item>
    <item>
      <title>Re: Shared memory and ABAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/shared-memory-and-abap/m-p/1998267#M406488</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi matt,&lt;/P&gt;&lt;P&gt;            This is vijay here.&lt;/P&gt;&lt;P&gt;                                      if you r working on frequntly changed data then you must use this locking technique.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;well jus go to se11 and make a lock object by starting initial......EZ....&lt;/P&gt;&lt;P&gt;EX: EZENMARA.&lt;/P&gt;&lt;P&gt;then u can fix the lock as shared or (exclusive,cumulative) or( exclusive, not cumulative)&lt;/P&gt;&lt;P&gt;you can also fix the lock parameters like  specific fields.then jus save and activate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and when you will make a program jus call the function module enqueue_ezenmara for locking and dequeue_ezenmara for unlocking and u can get rest in my program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt; vijay&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rewards if answer is helpfull.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES: MARA.&lt;/P&gt;&lt;P&gt;PARAMETER: MATNR LIKE MARA-MATNR.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'ENQUEUE_EZENMARA'&lt;/P&gt;&lt;P&gt; EXPORTING&lt;/P&gt;&lt;P&gt;   MODE_MARA            = 'S'&lt;/P&gt;&lt;P&gt;   MANDT                = SY-MANDT&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  MATNR                =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   X_MATNR              = 'MATNR'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  _SCOPE               = '2'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  _WAIT                = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  _COLLECT             = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  FOREIGN_LOCK         = 1&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  SYSTEM_FAILURE       = 2&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  OTHERS               = 3&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;IF SY-SUBRC = 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE: 'TABLE IS LOCKED'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;SELECT * FROM MARA WHERE MATNR = MATNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE:/ MARA-MATNR,MARA-ERNAM,MARA-MTART.&lt;/P&gt;&lt;P&gt;ENDSELECT.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Mar 2007 12:55:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/shared-memory-and-abap/m-p/1998267#M406488</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-12T12:55:34Z</dc:date>
    </item>
    <item>
      <title>Re: Shared memory and ABAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/shared-memory-and-abap/m-p/1998268#M406489</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But is it necessary to create such locks with a transaction. I mean that I need an API for creating/manipulating them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have also the same requirements for shared memory areas... Why does SAP only talks about transactions and doesnt seem to be providing APIs ?&lt;/P&gt;&lt;P&gt;If you have any information or material concerning these issues please let me know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sincerely,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Olivier MATT&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Mar 2007 13:22:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/shared-memory-and-abap/m-p/1998268#M406489</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-12T13:22:08Z</dc:date>
    </item>
  </channel>
</rss>

