‎2008 Jul 25 12:00 PM
Hi,
Can any one explain steps to be followed for Transaction Variants SHDO -with an example.
‎2008 Jul 25 12:03 PM
goto Tcode:SHD0
enter the tcode:VA01
in transaction variant: ZUSERDEFINED
then select "create- F5" button
it will take you to create sales order screen.
here enter the fields which ever you required.In each step system prompts with tech names & dont display screen option. Make the settings like optional -mandatory as req'd.
All these steps will be recorded, at the time of saving it will ask for "screen variant short text"- enter tex and choose" Exit and save"
now goto VOV8, select the doc type -OR- details-
in transaction flow- variant field - enter ur transaction variant: ZUSERDEFINED and save.
now create sales order using this doc type- observe the fields.
Regards
Jagadeesh.
‎2008 Jul 25 12:03 PM
Check the SAP help on Transaction variants.
http://help.sap.com/saphelp_nw04s/helpdata/en/67/232037ebf1cc09e10000009b38f889/content.htm
‎2008 Jul 25 12:03 PM
goto Tcode:SHD0
enter the tcode:VA01
in transaction variant: ZUSERDEFINED
then select "create- F5" button
it will take you to create sales order screen.
here enter the fields which ever you required.In each step system prompts with tech names & dont display screen option. Make the settings like optional -mandatory as req'd.
All these steps will be recorded, at the time of saving it will ask for "screen variant short text"- enter tex and choose" Exit and save"
now goto VOV8, select the doc type -OR- details-
in transaction flow- variant field - enter ur transaction variant: ZUSERDEFINED and save.
now create sales order using this doc type- observe the fields.
Regards
Jagadeesh.
‎2008 Jul 25 12:05 PM
‎2008 Jul 25 1:07 PM
Creation of Transaction variant in SHD0 transaction and using transaction variant in custom transaction.
Use:
Transaction variant is created when there is a requirement to hide screen-fields of any standard SAP transaction.
Transaction variant is attached to a custom variant transaction (from SE93) for use.
SHD0 transaction is used to create
u2022 Transaction variant
The process to create transaction variant is described in steps.
u2022 Screen variant
When transaction variant is created, screen variant is created automatically for each screen in that transaction. Procedure for creating screen variant is almost similar. It is not described here.
u2022 Standard variants
This is used to create variant which will be applicable for all the users in the same SAP system. (E.g. If anyone creates any standard variant for a standard tansaction, then that will affect all users who will use that transaction in that system). It is not described here.
Steps to creating transaction variant in SHD0:
In this example, the requirement is to create a custom transaction, which will work as transaction SM30 but u2018Transportu2019 and u2018Customizingu2019 buttons should not be visible and the view/table name field should be pre-populated and display-only fields):
1. Go to Transaction SHD0.
2. Enter the SAP transaction name in which you want to change fields to hide or make display-only. Enter Transaction Code as SM30.
Enter transaction variant name which you want to create. (Here I have created Z_SLO_PRO_VAR). Click Create Button in the left top corner.
3. Screen of SM30 Transaction is displayed. Enter table view name. Click display.
4. Screen u2018Confirm screen entriesu2019 is displayed. All the fields of the screen SM30 is displayed with different display-options checkbox. Select the check-boxes according to your requirement.( In my case, I made the u2018Transportu2019 and u2018Customizingu2019 field as invisible by checking the corresponding check-boxes and checking the u2018W. contentu2019 and u2018Output onlyu2019 check-boxes of the u2018Table/Viewu2019 field).
As the modification is required only in first screen, click u2018exit and saveu2019 button.
N.B: If u2018do not display screenu2019 is checked then current screen will not be displayed.
In this step a screen variant with name u2018Z_SLO_PRO_VAR_0100u2019 is created
for screen 0100.
5. In the final step, all the screen variants with all their fields are displayed in one screen.
As I have used only one screen, there is only one screen variant in the final step,
u2018Z_SLO_PRO_VAR_0100u2019 is shown.
Click save.
Short text for screen variants and transaction variants are not mandatory.
6. Go to SE93 (or from SE80) for custom transaction creation. Enter custom transaction name and click create.
Enter short text and select transaction as u2018Transaction with variantu2019. Press Enter.
7. In the next screen enter transaction as u2018SM30u2019 and transaction variant as created in earlier step (Z_SLO_PRO_VAR).
Check u2018Inherit GUI attributesu2019 check box and check cross-client.
Click save button and assign package and save.
Now we have created custom transaction Z_SLO_PRO_UPDT with transaction
variant Z_SLO_PRO_VAR.
8. Now test (F8) custom transaction Z_SLO_PRO_UPDT.
After execution, transaction SM30 is displayed with u2018Transportu2019 and u2018Customizingu2019 button invisible and Table/View name field is pre-populated and output only.
In this way we can modify display-properties of standard SAP transaction screens without modifying any standard program.
9. We can also hide menu functions like u2018DELETEu2019, u2018New Entriesu2019 etc from the screens. To do this, click u2018Menu functionsu2019 button in the screen variant (as shown in step 4).
In the next screen, double click the functions that are required to hide. It will be highlighted with yellow. Click u2018Continueu2019 and save.
The following example shows that the u2018DELETEu2019 and u2018New Entriesu2019 button are disabled by the use of transaction variant.
I had the screen shots but could not attach here.
Feel free to ask if you have any doubts.
‎2008 Jul 25 1:21 PM
hi
good
Transaction variant generally used to customize doc - as per your req-
say for eg:
while creating sales order -
you want all the item level fields should be available in Sales overview screen instread of in different tabs (sales-shipping- billing tabs)
goto Tcode:SHD0
enter the tcode:VA01
in transaction variant: ZUSERDEFINED
then select "create- F5" button
it will take you to create sales order screen.
here enter the fields which ever you required.In each step system prompts with tech names & dont display screen option. Make the settings like optional -mandatory as req'd.
All these steps will be recorded, at the time of saving it will ask for "screen variant short text"- enter tex and choose" Exit and save"
now goto VOV8, select the doc type -OR- details-
in transaction flow- variant field - enter ur transaction variant: ZUSERDEFINED and save.
now create sales order using this doc type- observe the fields.
Thanks
mrutyun^
‎2008 Jul 25 1:46 PM
Hi,
Try the following link,
[http://www.saptechies.com/transaction-variants-screen-variants-2/]