10-24-2005 8:28 AM
Hi All,
Could you please let me know how we can add fields as check boxes to the search help.
Thanx in Advance.
Suresh
10-24-2005 8:59 AM
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
10-24-2005 9:24 AM
10-24-2005 9:37 AM
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.
10-24-2005 9:46 AM
Hi,
You want to give the Search help for a field to get Multiple select options???????
Or any plzzz be elaborate.
Thanks.
10-24-2005 10:01 AM
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.
10-24-2005 10:18 AM
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