How can I display a selection screen based on a TCode?
SELECTION-SCREEN BEGIN OF BLOCK B2 WITH FRAME TITLE TEXT-020.
PARAMETERS PRM_BUKR LIKE T001-BUKRS MEMORY ID BUK OBLIGATORY.
PARAMETERS PRM_WRK LIKE T001W-WERKS MEMORY ID WRK OBLIGATORY.
SELECTION-SCREEN END OF BLOCK B2.
SELECTION-SCREEN SKIP 1.
selection-screen begin of block REBATE with frame title text-021.
PARAMETERS: Yes radiobutton group R1,
No radiobutton group R1.
selection-screen end of block REBATE.
I have used this Include program in two programs TCode ZTCODE1 and ZTCODE2 respectively. As per my requirement Block REBATE should be displayed only in TCode ZTCODE2.
Don't forget to MODIFY SCREEN in the LOOP, after you have changed the attributes.