on 06-27-2014 1:17 PM
Hi Experts,
I want to control raising OSS messages through Incidents, Currently all users are able to see the enabled button "Send to SAP" but i want to control in such a way that if particular user is allowed to raise one he can should be able to see the enabled button. If not authorized then the button should be grayed out for that user. Is there any authorization control for this issue.
Hello Rakesh,
You can follow that steps:
Transaction: BSP_WD_CMPWB
Component: AIC_IM_SAP_DATA
View: AIC_IM_SAP_DATA/SapData
Inside View Structure: “Order Management” -> “DO_PREPARE_OUTPUT”
You can find the code that allow that:
ls_button-enabled = me->view_group_context->is_view_in_display_mode( me ).
INSERT ls_button INTO TABLE gt_button.
IF me->mv_scenario <> 'ISV'.
me->add_action_button( iv_text = 'Send to SAP'(001)
iv_on_click = 'SEND_TO_SAP'
iv_filter_value = me->mc_action_sent_to_sap ).
ENDIF.
me->add_action_button( iv_text = 'Update from SAP'(002)
iv_on_click = 'UPDATE_FROM_SAP'
iv_filter_value = me->mc_action_updaet_from_sap ).
IF me->mv_scenario
Here you can use a enhacement to disable the button.
The standard way, that don't always work for some different scenarios like SMaMS, you can control it trough authorization roles:
AUTHORITY-CHECK OBJECT ' SM_SDK_ACT'
ID ' SMSDACTION ' FIELD 'PROC'
We decide to disable that button to avoid answering users what that don't work...
Regards,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
101 | |
13 | |
13 | |
11 | |
11 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.