‎2021 Jun 21 8:45 PM
Hello,
I have this program which takes in a program name and a variant and then outputs the variant values into the job log using a function module. Right now when the data prints to the job log it prints the variable name and I was hoping to print the Text Symbols I designated for it in the program. Is there another parameter I can pass in the function to achieve this? or is there a system command I have not seen?
‎2021 Jun 22 8:14 AM
Hi Owen,
I have a program which gets the variant content via this function module:
CALL FUNCTION 'RS_VARIANT_CONTENTS'
EXPORTING
report = t_varid-report
variant = t_varid-variant
TABLES
l_params = t_params
l_params_nonv = t_params_nonv
l_selop = t_selop
l_selop_nonv = t_selop_nonv
valutab = t_valutab
OBJECTS = t_objects
EXCEPTIONS
variant_non_existent = 01
variant_obsolete = 02.
Table OBJECTS contains the field TEXT which might have the content you are looking for:

Example output:

Hope this helps!
Cheers
Bärbel
‎2021 Jun 22 1:30 AM
Hi Owen,
Can you try using the function module: RS_COVERPAGE_SELECTIONS, than the one you could be using right now. This function module should be able to bring up the explicit selection texts for the parameters and select-options as opposed to the variable names.
Kind Regards,
Nikhil
‎2021 Jun 22 8:14 AM
Hi Owen,
I have a program which gets the variant content via this function module:
CALL FUNCTION 'RS_VARIANT_CONTENTS'
EXPORTING
report = t_varid-report
variant = t_varid-variant
TABLES
l_params = t_params
l_params_nonv = t_params_nonv
l_selop = t_selop
l_selop_nonv = t_selop_nonv
valutab = t_valutab
OBJECTS = t_objects
EXCEPTIONS
variant_non_existent = 01
variant_obsolete = 02.
Table OBJECTS contains the field TEXT which might have the content you are looking for:

Example output:

Hope this helps!
Cheers
Bärbel
‎2021 Jun 22 2:27 PM
This helped a lot, the only follow up I have is this does not grab my text symbols. and that was what I was hoping to grab the most.
‎2021 Jun 22 4:24 PM
ganzatron
Hi Owen,
you might need to combine the output from the function module with READ TEXTPOOL for the program as Sandra indicated in her comment above.
Cheers
Bärbel
‎2021 Jun 22 3:36 PM
These 2 questions were asked a lot in the forum. Search "RS_VARIANT_CONTENTS" (values of a program variant) and "READ TEXTPOOL" (text symbols and more).