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: 

F4_if_ table _value _request

Former Member
0 Kudos

Hi all,

I am working on F4 int table vaue request, but he values are populating in f4 but automaticallly another screen is disabling that f4 screen.

How to resolve this issue .

will any body help me on this .

Regards,

Madhavi

7 REPLIES 7

Former Member
0 Kudos

see the following examle:

DATA: W_PROGNAME LIKE SY-REPID,

W_SCR_NUM LIKE SY-DYNNR .

DATA: RETURN_VALUES LIKE DDSHRETVAL OCCURS 0 WITH HEADER LINE.

DATA: ITAB_DYNPFIELDS LIKE DYNPREAD OCCURS 0 WITH HEADER LINE,

T_DYNPFIELDS LIKE DYNPREAD.

DATA: T_DYNAME LIKE D020S-PROG,

T_DYNUMB LIKE D020S-DNUM.

DATA: BEGIN OF INT_F4 OCCURS 0,

KUNNR TYPE VBAK-KUNNR,

VBELN TYPE VBAK-VBELN,

AUDAT TYPE VBAK-AUDAT,

END OF INT_F4.

SELECT KUNNR VBELN AUDAT

INTO TABLE INT_F4

FROM VBAK

UP TO 10 ROWS.

CLEAR INT_F4.

****function module to get pop-up window of f4.

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

EXPORTING

RETFIELD = 'VBELN'

DYNPPROG = W_PROGNAME

DYNPNR = W_SCR_NUM

DYNPROFIELD = 'KUNNR'

VALUE_ORG = 'S'

TABLES

VALUE_TAB = INT_F4

RETURN_TAB = RETURN_VALUES

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.

ELSE .

KUNNR = RETURN_VALUES-FIELDVAL.

ENDIF.

former_member404244
Active Contributor
0 Kudos

Hi,

Please have a look at the below thread..

Regards,

Nagaraj

Former Member
0 Kudos

Hi,

Can you put your code here?

Regards,

Chris Gu

Former Member
0 Kudos

Hi

if it is a report make sure you are calling this function module in

At Selection-Screen on <Field> (Field for which you want ot show F4 help).

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

EXPORTING

retfield = 'LGORT' "Field name to which F4 is to be assigned

dynpprog = sy-repid "Program name

dynpnr = sy-dynnr "Screen number

dynprofield = p_field

window_title = l_window_title

value_org = 'S'

TABLES

value_tab = i_f4_lgort_im *"Internal Table which holda the data to be displayed in F4

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.

Regards

Neha

0 Kudos

Hi all,

I am working int Table Maintainence generator for 5 tables using the same Function group.

so i think there is problem in assigning the report name.

so i trying to pass Sy-cprog to Program name field .

But it is populating but another screen is covering with blank screen.

Regards,

Madhavi

0 Kudos

Hi all,

I am working int Table Maintainence generator for 5 tables using the same Function group.

so i think there is problem in assigning the report name.

so i trying to pass Sy-cprog to Program name field .

But it is populating but another screen is covering with blank screen.

Regards,

Madhavi

Former Member
0 Kudos

thanks