Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

selection-screen

Former Member
0 Kudos

hi to all experts,

select-options:svtweg for vbrk-vtweg obligatory no-extension

no intervals memory id vtw,

parameter : w_charx no-display.

1) what is the use of memory id and for what purpose it is used.

2) in parameter write the no-display, ie. that this check box never

populated at selection screen. means it never used in code

than for what purpose we write in code.and what is the advantage.

thanks in advance and reward also.

regard : deep.

4 REPLIES 4

Former Member
0 Kudos

In your example.... svtweg is associated with the sap memory id vtw. so the value it will set and get from the last value in memory id .

When you are running a report after report display if you come back, the select-option will be blank

but if you are using memory id for the select option and running the report and come back it will contain the data that you have entered last in that select option.

the data is comming from the memory id.

(In short, it contains the last value entered by the user, when the report is run the next time)

Hope u got it.

Regards,

Anjali

Former Member
0 Kudos

Regarding Parameter- no-display:

... 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 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.

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.

Former Member
0 Kudos

Hi deep

1)On a selection screen, you link fields to parameters using the MEMORY ID addition in the PARAMETERS or SELECT-OPTIONS statement. If you specify an SPA/GPA parameter ID when you declare a parameter or selection option, the corresponding input field is linked to that input field.

2) 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.

Rgds

Raghav T

Former Member
0 Kudos

Hi

<b>MEMORY ID</b>

On a selection screen, you link fields to parameters using the MEMORY ID addition in the PARAMETERS or SELECT-OPTIONS statement.

<b>NO-DISPLAY</b>

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.

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).

<b>Reward if usefull</b>