Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

FM SRM_DOCUMENT_DISPLAY deactivate Remove Content

Former Member
0 Likes
457

Hi all,


I'm using the FM SRM_DOCUMENT_DISPLAY to display some documents, the problem is the user can remove the content of the document using the button Versions->Remove content.

Is there any way to deactivate this button or the option "Remove Content" ?

Thanks in advance.

Regards,
Pedro.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
387

Hi all,

In the end we solved the problem creating an enhacement point at the end of method (IF_SRM_SP_BDV_SPECIAL~GET_SPECIAL_FUNCTION_LIST) in the class CL_SRM_SP_DOCVIEW_GE.

We put autorithy-check to validate if the user have autorization to remove content or not.

In the parameter VALUE( EX_FUNCTION_LIST ) there are all the available function codes, is you want to remove one of them you need to set the field Disabled to X.

Regards.

Hi all,


I'm using the FM SRM_DOCUMENT_DISPLAY to display some documents, the problem is the user can remove the content of the document using the button Versions->Remove content.

Is there any way to deactivate this button or the option "Remove Content" ?

Thanks in advance.

Regards,
Pedro.

1 REPLY 1
Read only

Former Member
0 Likes
388

Hi all,

In the end we solved the problem creating an enhacement point at the end of method (IF_SRM_SP_BDV_SPECIAL~GET_SPECIAL_FUNCTION_LIST) in the class CL_SRM_SP_DOCVIEW_GE.

We put autorithy-check to validate if the user have autorization to remove content or not.

In the parameter VALUE( EX_FUNCTION_LIST ) there are all the available function codes, is you want to remove one of them you need to set the field Disabled to X.

Regards.