Making Field Freezed in Sale Order like Payment Terms as value to be flow from Master Data

If the Client requirement is to flow the Payment term field value from Customer Master instead of entering it at the Sale order level, we can make it happen by using the variants with the following steps.

Transaction code SHD0 is used for Transaction and Screen Variants in SAP. It comes under the package SMOD. When we execute this transaction code, SAPMSHD0 is the normal standard SAP program that is being executed in background.

Go to the Tcode – SHD0 and enter the Transaction Code in which we are going to freeze any specific field like VA01, and in ‘Standard Variants’ tab enter New name in field Name ex: ‘ZTEST2’ as variant and click on create button or menu Variant—>create or press F5.

System prompts message like Objects can only be created in Package, click on continue

”you will get the Tcode screen, in our case VA01 screen, enter the input values and press enter

Now system shows the “Confirm Screen Entries” message

where in we need to search for the field for which we need to change the status as freeze or grayed out.

We need to press continue till we get our screen in which our desired field comes ex: Payment terms

Now system will show the Sale Order screen enter the desired field values,

Now system shows next screen “Confirm Screen Entries” click on continue

Now system shows next screen “Confirm Screen Entries” click on continue

Now system shows next screen “Confirm Screen Entries” click on continue

Now system shows next screen “Confirm Screen Entries” click on continue

Now system shows next screen “Confirm Screen Entries” click on continue

In this screen [Dynpro 4440] we will find the field “Payment terms” and check the respective field in column “Output Only” which does the Payment term field as freezed and lick on “Exit and Save”.

After pressing “Exit and Save” button, system will show all screen fields in one screen for validation as like below,

after cross checking the values, go to menu “Variant” and click on “Save”.

Select the package and click on save button

Then system prompts for creation of Transport request and note that this object can be saved only in Workbench Request.

Now the Variant which we created now should be assigned to the Sales document type like ‘OR’, for that go to tcode VOV8, and enter the variant name ex: ‘ZTEST2’ and save it.

Now try creating the Sale Order with Tcode – VA01, and validate that the payment term should be grayed out or freezed as shown in the below pic.

As you can observe in the above screen shot, in VA01-Sale Order creation transaction code the Payment term field is freezed but filled.

Conclusion:


If the Client requirement is to flow any specific field data in to Sale Order from Master Data and it should not be allowed to enter or edit at Sale Order level, like Payment Term from Customer Master in our example, we can fulfill the requirement with above mentioned process.

Kindly leave comments or Questions or suggestions if you have any about the Subject Scenario.

Best Regards,

Masood P

SAP SD Consultant

Knowledge Sharing is Power