Application Development 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: 

Please Help: User Exit to Protect a Long Text Field

former_member425121
Participant
0 Kudos

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 !!

Frank

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi

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-TCODE EQ 'MM01' OR SY-TCODE EQ 'MM02'.

IF SY-UCOMM = 'ZU08'.

FAUSWTAB-KZINP = 0.

ENDIF.

ENDIF.

'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 .

Cheers.

3 REPLIES 3

Former Member
0 Kudos

Hi

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-TCODE EQ 'MM01' OR SY-TCODE EQ 'MM02'.

IF SY-UCOMM = 'ZU08'.

FAUSWTAB-KZINP = 0.

ENDIF.

ENDIF.

'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 .

Cheers.

0 Kudos

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 !!!

Frank

former_member425121
Participant
0 Kudos

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 !!!

Frank