cancel
Showing results for 
Search instead for 
Did you mean: 

Required/Mandatory field in Particuler tcodes

0 Kudos

Hello Team

I want to make one Mandatory field for particular t-codes only.

I have tried for filed status group but that make the filed mandatory for all the transaction I want this mandatory filed only for few t-codes.

How can I do this settings in system or shall we use validation for that t-code.

Thanks

Accepted Solutions (0)

Answers (4)

Answers (4)

msshihab1987
Active Contributor

Hi,

I think it can be achieved through validation rule. You can create a validation rule in Line item level,

please use the T code GGB0

eg: text filed validation for a company code

Prerequisite : Company Code = '2100' AND Posting key = '40' OR Posting key = '50'

Prerequisite : Text <> ''

Message : Specify a message rule with E or W message type

Once created activate the rule in OB28

Regards

Shihab

sanilbhandari
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi

SHD0 is the best way. Below blog should help you set it up

https://blogs.sap.com/2013/03/26/learning-shd0-with-example/

Regards

Sanil Bhandari

sjeevan
Active Contributor
0 Kudos

Hi, Read the following blog:

https://blogs.sap.com/2013/09/05/transaction-and-screen-variants-with-an-example/

Also read my reply:

"In case you do not want to create a separate transaction code ZCS02 but you want to assign this transaction variant to the standard tcode CS02 itself, all you have to do is click “Standard Variants” tab underneath that there is another “Standard Variants” tab, in the field enter the name of your transaction variant ZZZCS02 and click the activate button. From now on CS02 will start with transaction variant ZZZCS02."

former_member206132
Participant
0 Kudos

Hi Harshal,

This can be achieved through two ways:

1. You can achieve by SHD0 transaction code where you can create a transaction variant and create your own layout by required field or display

2. Second you can control for particular transaction code with authorization objects(List of authorization objects found in SU22) for one user you can make changing authorization and for other user can make only display authorization.

Best Regards,

Repakula Manoj