SAP Knowledge Base Article - Public

3237324 - Sold-to party field cannot be blocked at sales order overview

Symptom

You have set the No change possible (C) field for the Sold-to party in the Set Up Partner Determination for Sales Document Header configuration, however you can still change the sold-to party field in the sales order overview.

Environment

SAP S/4HANA Cloud

Reproducing the Issue

1. Go to Manage Your Solution app

2. Go to configuration 101288 - Set Up Partner Determination for Sales Document Header

3. Field No change possible (C) is set for Sold-to Party function

4. Go to the Create Sales Orders - VA01 app, fill in the sales data so that the document is complete and Save

5. Go to Change Sales Order - VA02 app, enter the sales order number and press Enter

6. You are able to change the Sold-to party on the sales order overview screen

Cause

By design having the Not change possible flag attribute selected will not block the sold-to party field from being edited in the sales order overview.

The sold-to party field in the sales order overview becomes unchangeable when there are subsequent documents, for example, after creating a delivery document for a sales order, it is no longer possible to change the sold-to party.

Resolution

The system is behaving as designed. Therefore, no solution is required.

Note: In case you want to block the sold-to-party field to be changed in the sales order without any subsequent documents. A Cloud BAdI Sales Document Check Before Save can be implemented to avoid change the sold-to party at the Change Sales Orders - VA02 app, see the sample below for your reference:

If salesdocument-salesdocument is not initial.

select single * from i_salesdocument with privileged access
  where salesdocument = @salesdocument-salesdocument
  into @data(ls_salesdoc_before_change) .

if salesdocument-soldtoparty ne ls_salesdoc_before_change-soldtoparty.
  append value #(  messagetype = 'E' messagetext = 'Change of Sold To Party is not allowed.' ) to messages.
endif.

endif.

See Also

By design having the Not change possible flag attribute selected will block the sold-to party field from being edited in the sales order header and item data at Partner tab

Keywords

sold-to, editable, SSCUI 101288, 101288, header, overview, Not change possible, change, sold-to party, grayed out, sales order, badi, check before save, Sales Document Check Before Save,  , KBA , SD-BF-PD , Partner Determination , SD-SLS-SO , Sales Orders , How To

Product

SAP S/4HANA Cloud all versions

Attachments

Pasted image.png