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
751

Hi Gurus,

I am Using F4IF_INT_TABLEVALUE_REQ for search help,

i have populated the itab as per my requirement,i have

exported KUNNR for retfield(which i need as F4 help) and also tables

VALUE_TAB = ITAB,and DDIC_STRUCTURE = 'KNA1'

my program has no syntax errors but

it is giving run time error.what could be the problem am i exporting wrong data.

Regards,

Vijaya.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
716

*There is no need to write the code for F4 help for kunnr field.

*if you want f4 help for other field like NAME then you can use following example

REPORT zrnd5003.

DATA: BEGIN OF it_kna1 OCCURS 0,

name1 TYPE kna1-name1,

END OF it_kna1.

.

parameters: p_kunnr type kna1-kunnr.

PARAMETERS: p_name1 TYPE kna1-name1.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_name1.

SELECT name1 FROM kna1 INTO TABLE it_kna1 UP TO 100 ROWS.

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

EXPORTING

retfield = 'NAME1'

dynprofield = 'P_NAME1'

value_org = 'S'

dynpprog = sy-repid

dynpnr = sy-dynnr

TABLES

value_tab = it_kna1.

6 REPLIES 6
Read only

Former Member
0 Likes
716

what error does it give at run time may be the function call is not done properly

Read only

Former Member
0 Likes
716

Hi,

I think u have not used conversion exit for KUNNR.

Use that FM and then check.

Read only

Former Member
0 Likes
716

see here for this function module F4IF_INT_TABLEVALUE_REQ it is showing that it can be displayed wat version ur using

Read only

Former Member
0 Likes
716

What Run Time error are you getting?

Read only

Former Member
0 Likes
717

*There is no need to write the code for F4 help for kunnr field.

*if you want f4 help for other field like NAME then you can use following example

REPORT zrnd5003.

DATA: BEGIN OF it_kna1 OCCURS 0,

name1 TYPE kna1-name1,

END OF it_kna1.

.

parameters: p_kunnr type kna1-kunnr.

PARAMETERS: p_name1 TYPE kna1-name1.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_name1.

SELECT name1 FROM kna1 INTO TABLE it_kna1 UP TO 100 ROWS.

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

EXPORTING

retfield = 'NAME1'

dynprofield = 'P_NAME1'

value_org = 'S'

dynpprog = sy-repid

dynpnr = sy-dynnr

TABLES

value_tab = it_kna1.

Read only

0 Likes
716

Hi,

Thank You Very Much...,here i need F4 Help for Kunnr only

on a specified search criteria,anyway problem was solved.

Regards,

Vijaya.