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

variant for a program

Former Member
0 Likes
1,837

hello experts,

A small problem. I have changed a program according to the unicode syntax and the tried to execute it.

the syntax check is all correct but I got this message

Report Z_USERS_BY_TCODES can only be started with a variant Message no. DB623 Diagnosis You attempted to start a report without specifying a variant. However, the report attributes stipulate that the report can only be started using a variant. System Response The report cannot be started. Procedure Please choose a variant for starting the report.

So I want to know how to create a variant for a program.

And am I supposed to change such programs??? or should I have created a variant and the changed the variant?

I am a newbie, so dont know the standards yet.

Thanks in advance

Goldie.

1 ACCEPTED SOLUTION
Read only

matt
Active Contributor
0 Likes
1,700

How did you execute it? A Z-transaction, SE38 or what?

15 REPLIES 15
Read only

matt
Active Contributor
0 Likes
1,701

How did you execute it? A Z-transaction, SE38 or what?

Read only

Former Member
0 Likes
1,700

I TRIED TO execute it using SE38.

That is when I got the message.

Read only

matt
Active Contributor
0 Likes
1,700

In the attributes of the program, (you can see this from SE38), you've got Start Using Variant set.

matt

Read only

Former Member
0 Likes
1,700

In SE38, use menu path:

Program->Execute->With variant

Select a variant and it should be OK.

Rob

Read only

Former Member
0 Likes
1,700

Hi Matthew,

I looked at the attributes of the program.

It is a executable program. Where ca I see if it has the attribute Start using variant set?

how can I set it?

Read only

Former Member
0 Likes
1,700

Hello Rob,

Thanks for the tip.

I found it just before I got your message :D.

but I have something to ask you.

Should I have changed the program directly??

What would you have done in my position??

Please answer this.

goldie.

Read only

Former Member
0 Likes
1,700

Hello

Since you have just changed the code, no change in variants occur.

so you needn't worry about changes to variant.

If you want to create a variant, go to se38 and click variants and press change.

Cheers

~Arun

Read only

Former Member
0 Likes
1,700

It was set for a reason, so I wouldn't go about changing it without approval.

Rob

Read only

Former Member
0 Likes
1,700

But the program showed SERR syntax error when I ran the UCCHECK transaction, thats why I changed it

Read only

Former Member
0 Likes
1,700

I guess Rob is talking about changing the Variant.

Variant change should be done only after consultation as Rob mentioned...Program code change is needed since you are doing unicode check

Cheers

~Arun

Read only

Former Member
0 Likes
1,700

Oh ok....

Thank you for helping me out.

I still would like to know how one can create a program that only starts using a variant.

Read only

Former Member
0 Likes
1,700

It's one of the program attributes.I was saying that you shouldn't turn this attribute off unless someone atually requests it.

Rob

Read only

Former Member
0 Likes
1,700

Oh no, I am not changing the attribute only the code.

The only attribute I am changing is the unicode checks active flag.

Read only

Former Member
0 Likes
1,700

So I guess you're OK now.

Rob

Read only

Former Member
0 Likes
1,700

Hi

In the selection screen of the report, press SHIFT+ F5

Cheers

~Arun