<?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: Shared Buffer in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/shared-buffer/m-p/3216888#M767100</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi zafar,&lt;/P&gt;&lt;P&gt;shared memory process exhibits.&lt;/P&gt;&lt;P&gt;for that u have to create AREA CLASS/ AREA INSTANCE ..&lt;/P&gt;&lt;P&gt;&amp;amp; THEN use query to WHICH DATA / OBJ U R GOIN 2 SHARED.&lt;/P&gt;&lt;P&gt; v have different process called read commit &amp;amp; write commit...&lt;/P&gt;&lt;P&gt;if the data is already shared, no need to share again,&lt;/P&gt;&lt;P&gt;as SAP defined , some data are already shared, for that u no need to share again,&lt;/P&gt;&lt;P&gt;ur sharin ur own define data thru DB to appln server, so that , its very fast to access. so no need to select that same object frm db again &amp;amp; again.time consuming&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope u got it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward if its useful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 29 Dec 2007 10:22:42 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-12-29T10:22:42Z</dc:date>
    <item>
      <title>Shared Buffer</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/shared-buffer/m-p/3216887#M767099</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;Can any one tell me how to use Shared Buffer through Import/Export statements in detail. I have did studied about SHARED BUFFER addition of IMPORT/EXPORT but i wan't to know about name of the shared buffer, weather we need to create a new one or can we use existing or can we skip this addition. i believe i have to implement this as i have to pass data to two programs which run in two different work processes. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please provide detail about name of shared memory area, and also how to delete the stored values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Zafar Ali&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 29 Dec 2007 10:00:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/shared-buffer/m-p/3216887#M767099</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-29T10:00:53Z</dc:date>
    </item>
    <item>
      <title>Re: Shared Buffer</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/shared-buffer/m-p/3216888#M767100</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi zafar,&lt;/P&gt;&lt;P&gt;shared memory process exhibits.&lt;/P&gt;&lt;P&gt;for that u have to create AREA CLASS/ AREA INSTANCE ..&lt;/P&gt;&lt;P&gt;&amp;amp; THEN use query to WHICH DATA / OBJ U R GOIN 2 SHARED.&lt;/P&gt;&lt;P&gt; v have different process called read commit &amp;amp; write commit...&lt;/P&gt;&lt;P&gt;if the data is already shared, no need to share again,&lt;/P&gt;&lt;P&gt;as SAP defined , some data are already shared, for that u no need to share again,&lt;/P&gt;&lt;P&gt;ur sharin ur own define data thru DB to appln server, so that , its very fast to access. so no need to select that same object frm db again &amp;amp; again.time consuming&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope u got it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward if its useful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 29 Dec 2007 10:22:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/shared-buffer/m-p/3216888#M767100</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-29T10:22:42Z</dc:date>
    </item>
    <item>
      <title>Re: Shared Buffer</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/shared-buffer/m-p/3216889#M767101</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use t-code shma try @ ecc 5.0 &amp;amp; above&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DEFINE CLASS zcl_my_root &amp;#133;SHARED MEMORY ENABLED &amp;#150;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Check out properties tab for the same in SE24 while defining root class. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CRETAE OBJECT myRoot AREA HANDLE myShmHandle &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CREATE DATA dref AREA HANDLE myShmHandle &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Define Area handle and Root instance &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Data : myShmHandle TYPE REF TO zcl_my_area, &amp;#147;zcl_my_area is same as area name &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;myRoot TYPE REF TO zcl_my_root. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Get area class instance or area handle and use handle&amp;#146;s               &lt;STRONG&gt;ATTACH_FOR_WRITE&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;*method to export your data in SOM. &lt;/P&gt;&lt;P&gt;myShmHandle = zcl_my_area=&amp;gt;attach_for_write( ).&amp;#147;You can specify instance name, here DEFAULT is used &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Start filling the contents of shared memory enabled root class into SOM instance &lt;/P&gt;&lt;P&gt;CREATE OBJECT myRoot AREA HANDLE myShmHandle. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;myRoot-&amp;gt;name = `My first area instance`. &amp;#147;name is simple public attribute in root class &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;APPEND `Harry` TO myRoot-&amp;gt;itab. &amp;#147;itab defined as public internal table of type string &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; dref is data reference to string. You can even try with dynamic data types &lt;/P&gt;&lt;P&gt;CREATE DATA myRoot-&amp;gt;dref AREA HANDLE myShmHandle. &lt;/P&gt;&lt;P&gt;myRoot-&amp;gt;dref-&amp;gt;* = `Jul-04-2005`. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF ... &lt;/P&gt;&lt;P&gt; tell area handle who is going to work as root- don&amp;#146;t miss this, Root is always stored as attribute of area class &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;myShmHandle-&amp;gt;set_root( myRoot ). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Finally put the root instance (and hence all its attributes/data) in SOM &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          myShmHandle-&amp;gt;detach_commit( ). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ELSE.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;myShmHandle-&amp;gt;detach_rollback( ). &lt;/P&gt;&lt;P&gt;&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; After this if you will fill in attributes of root instance w/o above blocks; that won&amp;#146;t sit in SOM at all &lt;/P&gt;&lt;P&gt;&amp;#133;. &lt;/P&gt;&lt;P&gt;However if you repeat another similar block, this time with new data for example in root object, a new SOM instance will\ &lt;/P&gt;&lt;P&gt; get created &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="35" type="ul"&gt;&lt;P&gt;process Ends*******************&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Another way..............&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here a thru READ Program &amp;#150; This mostly contains opposite methods of AREA class to import the instances: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; DATA: &lt;/P&gt;&lt;P&gt;myShmHandle TYPE REF TO zcl_my_area, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;myRoot TYPE REF TO zcl_my_root, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;txt TYPE string. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;This time get the handle through static ATTACH_FOR_READ method of area class &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;myShmHandle = zcl_my_area=&amp;gt;attach_for_read( ).&lt;/P&gt;&lt;P&gt;&amp;#147;Try catching different exceptions of methods &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Root instance should already be active and present as writing would have been already done using export pgm. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;myRoot = myShmHandle-&amp;gt;root. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Now read the contents as you normally do w/o SOM &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ TABLE myRoot-&amp;gt;itab INTO txt INDEX 1. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE: / txt. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONCATENATE myRoot-&amp;gt;name &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;myRoot-&amp;gt;dref-&amp;gt;* INTO txt  SEPARATED BY space. &lt;/P&gt;&lt;P&gt;   &lt;/P&gt;&lt;P&gt;WRITE: / txt. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;myShmHandle-&amp;gt;detach( ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;#148;Even if you don&amp;#146;t detach, sys will  remove at the end of pgm &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;have this coding.. make use if it..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Reward it its useful&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 29 Dec 2007 10:41:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/shared-buffer/m-p/3216889#M767101</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-29T10:41:19Z</dc:date>
    </item>
    <item>
      <title>Re: Shared Buffer</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/shared-buffer/m-p/3216890#M767102</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Irfan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From the response it seems that i have to create memory area name in SHMA, but can u tell me how to use it in EXPORT/IMPORT statement, and also in root class what methods needs to be created . I feel that its getting too complex, as i have to only share a internal table data to another program which will be called after execution of current program in another work process, using simple EXPORT/IMPORT statements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With Regards,&lt;/P&gt;&lt;P&gt;Zafar Ali&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 29 Dec 2007 11:12:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/shared-buffer/m-p/3216890#M767102</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-29T11:12:05Z</dc:date>
    </item>
    <item>
      <title>Re: Shared Buffer</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/shared-buffer/m-p/3216891#M767103</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Solved myself...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jul 2008 06:37:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/shared-buffer/m-p/3216891#M767103</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-15T06:37:07Z</dc:date>
    </item>
    <item>
      <title>Re: Shared Buffer</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/shared-buffer/m-p/3216892#M767104</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please tell me how did you solve it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Oct 2008 08:45:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/shared-buffer/m-p/3216892#M767104</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-07T08:45:21Z</dc:date>
    </item>
  </channel>
</rss>

