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

Problem with Search Help

Former Member
0 Likes
579

Hi All,

Could you please let me know how we can add fields as check boxes to the search help.

Thanx in Advance.

Suresh

6 REPLIES 6
Read only

Former Member
0 Likes
563

Suresh,

Search helps are meant to select a single value, by adding a check are you trying to give option to the user to select multiple line items.

Not clear why are you doing the same. If that is the case, Iam not sure if Search helps should be the solution.

Regards,

Ravi

Read only

Former Member
0 Likes
563

Hi,

Could you be clear..............

Thanks

Read only

Former Member
0 Likes
563

Are you trying to give option to user for multiple choices???

Go to SE37 and find function module starting with F4IF*. Probably these FM's be of some help to you.

Regards,

Deva.

Read only

Former Member
0 Likes
563

Hi,

You want to give the Search help for a field to get Multiple select options???????

Or any plzzz be elaborate.

Thanks.

Read only

Former Member
0 Likes
563

Hi Suresh Babu

Here i am pasting the code for attaching search help to a field.

If this is your requiremnt,Just try this code.

-


parameters p_matnr type matnr.

data: begin of itab_matnr occurs 0,

matnr type matnr,

end of itab_matnr.

DATA: ITAB_SELECTED_MATNR TYPE DDSHRETVAL OCCURS 0 WITH HEADER LINE.

initialization.

do 20 times.

move sy-index to itab_matnr.

append itab_matnr.

enddo.

at selection-screen on value-request for p_matnr.

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

EXPORTING

RETFIELD = 'P_MATNR'

VALUE_ORG = 'S'

TABLES

VALUE_TAB = itab_matnr

return_tab = ITAB_SELECTED_MATNR

EXCEPTIONS

PARAMETER_ERROR = 1

NO_VALUES_FOUND = 2

OTHERS = 3

.

IF SY-SUBRC eq 0.

READ TABLE ITAB_SELECTED_MATNR INDEX 1.

MOVE ITAB_SELECTED_MATNR-FIELDVAL TO P_MATNR.

ELSE.

  • MESSAGE ....

ENDIF.

start-of-selection.

write p_matnr.

-


Cheers,

Vijay Raheja.

Read only

Former Member
0 Likes
563

hi Suresh,

Search helps are meant to fill up single values in the field where you press F4.

Could you please let us know the scenario where in you want multiple values to be returned from the search help.

...and if u somehow are able to do it....where are you going to store these values....in a table control / internal table???

can your problem be solved if you use select-options with multiple values????

rgds,

PJ

Message was edited by: Priyank Jain