2007 May 30 6:00 AM
Hello gurus,
In which scenario we sholud use no-display in select-options?
2007 May 30 6:08 AM
The LOW and HIGH fields of a selection option are displayed in a length up to 18 bytes long (scrollable up to 45 bytes). If you define a length longer than 45, fields are truncated on the selection screen after the 45th character. This affects the first line of the SELECT-OPTIONS table. You can, however, pass longer selection options to a report if they are specified with the addition NO-DISPLAY and thus do not appear on the selection screen. Without NO-DISPLAY , the fields are then truncated whenever the selection screen is processed in the background (SUBMIT without VIA SELECTION-SCREEN ).
<b>
... NO-DISPLAY</b>
Effect
Does not display the selection on the selection screen. Creates the internal table sel as with 'normal' selection options and you can then transfer the selection option with SUBMIT .
These selection options represent a part of the interface which the user does not see on the selection screen. You can set the values either internally (through the routine INIT in SAPDBldb or INITIALIZATION in the report) or with SUBMIT . These selection options are also stored for variants.
Sometimes, (e.g. when the user has entered particular values for other selection options or parameters ), you may want to display these undisplayed selection options on the screen so that the user can enter values. You can do this in the routine PAI of the database program SAPDBldb (for database-specific selection options) or under AT SELECTION SCREEN (for report-specific selection options) by calling a function module (see CALL FUNCTION ) or your own screen (CALL SCREEN .
Message was edited by:
Chandrasekhar Jagarlamudi
Hello gurus,
In which scenario we sholud use no-display in select-options?
2007 May 30 6:03 AM
Hi,
NO-DISPLAY is generally used if you are using SUBMIT rreport and pass the parameter with some value ...So that the program can behave accordingly using the parameter value in it..
Thanks,
Naren
2007 May 30 6:05 AM
Hi,
In the selection-screen ,you want to declare some fields and dont want to show the field in the selection-screen while running the report ,then we can use no-display.,
reward points if it is helpful.
Regards,
Sangeetha.a
2007 May 30 6:07 AM
Hi
If you want to pass some values into program and also if you dont want to see this specific select-option in your Selection-Screen then you will use No-Display.
Reward All Helpfull Answers......
2007 May 30 6:08 AM
The LOW and HIGH fields of a selection option are displayed in a length up to 18 bytes long (scrollable up to 45 bytes). If you define a length longer than 45, fields are truncated on the selection screen after the 45th character. This affects the first line of the SELECT-OPTIONS table. You can, however, pass longer selection options to a report if they are specified with the addition NO-DISPLAY and thus do not appear on the selection screen. Without NO-DISPLAY , the fields are then truncated whenever the selection screen is processed in the background (SUBMIT without VIA SELECTION-SCREEN ).
<b>
... NO-DISPLAY</b>
Effect
Does not display the selection on the selection screen. Creates the internal table sel as with 'normal' selection options and you can then transfer the selection option with SUBMIT .
These selection options represent a part of the interface which the user does not see on the selection screen. You can set the values either internally (through the routine INIT in SAPDBldb or INITIALIZATION in the report) or with SUBMIT . These selection options are also stored for variants.
Sometimes, (e.g. when the user has entered particular values for other selection options or parameters ), you may want to display these undisplayed selection options on the screen so that the user can enter values. You can do this in the routine PAI of the database program SAPDBldb (for database-specific selection options) or under AT SELECTION SCREEN (for report-specific selection options) by calling a function module (see CALL FUNCTION ) or your own screen (CALL SCREEN .
Message was edited by:
Chandrasekhar Jagarlamudi
2007 May 30 6:10 AM
Hi,
Some times, the user user need not pass the value to the selection screen elements. The selection-screen element is kept in no-display mode and a default value is passed to this elements. This is mostly the case when the report is not executed directly. It is used in some other program via SUBMIT report. Here the programmer can pass either the default value or the value of his own depending on the requirement.
If a variable is used in place of selection-screen element with no display, then the programmer cannot change the value if the need arises.
Hope this helps.
Regards,
Richa
2007 May 30 6:12 AM
hi saravanan,
in select statement we need where condition at the same time we dont want selction-screen for the report at these situation we can use no-display.
here we can define the default values to the select-options then this select-option we can use in select statement where condition to show the output for particular input.
ex:
select-options: s_kunnr for kna1-kunnr no-display.
initialization:
s_kunnr-low = 1000.
s_kunnr-high = 2000.
s_kunnr-sign = 'I'.
s_kunnr-option = 'BT'.
append s_kunnr.
start-of-selction.
select * from kna1 into table itab where kunnr in s_kunnr.
now it selects the customer no's which are between 1000 and 2000 without selection-scree.
regards,
seshu.
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |