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: 

F4 help for input field

Former Member
0 Kudos

hi all

i am developing a z report.input field is customer name (ADRC-NAME1). SAP has not given F4 help on this field.

please tell mo how to give f4 Help for this field in report.

regard.

ulhas

9 REPLIES 9

Sandeep_Kumar
Advisor
Advisor
0 Kudos

Search with F4 help and you will find many threads for the same.

You can try using FM : F4IF_INT_TABLE_VALUE_REQUEST for cusstom F4

Edited by: Sandeep Kumar on Mar 10, 2009 11:28 AM

former_member242255
Active Contributor
0 Kudos

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

EXPORTING

  • DDIC_STRUCTURE = ' '

RETFIELD = WK_FIELD

  • PVALKEY = ' '

  • DYNPPROG = ' '

  • DYNPNR = ' '

  • DYNPROFIELD = ' '

  • STEPL = 0

WINDOW_TITLE = TEXT-999

  • VALUE = ' '

  • VALUE_ORG = 'C'

  • MULTIPLE_CHOICE = ' '

  • DISPLAY = ' '

  • CALLBACK_PROGRAM = ' '

  • CALLBACK_FORM = ' '

  • MARK_TAB =

  • IMPORTING

  • USER_RESET =

TABLES

VALUE_TAB = OT_VALUE

FIELD_TAB = OT_FIELD

RETURN_TAB = OT_RTN

  • DYNPFLD_MAPPING =

EXCEPTIONS

PARAMETER_ERROR = 1

NO_VALUES_FOUND = 2

OTHERS = 3.

IF SY-SUBRC <> 0.

MESSAGE S007(SH).

ENDIF.

Former Member
0 Kudos

Hi,

Use the Function Module F4IF_INT_TABLE_VALUE_REQUEST

Thank U,

Jay....

Former Member
0 Kudos

Hi,

You can try the following:

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

PERFORM get_F4_name.

FORM get_F4_name.

CONSTANTS: co_retfield TYPE dfies-fieldname VALUE 'NAME1',

co_s TYPE c VALUE 'S',

co_05(2) TYPE c VALUE '05'.

DATA: BEGIN OF tb_values OCCURS 0,

Name1 LIKE adrc-name1,

END OF tb_values.

SELECT name1 FROM adrc

INTO TABLE tb_values

WHERE name1 IN so_name1. u201C Any conditions

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

EXPORTING

retfield = co_retfield

dynpprog = sy-repid

dynpnr = sy-dynnr

dynprofield = u2018SO_NAME-LOWu2019

value_org = co_s

TABLES

value_tab = tb_values

EXCEPTIONS

parameter_error = 1

no_values_found = 2

OTHERS = 3.

IF sy-subrc <> 0.

ENDIF.

ENDFORM. " get_F4_name

Thanks

Former Member
0 Kudos

sample code is as below

T SELECTION-SCREEN ON VALUE-REQUEST FOR s_mcode-low . " Model service code low

SELECT mcodecs

FROM /dbm/v_model

INTO TABLE it_modgrp

WHERE mcodecs NE space.

v_name1 = 'MODGRP'.

call function 'F4IF_INT_TABLE_VALUE_REQUEST'

exporting

retfield = v_name1

dynpprog = v_prog

window_title = text-100

value_org = 'S'

tables

value_tab = it_modgrp

return_tab = it_ret

exceptions

parameter_error = 1

no_values_found = 2

others = 3.

IF sy-subrc EQ 0.

LOOP AT it_ret1 INTO wa_ret1.

s_mcode-low = wa_ret1-fieldval.

ENDLOOP.

ENDIF.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR s_mcode-high . " Model service code high

v_name1 = 'MODGRP'.

call function 'F4IF_INT_TABLE_VALUE_REQUEST'

exporting

retfield = v_name1

dynpprog = v_prog

window_title = text-100

value_org = 'S'

tables

value_tab = it_modgrp

return_tab = it_ret

exceptions

parameter_error = 1

no_values_found = 2

others = 3.

IF sy-subrc EQ 0.

LOOP AT it_ret1 INTO wa_ret1.

s_mcode-high = wa_ret1-fieldval.

ENDLOOP.

ENDIF.

0 Kudos

Thanks Sonia for help. Got F4 help.

Former Member
0 Kudos

Hi Ulas,

Check this link..it may be useful to u

https://forums.sdn.sap.com/click.jspa?searchID=23297597&messageID=7047106.

Or u can just search the forum for F4 help..there are many posts to help u out.

Regards,

Sravanthi Chilal.

rahul2000
Contributor
0 Kudos

hi..

do as below..

AT SELECTION-SCREEN ON VALUE-REQUEST FOR PR_VERSB.

CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'

EXPORTING

TABNAME = 'MDPB'

FIELDNAME = 'VERSB'

SEARCHHELP = 'H_T459V'

DYNPPROG = 'ZPP_SHORT'

DYNPNR = '1000'

DYNPROFIELD = 'PR_VERSB'

EXCEPTIONS

FIELD_NOT_FOUND = 1

NO_HELP_FOR_FIELD = 2

INCONSISTENT_HELP = 3

NO_VALUES_FOUND = 4

OTHERS = 5

.

IF SY-SUBRC <> 0.

  • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

  • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

Rahul

Former Member
0 Kudos

Hi,

use this FM

HELP_VALUES_GET_WITH_TABLE

Eg:

CALL FUNCTION 'HELP_VALUES_GET_WITH_TABLE'

EXPORTING

fieldname = 'name1'

tabname = 'ADRC'

title_in_values_list = 'Select a value'

IMPORTING

select_value =

TABLES

fields = ltab_fields

valuetab = ltab_values

EXCEPTIONS

field_not_in_ddic = 01

more_then_one_selectfield = 02

no_selectfield = 03.

Regards

Kiran