‎2012 Apr 20 10:48 AM
I am trying to link the selection variable SO_PERNR in TVARVC table to one of my report program's variant. But in my report's variant, it does not display SO_PERNR while pressing F4. Due to that I am not able to link the selection variable with my variant. COuld any one tell me the reason why this variable is not being listed?. Also please let me know how to link it to my variant.
Thanks,
Selva.
‎2012 Apr 20 11:18 AM
You can select the SO_PERNR from TVARVC table in your initialization Event and assign those to your selection screen field
‎2012 Apr 20 11:43 AM
Hi,
You need to maintain the relevant values in tvarvc table as variables and call them into a internal table in INITIALIZATION event. Then ON VALUE REQUEST, you need to read this table and assign it as an search help for that custom selection variable SO_PERNR. This can be done with function module 'F4IF_INT_TABLE_VALUE_REQUEST'.
Regards,
Sanjeev
‎2012 Apr 20 1:00 PM
Guys,
I am talking about the selection screen variable value linkage in the variant screen of the concerned report.
‎2012 Apr 20 1:21 PM
Selva,
Can you elaborate more? If the code for the search help is in place, it should work on the selection screen on value request even after you create the variants.
Thanks,
Sanjeev
‎2012 Apr 20 1:58 PM
Dear Sanjeeva Reddy,
If while you do F4 help in the variant dynamic property, it will list out only those variables which are present in table TVARVC, so make sure that you have made an entry in that table by using the transaction STVARV.
Thanks and regards,
kartik
‎2012 Apr 20 1:44 PM
‎2012 Apr 20 6:18 PM
HI
Variant looks for entries from client 000 since that is a client independent change(ABAP) this needs to be done via STVARVC. That is because of entries are not in client 000.
Thanks
Chandra
‎2012 Apr 21 1:15 PM
All,
I have not created the selection variable in STVARV. I am using the existing selection variable for my variant. The entry is available in TVARVC. I dont know why it is not being listed while pressing F4 in the Selection variable column availale in the variant screen.
Thanks,
Selva.
‎2012 Apr 21 1:18 PM
Hi
pls check entry exist or not in client 000. If is not you need to create in 000.
Thanks,
Chandra
‎2012 Apr 21 1:26 PM
‎2012 Apr 21 1:30 PM
Variant looks for entries from client 000 since that is a client independent change(ABAP) this needs to be done via STVARVC. That is because of entries are not in client 000.
‎2012 Apr 21 1:46 PM
Curretly I dont have an access to create the entry through STVARVC. Let me try it once I get the access. Thanks for everyone's help on this.