Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

create a variant in SM30

Former Member
0 Kudos

Hi All!!

Could anyone please let me know how to create a variant in SM30?

I want to save some input so that I need not enter it everytime I run the tcode SM30, so how do I do it?

Thanks.

5 REPLIES 5

Pawan_Kesari
Active Contributor
0 Kudos

I dn't think you can create variant for SM30. It a module pool program. To my best knowledge we can create variant for reports only.

Former Member
0 Kudos

Former Member
0 Kudos

Creating Variants Locate the document in its SAP Library structure

Prerequisites

You must have defined one or more selection screens for the relevant program. The program may have any type except type S.

Procedure

1. On the initial screen of the ABAP Editor, enter the name of the program for which you want to create a variant, select Variants in the Sub-objects group box, and choose Change.

2. On the

variant maintenance initial screen, enter the name of the variant you want to create.

3. Note the naming convention for variants (see below). Choose Create.

If the program has more than one selection screen, a dialog box appears in which you can assign the variant to one or more screens. The dialog box does not appear if the program only has one selection screen. In this case, the selection screen of the program appears straight away.

4. If there is more than one selection screen, select the screens for which you want to create the variant.

Example:

This graphic is explained in the accompanying text

Note

If you choose Variant for all selection screens, the variant also applies to any selection screens that you create after creating the variant.

Otherwise, the variant only supplies values to the selection screens that you select in the list.

5. Choose Continue.

The (first) selection screen of the program appears.

If your program has more than one selection screen, use the scroll buttons in the left-hand corner of the application toolbar to navigate between them. If you keep scrolling forwards, the Continue button appears on the last selection screen.

6. Enter the required selections, including multiple and dynamic selections.

7. Choose Continue.

Result

When you have finished, an overview screen appears (ABAP: Save Attributes of Variant), on which you can enter the attributes of your variant and save it.

Note that when you create a new variant, you must enter both values and attributes.

Note

Names of variants: Names can consist of up to 14 alphanumeric characters. The "% " character is not allowed. If you want the variant to be transported automatically with its program, you must create a system variant. The name of a system variant starts "CUS&" for customers, and "SAP&" for SAP system variants. You can only use the "&" character within this prefix in the name of a system variant. It may not occur in any other context. System variants are administered by the Workbench Organizer. Although you can create and access variants from any client, they are always stored in client "000".

End of Content Area

refer

<b>http://help.sap.com/saphelp_nw04/helpdata/en/c0/980374e58611d194cc00a0c94260a5/content.htm</b>

http://help.sap.com/saphelp_nw04/helpdata/en/c0/980389e58611d194cc00a0c94260a5/content.htm

http://help.sap.com/saphelp_nw2004s/helpdata/en/c0/98037ae58611d194cc00a0c94260a5/frameset.htm

https://forums.sdn.sap.com/click.jspa?searchID=919770&messageID=1779621

https://forums.sdn.sap.com/click.jspa?searchID=919770&messageID=1773555

regards,

srinivas

<b>*reward for useful answers*</b>

Former Member
0 Kudos

u need to use <b>SHD0</b> transaction to create a variant for SM30.

Transaction Variants

Use Transaction Variants to make fields Mandatory, Hidden or Display. Also applicable to screens and tabstrips.

You can hide unwanted screens and fields in any of the standard SAP programs without changing any of the standard programs. Additional features such as making the variant as default on the standard SAP transaction code is only available as of 4.6x.

Transaction SHD0 - Create a variant for the required transaction by changing the layout through hiding fields and screens.

Transaction SE93 - Create a variant transaction (e.g. for VA02 = ZVA02).

Next allocate the transaction variant to this variant transaction.

In 4.6c, you can default your transaction variant as the standard variant. (SHD0 - Edit -> Activate/Deactivate as standard variant)

Vijay
Active Contributor
0 Kudos

hi

you need go to any transaction for creating variant.

just enter the values in input parameter and press the save button in application bar.

it will ask you the to be saved with.

next time you can use that name to fill the input variables

regards

vijay

<b>please rewad points if helpful</b>