This website is not affiliated with, sponsored by, or approved by SAP AG.

question on VARIANTS

Development (ABAP Development WorkBench, ABAP/4 programming)

Moderators: thx4allthefish, Snowy, Gothmog, YuriT

question on VARIANTS

Postby Jkeri » Mon Mar 26, 2012 1:14 pm

I created my report code and have been testign it without variants. I now want to add variants that the user will need. So far i managed to create the variants but cant figure out how to make the connection of the variant to the report. Where do i have to say 'for this report, use this variant'?

Jkeri
 
Posts: 59
Joined: Thu Jul 21, 2011 12:44 pm

Re: question on VARIANTS

Postby Sharpshooter » Mon Mar 26, 2012 4:05 pm

Not sure I understand your question. You can create a transaction in SE93 and assign a variant to your report for that transaction.
Good luck!
Sharpshooter
 
Posts: 934
Joined: Wed Mar 17, 2010 12:01 pm
Location: In the dark

Re: question on VARIANTS

Postby Jkeri » Mon Mar 26, 2012 5:25 pm

maybe i didnt explain it properly.

I have two screens and on each screen i have multiple parameter feilds that the user can enter values into. I want to create variants for each of those parents, which i di. I created a variant unit that had all the parameters defined in it along with the default values. I just do not know how to tell the code to accociate those variants with that report.
Jkeri
 
Posts: 59
Joined: Thu Jul 21, 2011 12:44 pm

Re: question on VARIANTS

Postby Gothmog » Tue Mar 27, 2012 3:18 am

A variant ALWAYS belongs to a report - have a look at table VARID. The association you're looking for is already done.
How did you create them? By clicking on the 'Save' icon when on the selection screen?
68 74 74 70 3a 2f 2f 74 69 6e 79 75 72 6c 2e 63 6f 6d 2f 62 64 6f 37 6d 77 67
Gothmog
 
Posts: 1457
Joined: Wed Sep 12, 2007 4:46 am
Location: Probably not home

Re: question on VARIANTS

Postby Rich » Tue Mar 27, 2012 7:28 am

Two Screens ? Is this a report or a dialog transaction?

Variants generally only apply to the Parameter screen of a report.
Regards

Rich

Image
Abap KC
SFMDR
Rich
 
Posts: 6919
Joined: Thu Oct 31, 2002 4:47 pm
Location: Geneva


Return to ABAP

Who is online

Users browsing this forum: No registered users and 27 guests




This website is not affiliated with, sponsored by, or approved by SAP AG.