In actual work, it is often required to lock some fields in SAP or set them to mandatory input. In this case, you can use the transaction code and screen variant for control. The transaction code: SHD0 (Transaction and Screen Variants ).
The following is an operation record that controls the production order scheduling type to a fixed value:
1. View the screen number of the production order scheduling type
Enter the transaction code CO03, view an existing production order at will, and click the menuSystem (Y) => Status (S )...To see the screen number and sub-screen number.
2. Create a Transaction Variants)
Enter the transaction codeSHD0Press enter: Enter the transaction code, name it, and click Create to go to the create production order page.
Fill in the materials according to the actual situation, and press enter to display the confirmation screen entry dialog box.
Click OK.Create a production order brain: Enter the necessary quantity on the head-up page, and press enter to display the confirmation screen entry dialog box. Note that this is another screen.
Only output the content of the type field, forcibly tick it, and clickExit and SaveButton to go to the change transaction interface. If you want to set other fields, you can change them here. Click save.
We can see that the transaction variant ZCO01LX has allocated three screen variants:
Click Standard Variants and click activate.
Finally, we can see that the transaction variant has been enabled, and the value of the production order scheduling type is fixed and cannot be changed.
Block the explicit, hidden, or formatted bytes of some fields on the TCODE)