Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Search Help parameters

Hello Experts!

I've created an elementary search help where some of my parameters is a set of dates.

I want the search help to read this parameters as a range. When the date fields are populated the search help shows immediately the "equal" sign.

Do you know if there is a way where I can set the ">="  and "<="  signs for the range without having to code them in an exit?

Thanks in advance!!

Frineé

Tags:
replied

Hello!

I found the solution

I had to implement a search help exit (I was trying to avoid)

DATA: ls_selopt LIKE LINE OF shlp-selopt

.

IF callcontrol-step = 'PRESEL'. "in this step is where you have to do the change!


     READ TABLE shlp-selopt INTO  ls_selopt WITH KEY shlpfield = 'BEGDA'.

     IF sy-subrc EQ 0.

       ls_selopt-option = 'GE'.

       MODIFY shlp-selopt FROM ls_selopt INDEX sy-tabix TRANSPORTING option.

     ENDIF.

     READ TABLE shlp-selopt INTO  ls_selopt WITH KEY shlpfield = 'ENDDA'.

     IF sy-subrc EQ 0.

       ls_selopt-option = 'LE'.

       MODIFY shlp-selopt FROM ls_selopt INDEX sy-tabix TRANSPORTING option.

     ENDIF.

     EXIT.


   ENDIF.

I could change the = sign of the selection for the <= and >= in the search help.

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question