2007 Aug 09 8:46 AM
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
2007 Aug 09 9:13 AM
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
2007 Aug 09 8:49 AM
Hi,
Check into table VARI and VARID.
Reward points, if helpful,
Sandeep kaushik
2007 Aug 09 8:50 AM
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*************
2007 Aug 09 8:52 AM
2007 Aug 09 9:11 AM
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.
2022 Oct 24 2:14 PM
Where I could the correct values for report + variant?
I tryied a lot of trys but no one succeed
2007 Aug 09 9:13 AM
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
2015 Aug 26 2:27 PM
2015 Aug 27 3:45 AM
2007 Aug 09 9:52 AM
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
2007 Aug 09 10:45 PM
Sorry, I didn't understand that from the original question... there's a system variable called SY-SLSET that should give you this.
2007 Aug 10 7:40 AM
Maybe you are asking for SY-SLSET "Selection screens, name of variant"
<b>SY-SLSET</b>
Variant used to fill the selection screen.
Regards
2021 Jun 23 9:39 AM
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?
2024 May 22 8:23 PM
If you are doing a system refresh and want to capture / reimport variants into the refreshed system take a look at note 2751575 - How to transfer variants to another system. Program RSTRANSP