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: 

Create transaction with variant not working

former_member210148
Participant
0 Kudos

Hello!

Here's my issue -- I have a program that, right now, is more of a shell than anything else. It is to access the HR Logical Database PNPCE, and to help filter the data I pull back, I created a Selection View with a couple of additional fields. I put the necessary values in these fields and saved it as a Variant.

All I want to do is create a transaction to run my program and start it using my Variant to fill in these additional fields. Using SE93, I can create a plain transaction with no problem. However, if I click the "Start with variant" drop-down field, I get a response that says screen 1000 (my default Selection Screen) has no variants.

At first we thought there was some client-side things needing configuration, but if I go create a quick-and-dirty program with a single Selection Screen value (no Selection View) and a Variant, SE93 sees the variant with no problems. So I'm wondering if maybe it has something to do with the fact that I'm using a Selection View. Unfortunately, I'm so new to ABAP, I'm completely stuck on how to proceed.

Any suggestions? Thank you so much!

1 ACCEPTED SOLUTION

former_member210148
Participant
0 Kudos

Yes, I am doing that -- I am selecting the option "Program and selection screen (report transaction)"

. Is this what you mean? My question refers to the screen after this, where I start filling in the details for the transaction.

7 REPLIES 7

former_member181966
Active Contributor
0 Kudos

When you go to SE93 , Give the transaction "Ztest" and hit create it`ask several option . In one of the option is create transaction with variant...

Hope this`ll help you

Thanks

former_member210148
Participant
0 Kudos

Yes, I am doing that -- I am selecting the option "Program and selection screen (report transaction)"

. Is this what you mean? My question refers to the screen after this, where I start filling in the details for the transaction.

0 Kudos

You are doing right, just write down the name of the variant , it will work , if you try to do F4 its doesn’t show you any values , but if you give your variant name and save it . It’ll work.

0 Kudos

Saquib, thank you SO much! You're right -- that worked.

As a relative newbie to SAP R/3 and ABAP, I'm new to little quirks like this. In other examples, the list (F4) does show the variants. For some reason, this one didn't. I entered it anyway, saved, and ran the transaction, and it popped up with the fields populated from the variant.

Again, kudos and thank you so much. Points duly awarded.

0 Kudos

No problem , this is the best place for ABAPERS.. Plz close the post ...

Thanks

0 Kudos

Saquib, I clicked "Solved problem" next to your post. Did this effectively close the post? I've looked around for such an option but haven't seen it. Sorry for the dumb question -- just need to get up to speed with how the forum operates as well, and I don't want to mistakenly assume I did the right thing if there's more I need to do.

0 Kudos

You`re done ( I clicked "Solved problem" next ) .

Thanks