Application Development and Automation 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: 
Read only

slection-screen

Former Member
0 Likes
654

Hi guru,

what is the use of 'AT SELECTIONSCREEN ON VALUE REQUEST'

THANKS IN ADVANCE

6 REPLIES 6
Read only

Former Member
0 Likes
623

Its The event that gets triggered when we press F4 on that field.

Read only

Former Member
0 Likes
623

Hi,

... ON VALUE-REQUEST FOR psel_low_high

Effect

In this addition, the field psel_low_high is either the name of a report parameter or of the form sel-LOW or sel-HIGH, where sel is the name of a selection criterion. The effect of this is twofold:

The possible entries pushbutton for F4 appears beside the appropriate field.

When the user activates this pushbutton or presses F4 for the field, the event is executed. You can thus implement a self-programmed possible entries routine for the input/output fields of the selection screen. If the program contains such an event and the user presses F4, the system processes this rather than displaying the check table or the fixed values of the Dictionary field - even if the report parameter or the selection option with LIKE or FOR points to a Dictionary field. You can, for example, use the CALL SCREEN statement to display a selection list of possible values. The contents of the field psel_low_high at the end of this processing block are copied to the appropriate input/output field.

This addition is only allowed with report-specific parameters (PARAMETERS) or selection options (SELECT-OPTIONS). For database-specific parameters or selection options, you can achieve the same effect by using the addition VALUE-REQUEST FOR ... with the key word PARAMETERS or SELECT-OPTIONS in the include DBxyzSEL (where xyz = name of logical database). In this case, you must program the possible entries in the database program SAPDBxyz

http://www.sapdevelopment.co.uk/file/file_fmfile.htm

Regards,

Santosh

Read only

Former Member
0 Likes
623

If You want to f4(value request) a selection-screen field then you can use..

'AT SELECTIONSCREEN ON VALUE REQUEST'

example :

AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.

refresh t_tab.

wa_tab-name = 'Application'.

append wa_tab to t_tab.

clear wa_tab.

wa_tab-name = 'Presentation'.

append wa_tab to t_tab.

clear wa_tab.

Regards,

Srini

Read only

LucianoBentiveg
Active Contributor
0 Likes
623

Is an event. If user give F4 in that field, that event is executed.

Regrads.

Read only

Former Member
0 Likes
623

Hi,

this is used to get the F4 help for a particular field on selection screen

this function module is ued

F4IF_INT_TABLE_VALUE_REQUEST

Read only

Former Member
0 Likes
623

Hi,

it helps when the selection field has a F4-button and you want to display possible values:

... ON VALUE-REQUEST FOR psel_low_high

Effect

In this addition, the field psel_low_high is either the name of a report parameter or of the form sel-LOW or sel-HIGH, where sel is the name of a selection criterion. The effect of this is twofold:

The possible entries pushbutton for F4 appears beside the appropriate field.

When the user activates this pushbutton or presses F4 for the field, the event is executed. You can thus implement a self-programmed possible entries routine for the input/output fields of the selection screen. If the program contains such an event and the user presses F4, the system processes this rather than displaying the check table or the fixed values of the Dictionary field - even if the report parameter or the selection option with LIKE or FOR points to a Dictionary field. You can, for example, use the CALL SCREEN statement to display a selection list of possible values. The contents of the field psel_low_high at the end of this processing block are copied to the appropriate input/output field.

This addition is only allowed with report-specific parameters ( PARAMETERS ) or selection options (SELECT-OPTIONS). For database-specific parameters or selection options, you can achieve the same effect by using the addition VALUE-REQUEST FOR ... with the key word PARAMETERS or SELECT-OPTIONS in the include DBxyzSEL (where xyz = name of logical database). In this case, you must program the possible entries in the database program SAPDBxyz.