Application Development and Automation 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: 
Read only

Customized Search Help

Former Member
0 Likes
693

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

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.

5 REPLIES 5
Read only

Former Member
0 Likes
657

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.

Read only

0 Likes
657

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.

Read only

0 Likes
657

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

Read only

Former Member
0 Likes
657

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

Read only

Former Member
0 Likes
657

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>