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: 

table that stores all variant data

Former Member

I have ascreen which has 4 fields as input parameters.After specifying values and save it as variant..it stores all this info in some tabel.I need tat table name which stores all these variant info i.e.

variant name and its associated fields with values

points will be awarded

1 ACCEPTED SOLUTION

raymond_giuseppi
Active Contributor

Three table exist

- VARID - header

- VARIT- texts

- VARI - data and attrinutes (INDX like file, via IMPORT/EXPORT FROM DATABASE)

To access VARI, use FM of group SVAR (exist, copy, add, maintain)

<b>RS_VARIANT_VALUES_TECH_DATA</b> will give you what you request in table VARIANT_VALUES.

Regards

12 REPLIES 12

former_member208856
Active Contributor
0 Kudos

Hi,

Check into table VARI and VARID.

Reward points, if helpful,

Sandeep kaushik

Former Member
0 Kudos

HI,

Variants are stored in table VARI and VARID.

You can use RS_ALL_VARIANTS_4_1_REPORT to get all the variants for a report program.

please check out the link below it will be helpful to you

you can also identify the variants by following this steps

1. Simple.

2. goto se38 initial screen.

3. type the program name

4. Choose RADIO BUTTON - VARIANTS

6. Choose change

7. a new screen will come

8. select the variant name

9. Choose DELETE button.

In the definition of a variant transaction code, a dialog transaction is linked with a transaction variant. When a variant transaction is accessed, the dialog transaction is called and executed with the transaction variant. In transaction variants, you can assign default values to the input fields on several Dynpro screens in a transaction, change the attributes of screen elements, and hide entire screens. Transaction variants are maintained in transaction SHD0.

Use Transaction Variants to make fields Mandatory, Hidden or Display. Also applicable to screens and tabstrips.

You can hide unwanted screens and fields in any of the standard SAP programs without changing any of the standard programs. Additional features such as making the variant as default on the standard SAP transaction code is only available as of 4.6x.

Transaction SHD0 - Create a variant for the required transaction by changing the layout through hiding fields and screens.

Transaction SE93 - Create a variant transaction (e.g. for VA02 = ZVA02).

Next allocate the transaction variant to this variant transaction.

In 4.6c, you can default your transaction variant as the standard variant. (SHD0 - Edit -> Activate/Deactivate as standard variant)

An example for using transaction variant (restricting the field displayfor CO11N - Goods movement) :-

If you want to restrict changes to the fields in Goods movement forone group of users.

1. Create a transaction variant for CO11N

2. Create a new transction code for the transaction variant and assign an authorization object to it

3. Divide the users into this two transaction code. Those who can change the field using CO11N. For those that have limited

field change, give them the authorizationfor ZCO11 (this is a new transaction code you have to create).

check out the following link it might help you

http://help.sap.com/saphelp_webas620/helpdata/en/c0/98038ce58611d194cc00a0c94260a5/content.htm

http://help.sap.com/saphelp_webas620/helpdata/en/c0/980389e58611d194cc00a0c94260a5/content.htm

************please reward points if the information is helpful to you*************

Former Member
0 Kudos

Check <b>VARI</b> table

Since VARI contains data store in "long raw" clusters, it is hard to access directly... try calling function module RS_VARIANT_CONTENTS for the report + variant and look at the results in the VALUTAB internal table that is returned... you can test it directly in SE37.

0 Kudos

Where I could the correct values for report + variant?

I tryied a lot of trys but no one succeed

raymond_giuseppi
Active Contributor

Three table exist

- VARID - header

- VARIT- texts

- VARI - data and attrinutes (INDX like file, via IMPORT/EXPORT FROM DATABASE)

To access VARI, use FM of group SVAR (exist, copy, add, maintain)

<b>RS_VARIANT_VALUES_TECH_DATA</b> will give you what you request in table VARIANT_VALUES.

Regards

0 Kudos

This message was moderated.

0 Kudos

This message was moderated.

Former Member
0 Kudos

Fine,but how do i find out as to which variant my prg is using when running..incase there are more then 1 variants created for the program...remember that i need to check it in runtime

0 Kudos

Sorry, I didn't understand that from the original question... there's a system variable called SY-SLSET that should give you this.

0 Kudos

Maybe you are asking for SY-SLSET "Selection screens, name of variant"

<b>SY-SLSET</b>

Variant used to fill the selection screen.

Regards

manu_allaert
Explorer
0 Kudos

I use SE16N quiet often
e.g. for table VBRK I have stored many selection variants.

These are not in VARI or VARID

In which table can I find these?