03-02-2012 12:21 PM
HI All,
I want to set variant only for employee id select option in report RHINTE00 using RS_CREATE_VARIANT. Since there is no direct access to Select Option so how can i achieve it.
Thanks,
Shailesh S. Malkar.
03-02-2012 12:33 PM
Hi,
Please reffer below code for implemeting 'RS_CREATE_VARIANT'
*----- varid
move sy-mandt to i_varid-mandt.
move 'RPCTXFU0' to i_varid-report.
move var_name1 to i_varid-variant.
move sy-uname to i_varid-ename.
move sy-datum to i_varid-edat .
move sy-uzeit to i_varid-etime.
move 'A' to i_varid-environmnt.
*----- varit
move sy-mandt to i_varit-mandt.
move sy-langu to i_varit-langu.
move 'RPCTXFU0' to i_varit-report .
move var_name1 to i_varit-variant.
concatenate 'Customer Variant'(o01) var_name1 into i_varit-vtext.
append i_varit.
call function 'RS_CREATE_VARIANT'
exporting
curr_report = 'RPCTXFU0'
curr_variant = var_name1
vari_desc = i_varid
tables
vari_contents = rsparams_tab
vari_text = i_varit
exceptions
illegal_report_or_variant = 01
illegal_variantname = 02
not_authorized = 03
not_executed = 04
report_not_existent = 05
report_not_supplied = 06
variant_exists = 07
variant_locked = 08
others = 99.
Regards,
Arun
03-05-2012 4:41 AM
HI,
I appreciate your help. But i need to set variant for PERNR in RHINTE00 which is select option out there, and doesn't have direct access. So anyone who has done it with RHINTE00 please tell it to me.
Thanks,
Shailesh S. Malkar.
03-05-2012 6:14 AM
Hi,
I did not check this
May be you can try creating an implicit enhancement inside routine "initialize".