Application Development 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: 

Screen Prob

Former Member
0 Kudos

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.

10 REPLIES 10

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

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

Former Member
0 Kudos

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?

0 Kudos

I'm tried two different ways to removed, neither worked. I would suggest if you want that level of control, that you create a dynpro instead of trying to do this using a selection-screen definition.

Regards,

Rich Heilman

0 Kudos

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

0 Kudos

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?

Former Member
0 Kudos

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.

0 Kudos

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

Former Member
0 Kudos

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

0 Kudos

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

Former Member
0 Kudos

Hi,

If you set your own PF-STATUS, in at selection-screen output

then the F8 button wont be displayed.

Regards

Sandeep REddy