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

Problem with F4 Help

Former Member
0 Likes
434

Hi,

Thanks in advance for reading this query.

I have provided F4 help for one of the fileds on my selection screen and provided F4 help to that field by using Function Module F4IF_INT_TABLE_VALUE_REQUEST.

Now If press F4 help, I am getting 2 columns.

If I select any one record, the field in first column should be populated to that field. But for me second field is getting populated.

So can any one help me on this.

below is the code I have put.

call function 'F4IF_INT_TABLE_VALUE_REQUEST'

exporting

retfield = 'SYSNAM'

dynpprog = sy-repid

dynpnr = sy-dynnr

dynprofield = 'S_SYS'

  • stepl = v_povstpl

value_org = 'S'

tables

value_tab = gt_sys

  • field_tab = t_field_tab

return_tab = GT_RETURN

  • dynpfld_mapping = t_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.

Thanks and Regards,

K.Krishna

1 ACCEPTED SOLUTION
Read only

sridhar_meesala
Active Contributor
0 Likes
402

Hi,

In the retfield of the FM, pass the field that is to be displayed in the F4 help.

I mean the field in the value tab gt_sys.

Thanks,

Sri.

Hi,

Thanks in advance for reading this query.

I have provided F4 help for one of the fileds on my selection screen and provided F4 help to that field by using Function Module F4IF_INT_TABLE_VALUE_REQUEST.

Now If press F4 help, I am getting 2 columns.

If I select any one record, the field in first column should be populated to that field. But for me second field is getting populated.

So can any one help me on this.

below is the code I have put.

call function 'F4IF_INT_TABLE_VALUE_REQUEST'

exporting

retfield = 'SYSNAM'

dynpprog = sy-repid

dynpnr = sy-dynnr

dynprofield = 'S_SYS'

  • stepl = v_povstpl

value_org = 'S'

tables

value_tab = gt_sys

  • field_tab = t_field_tab

return_tab = GT_RETURN

  • dynpfld_mapping = t_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.

Thanks and Regards,

K.Krishna

2 REPLIES 2
Read only

sridhar_meesala
Active Contributor
0 Likes
403

Hi,

In the retfield of the FM, pass the field that is to be displayed in the F4 help.

I mean the field in the value tab gt_sys.

Thanks,

Sri.

Read only

sarang_gujrati2
Explorer
0 Likes
402

Hi,

in retfield pass the field name on which u want f4. no need to pass 'dynprofield'.

Regards,

Sarang