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: 

Problem with Search Help

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi,

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

Thanks

Former Member
0 Kudos

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.

Former Member
0 Kudos

Hi,

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

Or any plzzz be elaborate.

Thanks.

Former Member
0 Kudos

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.

Former Member
0 Kudos

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