1

In selection-screen, I have one parameter called 'Author' I have called the report using 'Submit' from other report and passed the value to 'Author'. Now I need to make the 'Author' parameter as Read-only. How can I do that?

I used the following code,

 LOOP AT SCREEN.
   IF SCREEN-NAME = 'author'.
     SCREEN-INPUT = '0'.
     MODIFY SCREEN.
     EXIT.
   ENDIF.
 ENDLOOP.

But it is not working. Can any one help me in resolving this?

Sandra Rossi
  • 11,934
  • 5
  • 22
  • 48
Dhivya
  • 518
  • 2
  • 8
  • 17

2 Answers2

3

Put your code in the at selection-screen output-event.

Dirk Trilsbeek
  • 5,873
  • 2
  • 25
  • 23
  • Thanks GarlandGreene.. I also committed mistake in 'if'. After give 'AUTHOR' in uppercase inside conmdition it is working fine. – Dhivya Apr 20 '12 at 10:51
0

Disclaimer: This answer does not answer exactly your question, but perhaps it is an easier solution for your need.

If you need only a parameter for SUBMIT you may use

PARAMETERS AUTHOR NO-DISPLAY.

The parameter will not be visible on selection screen, but it can be used via SUBMIT.

This is not a 'read-only' it is a 'don't show' parameter.

knut
  • 27,320
  • 6
  • 84
  • 112
  • I need to **Show** the value on my screen. But it should not be editable. That is **Read-Only**. – Dhivya Apr 26 '12 at 06:12