10-08-2008 5:07 AM
Hi,
how to provide search help in pov in module pool.
can anyone provide with example please.
10-08-2008 5:11 AM
10-08-2008 5:11 AM
10-08-2008 5:25 AM
Hi,
(if it report)
at selection-screen on value-request for field.
or POV
if it a module pool.
and call the F4help using the FM F4IF_INT_TABLE_VALUE_REQUEST
and show the search help. here you need to pass the search help data by selecting the data from table , here you can delte the duplicates and show unique records.
Search helps can be created with help of SE11.
.
DATA: progname TYPE sy-repid,
dynnum TYPE sy-dynnr,
dynpro_values TYPE TABLE OF dynpread,
field_value LIKE LINE OF dynpro_values.
data: begin of t_t001l occurs 0,
werks type werks_d,
lgort type lgort_d,
end of t_t001l.
data: v_werks type werks_d,
V_lgort type lgort_d.
SELECTION-SCREEN BEGIN OF BLOCK B1.
PARAMETERS: P_PLANT LIKE MSEG-WERKS,
P_STOLOC LIKE MSEG-LGORT.
SELECTION-SCREEN END OF BLOCK B1.
INITIALIZATION.
PROGNAME = SY-REPID.
DYNNUM = SY-DYNNR.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_STOLOC.
CLEAR: field_value, dynpro_values. REFRESH dynpro_values.
field_value-fieldname = 'P_PLANT'.
APPEND field_value TO dynpro_values.
CALL FUNCTION 'DYNP_VALUES_READ'
EXPORTING
dyname = progname
dynumb = dynnum
translate_to_upper = 'X'
TABLES
dynpfields = dynpro_values.
READ TABLE dynpro_values INDEX 1 INTO field_value.
select werks lgort into TABLE t_T001L from T001L where werks = field_value-fieldvalue.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = 'P_STOLOC'
dynpprog = progname
dynpnr = dynnum
dynprofield = 'P_STOLOC'
value_org = 'S'
TABLES
value_tab = t_T001L.
START-OF-SELECTION.
WRITE:/ 'TEST F4 PROGRAM'.
END-OF-SELECTION.
thanx.
Edited by: Dhanashri Pawar on Oct 8, 2008 6:30 AM
10-08-2008 5:27 AM
hi,
you can use function module *F4IF_INT_TABLE_VALUE_REQUEST*
or
can follow these simple steps for search help:
go to se11==>
put some name after ticking search help radiobutton==>
create==>
then tick " elementery search help " and press enter ===>
then put description and table name in selection method ===>
then put the field on which u want search help
in search help parameter==>
tick IMP EXP ==>
write 1 in lpos and spos===>
save and activate===>
double click on table name ===>
select that field and press *search help tab* above===>
then copy
i hope it will help u a lot
Thanks and regards
Rahul
Edited by: RAHUL SHARMA on Oct 8, 2008 6:28 AM
10-08-2008 5:46 AM
3 ways
1) give your screen elemetn a refrence to domain or data element having a value range
2) make search help object and attach it to screen element by double clicking on it and and fill it in its properties
3) make use of POV
field <field_name> module f4_help.
and use FM F4IF_INT_TABLE_VALUE_REQUEST in your module