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

Function Module to Make Help on Your Field

Former Member
0 Likes
497

Hi,

Is there any FM to Make Help on Field?

Thanks

3 REPLIES 3
Read only

Former Member
0 Likes
466

hi Neelam,

Use FM 'F4IF_INT_TABLE_VALUE_REQUEST' to get help for the field.

Reward points if useful

Chandra

Read only

Former Member
0 Likes
466

Hi use the function module as like follows.

call function 'F4IF_INT_TABLE_VALUE_REQUEST'

exporting

  • DDIC_STRUCTURE = ' '

retfield = 'MATNR'

  • PVALKEY = ' '

dynpprog = sy-repid

dynpnr = sy-dynnr

dynprofield = 'MATNR'

  • STEPL = 0

window_title = 'List of Part.Nos'

  • VALUE = ' '

value_org = 'S'

  • MULTIPLE_CHOICE = ' '

  • DISPLAY = ' '

  • CALLBACK_PROGRAM = ' '

  • CALLBACK_FORM = ' '

  • MARK_TAB =

  • IMPORTING

  • USER_RESET =

tables

value_tab = val

  • FIELD_TAB =

  • RETURN_TAB =

  • DYNPFLD_MAPPING =

exceptions

parameter_error = 1

no_values_found = 2

others = 3.

Regards,

Sanki.

Read only

Former Member
0 Likes
466

Hi,

You can do this by two way:

1. Make a help by using SE11 & attach it to your field like this 'parameters abc like zstudent-name matchcode object id = search help name'

&

2. Use Function module to make help on your field by using this coding.

********************************************************************************

DATA: lc_vbeln LIKE vbrk-vbeln,

ltab_fields LIKE help_value OCCURS 0 WITH HEADER LINE,

BEGIN OF ltab_values OCCURS 0,

feld(40) TYPE c,

END OF ltab_values.

*&----


**& Form HELP_CHECK

*&----


    • text

*----


FORM help_check.

*-- Set up fields to retrieve data

ltab_fields-tabname = 'VBRK'.

ltab_fields-fieldname = 'VBELN'.

ltab_fields-selectflag = 'X'.

APPEND ltab_fields.

ltab_fields-tabname = 'VBRK'.

ltab_fields-fieldname = 'FKDAT'.

ltab_fields-selectflag = space.

APPEND ltab_fields.

*-- Fill values

SELECT * FROM vbrk WHERE kunag = 'RICO0US'.

ltab_values-feld = vbrk-vbeln.

APPEND ltab_values.

ltab_values-feld = vbrk-fkdat.

APPEND ltab_values.

ENDSELECT.

CALL FUNCTION 'HELP_VALUES_GET_WITH_TABLE'

EXPORTING

fieldname = 'VBELN'

tabname = 'VBRK'

title_in_values_list = 'Select a value'

IMPORTING

select_value = pr_vbeln

TABLES

fields = ltab_fields

valuetab = ltab_values

EXCEPTIONS

field_not_in_ddic = 01

more_then_one_selectfield = 02

no_selectfield = 03.

ENDFORM. "fiscal_year

************************************************************************

End of Coding

************************************************************************

Make this coding according to your program.

Reward if helpful..

Varishtah.