Skip to Content

Required/Mandatory field in Particuler tcodes

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

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

4 Answers

  • Jan 10 at 04:40 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • Jan 09 at 09:32 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • Jan 09 at 03:33 PM

    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."

    Add comment
    10|10000 characters needed characters exceeded

  • Jan 10 at 07:39 AM

    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

    Add comment
    10|10000 characters needed characters exceeded