cancel
Showing results for 
Search instead for 
Did you mean: 

Inactivate text ID in Text control

Former Member
0 Kudos

Hello

We want to input some information in text ID of Sales Order when it is created.

This information is critical so we do not want to be changed.

How can we inactivate a text ID not to be changed the information by users.

Thank you.

Accepted Solutions (0)

Answers (4)

Answers (4)

rahul_vishwakarma2
Contributor
0 Kudos

Hi Friend:

   Kindly look this link :

  You will get your solution.

Regards,

Kundan

former_member223981
Active Contributor
0 Kudos

The code that is responsible for whether the text is editable or not is:

SAPMV45A FORM SD_WORD_PROCESSING_PUT

***************************************************************

* Änderungsmodus

    da_display = t180-trtyp.

    translate da_display using 'AXH V '.

***************************************************************

This will set da_display to "X" if you are in a display transaction.

You may need to implement a modification that sets da_display to "X" if there is already text existing. Setting this flag ensures that the text cannot be edited. This would not be a simple modification though, so Lakshmipathi's solution is probably a better approach.

Lakshmipathi
Active Contributor
0 Kudos

The object for sales order text is S_SCRP_TXT.  Ask your Basis / Security team to create a new role in PFCG where only display mode should be assigned.  Now assign this role to the users to whom you want to control.

G. Lakshmipathi

former_member186385
Active Contributor
0 Kudos

Hi,

This is not standard, you have to use

USEREXIT_SAVE_DOCUMENT_PREPARE exit in Include program MV45AFZZ

regards,

santosh

Former Member
0 Kudos

Thank you for your reply.

But could you let me know more details?

Which source do we need to add if we want to to inactivate the text ID '0001' in sales order?

Thank you in advance.