Quantcast
Channel: SAP ERP Manufacturing - Production Planning (SAP PP)
Viewing all articles
Browse latest Browse all 87

How to create transaction/standard/screen variants for parameter transactions.

$
0
0

The transaction variant/standard variant/screen variant which can be created in transaction SHD0 can be used in many transactions to change the field/button/tab attribures in screens, e.g. hide or make them required fields or display only. If there are no customizations for the transactions to do the same, SHD0 would be an alternative solution.
For more information of the variants above, you can read its documentations in SHD0 by clicking the button 'Application help Ctrl+Shift+F12'.


However, the variants can only be created for dialog transactions and others like parameter transactions cannot be applied.
In SAP customizations, many transactions are parameter transactions, they have their own transaction codes and call transaction SM30 for a table view with specified parameters, here is an example for PP kanban transaction PK05.PK05.JPG

I'd like to make the field 'Responsible' as a required field by standard variant, but get an error below that the variants are only possible for dialog transactions and the transaction PK05 is a parameter transaction.

SHD0_Error.JPG

In transaction SE93 below for the transaction code PK05, we can see that PK05 calls transaction SM30 inside for the table view V_pvbe.

 

So, the idea is, create a standard variant for transaction SM30 and the view V_pvbe as following because SM30 is a dialog transaction.
Click the button 'Create' as below to create it.

SHD0_1.JPG

Click the button 'Maintain'.

SHD0_2.JPG

Continue on as we normally do in SM30 or PK05 to reach the screen where the field 'Responsible' is, tick on the field 'Required' at the line of 'Responsible', save the variants.

SHD0_3.JPG

Activate it.

SHD0_Activate.JPG

Now, the field is a required one.

PK05_Required.JPG


Viewing all articles
Browse latest Browse all 87

Trending Articles