‎2007 Jun 28 1:18 PM
what is the purpose of 'No display' option while declaring the parameters.
‎2007 Jun 28 1:27 PM
Use:
This option is used to pass the values from one program to another, through SUBMIT statement. The parameter is not displayed on the selection screen. The corresponding data object is created like a "normal" parameter.
let us consider, U develop a program 'Prg1', using parameters(P1) with no display option.
now, from the second Program 'Prg2', now u can pass the value for P1, from PRG2.
This is the only way to pass the variable.
For Screen Elements, U can pass values using 'SET PARAMETERS' statement.
I hope, this will help u a lot.
Reward me if u r saticefied.
‎2007 Jun 28 1:19 PM
hi,
it will hide the parameter while displaying.
regards,
Navneeth K.
‎2007 Jun 28 1:19 PM
Hello,
[code]... NO-DISPLAY
Effect
The parameter is not displayed on the selection screen. The corresponding data object is created like a "normal" parameter, and you can pass a value to it in the SUBMIT statement.
This type of parameter is part of the interface of the program, but it is not displaeyd to the user. You can either set values for these parameters internally (using the INIT routine in SAPDBldb or the INITIALIZATION event in the program), or pass them in the SUBMIT statement. These parameters are also stored in variants.
If you want the user to be able to fill out the parameter under certain conditions (for example, depending on the values in other parameters or select-options), you can do so in the PAI routine of the database program SAPDBldb (for database-specific parameters), or in the AT SELECTION-SCREEN event (for program-specific parameters) by calling a function module (CALL FUNCTION) or a separate screen (CALL SCREEN).
Note
Since the parameter is not generated on the selection screen, you cannot use any formatting additions together with the NO-DISPLAY addition.
/code]
Award all useful answer.
VAsanth
‎2007 Jun 28 1:20 PM
Hi
No display means
though you declare that parameter it won't appear in the selection screen.
Reward points for useful Answers
Regards
Anji
‎2007 Jun 28 1:23 PM
Hi,
Hiding Input Fields
To suppress the display of the input field on the selection screen, you use the following syntax:
PARAMETERS <p> ...... NO-DISPLAY ......
Although parameter <p> is declared, it is not displayed on the selection screen.
If the parameter belongs to the standard selection screen, you can assign a value to it either by
using the DEFAULT addition when you declare it, or during the INITIALIZATION
event. If you call the executable program using the SUBMIT statement, the calling program can
also pass the value.
When you use user-defined selection screens, you can assign a value to the parameter at any
time before calling the selection screen.
If you want to display a parameter only in certain cases, for example, depending on the values
entered by the user in other input fields of the selection screen, you cannot use the NO-DISPLAY
addition. If you use NO-DISPLAY, the parameter actually is an element of the interface for
program calls, but not an element of the selection screen. As a result, you cannot make it visible
using the MODIFY SCREEN statement.
To hide a parameter that is an element of the selection screen, you must declare it without the
NO-DISPLAY addition and suppress its display using the MODIFY SCREEN statement.
Regards,
Bhaskar
‎2007 Jun 28 1:27 PM
Use:
This option is used to pass the values from one program to another, through SUBMIT statement. The parameter is not displayed on the selection screen. The corresponding data object is created like a "normal" parameter.
let us consider, U develop a program 'Prg1', using parameters(P1) with no display option.
now, from the second Program 'Prg2', now u can pass the value for P1, from PRG2.
This is the only way to pass the variable.
For Screen Elements, U can pass values using 'SET PARAMETERS' statement.
I hope, this will help u a lot.
Reward me if u r saticefied.
‎2007 Jun 28 1:27 PM
hi Raj
While declaring parameters if you give as,no-display it means that it will b inactive in the output...it will b declared but invisible to the user until you make it active...
reward if useful RAJ....!!1
‎2007 Jun 28 1:51 PM
PARAMETERS - screen_options
Syntax
... { {[OBLIGATORY|NO-DISPLAY] [VISIBLE LENGTH vlen]}
| {AS CHECKBOX [USER-COMMAND fcode]}
| {RADIOBUTTON GROUP group [USER-COMMAND fcode]}
| {AS LISTBOX VISIBLE LENGTH vlen [USER-COMMAND fcode]
[OBLIGATORY]} }
[MODIF ID modid] ... .
Extras:
1. ... OBLIGATORY 2. ...<b> NO-DISPLAY</b>
3. ... VISIBLE LENGTH vlen
4. ... AS CHECKBOX [USER-COMMAND fcode]
5. ... RADIOBUTTON GROUP group [USER-COMMAND fcode]
6. ... AS LISTBOX VISIBLE LENGTH vlen [USER-COMMAND fcode]
7. ... MODIF ID modid
<b>Effect:</b>
This addition means that no screen elements are generated for the parameter on the selection screen. In an executable program, a parameter of this type is exclusively a part of the interface defined by the selection screen. It can be supplied with a value by the calling program when called with SUBMIT.
If the addition NO-DISPLAY is specified, a parameter can have any data types except for reference types. These parameters can only be populated using the WITH addition to the SUBMIT statement. In this case, in contrast to the general conversion rule for deep types, the same rules apply as when importing data from a data cluster.
reward points if it is usefull ....
Girish
‎2007 Jun 28 1:54 PM
hi,
No-Display is one of the many options that are provided for parameters which wont display the declared parameter on the output selection screen. even though u declared a parameter and initialized value in the report then also at output screen u cant get the parameter.
if helpful reward some points.
with regards,
Suresh.A