Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

check variant programatically

0 Likes
551

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

1 ACCEPTED SOLUTION
Read only

suresh_datti
Active Contributor
0 Likes
474

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

2 REPLIES 2
Read only

suresh_datti
Active Contributor
0 Likes
475

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

Read only

0 Likes
474

Thanks,

was helpful but did not solve the problem cause i want to check the variant BEFORE saving.

Steffen