Protect Selection/Parameters
An easy way of making a standard reports selection/parameters to be read-only/protected. (like an option NO-INPUT). You can add a "Module Protect Output." module with code
to the program, where it sets the screen-input = 0 as required, and add
the line "Module Protect Output." to the PBO, and it works fine,
until you re-generate the code and
If you tried using one of the PBO generated module names, it will says its does not exist, so if you generate it with the code, and run the program it will tell you "Module PBO_REPORT is already defined as a OUTPUT module". The purpose: To calculate and set up the parameters in INITIALIZATION. You want to show them to the user, and use them in SELECTs, use them as Headings, but you want to stop the user from changing some of them. The solution is as follows : AT SELECTION-SCREEN OUTPUT.
Get help for your ABAP problems
ABAP Books
More ABAP Tips
SAP Basis, ABAP Programming and Other IMG Stuff All the site contents are Copyright © www.erpgreat.com
and the content authors. All rights reserved.
|