02-27-2006 11:28 AM
hi,
I have created a variant by name ZSDB, how can I make it run automatically with the program?
02-27-2006 11:31 AM
use this code in initialization.
INITIALIZATION.
DATA: v_repid LIKE rsvar-report,
v_variant LIKE rsvar-variant.
v_repid = sy-repid.
v_variant = sy-uname.
CALL FUNCTION 'RS_SUPPORT_SELECTIONS'
EXPORTING
report = v_repid
variant = v_variant
EXCEPTIONS
variant_not_existent = 01
variant_obsolete = 02.
IF sy-subrc NE 0.
CALL FUNCTION 'RS_SUPPORT_SELECTIONS'
EXPORTING
report = v_repid
variant = 'ZSDB'
EXCEPTIONS
variant_not_existent = 01
variant_obsolete = 02.
ENDIF.
thanks
02-27-2006 11:29 AM
If you have assigned transaction code in SE93,
You can use the option <b>START WITH VARIANT</b> with your variant name ZSDB specified there...
02-27-2006 11:31 AM
use this code in initialization.
INITIALIZATION.
DATA: v_repid LIKE rsvar-report,
v_variant LIKE rsvar-variant.
v_repid = sy-repid.
v_variant = sy-uname.
CALL FUNCTION 'RS_SUPPORT_SELECTIONS'
EXPORTING
report = v_repid
variant = v_variant
EXCEPTIONS
variant_not_existent = 01
variant_obsolete = 02.
IF sy-subrc NE 0.
CALL FUNCTION 'RS_SUPPORT_SELECTIONS'
EXPORTING
report = v_repid
variant = 'ZSDB'
EXCEPTIONS
variant_not_existent = 01
variant_obsolete = 02.
ENDIF.
thanks
02-27-2006 11:31 AM
goto se93, assign a TCODE for ur program and use the option Start with variant....
Regards,
Bikash
02-27-2006 11:32 AM
Goto SM36-->
Give jobname>click on Step>Give program name & variant name.
It will run automatically by taking the variant info.
02-27-2006 11:33 AM
Hi Sri,
Go to T.Code SE93->Enter your T.Code-> Change mode/Create->Description->Choose Prg->Choose option "Start with Variant"-> Save.
Hope it helps!!!!
Amit