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: 

On value request?

Former Member
0 Kudos

Hi,

what is the use of "At selection screen on value request p_carrid". Plz explain me with the help of examples.

Thanks a lot.

7 REPLIES 7

Former Member
0 Kudos

the code that u wrote in that will be triggered when u go for F4 on that parameter p_carrid

go to this program for better understanding

<u>demo_selection_screen_events</u>

Hope this will solve ur problem..

<b><u>Dont forget to reward all the useful replies</u></b>

Sudheer

Former Member
0 Kudos

At selection-screen on value request for p_carrid is used to get the F4 help for that field on selection screen

chk the demo program

DEMO_SELECTION_SCREEN_F4

Former Member
0 Kudos

This event is fired when the user hits F4 on the field. This is used to provide F4 Help for the field. Here is a sample program.

report zrich_0001 .

tables: t001.

data: begin of it001 occurs 0,

bukrs type t001-bukrs,

butxt type t001-butxt,

ort01 type t001-ort01,

land1 type t001-land1,

end of it001.

select-options s_bukrs for t001-bukrs.

initialization.

select bukrs butxt ort01 land1 into table it001 from t001.

at selection-screen on value-request for s_bukrs-low.

call function 'F4IF_INT_TABLE_VALUE_REQUEST'

exporting

retfield = 'BUKRS'

dynprofield = 'S_BUKRS'

dynpprog = sy-cprog

dynpnr = sy-dynnr

value_org = 'S'

tables

value_tab = it001.

start-of-selection.

0 Kudos

This was helpful. Thanks!

Edited by: Janice Bautista on May 15, 2008 9:43 AM

Former Member
0 Kudos

Hi,

This is an event trigerred when the user presses F4 button on the selection-screen.

At selection screen on value request for p_carrid will be trigerred when the f4 button is pressed on this parameter. if a search help is attached to the particular field (in se11) then in f4 data comes automatically.. if there is no search help exist we can create our own.. or we can use the fn module 'F4IF_INT_TABLE_VALUE_REQUEST' and populate the f4 data to be displayed.

Regards,

Vidya.

sreeramkumar_madisetty
Active Contributor
0 Kudos

Hi

To display help on a particular field, you can use either of following functions in Module defined as normal PAI module:

HELP_OBJECT_SHOW_FOR_FIELD

Displays the data element documentation for components of any structure or DB table from dictionary.

Takes input as Field and Table

HELP_OBJECT_SHOW

display any SAP script document

Takes input as document class (for example, TX for general texts, DE for data element documentation) and the name of the document .

Should also provide Empty internal table as tables parameter.

PROCESS ON VALUE-REQUEST.

FIELD field name MODULE module name.

For Possible values, within module defined above, you should use the general function module HELP_VALUES_GET_WITH_TABLE to get possible values from ABAP Dictionary.

Some other functions can be used for F4 Help:

F4IF_FIELD_VALUE_REQUEST

Calls the input help of the ABAP Dictionary dynamically

Takes input as component names of a structure or database table of the ABAP Dictionary

F4IF_INT_TABLE_VALUE_REQUEST

Displays a value list that you created in an ABAP program

Takes input as value list is passed to the function module as the table parameter VALUE_TAB

Regards,

Sree

former_member404244
Active Contributor
0 Kudos

Hi,

"At selection-screen on value request for p_carrid" is used to get the F4 help for the field p_carrid.

Regards,

Nagaraj