cancel
Showing results for 
Search instead for 
Did you mean: 

Appointment locked even in the display mode

Former Member
0 Kudos

Hi Experts,

I need your help to resolve the following issue I have been facing.

Whenever I open any appointment and then click on edit and then click back without editing and saving it, then It looks that the appointment is in display mode but still I can see a lock entry in SM12.

Any idea how can we deal with it?

Another thing which I have now noticed is, when I open an appointment(in display mode only) from the home page of CRM(under My Appointments Today), there is no lock entry in SM12. However when I go to calendar and open the same appointment from there(again in display mode only) I see a lock entry in SM12.

Any inputs to deal with this as well please?

We have a batch job running every one minute which updated the apointments in CRM. Due to above issue, batch job finds the appointment locked and does not update it.

Ideally I shoud not be able to see the lock entry in SM12 unless the appointment is in edit mode.. right?

We have enhanced only BT126H_APPT/ApptOVViewset of component BT126H_APPT. Only eh_onsave and eh_ondelete have been modified.

Thanks

Yogesh

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Yogesh ,

             Check out the authorization for your business role .......

Former Member
0 Kudos

Hi

Thanks for your reply.. but i didnt get it.. what exactly should i check for?

And does the business role have anything to do with locking of appointment in display mode?

Thanks

Yogesh

Former Member
0 Kudos

Hi

    Whenever you click on the edit button it will be in display mode right ? so what i understood is ,may be they would have maintained the authorization for your business transcation type appointment in pfcg role .

check

T-code PFCG enter your pfcg role and in auth. tab click on the display auth. then in that  CRM Component->Business Transcation Type ->check Activity and Business Transcation type .

Former Member
0 Kudos

Hi,

I think you didn't get my query correctly.

Whenever I open any appointment, it should open in display(non-editable) mode.. right? In my case also it is opening in display mode only. But at the same time I can see a corresponding lock entry in T-code SM12 which should not be there unless the appointment is in edit mode.


And this is causing problem as our batch job tries to update the appointment but finds it locked even if the appointment is in display mode only.(Now if you read my first post again, you will have a clear idea about my query)

Hope I have put my concern more clearly this time.

Thanks

Yogesh

Former Member
0 Kudos

Hi Yogesh,

try out these ...

        1. check in ONEDIT event

           lv_entity->lock( ) = 'false'  . In BT126H_APPT/ApptDetailsOV   

        2.Check in the ONEDIT event

            lr_vgc type ref to if_bsp_wd_view_group_context

            lr_vgc->set_all_editable( ) . In BT126H_APPT/ApptOVViewset

Former Member
0 Kudos

Hi,

I have checked the above mentioned options.

In In BT126H_APPT/ApptDetailsOV, event ONEDIT. We have, the following

   IF lv_entity IS BOUND.
    IF lv_entity->lock( ) = 'false'.
      RETURN.

The above code is OK i guess.

And I am afraid but in BT126H_APPT/ApptOVViewset, I don't see ONEDIT event.

Are we missing out anything here??

Thanks and awaiting your response

Yogesh

Former Member
0 Kudos

hi,

    share your mail id ....

Former Member
Former Member
0 Kudos

Hi,

As i told you..in if_bsp_wd_toolbar_callback~getbuttons i dont see any view_group_contextnode..

Also i would again like to highlight all this issue(that i see lock entry in SM12 even if the appointment is in display mode) happens only when i open the appointment from calendar..

when i open the same appt from home page --> my appointments today.. i dont get this issue..