Selection Variant to Multiply Our Productivity!

Selection Variant in SAP is one of the productivity enhancement tools that makes SAP End User life pleasant.

Consider we need to run a report, GL Account Statements, TCode- S_ALR_87012332  with following  parameters:

  • Company code 1000
  • Fiscal year 2004
  • Document number ‘no selection’
  • Ledger 0l
  • GL Account 430000, Direct Labour Cost

Running the report with above selections gives us the report we wanted.

Why Selection Variant?

What are the benefits of defining and using Selection Variant, let us have a look. Say,

  • We want to run the report with all the above parameters except the GL code. GL account to be entered dynamically i.e., at the time of running the report.
  • We do not want to be distracted with many options that are not relevant to our purpose and no requirement for any selection.
  • We do not want the field Company Code editable while running the report.
  • We can give the task of running the report to our colleagues with minimum instruction.

The above are precisely the benefits of defining and using selection variant.

Defining Selection Variant

Let us understand how to proceed in 5 steps.

selection-variant1

Step 1

Enter the following parameters in the cells marked ‘A

  • Company code 1000
  • Fiscal year 2004
  • Document number ‘no selection’
  • Ledger 0l
  • GL Account 430000
Step 2

Identify ‘Range Selection’ (marked ‘B‘) that we do not want:

  • Company code
  • Fiscal Year
  • Ledger
Step 3

Identify the parameter entry cells that we do not need, highlighted under ‘C‘:

  • Posting date
  • Reference number
  • Asset Line items
  • Material Line items
  • Customer Line items
  • Vendor Line items
Step 4
  • Click ‘Save‘ icon in the main tool bar next to command window OR
  • Follow menu path Go to –>Variants–> Save as Variant OR
  • Press Cntl+S in the keyboard

to go to Variant Attributes Screen.

selection-variant2

Step 5
  1. Enter name with forward slash. Forward slash is required to make this variant available to other SAP users. This enables us to request your colleague to run the report using the variant we defined, thus helps increasing our productivity.
  2. Check ‘Protect Variant’. Only you can edit the variant. Other users cannot edit your variant.
  3. Check ‘Protect Field’ against Company Code. This field will not be editable during program running using the selection variant.
  4. Check ‘Hide Field’ against Posting Date, Reference Number and other highlighted lines. These fields will not appear while running the program, thus avoiding unwanted distractions.
  5. Check ‘Hide Field BIS’ against Company Code, Document Number and Fiscal Year. This prevents system showing ‘Range Options’ and these fields will have only single value entry options.

Now click ‘Save’. Variant ‘/test’ is saved.

Running the Report using the Selection Variant

Enter Tcode S_ALR_87012332 in the command window and press ‘Enter’

  • Choose ‘Select Variant’ icon in the application tool bar OR
  • Follow menu path ‘Go To –>Variants–> Get Variant

Window with many Selection Variants pops up. Choose ‘/test’ variant from the pop up list.

Press ‘Enter’.

selection-variant3

We get the ‘Selection Screen’ the way we wanted!

Have you found this tip useful? Please do share with your friends.

What tips are you using that makes your life simpler? Please share with us in the comments section below.

Thanks for your time!

6 Comments

  • idreddy

    Reply Reply October 23, 2014

    Dear Murugesan

    Very Good and more useful tips.
    Expect many more….

    With Best wishes and Happy Deepavali-2014 to you and your parents, family,friends.

    idreddy

    • Murugesan

      Reply Reply October 23, 2014

      Dear Reddy, Many many thanks for the motivating words. Thank you for Deepavali greetings, wish you, family and friends Happy Deepavali.

  • Maximino Rodriguez

    Reply Reply October 24, 2014

    Hey Murugesan,
    Very good tip, thanks for sharing.

    Best regards.
    MRC

  • Dayanathan

    Reply Reply October 26, 2014

    Dear Murugesan
    Good day
    Very well written article . very useful for the new entrants into SAP
    Rgds
    Dayanathan

    • R.Murugesan

      Reply Reply October 27, 2014

      Dear Dayanathan, I am glad the article is useful. Thanks for the encouraging comments. I am committed to write more articles.

Leave A Response

* Denotes Required Field