we are trying to change a 7.0 query variant via an ABAP.
We have been unable to find a suitable function module or class, so we are now trying to directly change the variant in table RSRPARAMETRIZA (field "content", which seems to contain an XML string encoding of the variant's variable values).
So far we have encountered 2 problems with this approach:
1. Directly writing an XML string (build by our ABAP coding) makes the query dump upon execution.
We have compared our "custom build" string with the ones the BEx Analyzer is creating, and they seem to be identical regarding their structure. Nevertheless something is wrong with our string... 😔
2. Sometimes it seems the XML structure of the string is changing, depending on whether the variant is created in RSRT, BEx Broadcaster or BEx Analyzer...
Any hints / suggestions?
Anyone knowing a better way to programmatically change 7.0 query variants?
Thanks & best regards,