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: 

REG : Value Request

Former Member
0 Kudos

Hi Experts ,

Plz Give me an example how 2 use AT SELECTION-SCREEN ON VALUE REQUEST.for Select-options Field...

Regs ,

Narayana Murthy

6 REPLIES 6

Former Member
0 Kudos

hi,

select-options:s_ebeln for ekko-ebeln.

At selection-screen on value-request for s_ebeln.

Former Member
0 Kudos

Hi,

Try this,

SELECT-OPTIONS : MATNR FOR MARA.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR MATNR.

.....

.....

.....

REGARDS

PADMAM.

Former Member
0 Kudos

hi...

AT SELECTION-SCREEN on psel.

Effect

This event is assigned to the selection screen fields corresponding to the report parameter or selection criterion psel.

If the report starts an error dialog at this point, precisely these fields become ready for input.

AT SELECTION-SCREEN 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:

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

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

Reward points if useful

Regards

Ashu

0 Kudos

Hi,

Try this.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR selcrit-low.

*Put your code here to show the F4 help with the help of the Function module F4IF_INT_TABLE_VALUE_REQUEST'

AT SELECTION-SCREEN ON VALUE-REQUEST FOR selcrit-high.

*Put your code here to show the F4 help with the help of the Function module F4IF_INT_TABLE_VALUE_REQUEST'

Regards,

Sesh

Former Member
0 Kudos

select-options:s_carrid for spfli-carrid.

At selection-screen on value-request for s_carrid.

Effect

ON VALUE-REQUEST is triggered at the screen events POH and POV of a selection screen if - for the input field of a parameter para or one of the input fields of a selection criterion selcrit - the input help F4 was called.

Regards,

Pavan.

Former Member
0 Kudos

Hi,

I've included a piece of code which might give you an insight into your problem.

PARAMETERS : p_file LIKE rlgrap-filename OBLIGATORY DEFAULT

'C:\' .

AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.

PERFORM find_file_path USING p_file.

FORM find_file_path USING l_file LIKE p_file.

  • F4 help to get the file

CALL FUNCTION 'WS_FILENAME_GET'

EXPORTING

mask = ',.TXT,.txt.'

mode = 'O'

title = ' '

IMPORTING

filename = l_file

EXCEPTIONS

inv_winsys = 1

no_batch = 2

selection_cancel = 3

selection_error = 4

OTHERS = 5.

ENDFORM.

<b>Reward points if this helps.</b>

Kiran