Steps to create screen variant
1, transaction code SHD0 (its zero at last ok)
2. select screen variant tab
Enter the user defined screen variant name eg ‘zjsc’
Program and screen number.
3. click on create push button on the top.
Which looks like white sheet.
4. the transaction codes screen appears and enter all the values
Press ‘ENTER’ . the screen with the fields of trhe screen appears.
5. select what and all you want and the give save.
6. now in PBO . declare a variable which is like ‘SHDSVCI-SCVARIANT ‘
example : “ SCVARIANT LIKE SHDSVCI-SCVARIANT”, and refer the screen variants name to it eg ‘zjsc’ to the variable.
7. the have a call function.
CALL FUNCTION 'RS_HDSYS_SET_SC_VARIANT'
EXPORTING
PROGNAME = SY-REPID
DYNPRO = '9001' “ this is the screen name
SCVARIANT = SCVARIANT “ this the variable being refered
OVERWRITE_SCVARIANT = 'X'.