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: 

how to do with restriction of search help

Former Member
0 Kudos

my requirement is that F4 one field, you can get popup dialog and can input some value of field1 field2. i want to get data of condition is field1 OR field2, but the relationship is AND. how to do it?

1 ACCEPTED SOLUTION

former_member229729
Active Participant
0 Kudos

Hi,

This is possible by including EXIT for a SEARCH-HELP.

Please have a look into this link. This gives a very good details about how to create an EXIT for a Search help:

/people/vishal.sharma8/blog/2009/03/11/controllingmanipulating-data-of-search-help-using-search-help-exit

Rgds,

Ramani N

4 REPLIES 4

naveen_inuganti2
Active Contributor
0 Kudos

Hi,

Can you explain your requirement more clearly.

the relationship is AND--> What do u mean it.

Anyway you can write your condition in the Search Help Exit.

__Naveen Inuganti.

Former Member
0 Kudos

Hi ,

if my understanding is correct,

create a collective search and can use according to your req.

regards

gowri

Former Member
0 Kudos

hi,

You can implement self programmed value help using value request at selection screen.

Sample code for your reference

AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_WAERS.

CLEAR: DYFIELDS[], DYFIELDS.

*--- select currency

CALL FUNCTION 'HELP_VALUES_GET'

EXPORTING

fieldname = 'WAERS'

tabname = 'TCURT'

IMPORTING

SELECT_VALUE = P_WAERS.

*--- get long text for the selected currency

SELECT SINGLE LTEXT FROM TCURT

INTO DYFIELDS-FIELDVALUE

WHERE SPRAS = SY-LANGU

AND WAERS = P_WAERS.

IF SY-SUBRC <> 0.

CLEAR DYFIELDS-FIELDVALUE.

ENDIF.

*--- update another field

DYFIELDS-FIELDNAME = 'P_LTEXT'.

APPEND DYFIELDS.

CALL FUNCTION 'DYNP_VALUES_UPDATE'

EXPORTING

DYNAME = SY-CPROG

DYNUMB = SY-DYNNR

tables

dynpfields = DYFIELDS .

Hope this will solve your issue.

Thanks &Regards,

Kimaya

former_member229729
Active Participant
0 Kudos

Hi,

This is possible by including EXIT for a SEARCH-HELP.

Please have a look into this link. This gives a very good details about how to create an EXIT for a Search help:

/people/vishal.sharma8/blog/2009/03/11/controllingmanipulating-data-of-search-help-using-search-help-exit

Rgds,

Ramani N