Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Disabling Document Discount Field

Hi All

I want to disable the document the discount field on the sales order document.

How can I achieve this ? I don't want the users to be able to change the discount value in the document level.


Former Member
Former Member replied

add there

if @object_type = '17' and @transaction_type in (N'A', N'U')
    if 1 = (select count(docentry) from ordr with(nolock) where docentry =@list_of_cols_val_tab_del and discsum > 0)
			select @error =1
		select @error_message = 'Discount is filled.'



0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question