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: 

OR condition in Search help exit and dependent values in search help

Former Member
0 Kudos
132

Hi,

In my custom search help I have a  view with 2 tables inner join.

In that second table is text table(2nd table) which is maintained with Langauge EN and DE and also the date range.

In the 1st table,   I have date range ex: 01.01.2010 to 12.31.2010. (Start date and End date)

In the 2nd table,  I have date range ex: 01.01.2010 to 12.31.2012 (Start date and End date)  and

                         langauge  EN and DE.

                         This 2nd table contain records with English or German or Both.

    

Now, how should I write code in the EVENTS of search help for

    1) To check the records date range of 1st table is falling in 2nd table?

     2) First to Pick EN language for the records in 2nd table, if not then pick the records in DE language.    

Hoping for early reply...

Regards,

Prasad.

6 REPLIES 6

former_member209920
Active Participant
0 Kudos
85

Hi Shiva,

You have to write the logic for your requirement in search help exit and then change the RECORD_TAB accordingly.

You will get the desired results immediately.

Regards

Manu B

0 Kudos
85

Hi Manu,

In RECORD_TAB-string we have to go with offset.

In future, if structure of Record_TAB or fields of selection (Input parameter/Output parameters)  are changed again it's a error.

Is there any work around where we can have without Offset on Record_tab-String?

Thanks for your reply....

Regards,

Prasad

0 Kudos
85

Hi Prasad,

I am afraid there is not work around for it.

If input/output parameters will change in future, you have to adjust the FM accordingly.

Regards,

Manu B

former_member182546
Contributor
0 Kudos
85

Hi Shiva ,

    Check this link , will be useful for you.

http://wiki.sdn.sap.com/wiki/display/Snippets/Implementing+Search+Help+Exits

With Regards,

Sudhir S

0 Kudos
85

Hi,

Will this FM be helpful ?

F4UT_RESULTS_MAP

Regards,

Prasad

0 Kudos
85

Yes you can use..

Or you can also try

F4UT_PARAMETER_RESULTS_PUT