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

Set Variant for RHINTE00 using RS_CREATE_VARIANT

Former Member
0 Likes
525

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.

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.

3 REPLIES 3
Read only

Former Member
0 Likes
485

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

Read only

0 Likes
485

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.

Read only

kesavadas_thekkillath
Active Contributor
0 Likes
485

Hi,

I did not check this

May be you can try creating an implicit enhancement inside routine "initialize".