cancel
Showing results for 
Search instead for 
Did you mean: 

enabling 'Delete' button for Activities in WebUI

Former Member
0 Kudos

Hi Gurus,

would any one know how to enable the 'delete' button for activities in WebUI? View BT126S_APPT/ApptSR.     

thanks


Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hello Devang,

To activate the delete button you need to check the below authorization object

1. CRM_ORD_PR - Using this authorization object, the system controls which business transaction types the user can process.

2. CRM_ORD_OP - This authorization check controls other checks, for example, the authorization check for the transaction type, so that a user may process a document when the above criteria are met, even if he has no authorization for the corresponding transaction type and activity.

3. CRM_ORD_LP - This authorization check controls other checks, such as the authorization check for the business transaction type, so that when the user fulfills the above mentioned criteria, he or she can also process the document if he or she does not have authorization for the corresponding business transaction type and activity

I am not sure which one of the above is used in your scenario. But in any of the above case you need to check that the PR_TYPE(transaction type) will be activity and ACTVT will be 06 (delete) This will enable the delete button.

Hope the solution was helpful.

Regards,

Neha Gupta

Former Member
0 Kudos

Hi Neha,

thanks very much for your response. In my view this is not linked to authorization. I should have mentioned this in my question but we actually tried this with a user having SAP_ALL role and this 'delete' button was still disabled. I think there is some piece of code that has disabled this. Any clues?

Former Member
0 Kudos

Hello Devang,

In the DO_PREPARE_OUTPUT output method check whether the below condition is getting satisfied.

IF ( lr_col IS NOT INITIAL ) AND

            ( lr_col->size( ) > 0 ).

         lv_enabled = abap_true.

       ENDIF.


       ls_button-enabled  = lv_enabled.


If the above condition satisfies then the delete button get enabled.


Note : Button enable and disable property depends on the value passed to the enabled field(X = enable and space = disable).


Basically Delete button gets enable when you select a row,find below screen shot for reference.

Regards,

Manasa.

Former Member
0 Kudos

Hello Devang,

Might be a custom class implementation is overriding the standard. You can enable the same for that specific PFCG. Screen shot below:

Please click on the image for better view.

Hope it is helpful!.

Regards,

Neha Gupta

Answers (1)

Answers (1)

nisha_vinod
Advisor
Advisor
0 Kudos

Hi Devang,

Could you please put a breakpoint in method DO_PREPARE_OUTPUT of class CL_BT126S_A_APPTSR_IMPL and check the value of variable "gt_button".?

May be this class is redefined and a custom class implementation is overriding the standard..

Does this help?

Regards

Nisha

Former Member
0 Kudos


Thanks very much for your help guys. The culprit was indeed a custom class implemented.