<?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: How to use shared memory in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-shared-memory/m-p/7068968#M1504375</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;If you are using &lt;U&gt;&lt;STRONG&gt;SHMA&lt;/STRONG&gt;&lt;/U&gt; (Shared memory area concept ),&lt;/P&gt;&lt;P&gt;U will have to create a class for that purpose suing T code : &lt;STRONG&gt;SHMA&lt;/STRONG&gt; .(WIll generate a shared memory for your internal table ),&lt;/P&gt;&lt;P&gt;a root class wil lbe genrated , Define  a Table structure in the ATTRIBUTE of that class .&lt;/P&gt;&lt;P&gt;And u are ready to use this Internal table wer u want to .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Swapnil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 15 Jul 2010 06:21:44 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-07-15T06:21:44Z</dc:date>
    <item>
      <title>How to use shared memory</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-shared-memory/m-p/7068966#M1504373</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a scenario from wherein I am fetching a huge set of data using RFC. I want to store this data(in internal table format) into SAP Shared memory, so that I can access this data as and when required.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please suggest me as to how to store data into SAP Shared memory and how to retrieve them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Ritwik.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jul 2010 04:50:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-shared-memory/m-p/7068966#M1504373</guid>
      <dc:creator>former_member358217</dc:creator>
      <dc:date>2010-07-15T04:50:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to use shared memory</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-shared-memory/m-p/7068967#M1504374</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ritwik,&lt;/P&gt;&lt;P&gt;please search scn and google&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/abapdocu_70/en/ABAPEXPORT_DATA_CLUSTER_MEDIUM.htm" target="test_blank"&gt;http://help.sap.com/abapdocu_70/en/ABAPEXPORT_DATA_CLUSTER_MEDIUM.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Bala Duvvuri&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jul 2010 04:53:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-shared-memory/m-p/7068967#M1504374</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-15T04:53:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to use shared memory</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-shared-memory/m-p/7068968#M1504375</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;If you are using &lt;U&gt;&lt;STRONG&gt;SHMA&lt;/STRONG&gt;&lt;/U&gt; (Shared memory area concept ),&lt;/P&gt;&lt;P&gt;U will have to create a class for that purpose suing T code : &lt;STRONG&gt;SHMA&lt;/STRONG&gt; .(WIll generate a shared memory for your internal table ),&lt;/P&gt;&lt;P&gt;a root class wil lbe genrated , Define  a Table structure in the ATTRIBUTE of that class .&lt;/P&gt;&lt;P&gt;And u are ready to use this Internal table wer u want to .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Swapnil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jul 2010 06:21:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-shared-memory/m-p/7068968#M1504375</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-15T06:21:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to use shared memory</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-shared-memory/m-p/7068969#M1504376</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a scenario from wherein I am fetching a huge set of data using RFC. I want to store this data(in internal table format) into SAP Shared memory,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;This is not a good scenario to use shared memory as data are stored on Application Server side. Therefore huge volume of data will cause low memory issues. It is recommended for small set of data not big ones. So I suggest to go for custom table creation and storing these data directly in DB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you persist of using them please refer [Shared Objects|http://help.sap.com/saphelp_sm32/helpdata/en/14/dafc3e9d3b6927e10000000a114084/frameset.htm], but consider the performance of the AS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jul 2010 06:43:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-shared-memory/m-p/7068969#M1504376</guid>
      <dc:creator>MarcinPciak</dc:creator>
      <dc:date>2010-07-15T06:43:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to use shared memory</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-shared-memory/m-p/7068970#M1504377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Swapnil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the quick reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried the transaction, but the usage is still not clear as to how to use this class and its attributes. Can you please give me some examples or some scenario where shared memory is used so that I can get some pointers on that and start the developement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Ritwik.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jul 2010 09:19:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-shared-memory/m-p/7068970#M1504377</guid>
      <dc:creator>former_member358217</dc:creator>
      <dc:date>2010-07-15T09:19:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to use shared memory</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-shared-memory/m-p/7068971#M1504378</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SUBMIT YOUR RFC CALL exporting list to memory and then retrieve by id.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jul 2010 09:34:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-shared-memory/m-p/7068971#M1504378</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-15T09:34:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to use shared memory</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-shared-memory/m-p/7068972#M1504379</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI &lt;/P&gt;&lt;P&gt;Goto SHMA --&amp;gt; give a class name u want to use &amp;gt;&amp;gt;&amp;gt;create &amp;gt;&amp;gt;&amp;gt;give a root class name u want to create &amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;just foll th procedures .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It will directly take u to ROOT Class Created . In the attribute section please check on SHARED MEMORY  CLAS  in GENEARKL DATA tab .     Just generate the  Class .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXAMPLE ::::::&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Zkomv  :Defined table type &lt;/P&gt;&lt;P&gt;IT_price  : Internal Table u want to use .&lt;/P&gt;&lt;P&gt;ZCL_PRICE_ROOT :: Root class created .&lt;/P&gt;&lt;P&gt;ZCL_PRICE_AREA : Shared memeory area create .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : IT_PRICE TYPE ZKOMV,&lt;/P&gt;&lt;P&gt;       WA_PRICE like line of  IT_PRICE .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : ROOT TYPE REF TO ZCL_PR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&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;USING THE PROGRAMME any wer :&lt;/STRONG&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;DATA : IT_PRICE TYPE ZKOMV.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : WA_PRICE  LIKE LINE OF IT_PRICE .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : HANDLE TYPE REF TO ZCL_PRICE_AREA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : ROOT TYPE REF TO ZCL_PRICE_ROOT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : RC TYPE SHM_RC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*SELECT * FROM  komv INTO TABLE ITAB UP TO 10 ROWS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BREAK-POINT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TRY.&lt;/P&gt;&lt;P&gt;    CALL METHOD ZCL_PRICE_AREA=&amp;gt;FREE_AREA&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        TERMINATE_CHANGER = ABAP_TRUE&lt;/P&gt;&lt;P&gt;      RECEIVING&lt;/P&gt;&lt;P&gt;        RC                = RC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CATCH CX_SHM_PARAMETER_ERROR .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDTRY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TRY.&lt;/P&gt;&lt;P&gt;    HANDLE =  ZCL_PRICE_AREA=&amp;gt;AT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_SHM_WRONG_HANDLE .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CATCH CX_SHM_ALREADY_DETACHED .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CATCH CX_SHM_SECONDARY_COMMIT .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CATCH CX_SHM_EVENT_EXECUTION_FAILED .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CATCH CX_SHM_COMPLETION_ERROR .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDTRY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Swapnil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jul 2010 09:41:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-shared-memory/m-p/7068972#M1504379</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-15T09:41:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to use shared memory</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-shared-memory/m-p/7068973#M1504380</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;please follow the link &lt;A href="http://help.sap.com/saphelp_sm32/helpdata/en/14/dafc3e9d3b6927e10000000a114084/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_sm32/helpdata/en/14/dafc3e9d3b6927e10000000a114084/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jul 2010 09:53:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-shared-memory/m-p/7068973#M1504380</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-15T09:53:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to use shared memory</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-shared-memory/m-p/7068974#M1504381</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ritwik use a sppo/text file rather.Why you want to go so complicated man.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jul 2010 12:01:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-shared-memory/m-p/7068974#M1504381</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-15T12:01:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to use shared memory</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-shared-memory/m-p/7068975#M1504382</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Aditya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please let me know the usage and how it will work in my scenarion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Ritwik.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Aug 2010 06:40:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-shared-memory/m-p/7068975#M1504382</guid>
      <dc:creator>former_member358217</dc:creator>
      <dc:date>2010-08-03T06:40:19Z</dc:date>
    </item>
  </channel>
</rss>

