05-28-2007 10:12 AM
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.
05-28-2007 10:15 AM
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
05-28-2007 10:15 AM
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
05-28-2007 10:17 AM
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.
05-15-2008 8:39 AM
This was helpful. Thanks!
Edited by: Janice Bautista on May 15, 2008 9:43 AM
05-28-2007 10:18 AM
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.
05-28-2007 10:21 AM
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
05-28-2007 10:21 AM
Hi,
"At selection-screen on value request for p_carrid" is used to get the F4 help for the field p_carrid.
Regards,
Nagaraj