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

Skip First Screen...

Former Member
0 Likes
2,512

hello abap gurus,

i have a report type program. i have a requirement to skip the first screen and jump to start-of-selection event for some condition. is there a way to skip selection screen?

thanks,

sid

7 REPLIES 7
Read only

Former Member
0 Likes
1,195

am not sure if this will work, but you can try it.

AT SELECTION-SCREEN BEFORE OUTPUT.

IF <user has auth>.

LOOP AT SCREEN.

SCREEN-ACTIVE = '0'.

MODIFY SCREEN.

ENDLOOP.

ENDIF.

Read only

Former Member
0 Likes
1,195

Hi Sid,

1) IN the initialization section submit the same report.

initialization.

submit sy-repid with <s_range1> in <s_range1>

<range2> in <range2>.

endif.

Regards,

Mukesh Kumar

Read only

Former Member
0 Likes
1,195

Hi Sid,

check the <b>F1</b> <i>CALL TRANSACTION</i> statement.

there you can mention <i>AND SKIP FIRST SCREEN</i>

I hope this helps.

Regards,

Kinshuk

Read only

hymavathi_oruganti
Active Contributor
0 Likes
1,195

give a number to the selection screen.

and use call selection-screen no, only when needed.

other wise dont call it at all. then u can directly go to start of selection.

Read only

Former Member
0 Likes
1,195

Hi Sid,

from some other program, if you call the report in question, use this statement,

Submit <REPORT_NAME> with selection-table TAB1.

where TAB1 is a table of structure RSPARAMS and all the selection condition you want to pass populate them in table TAB1.

Hope this solves your problem.

Rgds,

Deb.

Read only

Former Member
0 Likes
1,195

Hi,

First creatae a selection screen using the following way and in the INITIALIZATION event u can chekc ur condition. Based on your condition u display the selction csreen or skip the selection scree. This is the only way to resolve ur problem.

The sample code:

REPORT ZTEST_SELSCR .

TABLES SPFLI.

PARAMETERS: A AS CHECKBOX DEFAULT 'X'.

SELECTION-SCREEN BEGIN OF SCREEN 123 AS WINDOW TITLE TEXT-456.

SELECTION-SCREEN BEGIN OF BLOCK BL1 WITH FRAME TITLE TEXT-BL1

NO INTERVALS.

SELECT-OPTIONS S_CARRID FOR SPFLI-CARRID.

PARAMETERS PAR1 LIKE SPFLI-CARRID.

SELECTION-SCREEN COMMENT /10(20) TEXT-COM.

SELECTION-SCREEN END OF BLOCK BL1.

SELECTION-SCREEN END OF SCREEN 123.

AT SELECTION-SCREEN ON A.

IF A = 'X'.

CALL SELECTION-SCREEN 123 STARTING AT 20 5.

ENDIF.

IF SY-SUBRC = 0.

...

ELSE.

...

ENDIF.

- Selvapandian Arunachalam

Read only

venkat_o
Active Contributor
0 Likes
1,195

Hi Sid,

<b>1</b>.

If you dont want show SELECTION-SCREEN for the same report.Just dont create Selection-screen.Instead use Ranges statement instead of SELECT-OPTIONS.

<b>2</b>.

If u want call the report skipping SELECTION-SCREEN,

<b>SUBMIT ZABC_PROGRAM

WITH SELECTION-TABLE seltab .

</b><b>seltab</b> is an internal table with the structure RSPARAMS.

This variant allows you to set the names and contents of the parameters and selection options dynamically at runtime.

You can use the function module RS_REFRESH_FROM_SELECTOPTIONS to read the contents of the parameters and selection options of the current program into an internal table seltab with the structure RSPARAMS. By using SUBMIT ... WITH SELECTION-TABLE seltab, you can then pass these values on directly.

<b>3</b>.

If u had assigned T.code for ur program,Use call transaction statement.

CALL TRANSACTION 'ZABC'

AND SKIP FIRST SCREEN .

And u have to use SET/GET parameters to pass SELECTION-SCREEN VALUES.

I hope that it helps u.

<b>Thanks,

Venkat.O</b>