cancel
Showing results for 
Search instead for 
Did you mean: 

regd. FM : RS_VARIANT_VALUES_TECH_DATA

Former Member
0 Kudos

I have a small query regarding the FM : RS_VARIANT_VALUES_TECH_DATA is used To get the values of a variant u2026u2026.

First i want to know the exact variable in the return table VARIANT_VALUES to set the printer out put device as LOCL

I am unable to get the variables.....

Here my complete problem : i have a Z report that will update the variants to a standard report...i will set the printer now LOCL in the Standard report and save the report and then try to excute the Zreport to chage the date....after that in standard report i try to open the print tab it is going to short dump.......

I need to set the printer parameter as LOCL

I got a parameter as PAR_PRIE ...and also PAR_PRi1 ???

but I need to set as Internal = X

If any body know that parameter please let me know?

please respond to me ........

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

thanks. issue resolved.

Former Member
0 Kudos

Try the below code.

CALL FUNCTION 'RS_VARIANT_VALUES_TECH_DATA'

EXPORTING

report = gc_report

variant = PI_VARIANT

SEL_TEXT = 'X'

MOVE_OR_WRITE = 'M'

SORTED = 'X'

IMPORTING

techn_data = ls_varid

TABLES

variant_values = lt_rsparams

  • VARIANT_TEXT =

EXCEPTIONS

variant_non_existent = 1

variant_obsolete = 2

OTHERS = 3

read table lt_rsparams with key selname = 'PAR_PRIE '.

if sy-subrc eq 0.

LT_rsparams-low = 'X'.

modify LT_rsparams index sy-tabix.

endif.

CALL FUNCTION 'RS_CHANGE_CREATED_VARIANT'

EXPORTING

curr_report = gc_report

curr_variant = PI_VARIANT

vari_desc = ls_varid

TABLES

vari_contents = lt_rsparams

  • VARI_TEXT =

  • VARI_SEL_DESC =

EXCEPTIONS

illegal_report_or_variant = 1

illegal_variantname = 2

not_authorized = 3

not_executed = 4

report_not_existent = 5

report_not_supplied = 6

variant_doesnt_exist = 7

variant_locked = 8

selections_no_match = 9

OTHERS = 10

.

IF sy-subrc <> 0.

MESSAGE E000 WITH text-002 PI_VARIANT text-004.

ENDIF.

Edited by: subas Bose on Mar 24, 2010 11:12 PM

Edited by: subas Bose on Mar 24, 2010 11:13 PM

Former Member
0 Kudos

hey man

thanks for quick response

it is not working by setting PAR_PRIE|P = X

here i can see indebug mode if (manually set the printer as LOCL in the variant )

as LOCL001SPG84 Error log

SPG84 is my id and ERROR LOG is the tab to set the printer for error jobs

thanks