ABAP Shared Objects & POWL

Hello,
I have created a POWL and in the get_objects I am fetching the objects from the ABAP shared memory. I have created a shared memory area 'zcl_shm_area_01'and a root class 'zcl_shm_area_root_01' for it, also i have implemented the method build of the interface if_shm_build_instance to enable auto-preload.
Whenever I create a new query or refresh an exisiting query after a change i get an exception cx_shm_inconsistent.
within the get_objects method i first try to read_from_memory by getting a handle to the root area and reading the attributes from it, only if the selection criteria of the query changes i do a update_from_memory to refresh my shared memory area with the latest data from the DB and show the same in the POWL.
Can anyone please help me resolve this issue?
Let me know if further inputs are required.
Regards,
Shweta

Hi Shweta,
The exception cx_shm_inconsistent is occuring due to that fact that the already existing shared memory instances root is being changed when the selection criteria gets changed.
inorder to avoid this exception, what you can do, is to delete the already existing shared memory instance and create a new instance and store the new data in it.
Hope this solves your problem.
Regards
Ajith V

Similar Messages

  • ABAP Shared Objects - External Reference

    Hi,
    I am using ABAP SHared Objects (SHMA and SHMM) as data persistence between 2 BSP Applications
    I want to create a generic Root class with one attribute that is TYPE REF TO OBJECT. The idea is to store any class instance in this attribute of the Root class so as to AVOID creating a seperate Shared AREA for each Class...
    WHen I try to put this generic Root Class in the shared area via detach_commit(), it gives a exception that there are External references in the Shared area which should be closed first
    Does this mean u cannot have a instance variable as an attribute in your ROOT Class.
    Thanks
    SAP User

    Hi,
    Go through the below code, it's working fine....
    *& Report  Z13708_ABAPOBJECTS_INHER
    REPORT  Z13708_ABAPOBJECTS_INHER.
          CLASS C1 DEFINITION
    CLASS C1 DEFINITION.
      PUBLIC SECTION.
        data: var1 type ref to object.
        METHODS: METH1.
    ENDCLASS.                    "C1 DEFINITION
          CLASS C1 IMPLEMENTATION
    CLASS C1 IMPLEMENTATION.
      METHOD METH1.
        WRITE: / 'This is a method one'.
      ENDMETHOD.                                                "METH1
    ENDCLASS.                    "C1 IMPLEMENTATION
          CLASS C2 DEFINITION
    CLASS C2 DEFINITION.
      PUBLIC SECTION.
        METHODS: METH2.
    ENDCLASS.                    "C2 DEFINITION
          CLASS C2 IMPLEMENTATION
    CLASS C2 IMPLEMENTATION.
      METHOD METH2.
        WRITE: / 'This is a method two'.
      ENDMETHOD.                                                "METH2
    ENDCLASS.                    "C2 IMPLEMENTATION
    START-OF-SELECTION.
      DATA REF1 TYPE REF TO C1.
      DATA REF2 TYPE REF TO C2.
      CREATE OBJECT REF2.
      ref1->var1 ?= ref2.
    Regards,
    Azaz Ali.

  • ABAP Shared Objects

    Hi,
    I'm working on Shared Memory Objects.
    I would like to know if there's a way to create Shared Memory Areas (transaction: SHMA) by code.
    Till now, i didn't found a solution for this.
    Thanks,
    Fábio Ramalho.

    Hi,
    [Shared Objects - Implementation|http://help.sap.com/saphelp_nw2004s/helpdata/en/c5/85634e53d422409f0975aa9a551297/frameset.htm]
    [Check this one Ref link|Shared Objects/Memory (SHMA);
    For Text tables, "Reading" the Shared Objects would be easy, but "Updating" would not be that easy.
    To update the shared object, you need to open the ojbect for update from all the places from where the text table is being updated. E.g. MAKT from the Material Master (and somewhere else, I don't know).
    Shared Objects would be good when you are not dealing with the data which can be directly updated from Production. E.g. Configuration data.
    Regards,
    koolspy.

  • Large shared objects

    Hi,
    we think about using ABAP shared objects in parallel processing to avoid reading the same data from the DB for every parallel process.
    Currently we have 15MB shared memory configured according to SHMM.
    My Questions:
    1. How do we extend the shared memory? What is the limit?
    2. Does anyone have experience with large shared objects? (1-2GB)
    Thanks in advance
    regards
    Steffen

    Hi Steffen,
    the parameter is abap/shared_objects_size_MB, the limit is defined by your available memory.
    I have seen sizes with 8 GB in production so far.
    Regarding the big shared objects: Carefully think about who is reading and writing and when
    these actions happen. With versioning you can easily have a much higher memory consumption
    since update requests will create a new version while readers attached to the old version
    keep the old version alive. Besides that i haven't seen much trouble with shared objects so far,
    but maybe other people have other experiences.
    Please share your experients with us if you use the shared objects.
    Kind regards,
    Hermann

  • Add ABAP program: validating package - error accessing shared objects-area

    When adding a new program or browsing the packages in eclipse i get an "error accessing shared objects-area".
    I can edit, save and run existing ABAP reports, however.
    There was a similar problem here, regarding database procedure proxies but the solution doesn't apply to my problem, i guess. The solution was about creating the shared memory area CL_RIS_SHM_AREA. I can't access the memory area and start the constructor, as it doesn't show up on the monitor.
    ADT 2.28
    Eclipse 4.3
    Netweaver 7.31 SP4 -> is this really compatible with ADT 2.28?
    Thanks in advance for helpful hints,
    Julian

    HI Julian,
    if the area doesn't show up in the monitor, please try to start the constructor in transaction SHMM on your own by selecting the icon 'Start Constructor' as shown in the screenshot.
    Choose CL_RIS_SHM_AREA as area, select 'Default Instance' and 'Dialog' as execution mode. Then press 'Create'. Either this works or the system will tell you the issue with the instance creation (e.g. insufficient shared objects memory - see the other solution description).
    Best regards, Sebastian

  • Query Time Out and Shared Objects

    Hi,
    I have 2 questions.
    1) from st22 i can get the list of users and time out information. But how can I find related query which has been time out by that user ?? as of now i was getting query information from st22 by getting abap program name which starts with "G" and find related query for that from the table rsrrepdir. But recently it is happening that i get abap program which starts with "G" from st22 time out but its not giving me any query information in RSRREPDIR table or by t-code se38.
    can anyone guide me how can i get query info from st22 ? we have so many time out occuring in production have to trace that and improve the query performance.
    2) 2nd question is - how can i get list of queries which are having shared objects like variables, templates, key figures, structures etc...
    is there any specific table or t-code which provides that? we have to delete some queries in prod. but before that we want this list.
    A.H.P. I am counting on you extensively for help coz i have seen that you reply to everybody. and i have asked same question in another forum at SDN but no reply !!!
    waiting for help...

    Hi Bhanu,
    thank you for your prompt reply.
    well, we dont have woorkbooks atall. we got the inventory list of all queries needs to be deleted in production. we are deleting very very old queries which are not even in used now. i know the variables and str. etc...remains but still needs to know how to find out the queries with shared object. i want that information in hands before i delete anything in dev. system and transport it to prod. so, i will have proof that i didnt delete anything important. hope you understands what i mean and why i need to know this !
    i found few tables related to this but cannt relate them and get the info I need. RSRREPDIR, V_ELTDIR_TXT, RSZELTXREF,etc..
    where used list in BEx gives us the webtemplates names nothing else. i meant not the shared objects. and if it is giving shared objects info then i guess i am not aware of it coz few queries i tried to check didnt get that info in "where used" list.
    in metadata repository ?? i didnt get it!! how can i find queries with shared objects in metadata rep ?

  • ST22 Dumps: Shared Objects

    Hi SDN,
    in our SRM System, SRM Server 5.5, WAS700 ABAP, we get ST22 Short Dumps concerning "shared objects".
    This is the Dump Short Analysis:
    Runtime Errors         SYSTEM_NO_SHM_MEMORY                                    
    Date and Time          19.08.2008 12:20:50                                                                               
    Short text                                                                    
         No more memory for 2516576 bytes in the shared objects memory.                                                                               
    What happened?                                                                
         The shared objects memory is full or an area management specified         
         memory limit has be reached.                                              
    In heard, that "shared objects" is part of the new WAS 620, 640, 2004s, 700 ... releases
    What are exactly these shared objects. And how can we avoid the dumps?
    We have an instance profile parameter set:
    abap/shared_objects_size_MB                 100
    Apparently this is not enough... Are there any recommendations?
    thanx, matthias

    Take a look at [Note 972757 - Occurence of the SYSTEM_NO_SHM_MEMORY runtime error|https://service.sap.com/sap/support/notes/972757] for further information. You should investigate what is using the shared objects memory, it may be an error in a application. The note will help to determine this.
    Regards,
    Nelis

  • Insufficient Shared Objects Memory Available

    Hi Friends ,
    You must be knowing sample application <b>wdr_test_chat</b> .I have used , executed application many time ....now when I run it and click in Log on ...log on pop up come and I am able to enter name ...but on click ok following dump coming....it is not case that there is problem with code as I have run it so many time already....IS that has to do something to my server ?
    Dump
    The following error text was processed in the system SD8  : Insufficient Shared Objects Memory Available
    The error occurred on the application server q4inpusy007_SD8 _01 and in the work process 0 .
    The termination type was: RABAX_STATE
    The ABAP call stack was:
    Method: ATTACHUPDATE70 of program CL_SHM_AREA===================CP
    Method: ATTACH_FOR_UPDATE of program CL_WDR_TEST_CHAT_SHM_AREA=====CP
    Method: ATTACH_FOR_UPDATE of program CL_WDR_TEST_CHAT_SHM==========CP
    Method: LOGIN of program CL_WDR_TEST_CHAT_SHM==========CP
    Method: LOGIN of program CL_WDR_TEST_CHAT==============CP
    Method: ONACTIONLOGIN of program /1BCWDY/CUHRRK26ZJ7PFHMON3IO==CP
    Method: IF_WDR_VIEW_DELEGATE~WD_INVOKE_EVENT_HANDLER of program /1BCWDY/CUHRRK26ZJ7PFHMON3IO==CP
    Method: INVOKE_EVENTHANDLER of program CL_WDR_DELEGATING_VIEW========CP
    Method: IF_WDR_ACTION~FIRE of program CL_WDR_ACTION=================CP
    Method: DO_HANDLE_ACTION_EVENT of program CL_WDR_WINDOW_PHASE_MODEL=====CP

    Hi,
    I think in case of shared memeory area the system will allocate each area a maximum of 3MB space. so once you use the full memory the system will show you the error message 'Insufficient Shared Objects Memory Available'.
    I think this can be avoided by freeing the shared memory area after a certian amount of time.
    Regards,
    Ajith V

  • Shared object and different application servers - how to resolve this issue

    Dear SDN Members,
    We are occuring a big problem. We create a shared object in a program and after we call in an another one. In central system architecture, it is working well. But on a distributed architecture (4 application servers), we have a dump some times. In fact, the read of the shared object can be occured in the AS 4 but the share object has been created in AS1.
    How to manage this problem to avoid this dump ?
    Dupplicate the shared object in the application servers ?
    Encapsulate different calls with RFC link to only one AS ?
    Any parameters on server or share objects ?
    Thanks a lot for your help,
    Points will be given to right or good answers.
    Br,
    Aurélien

    What is the dump you are getting ?
    AFAIK, "Shared Memory"(SHM) is an area defined in the app server. I am not sure if you can access SHM of a different app server (as in your case trying to access SHM of AS1 from AS4). [http://help.sap.com/abapdocu_70/en/ABENSHARED_MEMORY_GLOSRY.htm]
    In this case you can opt for "DataBase Clusters". Relevant ABAP statements: [IMPORT|http://help.sap.com/abapdocu_70/en/ABAPIMPORT_MEDIUM.htm#!ABAP_ALTERNATIVE_4@4@]/[EXPORT|http://help.sap.com/abapdocu_70/en/ABAPEXPORT_DATA_CLUSTER_MEDIUM.htm#!ABAP_ALTERNATIVE_4@4@] FROM/TO DATABASE.
    Hope this helps.
    BR,
    SUhas

  • What is shared objects?

    Hi all,
       can you tell me what is shared objects and how it is used in abap objects, if possible explain with some examples.
    Thanks
    Sathish

    Hi Satish,
    <b>Shared Objects</b>
    Shared Objects are objects in the shared memory. Instances of classes and anonymous data objects can be stored. Named data objects can be stored as attributes of classes.
    <b>Shared Memory</b>
    The shared memory is a memory area on an application server, which is accessed by all of this server’s ABAP programs. Before shared objects were implemented, ABAP programs could access this memory area using the EXPORTand IMPORT statements exclusively with the SHARED BUFFER or SHARED MEMORY additions, and instances of classes or anonymous data objects existed exclusively in the internal session of an ABAP program.
    With the implementation of shared objects with Release 6.40, the shared memory was enhanced with the shared objects memory that stores shared objects. The size of the shared objects memory is determined by the abap/shared_objects_size_MB profile parameter.
    Shared objects are stored in what are called shared memory areas. You create and manage areas and their properties using Transaction SHMA .
    Now you got an idea of what shared objects are :
    Go to this link you will find screen shots and a smaple program here.
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/900e3d9d-559e-2910-9dae-b132157a220f">shared_objects</a>
    Reward points if useful,
    Aleem.

  • Doco about Shared Objects.

    Hi, ABAPers.
    I'm trying to do my deadly best in ABAP Objects, so I'm try to understand the concepts concerning to Shared Objects.
    Is there any public document (such as manuals) where I can find documentation about this topic (definitions, usage, and so on)?
    I'll regard best answers,
    Cheers

    Hello Santiago
    I forget to mention a tutorial, also written by Thomas Jung, which covers the topic Shared Memory as well.
    ABAP Delta Training 6.40
    Regards
      Uwe

  • How to write data to another application shared object?

    I have login application(login.swf), of which saves user login data to page shared object. After login In main application(another swf), user is able to change password. How do I write new password to login.swf file shared object?
    Thank you!

    Hi Dharmendra,
    It looks like your report should fill up to the Nth column with empty spaces.
    Could you please check the [ABAP forum|ABAP Development; for more information about this matter?
    Thanks and regards,
    Cristiano

  • Error while loading shared libraries: librt.so.1: cannot open shared object

    error while loading shared libraries: librt.so.1: cannot open shared object
    I cant run my apache server v2.2.3.
    Can someone help me?
    thanks in advance

    That could be an accessibility issue. Check the user with whom you installed Apache server. Check the user has permissions to access the libraries.
    -Mahendra.

  • Error while activating ABAP proxy object

    Hello,
    I can see all the interfaces of PI7.0 in my ECC6.0 system.
    I am able to create abap proxy object of a interface.
    But when I try to activate that I am getting error as
    "RFC system error for destination GTADIR_SERVER".
    Pl can you suggest. appreciate quick help in this.
    thanks in advance,
    Sharada

    Hi,
    For more details take a look at note:  [1063482 - Creating Dictionary objects - RFC error GTADIR_SERVER|https://service.sap.com/sap/support/notes/1063482]
    It is written that: Message SGSUB 104 is not an error message, but is merely irrelevant information for customers. You can continue to create objects nevertheless.
    To get rid of this annoying error you have to implement the corresponding  support package.
    Regards,
    Jakub

  • How to Get property values from Shared Object in client's load event - Very urgent

    I am using shared object to share data between two users. First user connect to shared object and set some value in shared object. Please consider that second user has not connected with the shared object yet.
    Now when second user connects to the server and try to get that property set by first user, he could get shared object but could not get properties of Shared object set by first user. I observed few times that Second user can get these properties within "Sync" event between two users. But I would like to get these values for Second user in any stage (i.e. in load event etc.). Whenever Second user tries to get the property of Shared object, the object will reset the actual property value and then return reset value.
    Anyone faced such issue while using shared object between two users. If so, I would appreciate if you could let me know your suggestions for following questions:
    1) Is there any way to get all the properties of shared object before sync event called, as I want to get it immediately when second user connect to the application and perform next task based on the values stored in shared object.
    2) Is it possible for second user to check whether any property has been set by first user? So that second user can use the property instead of reset it.
    Any kind of help would be greatly appreciated.
    Thank You.

    I am using shared object to share data between two users. First user connect to shared object and set some value in shared object. Please consider that second user has not connected with the shared object yet.
    Now when second user connects to the server and try to get that property set by first user, he could get shared object but could not get properties of Shared object set by first user. I observed few times that Second user can get these properties within "Sync" event between two users. But I would like to get these values for Second user in any stage (i.e. in load event etc.). Whenever Second user tries to get the property of Shared object, the object will reset the actual property value and then return reset value.
    Anyone faced such issue while using shared object between two users. If so, I would appreciate if you could let me know your suggestions for following questions:
    1) Is there any way to get all the properties of shared object before sync event called, as I want to get it immediately when second user connect to the application and perform next task based on the values stored in shared object.
    2) Is it possible for second user to check whether any property has been set by first user? So that second user can use the property instead of reset it.
    Any kind of help would be greatly appreciated.
    Thank You.

Maybe you are looking for

  • Why are apps taking so long to download/update in the app store?

    Applications i am trying to download or update in the app store on my macbook air (OS X Yosemite 10.10.1) take days/weeks to load at least half on average. Why is this happening and how can i speed the downloads/updates up, it's frustrating.

  • [JS CS3] Trouble with changeGrep() array

    This is strange, or else I'm totally missing something simple: My script does a GREP search for a text string in a table, and assigns a paragraph style to the string. Next, for each string that was found, I want to merge the cell that contains the st

  • How do I get to the logic board on a PSC 2210?

    I would like to swap a logic board from a known good machine to one which is having issues. How do I get it out? This question was solved. View Solution.

  • Close010 error when reversing old posting in ECC6,0 with MR08

    Hi all, I posted an invoice through tcode MRHR in release 4.6C and I want to reverse it in release 6.0 via tcode MR08. Tcode MR08 displays the document but I received an error message : Systemerrorin CLOSE 010.PleasecontactSAPsupport when I try to sa

  • Add the days to a particular date

    Hi all , I got a date in my internal table . I got a integer which holds certain no. of days . I need to add that integer to the date . like i got 10.10.08 integer is 5. i have to get 15.10.08 pls let ,me know regards Raj