Skip to Content

Please Help: User Exit to Protect a Long Text Field

Hi everyone

I need to protect an input field in some standard Transactions, but this field is a long text field that is captured in a 'editor'.

In fact, i need to protect the field for Material Long Text in MM01 and MM02 (Creating and Changing Materials), wich is captured in Basic Data View at Basic Data Text. The Functional consultants find the way to protect other fields (like Material short Description)

by using Authorizations Objects, but they can´t protect this long text because is not a simple field like others, but is a long text captured in a mini-editor.

My task is to find the way to protect this text based in some conditions (by users for example), maybe with an User Exit protecting the capturing area or the Data Text strip.

Does somebody knows how can i do this ?

(Excuse the long explanation)

Thanks !!


Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Sep 24, 2005 at 03:09 AM


    The long texts can be controlled with auth object M_MATE_MAN. For ref see OSS 216547 & 545380.

    But I understand that you may have to give this auth to users and still you want to control long text. You can use BADI BADI_MAT_F_SPEC_SEL. Implement the above BADI in SE19 .

    In the method FIELD_SELECTION put this code .


    IF SY-UCOMM = 'ZU08'.




    'ZU08' is function code for Basic Data Text .

    You can add additional conditions here based on user authorization to restrict field behaviour .

    With above code the BASIC data text will be Display only .

    PS - BADI is only available as of SAP R/3 470 .


    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Sep 26, 2005 at 04:39 PM

    Thanks Sanjay

    The auth object M_MATE_MAN was just what I needed.

    I gave it the functional consultants and it works ok.

    With this Auth Object the problem was solved.

    Thanks a Lot !!!


    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.