‎2007 Jul 03 10:32 AM
Hi,
i found some useful function modules in function group SVAR to read and save variants for reports.
The problem is that the modules for creation of variants do not check the input values for correct name and type.
I tried RS_CHANGE_CREATED_VARIANT and RS_CREATE_VARIANT, but if i give an incorrect input value for VARI_CONTENTS (type RSPARAMS) they just ignore it.
What would be the right way to check if the input value (which is CHAR45) fits into the type of the field on the selection screen?
I tried to dynamically define a field-symbol and then move or write the CHAR45-field into it. But the result was not what i expected.
Ideas are very welcome!!
Thanks in advance.
Steffen
‎2007 Jul 03 3:37 PM
Just in case you haven't already been there.. pl take a look at the followin routine
perform checkvari(rsdbspva) tables l_vari l_sscr
using l_rkey
changing l_subrc.
in the function module RS_VARIANT_INCONSISTENT_SLIN.
~Suresh
‎2007 Jul 03 3:37 PM
Just in case you haven't already been there.. pl take a look at the followin routine
perform checkvari(rsdbspva) tables l_vari l_sscr
using l_rkey
changing l_subrc.
in the function module RS_VARIANT_INCONSISTENT_SLIN.
~Suresh
‎2007 Jul 04 3:29 PM
Thanks,
was helpful but did not solve the problem cause i want to check the variant BEFORE saving.
Steffen