‎2007 May 04 7:32 AM
Hi all ,
parameters p type c no-display
for the above statement
plz explain me with the EXAMPLE
‎2007 May 04 7:34 AM
It creates a paramter p, of 1 character length , which is not displayed on screen.
It maybe used as an invisible flag.
‎2007 May 04 7:35 AM
‎2007 May 04 7:43 AM
Hi
NO - DISPLAY.
this statement is used not to dispaly the documents in this program.
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.
Rewards if helpfull
Regards,
Pavan
‎2007 May 04 7:34 AM
Hi,
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.
Note:
The length of a value transferred to a parameter for which there is no input field, is not subject to the 132 character restriction that applies for parameters with input fields.
In short it will not be visible in you selection screen and takes value thru interfaces that yoou may be using .. thru submit with addition 'WITH'.
Regards,
Jayant
Message was edited by:
JAYANT KUMAR
‎2007 May 04 7:34 AM
hi
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 displayed 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.
Since the parameter is not generated on the selection screen, you cannot use any formatting additions together with the NO-DISPLAY addition.
‎2007 May 04 7:35 AM
Hi
PARAMETERS: p_bjob TYPE c DEFAULT 'X' NO-DISPLAY.
IF p_bjob = 'X'.
CONCATENATE sy-cprog sy-datum sy-uzeit
INTO jobname SEPARATED BY '_'.
CALL FUNCTION 'JOB_OPEN'
EXPORTING
jobname = jobname
IMPORTING
jobcount = jobcount
EXCEPTIONS
cant_create_job = 1
invalid_job_data = 2
jobname_missing = 3
OTHERS = 4.
CALL FUNCTION 'GET_PRINT_PARAMETERS'
IMPORTING
out_archive_parameters = arc_params
out_parameters = print_params
valid = valid
EXCEPTIONS
archive_info_not_found = 1
invalid_print_params = 2
invalid_archive_params = 3
OTHERS = 4.
IF valid = chk.
SUBMIT YREP and REturn.
endif.
endif.
Reward points if useful
Regards
Anji
‎2007 May 04 7:40 AM
Hi,
Check this link,
you can find more examples.
<b>http://searchsap.techtarget.com/search/1,293876,sid21,00.html?query=parametersptypecno-display+&bucket=WEB</b>
Reward if it is useful.