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: 

Help me on Search Help :D

Former Member
0 Kudos

Hello Frnds,

I have two fields on screen. Fld1 and Fld2. Fld2 has a Search Help assigned to it.

Problem is...

I want search help to work only if Fld1 is blank, else only values associated to Fld1 shd show on F4 in Fld2.

For second option Iam using function module F4IF_INT_TABLE_VALUE_REQUEST

BUT how can I make it work for both conditions. Is there any function module where I can assign search help to field at run time.

Waiting for your replies.

Regards,

Arpit

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi Arpit,

I am assuming you have a database field defined for this field. I don't think you can switch between SEARCH HELP and your own search help using PROCESS ON VALUE-REQUEST. What you have to do is, have just the PROCESS ON VALUE REQUEST and have something like this in there.

IF fld1 is initial.

*-- use search help, for that, call

  • F4IF_FIELD_VALUE_REQUEST, giving table name and

  • fieldname and may be your search help name also.

ELSE.

*-- your current logic using

  • F4IF_INT_TABLE_VALUE_REQUEST

ENDIF.

6 REPLIES 6

Former Member
0 Kudos

Hi

you can make use of the search help exit. If it is possible to export the value of field 1 and import in the search help exit, the Function module can be handled depending upon the fld1 value.

former_member188685
Active Contributor
0 Kudos
CALL FUNCTION 'DYNP_GET_STEPL'
IMPORTING
POVSTEPL = L_xxx
EXCEPTIONS
STEPL_NOT_FOUND = 1
OTHERS = 2.

using the above fm you can get current line of the table control

CALL FUNCTION 'DYNP_VALUES_READ'
EXPORTING
dyname = dyname
dynumb = dynumb
TABLES
dynpfields = dynpfields.

to get the dynamic value from the screen

then use F4IF_FIELD_VALUE_REQUEST to popup the f4 help

try this

0 Kudos

Thanks Vijay, but I think u misunderstood the problem..there isnt any table control..and i can generate search help depending on the FLd1 value, but when Fld1 is blank, I want search help to be called.

Regards,

Arpit

0 Kudos

Ok,

Sorry Please Ignore my Answer.

Regards

vijay

Former Member
0 Kudos

Hi Arpit,

I am assuming you have a database field defined for this field. I don't think you can switch between SEARCH HELP and your own search help using PROCESS ON VALUE-REQUEST. What you have to do is, have just the PROCESS ON VALUE REQUEST and have something like this in there.

IF fld1 is initial.

*-- use search help, for that, call

  • F4IF_FIELD_VALUE_REQUEST, giving table name and

  • fieldname and may be your search help name also.

ELSE.

*-- your current logic using

  • F4IF_INT_TABLE_VALUE_REQUEST

ENDIF.

0 Kudos

thanks Srinivas,

it solved the prob/..i was searching for one such FM...thanks man

Thanks to others also for giving time to solve my problem

Regards,

Arpit