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: 

Regarding Transaction Variants

Former Member
0 Kudos

Hi experts,

I am working on bdc (for MM01). I want to create Transaction Variant for mm01, please let me know how to create transaction variants in T.code SHD0, if possible then please tell me all the steps.

Thanks & Regards,

Vimarsh B.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

Transaction variants are created with transaction: SHD0

In the field Transaction on SHD0 enter the transactioncode for the screen you want tpo modify (E.g. VA03)

In the field Variant on SHD0 enter the name you want to give the transaction variant (E.g. ZVA03)

Press Create

Now the screen for the transaction is shown and you can enter default values in the fields of the screen

Press Enter. Now a screen that enbles you to make further customizing (Hide, Output only, Invisible, Mandatory) if the screen fields is shown.

After you have finished customizing the screen press Enter to go to the next screen or ave and exit to save the Transaction variant

To run the transaction varian, you must create a new Transaction code in SE93 that referes to the Transaction variant. Choose Transaction with variant as Start object.

5 REPLIES 5

Former Member
0 Kudos

Hi,

Transaction variants are created with transaction: SHD0

In the field Transaction on SHD0 enter the transactioncode for the screen you want tpo modify (E.g. VA03)

In the field Variant on SHD0 enter the name you want to give the transaction variant (E.g. ZVA03)

Press Create

Now the screen for the transaction is shown and you can enter default values in the fields of the screen

Press Enter. Now a screen that enbles you to make further customizing (Hide, Output only, Invisible, Mandatory) if the screen fields is shown.

After you have finished customizing the screen press Enter to go to the next screen or ave and exit to save the Transaction variant

To run the transaction varian, you must create a new Transaction code in SE93 that referes to the Transaction variant. Choose Transaction with variant as Start object.

Former Member
0 Kudos

Hi vimarsh,

Insert default values into fields

Change the ready for input status for fields

Hide various screen elements, menu functions or entire screens

Adjust table control settings

Note: Transaction variants can only be used with dialog transactions.

How to create a transaction variant

Transaction variants are created with transaction: SHD0

In the field Transaction on SHD0 enter the transactioncode for the screen you want tpo modify (E.g. VA03)

In the field Variant on SHD0 enter the name you want to give the transaction variant (E.g. ZVA03)

Press Create

Now the screen for the transaction is shown and you can enter default values in the fields of the screen

Press Enter. Now a screen that enbles you to make further customizing (Hide, Output only, Invisible, Mandatory) if the screen fields is shown.

After you have finished customizing the screen press Enter to go to the next screen or ave and exit to save the Transaction variant

To run the transaction varian, you must create a new Transaction code in SE93 that referes to the Transaction variant. Choose Transaction with variant as Start object.

Note: The transaction variant can also be called from a program that imcludes a call to function module RS_HDSYS_CALL_TC_VARIANT

Screen variants

To create a screen variant, use transaction SHD0. Use menu Goto -> Screen variants

The process to create a screen variant is similar to creating a Transaction variant. The difference between the two types is that a Transaction variant covers the whole transaction and therefore can have more than 1 screen, while a screen variant only can have 1 screen.

Reward points if helful.

cheers,

sowjanya.

former_member181995
Active Contributor
0 Kudos

Vb,

Refer below link:

help.sap.com/saphelp_nw70/helpdata/en/67/232037ebf1cc09e10000009b38f889/content.htm

Amit.

Former Member
0 Kudos

hi,

check this

Author: Ashim Chowdhury

Submitted: April 30, 2008

Related Links:

u2022 http://help.sap.com/saphelp_nw04/helpdata/en/67/232037ebf1cc09e10000009b38

f889/frameset.htm

u2022 http://www.sap-basis-abap.com/sapbs010.htm

u2022 http://www.erpgenie.com/abap/tvar.htm

Summary

Transaction variant is a very efficient method to create some tailored version of standard

SAP transaction without any actual modification. This article explains in a stepwise

manner how to do that. The transaction chosen is CO01 - Create Production order.

Introduction

Transaction variants are created to personalize any standard SAP transaction. A

transaction variant simplifies the usage of a transaction by tailoring some of the features

as per the business need. It can be used to hide fields, menu functions, screens, to supply

individual fields with default values or to change the ready for input status of one or more

fields.

This document describes the step by step process to create a transaction variant for

standard SAP transaction CO01 - create production order. The transaction variant should

have the following restriction:

u2022 Order type is not visible in the initial screen.

u2022 Menu path Order -> Create from Planned Order is deactivated

There are two steps, first create the transaction variant and then attach the transaction

variant to a transaction.

Creation of Transaction Variant

Transaction variant can be created by through transaction code SHD0. The steps to create

a transaction variant as follows:

1. Go to transaction SHD0. In the

initial screen enter the transaction

code (in this case CO01) for which

we are going to create the

transaction variant. Enter the name

of the transaction variant (say

YCO01) in the "Transaction

Variant" field and then click the

"Create" button.

2. In the next screen transaction CO01 will be

opened in recording mode. As we are going to

hide the field "Order type", enter some default

value (say PP01) in that field. For others we may

or may not enter values. Click "Enter". A pop-up

screen will appear.

3. In the "Confirm Screen Entries" pop-up screen we can customize the fields. Enter the

screen variant name (say YCO01_0100) and short text (Test screen variant) here. Also

for the field "Order type" check the Invisible checkbox to hide this field from the screen.

4. To deactivate some of the menu function click the button "Menu functions". A pop-up

screen will appear. In the pop-up select the menu item "Order-> Create from planned

order" and click the deactivate button.

5. The menu item will

be deactivated (it will

be highlighted in

yellow). Click "Enter"

to come back to the

original screen entries

pop-up.

6. Click "Exit and Save" button to save the Transaction variant. System will pop-up for a

transport request. We can save it as a local transport or save it in some transport request.

7. We can test the transaction variant by clicking the "Test" button in the initial screen.

Assigning Transaction Variant to Transaction Code

After creating the transaction variant

we need to assign it to a transaction.

The transaction can be used by the user

to get the required tailored version of

the original transaction. The steps are

as follows:

1. Go to transaction SE93. Enter the

name of the transaction code (say

YCO01_TCODE ) to be created and

click the button "Create".

2. In the next pop-up screen enter the short text, select the radio button variant transaction

and click enter.

3. In the next screen enter the transaction (CO01) and transaction variant (YCO01)

created in the previous step. Click the "save" button to save the variant transaction.

The variant transaction

(YCO01_TCODE) is now ready

and it can be used to get the

tailored version of the original

production order creation

(CO01) transaction code.

Result:

Initial Screen: Field "Order type" is not visible

Menu: Menu item "Create from planned order" is disabled

Related Content

http://help.sap.com/saphelp_nw04/helpdata/en/67/232037ebf1cc09e10000009b38f889/fra

meset.htm

http://www.sap-basis-abap.com/sapbs010.htm

http://www.erpgenie.com/abap/tvar.htm

reward points if useful,

siri

Former Member
0 Kudos

Hi Vimarsh,

https://wiki.sdn.sap.com/wiki/display/ABAP/TransactionandScreen+variants

You can try with this

1) run the transaction code - SHD0 ( Transaction and Screen variants)

2) Enter the required transaction code MM01 in the transaction code field and in the transaction variants tab enter the same t-code and press change.

3) The system will open a screen where you can select the attributes of each field on the screen.

5) Close the existing window and try to create a customer.........you can now see the company code field mandatory.

if found Helpfull Do reward.

Regards.

Eshwar.