Application Development 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: 

I have created search help but

Former Member
0 Kudos

But it does not provide any data.The search help name is ZS_Carrid. How I can call the search help in the main program.

I have used as search help exit:F4IF_SHLP_EXIT_DUPLICATE_ELIM

And Lpos & Spos >> 1,1 respectively.

is it something wrong?

Note: I have created the search help via se11.

I did not call the search help in the main program but to test it I have clicked on F8 and it did not return any value.

Why?

Thanks for your answers.

Deniz.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi Deniz,

You have created Search Help in SE11. Now you want to utilize it in your program.

=> If the search help is not returning any value while testing in SE11 then verify that the table has values into it, whose fields you used in search help.

=> There are different ways of using the search help created by SE11 depending on the kind of application you are using.

1. For custom Data Elements -> Search help can be attached to a DATA ELEMENT under the tab FURTHER CHARACTERISTICS.

Now wherever this data element will be used, automatically the search help will be available on the output screen. e.g. in selection screen using parameters statement etc.

PARAMETERS: P_VAL1 TYPE Z_DATAELE.

2. For custom Database tables -> Search help can be also attached to database table fields directly in the tab Entry help/check. Now wherever this database table field is used e.g. in SELECT-OPTIONS statment, the search help will be automatically available on output selection screen.

SELECT-OPTIONS: P_VAL1 TYPE ZTABLE-FILD1.

3. Also, search helps can be directly used in the programs using function modules and event.

PROCESS ON VALUE-REQUEST.
...
FIELD <f> MODULE <mod>.

Here in the module, you can use following function module for fetching the search help on the screen.

F4IF_FIELD_VALUE_REQUEST

4. Using SAP standard Table fields or Data elements -> Search help can be direclty attached to the selection screen statements like SELECT-OPTIONS using MATCHCODE object extension

SELECT-OPTIONS: LP_STATS FOR TJ30-ESTAT MATCHCODE OBJECT ZS_Carrid NO-EXTENSION NO INTERVALS.

Hope this helps you.

PS If the answer solves your query, plz close the thread by rewarding each reply.

Regards

Message was edited by:

Sapna Modi

5 REPLIES 5

Former Member
0 Kudos

Hi Deniz,

Once the search help is created assign it to the data element using the Option

<b>MATCH CODE OBJECT</b>.

Eg:<b>s_vkgrp FOR vbak-vkgrp MATCHCODE OBJECT h_tvkgr</b>.

Reward points.

Former Member
0 Kudos

HAI,

IF UR PRG IS SCREEN PRG THEN USE F4IF_FIELD_VALUE_REQUEST.

GIVE POINTS IF USEFUL

REGARDS,

S.SENTHIL

Former Member
0 Kudos


 
Add to Table field Added via SE11: Place cursor on desired field within database and select menu path  Goto->Search help->for field
Effect: If field used to create screen field, search help will be called when user executes F4/drop down input help. All fields on screen will be populated if appropriate fields exist in search help and screen. 
 
Add to Table  Added via SE11: Place cursor on desired field within database and select menu path  Goto->Search help->for table 
Add to Data element Added via SE11: Select desired data element (double click), enter search help name and parameters in appropriate fields on screen. Will be applied to all fields associated with that data element 
Add to Screen field Added via screen painter: One of field attributes is search help. Will only populate the one screen field. 
Add to Sel. screen parameter (MATCHCODE) Added using 'matchcode' addition for parameters declaration: Search help name must be no more than 5 characters long. 

e.g. PARAMETER p_prog LIKE trdir-name MATCHCODE OBJECT zsh. 
    
 

girish

Former Member
0 Kudos

Hi Deniz,

You have created Search Help in SE11. Now you want to utilize it in your program.

=> If the search help is not returning any value while testing in SE11 then verify that the table has values into it, whose fields you used in search help.

=> There are different ways of using the search help created by SE11 depending on the kind of application you are using.

1. For custom Data Elements -> Search help can be attached to a DATA ELEMENT under the tab FURTHER CHARACTERISTICS.

Now wherever this data element will be used, automatically the search help will be available on the output screen. e.g. in selection screen using parameters statement etc.

PARAMETERS: P_VAL1 TYPE Z_DATAELE.

2. For custom Database tables -> Search help can be also attached to database table fields directly in the tab Entry help/check. Now wherever this database table field is used e.g. in SELECT-OPTIONS statment, the search help will be automatically available on output selection screen.

SELECT-OPTIONS: P_VAL1 TYPE ZTABLE-FILD1.

3. Also, search helps can be directly used in the programs using function modules and event.

PROCESS ON VALUE-REQUEST.
...
FIELD <f> MODULE <mod>.

Here in the module, you can use following function module for fetching the search help on the screen.

F4IF_FIELD_VALUE_REQUEST

4. Using SAP standard Table fields or Data elements -> Search help can be direclty attached to the selection screen statements like SELECT-OPTIONS using MATCHCODE object extension

SELECT-OPTIONS: LP_STATS FOR TJ30-ESTAT MATCHCODE OBJECT ZS_Carrid NO-EXTENSION NO INTERVALS.

Hope this helps you.

PS If the answer solves your query, plz close the thread by rewarding each reply.

Regards

Message was edited by:

Sapna Modi

former_member196299
Active Contributor
0 Kudos

hi Deniz ,

There are two ways you can use a search help , one during the declaration of your field and the other by directly assigning it to the screen field in its attributes ..

In your case , you have created the search help but you did not assign it to a field or use it in your program .

In Your program , in the parameter statement make use of addition MATCHCODE OBJECT < ZSEARCH HELP NAME >. and then check it .. and you use Search help for providing F4 help to your fields. so when you want to see the input options available in your program click on F4 function key ..

Regards,

Ranjita