on 03-24-2010 10:06 PM
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 ........
thanks. issue resolved.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.