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: 

How to parameter F4IF_INT_TABLE_VALUE_REQUEST?

Former Member
0 Kudos

Hi experts,

could u explain, what are the parameters in this function? I tried to parameter the function, but no value found and nothing was displayed.

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

EXPORTING

  • ddic_structure = '

retfield = ' '

  • PVALKEY = ' '

  • DYNPPROG = ' '

  • DYNPNR = ' '

  • DYNPROFIELD = ' '

  • STEPL = 0

  • WINDOW_TITLE =

  • VALUE = ' '

  • VALUE_ORG = 'C'

  • MULTIPLE_CHOICE = ' '

  • DISPLAY = ' '

  • CALLBACK_PROGRAM = ' '

  • CALLBACK_FORM = ' '

TABLES

value_tab =

  • FIELD_TAB =

  • RETURN_TAB =

  • DYNPFLD_MAPPING =

1 ACCEPTED SOLUTION

Former Member
0 Kudos

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

EXPORTING

retfield = 'CONNID'

dynpprog = progname

dynpnr = dynnum

dynprofield = 'CONNECTION'

value_org = 'S'

TABLES

value_tab = values_tab.

refer demo program DEMO_DYNPRO_F4_HELP_MODULE.....

12 REPLIES 12

Former Member
0 Kudos

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

EXPORTING

retfield = 'CONNID'

dynpprog = progname

dynpnr = dynnum

dynprofield = 'CONNECTION'

value_org = 'S'

TABLES

value_tab = values_tab.

refer demo program DEMO_DYNPRO_F4_HELP_MODULE.....

Former Member
0 Kudos

Hi,

You need not parameterize all the available. Only 5 exporting parameters and one table are mandatory to be parameterize.

Here is the code.

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

EXPORTING

RETFIELD = 'MATNR' "The field name in the internal table

DYNPPROG = SY-REPID

DYNPNR = SY-DYNNR

DYNPROFIELD = 'S_MATNR' " the select-option or parameter in screen

VALUE_ORG = 'S'

TABLES

VALUE_TAB = I_MARA " the internal table name from which u want to display values

EXCEPTIONS

PARAMETER_ERROR = 1

NO_VALUES_FOUND = 2

OTHERS = 3.

IF SY-SUBRC <> 0.

ENDIF.

That is all.

If you have further query please fel free to say.

Bye.

Former Member
0 Kudos

HI,

Just refer the below thread:

Hope this will help.

Regards,

Nitin.

Former Member
0 Kudos

hi,

Refer to this link...

Edited by: avinash kodarapu on Dec 22, 2008 3:48 PM

Former Member
0 Kudos

Hi Mr.White,

look into this thread

Regards,

Pravin

Former Member
0 Kudos

Why I can't see any value?

1. DATA: BEGIN OF gt_values OCCURS 0,

specid TYPE zcust-specid,

END OF gt_values.

2 . (selection)

I select into gt_values.

3. CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

EXPORTING

  • ddic_structure = '

retfield = 'SPECID'

  • PVALKEY = ' '

  • DYNPPROG = ' '

  • DYNPNR = ' '

  • DYNPROFIELD = ' '

  • STEPL = 0

  • WINDOW_TITLE =

  • VALUE = ' '

  • VALUE_ORG = 'C'

  • MULTIPLE_CHOICE = ' '

  • DISPLAY = ' '

  • CALLBACK_PROGRAM = ' '

  • CALLBACK_FORM = ' '

TABLES

value_tab = gt_values

  • FIELD_TAB =

  • RETURN_TAB =

  • DYNPFLD_MAPPING =

EXCEPTIONS

PARAMETER_ERROR = 1

NO_VALUES_FOUND = 2

OTHERS = 3

0 Kudos

Hi,

In the TABLES section of the function module F4IF_INT_TABLE_VALUE_REQUEST, use the table 'return' (defined below) for RETURN_TAB:

data: return LIKE ddshretval OCCURS 0 WITH HEADER LINE.

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

EXPORTING

ddic_structure = '

retfield = 'SPECID'

PVALKEY = ' '

DYNPPROG = ' '

DYNPNR = ' '

DYNPROFIELD = ' '

STEPL = 0

WINDOW_TITLE =

VALUE = ' '

VALUE_ORG = 'C'

MULTIPLE_CHOICE = ' '

DISPLAY = ' '

CALLBACK_PROGRAM = ' '

CALLBACK_FORM = ' '

TABLES

value_tab = gt_values

FIELD_TAB =

RETURN_TAB = return

DYNPFLD_MAPPING =

.

See if it works.

Regards,

harshada

0 Kudos

I did not help. I defined return, but nothing has changed, no value displayed.

0 Kudos

Hello,

You have to read the table IT_RETURN & send the value to your selection screen element.


CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
        EXPORTING
          retfield        = 'SPECID'
          dynpprog        = sy-repid
          value_org       = 'S'
        TABLES
          value_tab       = l_it_dtypdesc
          return_tab      = l_it_ret_tab
        EXCEPTIONS
          parameter_error = 1
          no_values_found = 2
          OTHERS          = 3.
      IF sy-subrc = 0.
        READ TABLE l_it_ret_tab INTO l_wa_ret_tab INDEX 1.
        IF sy-subrc = 0.
          specid = l_wa_ret_tab-fieldval.
        ENDIF.
      ENDIF.

Hope this is clear.

BR,

Suhas

Former Member
0 Kudos

hi,

tables mara .

data: begin of t_values occurs 2,

value like mara-matnr,

end of t_values,

t_return like ddshretval occurs 0 with header line.

select-options s_matnr for mara-matnr.

at selection-screen on value-request for s_matnr-low.

t_values = 'MAT1'.

append t_values.

t_values = 'MAT2'.

append t_values.

call function 'F4IF_INT_TABLE_VALUE_REQUEST'

exporting

retfield = 'MATNR'

value_org = 'S'

tables

value_tab = t_values

return_tab = t_return

exceptions

parameter_error = 1

no_values_found = 2

others = 3.

if sy-subrc = 0.

read table t_return index 1.

endif.

thanks

Former Member
0 Kudos

hi,try this code

SELECT-OPTIONS: s_f4 for wa_tab-f1.

INITIALIZATION.

PERFORM get_search_hlp_values.

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

PERFORM get_f4help CHANGING s_f4-low.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR s_f4-high.

PERFORM sub_get_f4help CHANGING s_f4-high.

FORM get_search_hlp_values.

fill itab with values here

ENDFORM. " sub_get_search_hlp_values

FORM sub_get_f4help_for_user CHANGING p_bname TYPE char10.

DATA: l_i_field TYPE STANDARD TABLE OF dfies INITIAL SIZE 0,

l_wa_field TYPE dfies,

l_i_return TYPE TABLE OF ddshretval,

l_wa_return TYPE ddshretval.

CONSTANTS: c_feild TYPE dfies-fieldname VALUE 'BNAME',

c_dynprg TYPE sy-repid VALUE 'RSSYSTBD',

c_dynpnr TYPE sy-dynnr VALUE '1000',

c_dynfeild TYPE help_info-dynprofld VALUE 'S_BNAME-LOW',

c_stepl TYPE sy-stepl VALUE '0',

c_valueorg TYPE ddbool_d VALUE 'C'.

Populate the Field table

l_wa_field-tabname = 'QMFE'.

l_wa_field-fieldname = 'FECOD'.

APPEND l_wa_field TO l_i_field.

IF NOT i_data[] IS INITIAL.

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

EXPORTING

retfield = c_feild

dynpprog = c_dynprg

dynpnr = c_dynpnr

stepl = c_stepl

value_org = c_valueorg

TABLES

value_tab = i_tab

field_tab = l_i_field

return_tab = l_i_return

EXCEPTIONS

parameter_error = 1

no_values_found = 2

OTHERS = 3.

READ TABLE l_i_return INTO l_wa_return

WITH KEY fieldname = 'FECOD'.

IF sy-subrc EQ 0.

p_bname = l_wa_return-fieldval.

ENDIF.

ENDIF.

ENDFORM. " get_F4help

thanks

Former Member
0 Kudos

Thanks