Unable to Edit the View in Custom Component

Hi Experts,
Please help me to resolve this issue !
I am unable to lock the BOL Entity in my custom component using BTAdminH. I have written the below code in the Edit event Handler for Edit Button. The lr_entity->lock( ) condition statement is getting false and it is skipping the "set_view_editable( me )." code statement. Why??
This is code excerpt that I have taken from edit button of the BP_HEAD/AccountViewSet and altered to my component/View
DATA: lr_entity     TYPE REF TO cl_crm_bol_entity,
        lr_controller TYPE REF TO cl_ZVKH8_bspwdcomponent_impl.
  TRY.
      lr_controller ?= me->comp_controller.
      lr_entity ?= lr_controller->typed_context->btadminh->collection_wrapper->get_current( ).
IF lr_entity IS BOUND.
  IF lr_entity->IS_LOCKED EQ abap_false.
    IF le_entity->IS_CHANGEABLE EQ abap_true.
       IF lr_entity->lock( ) EQ abap_true.
        me->view_group_context->set_view_editable( me ).
       ENDIF.
    ENDIF.
  ENDIF.
ENDIF.
and when I directly executed the below code in the Edit event Handler for Edit Button I am receiving the dereferencing NULL value exception. Why in my custom component in many places this happening??
  me->view_group_context->set_view_editable( me ).
Exception Details
CX_SY_REF_IS_INITIAL - Dereferencing of the NULL reference
Method: ZL_ZVKH8_DETAILSEF_IMPL=>EH_ONBACK
Thanks,
Bujji

Hi Summit & NishaNC,
Thanks for your responses !
As suggested, I have debugged the code for ->lock( ) method and there are exceptions raised from some methods.
Method GET_LOCK () -> Method GET_ROOT () ->Method GET_PARENT ()
At GET_ROOT( ) method i have received an exception
"Root entity BTAdminH could not be determined" and one more "Entity BTAdminH could not be locked"
Later when I have checked in MODEL Browser, I found that the BOL object "BTAdminH" for my view is an Access object and not the Root Object.
Hence, I have a question? Does the locking can be done only for ROOT Objects?
If this is TRUE then I think this is the major problem with my custom component where even the cross component navigation is also not happening and in many places I am receiving "Dereferencing NULL Value" information.
Also I have gone through some of the Threads and one information that I found from Sumit Mittal
1. An access object is an independent entity, has primary keys of its own.
2. A root object is a special access object that is at the top of the hierarchy based on business rules.
3. A dependent object's primary keys are supplied by access objects and it's lifetime is bound to them. If the parent object is destroyed, the dependent object is also destroyed.
4. Search objects are query objects useful for querying root objects
5. Search result objects - Search objects return the results in the form of a result object together with a relation pointing to the root object.
6. View objects - ?
7. Dynamic search objects - Used in advanced search, supports ranges and operators
Could you please specify in which scenarios we have to go for Access Objects and Root Objects
Thanks,
Bujji

Similar Messages

  • SRM to MDM Scenario -- Unable to Edit the Integration Scenario

    Hi Experts,
    I'm doing a scenario in XI/PI from SRM to MDM.
    I had downloaded all the related content from service market place and also established SLD connections as well.
    When I'm trying to import the Integration Scenario from Integration Repository to Integration Directory I'm getting the follwing error.
    Software component version with GUID 77891250-7da4-11d8-b240-e6890a114c15
    does not exist (SWC_NOT_EXIST)
    I'm unable to edit the integration scenario in IR even with PISUPER credentials which have all the access.
    I'm also unable to edit any of the other objects as well (e.g.,Message Interface,Interface Mapping etc.,)
    PFB the link where I pasted the error snapshot I'm getting when I'm trying to open the Integration Scenario in IR.
    [http://picasaweb.google.co.in/prajwal24/MyScenario#5492932473682114498]
    Can anyone please help me out on what can be done to edit the Integartion Scenario.
    Thanks and Regards,
    Pruthvi

    Thanks kaushik and Salvi for your valuable inputs.
    I have created a copy and now able to edit the Integration Scenario.
    But again a new problem came up.
    Now after editing the predefined scenario which has only SRM 5.0 and SRM 7.0
    I need to add SRM 7.0 application component here in this Integration scenario and this was done successfully.
    Now i need to add one send action and this send action is present in the SWC SRM SERVER IC 7.0.
    I had downloaded the SRM SERVER IC 7.0 content already and I'm able to see in Integration Repository also.
    But this SWC is not present in the application component SAP SRM (WITH SAP EBP) 7.0.
    Please let me know what to do now inorder to add this send action in that application component.
    Regards,
    Pruthvi

  • Unable to edit the fields in PDF interactive form

    Hi,
    We are in the process of developing an interactive form integrating Web Dynpro ABAP with Adobe forms.
    As of now we are able to send the data to Adobe form from Web Dynpro.
    But we are facing the following problem.
    i) Unable to edit the form data for entering/changing the contents of the fields in PDF document,  which is presented to user with a Web Dynpro application URL.
    We have already unset the 'ReadOnly' property of the interactive UI element.
    We are currently working on ZCI installation with SAP SP08, GUI patch level 20, Adobe Reader version 8.0
    Please advise...
    Thanks,
    Satya.

    Hi,
    Check your ADS settings, I feel it's due to lack of some config in ADS only.
    Regards
    <i><b>Raja Sekhar</b></i>

  • Unable to edit the data in z-table

    Hi All,
    I can create new entries in a z-table.
    But i am unable to edit the existing rows of a z-table in the Production server.
    The same can be done in DEV and test servers.
    How to come out of this issue?
    Kindly Help me....
    Regards
    Pavan

    Hi,
    For this you have to maintain table maintenance generator....
    go to se11....your table name
    utilities--->table maintenance generator...
    build a table maintenance generator..and transport the table...
    then only you will be able to edit data in production server...
    Regards
    Debarshi

  • Unable to edit the document in sharepoint2010

    Hi,
    I am unable to edit the document in sharepoint2010 with IE-10 while editing i am getting the error like
    "The form cannot be displayed in the browser because the use of session cookies has been disabled in the current browser settings.In order to load the form the session cookies must be allowed."
    Please suggest me on this.
    Thanks in advance.
    Regards
    SidduSekhar

    Hi SidduSekhar,
    Based on your description, I need to verify the things below:
    Which browser did you use? Did this issue occur with all the browsers?
    Is the cookie disabled in the browser? If yes, please enable it.
    Did you implement security fix in the web.config, such as <httpCookies requireSSL="true" httpOnlyCookies="true" />? If yes, please set it to false in web.config.
    Did you configure Alternate Access Mapping for SharePoint with a URL containing a “_” character? If yes, please remove the “­_” from the URL.
    More references:
    http://blogit.create.pt/miguelisidoro/2013/12/01/sharepoint-and-the-form-cannot-be-displayed-in-the-browser-because-the-use-of-session-cookies-error/
    https://prasantabarik.wordpress.com/2014/05/03/sharepoint-2010-workflow-task-error/
    Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

  • Unable to edit the form in Personal Change Request

    Hi,
    One of the manager is trying to edit the employees information. When he navigates to edit form of personal change request, under My Crew tab of Manager Self Service in portal, unable to edit the information but he is able to add notes. in the form.
    In detail, the manager is trying to assign new manager to an employee under him(moving an employee to differen team headed by different manager so trying to replace his name in the employee's informaton). The manage is unable to change the information or unable to edit any information in the form "request for change in position/transfer"
    Could someone help me on this.
    Thanks in advance.
    Regards,
    Ravi.
    Edited by: Ravi Alla on Jun 17, 2010 9:15 PM

    Hi,
    The issue is resolved. This is because of Acrobat JavaScript option disabled in display preferences of the form.
    Once this checkbox is enabled its working fine.
    Regards,
    Ravi.

  • Unable to import the views in RPD.

    Hi,
    Case1:Unable to import the views in OBIEE 11g by using "Oracle inOraDb 11g_Home1" drivers but able to import the Tables in RPD.
    Case 2:Unable to import the Table in OBIEE 11g by using ."Data Direct 6.0 Oracle wire protocol" drivers but able to import the Views in RPD.
    My requirement is need to import some views and tables in RPD.How to achive this.kindly let me know.

    Hi,
    I have tested with SH Schema.
    I have one 'View' called profit in sh schema
    http://i1159.photobucket.com/albums/p629/bose-obiee/shschema.jpg
    The schema in import type without 'Views' Option it is not showing
    http://i1159.photobucket.com/albums/p629/bose-obiee/withoutviews.jpg
    clicked Back and selected 'Views' Option and checked under sh schema. am able to see the 'Profit Table.
    http://i1159.photobucket.com/albums/p629/bose-obiee/withviews.jpg
    selected what are all the table i need to import from sh schema with Profit view and clicked the single arrow symbol to move sh schema from 'data source view' to 'repository view' and clicked 'Finish'
    It has imported all the tables and view into the rpd from SH Schema.
    http://i1159.photobucket.com/albums/p629/bose-obiee/View.jpg
    Regards,
    Bose

  • Is there I way I can reload the google calendar as I am unable to change the views or go forward or backward by weeks.

    Is there a way to reload the Google Calendar program on my laptop? Currently, I am unable to change the views. It is always on the current week. I cannot get the daily view either. Thanks!!

    This would not seem to be an Apple issue at all, much less for Apple Remote Desktop. These forums cannot help you with setting up Google Calendar on a Windows system. Perhaps you would be better served by taking your question to a forum related to Google's apps or at least a Windows forum.
    Or did you just forget to include details about what computer you're actually asking about?

  • How to Access the view from another Component

    Hi,
    Seek your advice on this following requirement.
    1. Would like to add the view OVWindow of Component BTCATEGORIES in an assignment block of 
        CRMCMP_CMG similar to the assignment block exists in the BT116H_SRVO component.
    2. Please provide the step by step procedure to implement this requirement.
    Regards,
    Arif

    Hi,
       I am having view1 and view2.
      in view1 i am using roadmap. S1 is one of the step of road map.
      in view1 i used this code to get the reference of this view in componentcontroller attribute
    Data: lo_api TYPE REF TO if_wd_view_controller.
    If first_time = 'X'.
    lo_api = wd_this->wd_get_api( ).
    wd_Comp_Controller->my_VIEW = lo_api.
    endif.
    in my view2 i want to access the roadmap step
    i dono how to access that.. i used this code.......
             wd_comp_controller->my_view->get_element( 'S1' ).
    is this correct.. If not what is the code to get that id..
    Can any one tell me clearly...

  • Unable to edit the "Default Domain Controllers Policy" from a Server 2012 machine

    I am unable to edit the "Default Domain Controllers Policy" from a Server 2012 machine. The error message i recieve is:
    "Failed to open the group policy object.  You might not have the appropriate rights.  Details: The volume for a file has been externally altered so that the open file is no longer valid."
    The domain controllers are running Windows 2012 R2 upgraded from Windows 2008 R2, the domain functional level is Server 2012.
    I am able to edit the policy from both a Windows 7 and Server 2008 R2 machine.
    The following post is identical however the fix for them does not work for me:
    http://social.technet.microsoft.com/Forums/windowsserver/en-US/2d968a05-2cff-4dd0-9c5d-dd810d1fa66f/cant-edit-default-domain-controllers-policy-on-windows-8-or-server-2012
    Any ideas?

    MuhammadUmar
    Yes, the Unique ID is available on 2012 server
    Lany Zhang
    This only affects the default domain controllers policy object
    Another user added to amins and tested has no effect
    It is the same on another server
    DCDiag passes all tests
    Thanks for all your help so far

  • Unable to edit the tracks number

    Having updated iTunes 12.01 with Yosemite 10.10.2 I'm unable to edit the tracks number, as I used to do, select a song then get info and edit whatever I want, everything looks fine except the possibility to edit the track number. Any thought?

    You can still edit the track number ... it just involves a scrolling action with the new iTunes.
    Go to the song's "Get Info" as you used to do.  Once you open the "Details" tab, scroll down to reveal the track number which you can edit.

  • Author of the document unable to Edit the .Ptxt

    Encrypt the TXT file with NATIVE file encryption by using RMS Sharing Application.
    Open the Encrypted .ptxt file by Author, document is opened, but unable to EDIT the document even with the author

    I think it's just that the interface doesn't have any text editing capabilities.  It's basically the same situation with the supported image formats. Do you have the option under Protect-in-Place to unprotect it?

  • Edit the results of custom search

    Hi,
    can results returned with a custom search be edited ?
    i mean is there a way to do this:
    user clicks the built-in edit link and edits the files in custom search results
    best regards,

    Hi,
    Base on my understanding, on Lync Server 2013, the number of search list couldn't be limited. The msRTCSIP-SearchMaxRequest has been obsoleted.
    You can also post a case on MSDN forum, there are more developing experts will help to confirm if it could be achieved by Lync Server SDK.
    http://social.msdn.microsoft.com/Forums/en-US/communicatorsdk/threads
    Best Regards,
    Eason Huang
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected]
    Eason Huang
    TechNet Community Support

  • Unable to edit the site in sharepoint designer 2013

    Hi,
    I have created a custom list for one of my requirement, and I want to change the look and feel of the custom list view, so I was trying to edit this list in SharePoint Designer 2013, I'm able to open the list in SPD 2013, but unable to edit anything since
    I'm getting the "This page does not contain any regions that you have permission to edit." error.
    It will highly appreciated if anyone help in resolving the issue.
    Thanks in advance.
    Anil

    Anil,
    Below links will help you. Please use them.
    SharePoint
    Designer 2013 – How to modify List View web part filters and parameters
    Create
    a custom list view using SharePoint Designer
    Share point list view custmization
    in sharepoint 2013
    Please 'propose as answer' if it helped you, also 'vote helpful' if you like this reply.

  • Unable to edit maintenance view in SM30

    hi everyone.
    need your help, I have one custom table, let's call it YTAB.  This table has several maintenance views created for it, depending on company code.  For YTAB, i have created a maintenance view YTABX. 
    When we moved YTABX to PRD, we cannot edit it in SM30.  The user ID has the right authorization.  The error message is "client 100 not modifiable".  When I try to edit the mother table YTAB in PRD, I am able to go in and do the changes.
    I have already compared the settings for YTABX with the other existing views, they are the same.  My settings for the view are:
    Access: Read, change, delete & insert
    Delivery Class: C
    In the table maintenance generator, i have a 2-step maintenance type, recording routine is Standard recording routine and compare flag is automatically adjustable. 
    Attributes for table YTAB also has delivery class C, table category is transparent table, table maintenance is allowed.
    Thank you in advance.

    Hello roch,
    the direction in which mark points is right but i think you should get some more information on the principles of table types and sap system landscape.
    Usually you should not be able to directly maintain any table. This is not only bad style but also a huge risk for the system consistency. That's why application data is always maintained via some kind of application which ensures that the data is vilidated before it is stored.
    Customizing data should only be maintained within a development system and then transported through the landscape. To maintain these table you can use generated views, customer developed maintenance views, view clusters which all include automatical link to the transport system. If you would maintain these tables directly in the productiion system it would have another configuration than the development and the quality/test system which makes them more or less useless as you can no longer make any serious test if the server configurations differ.
    To prohibit changes of customizing tables on production and test servers the admins lock the systems which results in the message you got. This setting is made in TCODE SCC4. Even if you have for any reason the authorization to use this transaction you should in no case change these settings without approval of basis / system owner. 
    Kind Regards
    Roman

Maybe you are looking for

  • No longer have indication of need for synchronizing a folder

    My workflow in LR is to do all of my editing, etc. and then open Bridge and change all of the file names to reflect more discriptive titles. I then switch back to LR (4.3). In the past this would result in all of my edit pictures involved in this pro

  • Does XML approach for passing parameters in the query make the query slow?

    Hi, I am using XML approach for passing parameters in a query. This is running very slow but when I pass comma separated values in parameter, it runs very fast. So it concludes that we should not use XML approach for passing parameters. Please confir

  • Suggestions for new forum names

    iMac (PPC) - iMac (PPC including G5, pre-2006) iBook - iBook (pre-2006 notebook). Powerbook - Powerbook (pre-2006 notebook) MacBook - MacBook (consumer notebook) MacBook Pro - MacBook Pro (pro notebook) Mac Pro - Mac Pro (Intel CPU Desktop Tower) Pow

  • Bluetooth: Not Available / PRAM RESET does not help

    I can see that many people have been having issues with BLUETOOTH going off-line since the last software update, but the solutions are working for me. I have restarted x2, resetting the PRAM, but the problem persists. Also, BT is not showing up in th

  • SPAN/RSPAN issues

    Hi All, I'm looking in to a problem regarding slow response to a file server, post implementation of RSPAN source changes. SCENARIO The LAN is a stack of 2/3 3750's on each floor, with a data Vlan per floor and a network wide voice Vlan 300. These ac