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: 

Regarding search help(F4 help)

Former Member
0 Kudos

i want search help(f4) for following fields for my selection screen,

BNKA-BANKA

LFA1-NAME1

Ex:

PARAMETERS: BANKNAME LIKE BNKA-BANKA,

                          BENIFNAM LIKE LFA1-NAME1.

Hints:  BANKA, NAME1      fields are not a primary key.

Pls help me

Thanks and Regards,

Sumesh

4 REPLIES 4

raymond_giuseppi
Active Contributor
0 Kudos

All you need is a search help with those parameters defined as exported parameter.

Process  :

perform a where-used on BNKA looking for search-help.

Look at the search help, you should notice that LCM_BNKA has BANKA as an export parameter.

So use it in a call to function module F4IF_FIELD_VALUE_REQUEST. Notice that this is also an import parameter, so we will try to pass  its current value (e.g. search string) to search-help.

The code could be

PARAMETERS: bankname LIKE bnka-banka.

DATA: return_tab TYPE TABLE OF ddshretval,

      return_val TYPE ddshretval,

      value TYPE help_info-fldvalue.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR bankname.

  value = bankname.

  CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'

    EXPORTING

      tabname     = 'BNKA' " identify field attributes

      fieldname   = 'BANKA'

      searchhelp  = 'LCM_BNKA' " search help

      shlpparam   = 'BANKA' " parameter name

      dynpprog    = sy-repid " information to update dynpro

      dynpnr      = sy-dynnr

      dynprofield = 'BANKNAME'

      value       = value " initial value for search-help

    EXCEPTIONS

      OTHERS      = 1.

Now do the same for LFA1-NAME1.

Regards,

Raymond

0 Kudos

HI Thanks a lot for your help. But i dont know about " where used"  If possible can you please tell me how to do step by step.

Really thanks a lot for your kind help.

Thanks and Regards,

Sumesh

0 Kudos

Please do some own research and do not use the discussions as replacement for 101 training courses.

Locked.

Thomas

Former Member
0 Kudos

hi,

please try the following code:

   PARAMETERS:     p_vkorg  TYPE vkorg .

I could get the F4 help for the p_vkorg parameter.

There is also a function module:

   CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
    EXPORTING
      retfield        = 'P_VARINT'
      value_org       = 'S'
    TABLES
      value_tab       = it_varid
      return_tab      = it_return1.

it_varid stores the values you want in F4 help. this table has to be filled by you.

see the help of this fun module for details.

I think you have another thread with the same request.

Please close any one of these two.

hope this helps.