Skip to Content
0
Former Member
Jan 09, 2012 at 02:32 PM

Two columns display in F4 help

523 Views

Hello,

I want to display two columns mainly A(value) and B(Description) by pressing button F4 on field A.

I have written code and filled table value_tab with both these two field's value. But I am getting only one column in the F4 help.

I am using F4IF_INT_TABLE_VALUE_REQUEST fm for F4 help. Please help.

  • Filling Internal table

LOOP AT gt_domain INTO ls_domain.

lw_f4_value-A = ls_domain-domvalue_l.

lw_f4_value-B = ls_domain-ddtext.

APPEND lw_f4_value to lt_f4_value.

CLEAR: lw_f4_value, ls_domain.

ENDLOOP.

  • Calling FM

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

EXPORTING

retfield = 'A'

value_org = 'S'

callback_program = l_repid

TABLES

value_tab = lt_f4_value

return_tab = lt_retab

EXCEPTIONS

parameter_error = 1

no_values_found = 2

OTHERS = 3.