Skip to content
✦ Made with Docsie · generated from video

How to Create a Variant in SAP

Variants in SAP let you save a fixed set of input values for a transaction screen, so you don't have to re-enter the same selection criteria every time you run a report. This guide shows you how to create a variant in SAP using the MB51 (Material Document List) transaction as an example, then how to load it for future use.

SAP 8 steps 9 screenshots 639 words Source video 4:25 Generated cost $1.75

Video: How to Create Variant in SAP for any T-code by Aon Excellence. All credit for the demonstration goes to the creator; watch the original on YouTube. The written guide below was generated from this video by Docsie. Creator? Request a change or removal.

Variants in SAP let you save a fixed set of input values for a transaction screen, so you don't have to re-enter the same selection criteria every time you run a report. This guide shows you how to create a variant in SAP using the MB51 (Material Document List) transaction as an example, then how to load it for future use.

Prerequisites

  • Access to the SAP Easy Access screen with a valid user menu.
  • Authorization to run the MB51 transaction (or another transaction for which you want to create a variant).
  • The specific input values you want to save as fixed (for example, plant, storage location, movement types, or material filters).
1

Access the MB51 transaction

On the SAP Easy Access screen, locate your user menu and the list of available transactions. Transaction codes are typically grouped under Favorites and User Menu.

Enter the transaction code MB51 in the command field, or select it from your favorites or menu list. This opens the Material Document List input screen.

SAP Easy Access screen showing the user menu and list of transactions, with no action yet performed.
SAP Easy Access screen showing the user menu and list of transactions, with no action yet performed.
SAP Easy Access screen with the transaction code dropdown open, showing MB51 among recent and favorite transactions.
SAP Easy Access screen with the transaction code dropdown open, showing MB51 among recent and favorite transactions.
2

Enter the fixed values on the input screen

On the MB51 input screen, fill in the fields you want to save as fixed values for repeated use. For example:

  • Plant: 1101
  • Storage Location: 1132
  • Movement Types: 131, 132
  • Posting Date: 01.09.2021 (for the current reporting month, September 2021)

The input screen is organized into sections such as Item Data and Header Data.

MB51 Material Document List input screen with Plant, Storage Location, Movement Types, and Posting Date fields being filled in.
MB51 Material Document List input screen with Plant, Storage Location, Movement Types, and Posting Date fields being filled in.
3

Set the posting date range and material filter

Set the Posting Date range to define the reporting period:

  • From: 01.09.2021
  • To: 30.09.2021

In the Material field, enter I* to filter for material codes that start with the letter "I." This ensures the report includes only transactions for materials beginning with "I."

MB51 input screen with the posting date range set from 01.09.2021 to 30.09.2021 and the Material field set to I*.
MB51 input screen with the posting date range set from 01.09.2021 to 30.09.2021 and the Material field set to I*.
4

Apply a custom layout

In the Layout field under Display Options, select your preferred layout (for example, /MB REPORT). Once saved as part of the variant, this layout is applied automatically every time you run the report, so you don't need to set it manually again.

5

Open the variant menu

With all fixed values and the layout entered, go to the menu bar at the top of the screen and click Goto. Hover over or select Variants, then choose Save as Variant from the dropdown.

SAP MB51 input screen with the Goto menu open, showing the path to Variants > Save as Variant.
SAP MB51 input screen with the Goto menu open, showing the path to Variants > Save as Variant.
6

Define the variant name and description

In the Variant Attributes window that appears, enter the following:

  • Variant Name: Variant1
  • Description: Transaction I*

Optionally, select additional options such as Only for Background Processing or Protect Variant if needed.

Variant Attributes window with Variant Name 'Variant1' and Description 'Transaction I*' entered.
Variant Attributes window with Variant Name 'Variant1' and Description 'Transaction I*' entered.
7

Save the variant

Click the save icon (or press the corresponding button) to save the variant. A confirmation message appears at the bottom of the screen: Variant VARIANT1 saved.

MB51 input screen showing the confirmation message "Variant VARIANT1 saved" at the bottom.
MB51 input screen showing the confirmation message "Variant VARIANT1 saved" at the bottom.
8

Load a saved variant

On the Material Document List input screen, click the Variants button or use the menu to open the variant selection dialog. A pop-up titled ABAP: Variant Directory of Program RM07DOCS appears, listing available variants.

Select the variant you previously created (for example, VARIANT1 with the description "Transaction I*"), then click the green checkmark or press Enter to load it.

Once loaded, all fields you fixed in the variant—such as Plant, Storage Location, Movement Types, Material filter, and Layout—are automatically populated. Only fields not saved in the variant, such as the posting date range (if not fixed), may need to be entered manually.

Material Document List screen with fields auto-filled from the loaded variant, including Material = I*, Plant = 1101 to 1132, Movement type = 131 to 132, Posting Date = 01.09.2021 to 30.09.2021, and Layout = /MB REPORT.
Material Document List screen with fields auto-filled from the loaded variant, including Material = I*, Plant = 1101 to 1132, Movement type = 131 to 132, Posting Date = 01.09.2021 to 30.09.2021, and Layout = /MB REPORT.

Summary

Creating a variant in SAP lets you save a fixed set of input values—such as plant, storage location, movement types, material filters, and layout—so you can reuse them quickly for recurring reports. This functionality is not limited to MB51: you can save and load variants for any SAP transaction code that accepts input values, helping you save time and keep your reporting criteria consistent.

Material Document List screen with the loaded variant, illustrating that variants apply broadly across SAP transactions.
Material Document List screen with the loaded variant, illustrating that variants apply broadly across SAP transactions.
Generation details: cost, quality tiers

Docsie billed 2,500 credits ($1.75) to analyze this 5-minute video at standard quality. The rewrite, template fill and Word/PDF exports were included. The same video at each quality tier:

QualityFrames sampledCreditsApprox. cost
Draftevery 16-30 s1,250$0.88
Standard (this guide)every 8-15 s2,500$1.75
Detailedevery 4-7 s5,000$3.50
Ultraevery 1-3 s10,000$7.00

Credits priced at $0.70 per 1,000; plans include a monthly allowance. Enterprise customers on on-premise or bring-your-own-model deployments run this on their own inference and pay no per-video credits.

Generated by Docsie Video-to-Docs on 2026-10-12 from a 4-minute video. Screenshots are frames from the source video and belong to their creator, Aon Excellence, whose original is embedded above. If you own this video and want the guide removed or credited differently, contact us and we will act within one business day.

Turn your own training videos into guidesJoin teams that save hours, reduce documentation work and scale training with Docsie.
See Docsie in action. No commitment.

Ready to Transform Your Documentation?

Start creating professional documentation that your users will love