cancel
Showing results for 
Search instead for 
Did you mean: 

Sent to SAP button in Incident

former_member210909
Participant
0 Kudos

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.

Accepted Solutions (1)

Accepted Solutions (1)

Lluis
Active Contributor
0 Kudos

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,

former_member210909
Participant
0 Kudos

Thank you..

Answers (0)