Skip to Content
0
Feb 24, 2006 at 06:34 AM

Skipping Selection Screen for a report program

757 Views

Hi guys,

I have a report program that works in 2 modes - Create and modify ( There is a toggle button in the ALV report). Its an editable ALV grid. There are 2 tcodes - zcreate and zmodify to access the same report in 2 above modes. For zmodify, i have a selection screen. How do i skip the selection screen for zcreate ?

Here is my report program

REPORT ZSWR_RCKDVOLS .

INCLUDE ZSWR_RCKDVOLS_TOP.

INCLUDE ZSWR_RCKDVOLS_CLDEF.

INCLUDE ZSWR_RCKDVOLS_CLIMP.

INCLUDE ZSWR_RCKDVOLS_SELSCR. " Selection Options are written in this.

INCLUDE ZSWR_RCKDVOLS_PBO.

INCLUDE ZSWR_RCKDVOLS_PAI.

INCLUDE ZSWR_RCKDVOLS_FORM.

*----


  • INITIALIZATION

*----


initialization.

perform layout_build.

*----


  • AT SELECTION-SCREEN

*----


at selection-screen on s_locid.

clear lv_plnt.

select single werk from oijrra

into lv_plnt

where locid in s_locid and rpart = gc_rpart.

perform memory_id_build.

*----


  • START-OF-SELECTION

*----


start-of-selection .

perform fieldcatalog.

perform fill_internal_table.

perform build_outtab.

END-OF-SELECTION.

CHECK: NOT gi_zswt_rckdvols[] IS INITIAL.

set SCREEN 100. "Main Screen

-


A sample code will be greatly helpful.

Thanks,

SHK