Application Development and Automation 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: 
Read only

transaction with variant

Former Member
0 Likes
1,081

Hi,

I need to call some standard transaction ( which are nothing but report, assigned a T code) with defaulting an existed variant.

how can i acheive this.

Thanks in advance,

Sudheer. A

Hi gajendra

Thanks for your reply. but I may have multiple variants based on some condition i want to pick the variant.

Thanks,

sudheer. A

5 REPLIES 5
Read only

former_member723628
Active Participant
0 Likes
888

Sudheer,

You can create a Standard Transaction Variant for any standard transaction using transaction SHD0. Once you have created a standard variant and activated it, the next time you call the standard transaction it would be always called with the variant you created.

Regards,

Gajendra

Read only

0 Likes
888

Hi gajendra

Thanks for your reply. but I may have multiple variants based on some condition i want to pick the variant.

Thanks,

sudheer. A

Read only

0 Likes
888

Hi sudheer, you have a table TVAR* which hold all the variant names for a given object.. check that.. you might find a solution...

You said its a report program so.. why dont you use SUBMIT statement and use the selection-screen.

Read only

0 Likes
888

Hi Sudhir,

You have mentioned you want to call a standard transaction with specific variant based on a condition: What is the condition for which you want to call the transaction and where is it being called from? If it is a custom developed program then best way to do this create variant transactions for different transaction variants and then call the relevant transaction based upon conditions.

Regards,

Gajendra

Read only

Former Member
0 Likes
888

Hi,

Give a diff. transaction code in SE93 in create mode.

In the Default value for Transaction, put 'START_REPORT' and

check skip initial screen field.

At the bottom of screen in the default values section

Put 'D_SREPOVARI-REPORT' in the name of screen field and assign your 'report name' in the value.

In next row, put 'D_SREPOVARI-VARIANT' in the name of screen field and assign your 'variant name' in the value.

and hit 'SAVE' button.

You can use transaction code with the given variant for the program now.

Cheers,

Vikram