06-06-2008 1:29 PM
Hi All,
I have written program which will display the Screen in the form of dialog.
When I execute this, I will get an error
"Error when generating the selection screen "0099" of report"
Please can any one tell me what is the problem? And y I am getting this error.
pls refer below program:
SELECTION-SCREEN BEGIN OF SCREEN 99.
PARAMETERS PAR2(40) TYPE c.
SELECTION-SCREEN PUSHBUTTON 15(25) PUBU
USER-COMMAND US01.
SELECTION-SCREEN END OF SCREEN 99.
start-of-selection.
call screen 99 starting at 20 10 ending at 80 20.
06-06-2008 1:44 PM
Try this.
SELECTION-SCREEN BEGIN OF SCREEN 99.
PARAMETERS par2(40) TYPE c.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN PUSHBUTTON 15(25) pubu USER-COMMAND us01.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN END OF SCREEN 99.
START-OF-SELECTION.
CALL SCREEN 99 STARTING AT 20 10 ENDING AT 80 20.
Regards,
Rich Heilman
06-06-2008 1:53 PM
Hi,
Thnks for the support.
But I have one more issue.
When we Call the screen it also displays F8 (Execute Button).
For me it should be disabled.
How can I achive this?
06-06-2008 2:03 PM
06-09-2008 7:32 AM
why do you want that requirement ?? it means that a user can fill in some data but are not allowed to run the report ??
or the other option is you have already filled in all the data necessary to run it ??
in that case you can also make a transaction variant with se93 which skips the selection screen.
kind regards
arthur de smidt
06-09-2008 11:46 AM
Praveen,
Why define the screen in this program if it is just a push button?
START-OF-SELECTION.
CALL SCREEN 99.
double click on the 99 and create your screen with a push button. Define your own PF Status thru the PBO routine
and handle the function code(s) in the PAI routine?
06-09-2008 8:49 AM
Hi,
As I require only a dialog box should appear in the screen without F8 (Execute Button).
How can I achive this?
Since I am using Selection-Screen for creating the Screen.
Is there any other way to avoid this.
06-09-2008 9:02 AM
perhaps use a function like popup for this, I use it to get a dialog for text.
it also works with selection lists depending the fieldnames entered.
you can give more than 1 field for the dialog.
lt_rejecttable-tabname = 'CATSDB'.
lt_rejecttable-fieldname = 'LTXA1'.
append lt_rejecttable.
CALL FUNCTION 'POPUP_GET_VALUES'
EXPORTING
* NO_VALUE_CHECK = ' '
popup_title = lf_title
* START_COLUMN = '5'
* START_ROW = '5'
* IMPORTING
* RETURNCODE =
tables
fields = lt_rejecttable
* EXCEPTIONS
* ERROR_IN_FIELDS = 1
* OTHERS = 2
.
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
read table lt_rejecttable with key fieldname = 'LTXA1'.
h_rejtxt = lt_rejecttable-value.
ENDIF.
kind regards
arthur
06-09-2008 10:48 AM
hi,
i did not what "lt_rejecttable" this internal table type is.
Is it one we have to create or can refer to any standard table?
Pls let me know.
what this internal table contains
06-09-2008 11:11 AM
you always create the variables with the type it has in the function.
so in this case it was sval. look in the function with se37 at the table section and you see of which type you have to declare you're variables.
and you can also test the function so you see how it works
fill in for tabname: aufk
and for fieldname : AUART
and give a title
DATA: lt_rejecttable TYPE STANDARD TABLE OF sval with header line,
Edited by: A. de Smidt on Jun 9, 2008 12:11 PM
06-09-2008 3:20 PM
Hi,
If you set your own PF-STATUS, in at selection-screen output
then the F8 button wont be displayed.
Regards
Sandeep REddy