11-24-2008 8:30 AM
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
11-24-2008 8:41 AM
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.
11-24-2008 8:42 AM
11-24-2008 9:05 AM
11-24-2008 9:43 AM
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
11-24-2008 9:50 AM
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
11-24-2008 12:47 PM
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
12-03-2008 6:44 AM