Sorry, I will elaborate my query further.
I have defined a variant function in which I have maintained 2 characteristiics. One of them with 'input char' ('char1' in the below example) checkbox ticked. In that variant function, a function module is called and in the function module program, values of these chars are mapped.
e.g.. char2 is inferred from char1
char2 = A if char1 = X
char2 = B if char1 = Y (its not the exact abap syntax. just an example)
But I want to maintain a variant table to maintain these mappings and then read these mappings inside the function module program instead of writing the mappings directly in the program.
Please let me know if this is possible.
I understand that you want to call a variant table in a dependency (procedure, constraint...)
If you're asking for a valid syntax, you should call the table thus :
TABLE <table name>
(<characteristic of table> = <characteristic of class>,
<characteristic of table> = <characteristic of class>)
More information available at http://help.sap.com/saphelp_470/helpdata/en/92/58d455417011d189ec0000e81ddfac/frameset.htm
I hope this helps.