2006 Dec 23 6:28 AM
Dear Firends,
In dialog program I want to create Search Help as per our needs , what is the best way to create Customized Search Help .
Deepak
Dear Firends,
In dialog program I want to create Search Help as per our needs , what is the best way to create Customized Search Help .
Deepak
2006 Dec 23 7:42 AM
goto se11 & create a search help wherein u can specify the fields and also write ur code for selection...U can use these search helps...
According to ur requirement either u can use elementary or collective search heps.
2006 Dec 23 10:29 AM
Thanx Ramesh, My problem is diffrent. Let me explain with one example
ZPOS is table , In this table there are three fields
1. Po_num
2. Po_date
3. Po_Ststus ( O = Open & C = Close )
Now when I press F4 (search Help) it should only display Open PO's
not Close PO's.
Deepak.
2007 Jan 07 11:31 PM
Hello Deepak
In this case it is very easy to create the required search help:
(1) Go to transaction <b>SE11</b> and create a search help (e.g. ZPOS_SH) using your table <b>ZPOS</b> as <b>selection method</b>.
(2) Define all fields as search help parameter.
(3) For parameter PO_STATUS set the <b>Default_Value = 'O'</b> (only open POs) and <b>mark the flag in column SDis</b> (parameter is read-only in the search help selection).
That's all. Finally you have to link this search help to the dynpro field in your program.
Regards
Uwe
2006 Dec 23 11:11 AM
Use fm F4IF_INT_TABLE_VALUE_REQUEST for your requirement.
check this code.
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.
based on one field input ur search help will be created
2006 Dec 27 5:33 AM
Hi Deepak,
U can go for search help exit which will display only the entries u need.
<a href="http://help.sap.com/saphelp_erp2005/helpdata/en/cf/21ee52446011d189700000e8322d00/content.htm">http://help.sap.com/saphelp_erp2005/helpdata/en/cf/21ee52446011d189700000e8322d00/content.htm</a>
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |