SAP Function RS_SELSCREEN_EXISTS - ABAP: Function module returns whether report has a selection screen

Parameter Reference Type Length Default Optional Text
ACCEPT_NON_REPORT 0 X Programs other than type 1 are also accepted
REPORT RALDB-REPORT C 40 Program Name

Parameter Reference Type Length Text
ANSWER 0 YES or NO

Exception Text
NO_REPORT Program type not equal to "1"
PROGRAM_INCORRECT Unable to generate program
PROGRAM_NOT_FOUND Program not in TRDIR


INCLUDE 'DOCU_HAS_TO_BE_ELABORATED' OBJECT DOKU ID TX

Functionality
This function module determines whether a report has a selection screenor not. The parameter 'ANSWER' has the value yes if the program has atleast one parameter or aselect-option that does not include theaddition "NO-DISPLAY".
This can be true even if the report does not have a standard selectionscreen (number 1000). The table parameter SELSCREENS returns the listof selection screens for the program, and also tells you which of themhave at least one parameter orselect-option.
The parameter ACCEPT_NON_REPORT determines whether the exceptionNO_REPORT should be triggered if the program specified in REPORT has atype not equal to 1.

Description
YES: The program has a selection screen
NO: The program does not have any selection screens

Description
X: Exception NO_REPORT is not triggered if the program type is not '1'.

Description
Name of the ABAP program for which you want to find out whetherselection screens exist.