cancel
Showing results for 
Search instead for 
Did you mean: 

Disable editing in Sales Order Header Texts

KLH
Explorer
0 Kudos

Hi Guys,

We added a sales order header text via VOTXN. Currently, this derives data from customer master.

Now, we want to disable editing of the header text since we want it to be only derived from the customer master.

Is there any way to do it through authorization, config or enhancement? Please let me know.

Thanks!

Best regards,

K.Honrade

Accepted Solutions (1)

Accepted Solutions (1)

former_member186385
Active Contributor
0 Kudos

Hi,

There is a Routine/Requirement where you can put code to ensure it is not  editable

Answers (4)

Answers (4)

KLH
Explorer
0 Kudos

Hi,

This is to inform you that we were able to solve this issue..

we added an enhancement on LV70TFT3

IF LV70T-TDID EQ 'Z001'.

   gv_text_editor->set_readonly_mode( 1 ).

   gv_text_editor->set_navigate_on_dblclick( 1 ).

   gv_text_editor->set_enable( ' ' ).

ELSE.

   gv_text_editor->set_readonly_mode( 0 ).

   gv_text_editor->set_navigate_on_dblclick( 0 ).

   gv_text_editor->set_enable( 'X' ).

ENDIF.

ravi_kumar100
Active Contributor
0 Kudos

Hi,

It has already been discussed in SCN.

Kindly check the below link if it helps  and discuss with your ABAP'er.

https://scn.sap.com/thread/2083220

Regards,

SRK

sez41
Active Contributor
0 Kudos

Honrade,

Why the restriction? What happens if the user changes the text in sales document? Is it printed on a form? If not, changing this text will be no issue I guess. If so, why don't you print the text from customer instead of sales document? This way, even if the user changes the text in the sales document, you will show the text from customer master in your form.

siva_vasireddy2
Active Contributor
0 Kudos

Hi,

you can try with Transaction Variant under SHD0

Assign the Variant to the sales order after creating