Application Development and Automation 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: 
Read only

F4 Help

Former Member
0 Likes
1,164

Hi All

I am design one screen Fields

Bank Country and Bank Key

In above fields F4 values did come

how will solve this problem

Thanks and regards

Suresh

1 ACCEPTED SOLUTION
Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
1,066

Hello,

Please try this:


PARAMETERS:
  P_BANKS LIKE BNKA-BANKS, "Cntry Key
  P_BANKL LIKE BNKA-BANKL. "Bank Key

For P_BANKS F4 help will come automaticlly. For P_BANKL, select the data from BNKA populate the internal table. Now in the event AT SELECTION-SCREEN ON VALUE REQUEST, call the FM 'F4IF_INT_TABLE_VALUE_REQUEST' to show the F4 help.

BR,

Suhas

8 REPLIES 8
Read only

Former Member
0 Likes
1,066

Read only

Former Member
0 Likes
1,066

Hi,

if you are refering to a std field, and if it has F4 help, this will automatically give you F4 help..

otherwise you have to write the code for the F4 help in the Process on value request module...

Regards

Sk

Read only

Former Member
0 Likes
1,066
I am design one screen Fields 
Bank Country and Bank Key 
In above fields F4 values did come

I am not sure getting the F4 or not from your question.

For Bank Country refer the dictionary type T005-LAND1

and for Bank Key You have to use

POV . under that select the data from BNKA table and show that data as F4 help using the Function

F4IF_INT_TABLE_VALUE_REQUEST

Read only

Former Member
0 Likes
1,066

Hi,

Use this Function module

F4IF_INT_TABLE_VALUE_REQUEST

Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
1,067

Hello,

Please try this:


PARAMETERS:
  P_BANKS LIKE BNKA-BANKS, "Cntry Key
  P_BANKL LIKE BNKA-BANKL. "Bank Key

For P_BANKS F4 help will come automaticlly. For P_BANKL, select the data from BNKA populate the internal table. Now in the event AT SELECTION-SCREEN ON VALUE REQUEST, call the FM 'F4IF_INT_TABLE_VALUE_REQUEST' to show the F4 help.

BR,

Suhas

Read only

Former Member
0 Likes
1,066

hi.

In the following way i created f4 help for my field in selection screen. check out this and try to resolve your problem:

TYPES: BEGIN OF t_usr02,

bname TYPE usr02-bname, "User Name in User Master Record

END OF t_usr02.

SELECT-OPTIONS: s_ernam FOR ekpo-ernam NO INTERVALS.

INITIALIZATION.

TYPES: BEGIN OF lt_usr02,

bname TYPE xubname,

END OF lt_usr02.

DATA: lit_usr02 TYPE STANDARD TABLE OF lt_usr02.

DATA: lwa_usr02 TYPE lt_usr02.

SELECT bname

FROM usr02

INTO TABLE lit_usr02.

LOOP AT lit_usr02 INTO lwa_usr02 .

wa_usr02-bname = lwa_usr02-bname.

APPEND wa_usr02 TO it_usr02.

CLEAR : wa_usr02,

lwa_usr02.

ENDLOOP.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR s_ernam-low.

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

EXPORTING

retfield = 'BNAME'

dynpprog = sy-cprog

dynpnr = sy-dynnr

dynprofield = 'S_ERNAM'

value_org = 'S'

TABLES

value_tab = it_usr02

EXCEPTIONS

parameter_error = 1

no_values_found = 2

OTHERS = 3.

IF sy-subrc <> 0.

MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno

WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.

ENDIF.

hope it will provide u some F4 help.

by

Read only

Mohamed_Mukhtar
Active Contributor
0 Likes
1,066

hi,

If you are fetching screen-fields from dictionary , then you will get F4 help..

If you are creating your own screen fields , then you have to create F4 help...

With warm regards..

Always learner..

Read only

Former Member
0 Likes
1,066

Problem solved