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

Search help

Former Member
0 Likes
1,253

Hi fnds,

How to create elimentary search help for Select-Options on VBAK-SUBMI.

Could u plz tell step by step. in my prog.

Select-options: SO_coll like VBAK-SUBMI.

Here when i press f4, the ava. recods shud appear.

Thanks in advance.

regards. Vishnu.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
707

HI,

go to se11

give your search help name.. F5

click the elementary radio button..

select the table(VBAK) from which you want the values in SELECTION METHOD..

give the field name(your field ) in the Search help parameter..

save and activte it..

Now in your program

select-options: s_ot type vabk-xxx matchcode object <search help name>..

you will get f4 help now..

reward if useful

regards,

nazeer

null

Message was edited by:

nazeer shaik

nazeer shaik

4 REPLIES 4
Read only

Former Member
0 Likes
708

HI,

go to se11

give your search help name.. F5

click the elementary radio button..

select the table(VBAK) from which you want the values in SELECTION METHOD..

give the field name(your field ) in the Search help parameter..

save and activte it..

Now in your program

select-options: s_ot type vabk-xxx matchcode object <search help name>..

you will get f4 help now..

reward if useful

regards,

nazeer

null

Message was edited by:

nazeer shaik

nazeer shaik

Read only

Former Member
0 Likes
707

Hi,

In the initial screen of the ABAP Dictionary, select object class Search help, enter the name of the search help and choose Create.

A dialog box appears in which you must select the type of search help.

Select Elementary search help and choose .

The maintenance screen for elementary search helps appears.

Enter an explanatory text in the field Short text.

You can for example find the search help at a later time using this short text.

In the Definition tab page enter the selection method of the search help.

You can enter the name of a table or a view (database view, projection view or help view) here. If you enter a table that has a text table, the name of the text table is automatically entered in the corresponding field.

Using the input help (F4 help), select fields of the selection method as parameter in the Search help parameter area. Select the fields that should be used in the dialog box for value selection or in the hit list.

If the selection method is a table that has a text table, both the fields of the table and the fields of the text table are offered in the input help.

The data element of the parameter is automatically copied from the selection method. The data element defines the output attributes and the F1 help of the parameter in the hit list and in the dialog box for value selection.

You can assign the parameter another data element. To do so, select the Mod flag. The Data element field is now ready for input. Then select a data element with the input help (F4 help). Only data elements whose data type, length and number of decimal places is the same as those of the previous data element can be assigned.

This removes the link between the data element of the search help parameter and the data element of the selection method field having the same name. If you cancel the Mod flag, the data element of the assigned table field is used again.

Define the attributes of the search help parameters.

Select the IMP flag if it is an import parameter. Select the EXP flag if it is an export parameter.

You can define the dialog for the input help with the fields LPos, SPos and SDis. Enter the parameter position in the hit list in LPos. If you enter nothing or the value 0 here, the parameter is not displayed in the hit list.

Enter the parameter position in the dialog box for value selection in SPos. If you enter nothing or the value 0 here, the parameter is not displayed in the dialog box for value selection.

Set the SDis flag if the parameter should be a pure display field in the dialog box for value selection. The user is thus informed that the contents of the parameter restrict the value, but he cannot change this restriction. This makes sense for example when the parameter is an import parameter or if it has a default value.

You can assign the parameter a default value in the Default value field.

Select the dialog type of the search help.

The dialog type defines how the hit list is displayed in the input help.

Save your entries.

A dialog box appears in which you have to assign the search help a development class.

Choose .

Do not forget to link the search help to a screen field. The search help attachment is not part of the search help definition; it is part of the object definition to which the search help is attached.

Result

The search help is activated. You can find information about the activation flow in the activation log, which you can display with Utilities ® Activation log. If errors occurred during activation, the activation log is automatically displayed.

Read only

Former Member
0 Likes
707

HI Vishnu,

u can provide search help programatically,

look at this..

TABLES: vbak.

DATA sub LIKE vbak-submi.

DATA: BEGIN OF itab OCCURS 0,

submi LIKE vbak-submi,

END OF itab.

DATA : return LIKE ddshretval OCCURS 0 WITH HEADER LINE.

Select-options: SO_coll for VBAK-SUBMI.

INITIALIZATION.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR so_coll-low.

REFRESH itab.

SELECT submi FROM vbak INTO TABLE itab.

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

EXPORTING

retfield = 'SUBMI'

dynprofield = 'SO_COLL'

dynpprog = sy-repid

dynpnr = sy-dynnr

value_org = 'S'

TABLES

value_tab = itab

return_tab = return.

sub = return-fieldval.

so_coll-low = return-fieldval.

REFRESH return.

CLEAR return.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR so_coll-high.

REFRESH itab.

SELECT submi FROM vbak INTO TABLE itab.

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

EXPORTING

retfield = 'SUBMI'

dynprofield = 'SO_COLL'

dynpprog = sy-repid

dynpnr = sy-dynnr

value_org = 'S'

TABLES

value_tab = itab

return_tab = return.

sub = return-fieldval.

so_coll-high = return-fieldval.

REFRESH return.

CLEAR return.

Regards

SAB

Read only

Former Member
0 Likes
707

Search help are two types :

1 Elementary Search help

2.Collective search help.

Elementary serach help is single table f4 value ..

Goto SE11 and select radio button search help and use name start with Z* or Y* and click on create button ..

you will get pop up window and select elementary search help and hit enter..

Now use Your table and Table parameters properly..

Reward Points if it is useful

thanks

seshu