on 01-06-2015 4:16 PM
Hi Gurus,
would any one know how to enable the 'delete' button for activities in WebUI? View BT126S_APPT/ApptSR.
thanks
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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?
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
7 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.