1

I am creating a SAP Program in which there's more that 200 parameters

PARAMETERS: P_DATE type D default Sy-DATUM.
PARAMETERS: P_DATE2 type D default Sy-DATUM
.
.
.
PARAMETERS: P_DATE2 type D default Sy-DATUM

When I compile it, I got the following errormessage:

CALL SCREEN(not modal) in modal dialog box not allowed

It works if I have only about 190 parameters. It could be just some limits. Any ideas? Thank you in

Sandra Rossi
  • 11,934
  • 5
  • 22
  • 48
Joie Tamayo
  • 501
  • 3
  • 8
  • 21
  • 1
    It seems some parameter causes this error, not the limitation on number of parameters. Try to sequentially add each of these 10 parameters and see which one throws it. – Suncatcher Jun 14 '17 at 07:00
  • Thank you for your reply! It still failed when it reaches 200 parameters. Do you know if there's a limit somewhere ? – Joie Tamayo Jun 14 '17 at 13:23
  • 1
    No, there is no known limit in documentation. Either one of your parameters is corrupted or invalid, either you are revealed new bug in SAP:) – Suncatcher Jun 14 '17 at 15:08
  • 1
    Give us full code of your selection screen. – Suncatcher Jun 14 '17 at 15:09

2 Answers2

3

Screens (dynpros) can only have 200 lines (as mentioned in the screen painter documentation). Without further positioning instructions, each PARAMETERS declaration creates a new line on the selection screen.

(Other than that, requiring 200 parameters strongly suggests a design flaw somewhere in your application. I doubt that any user will be able to make sense of the selection screen.)

vwegert
  • 18,371
  • 3
  • 37
  • 55
0

Using the positioning features of the selection screen you can place more than one parameter in one line. Check the command SELECTION-SCREEN BEGIN OF LINE and SELECTION-SCREEN POSITION, more about these here.

szako
  • 1,271
  • 1
  • 9
  • 12