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

Error:Create Transaction Code for zprogram with Variant Only

Former Member
0 Likes
2,712

Team,

I have a zprogram. In SE38 it says "Report Zprogram can only be started with a variant". I have four Variants for this program.

In SE93 (Create Transaction Code), I get the following error when I try to create a Transaction Code. (I am using second option - Report Transaction)

Could you please tell me how to create a transaction code.

Thanks

Release 4.7

ERROR: Report Zprogram can only be started with a variant

Message no. DB623

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,412

Hi,

In the Attributes of the report, you have selected check box Start with variant as a result of which the error comes. If your report has selection screen, go to SE38, enter your report name, select variants and then select display. In the ABAP variants: Initial screen create a variant for your report and then in se38 execute ur report with variant.

Or you can uncheck the Start with variant chekbox in the attributes of your report. It will work fine.

Hope it helps.

Cheers

sharmistha

7 REPLIES 7
Read only

Former Member
0 Likes
1,413

Hi,

In the Attributes of the report, you have selected check box Start with variant as a result of which the error comes. If your report has selection screen, go to SE38, enter your report name, select variants and then select display. In the ABAP variants: Initial screen create a variant for your report and then in se38 execute ur report with variant.

Or you can uncheck the Start with variant chekbox in the attributes of your report. It will work fine.

Hope it helps.

Cheers

sharmistha

Read only

0 Likes
1,412

Thanks for your reply.

I want to know is there a way to create transaction code without making any changes in the attribute of the program.

Thanks

Read only

0 Likes
1,412

Yes, you can do so. At the time of creating transaction code in SE93, select Report transaction, and after entering Transaction Text and Program name, also enter your variant name in the field Start with variant.

Hope it helps otherwise let me know.

Cheers

sharmistha

Read only

0 Likes
1,412

>>I want to know is there a way to create transaction >>code without making any changes in the attribute of >>the program.

If you dont want to change the program attributes then you can only create a transaction as suggested by SHARMISHTA and it will start the report with a variant . If you want to display the normal selection screen ( without a variant ) you have to change the attribute.

So to say if you have four variants you will have to create four transactions for it.

Cheers.

Sanjay

Read only

0 Likes
1,412

hi,

in SE93 -> (choose second option)

specify program name - > zprogram

start with variant - > specify your variant name

save

I hope it will solve your problem

cheers,

sasi

Read only

Former Member
0 Likes
1,412

Follow below steps.

1. create a transaction code say 'ZZZ' for your report

2. create another transaction code for which take 4th option(transaction with variant) for the start object, then system will ask for transaction code(give 'ZZZ') and the variant.

Hope this will solve your problem.

Cheers,

Satya

Read only

Former Member
0 Likes
1,412

please send code for this.