cancel
Showing results for 
Search instead for 
Did you mean: 

F4 Help should return normal format and not upper case

Former Member
0 Kudos

I have a requirement in my report to create an F4 Help functionality for a field. The problem is that this F4 help returns field in all CAPs ( Upper Case ) , while i need for the F4 Help to return the value as it is

ex: if user selects market = Australia , then the field should be populated with "Australia" and not "AUSTRALIA".

Currently I am using F4IF_INT_TABLE_VALUE_REQUEST

Please help.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member

Hi All,

I managed to solve the problem with a little

direction

The issue here was that since I had specified the DYNPROFIELD as S_MARKT ( this is the select-option which would hold the market names ) , I did not bother to specify the tables parameter "RETURN_TAB".

If you try to execute the FM by commenting the parameter "RETURN_TAB", the FM returns uppercase values.

But if you use "RETURN_TAB" it returns the value as it is. Funny

thanks all.

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi urmila,

1. The problem is when declaring the

parameter field.

2. we should declare it with LOWER CASE extension.

3. to get a taste of it, just copy paste in new program.

4.

REPORT abc.

DATA: t_return LIKE ddshretval OCCURS 0 WITH HEADER LINE.

DATA: BEGIN OF t_names OCCURS 0,

name LIKE usr01-bname, END

OF t_names.

<b>PARAMETERS : a LIKE usr01-bname lower case.</b>

AT SELECTION-SCREEN ON VALUE-REQUEST FOR a.

PERFORM get_names.

&----


*& Form get_names

&----


  • text

----


FORM get_names .

t_names-name = 'Rodney Goh'.

APPEND t_names.

t_names-name = 'Malek'.

APPEND t_names.

t_names-name = 'Amran'.

APPEND t_names.

t_names-name = 'Ow CC'.

APPEND t_names.

t_names-name = 'Osman'.

APPEND t_names.

t_names-name = 'Soh EG'.

APPEND t_names.

t_names-name = 'Lee CK'.

APPEND t_names.

t_names-name = 'Loy TH'.

APPEND t_names.

CLEAR t_names.

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

EXPORTING

retfield = 'T_NAMES-NAME'

dynpprog = sy-cprog

dynpnr = sy-dynnr

dynprofield = 'A'

value_org = 'S'

  • multiple_choice = ' '

  • display = 'F'

TABLES

value_tab = t_names

  • return_tab = t_return.

.

IF sy-subrc

<> 0.

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

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

ENDIF.

READ TABLE t_return INDEX

1.

  • P_NAME = T_RETURN-FIELDVAL.

ENDFORM. "GET_NAMES

regards,

amit m.

Former Member
0 Kudos

Hai Urmila

Check the following code

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

EXPORTING

  • DDIC_STRUCTURE = ldf_tabname " Structure of VALUE_TAB

RETFIELD = LDF_FLDNAME "Name of return field in FIELD_TAB

  • PVALKEY = ' '

  • DYNPPROG = ' '

  • DYNPNR = ' '

  • DYNPROFIELD = ' '

  • STEPL = 0

  • WINDOW_TITLE =

  • VALUE = ' '

VALUE_ORG = LCF_VAL "Value return

  • MULTIPLE_CHOICE = ' '

  • DISPLAY = ' '

  • CALLBACK_PROGRAM = ' '

  • CALLBACK_FORM = ' '

  • MARK_TAB =

  • IMPORTING

  • USER_RESET =

TABLES

VALUE_TAB = TAB_TEMP " Table of Values

FIELD_TAB = LDT_FLDTAB " Fileds of the Hit list

RETURN_TAB = LDT_RETTAB " return the selected value

  • DYNPFLD_MAPPING =

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.

READ TABLE LDT_RETTAB INDEX 1.

DATA: LDT_DFIES LIKE DFIES OCCURS 0 WITH HEADER LINE.

CLEAR LDT_DFIES.

CALL FUNCTION 'DDIF_FIELDINFO_GET'

EXPORTING

TABNAME = LDF_TABNANME

FIELDNAME = LDF_FLDNAME

  • LANGU = SY-LANGU

  • LFIELDNAME = ' '

  • ALL_TYPES = ' '

  • GROUP_NAMES = ' '

  • UCLEN =

  • IMPORTING

  • X030L_WA =

  • DDOBJTYPE =

  • DFIES_WA =

  • LINES_DESCR =

TABLES

DFIES_TAB = LDT_DFIES " Field List

  • FIXED_VALUES =

EXCEPTIONS

NOT_FOUND = 1

INTERNAL_ERROR = 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.

Thanks & regards

Sreenivasulu P

former_member181962
Active Contributor
0 Kudos

When declaring the parameter fo rwhich you are giving the f4 help, give the addition lower case.

parameters: p_matnr like mara matnr lower case.

Regards,

Ravi

Former Member
0 Kudos

Hi Ravi,

the lower case works when I manually enter the value, but F4 help continues to return an ALL CAPs value. The table that I pass to the F4 Help has the market maintained as follows: "Australia", "Hong Kong" etc

Thanks,

Urmila

former_member181962
Active Contributor
0 Kudos

Can you show your code here?