02-14-2005 4:52 AM
i need a F4 help on one of the fields in the selection screen declared as parameters.i found that FM F4_IF_FIELD_VALUE_REQUEST is not present in my sap r/3.
so is there any other FM other than that or any other way to incorporate the F4 help in my report.
thanks.
02-14-2005 5:00 AM
You can use the following FM on ON VALUE-REQUEST of the parameter field
F4IF_INT_TABLE_VALUE_REQUEST
Regards
Raja
02-14-2005 5:08 AM
Hi Murthy,
The FM you were looking for would be F4IF_FIELD_VALUE_REQUEST. (no underscore between F4 and IF.)
However, I guess you could also use the FM mentioned by Raja.
BTW, are you trying to use a custom field / a custom F4 help for a standard field?
Regards,
Anand Mandalika.
02-14-2005 5:50 AM
Hi,
In addition to above answers , u can use
AT SELECTION-ON VALUE-REQUEST FOR parameter.
Thus you can implement self-programmed possible entries routine for input/output fields.
R/
MTY
02-14-2005 6:05 AM
02-14-2005 6:16 AM
*&---------------------------------------------------------------------*
*& Report YTESTF4 *
*& *
*&---------------------------------------------------------------------*
*& *
*& *
*&---------------------------------------------------------------------*
REPORT ytestf4 .
TYPES: BEGIN OF ty_f4_data,
data(100),
END OF ty_f4_data.
DATA :int_f4_data TYPE STANDARD TABLE OF ty_f4_data WITH HEADER LINE,
int_f4_fields TYPE STANDARD TABLE OF dfies WITH HEADER LINE ,
wf_repid LIKE sy-repid,
wf_dynnr LIKE sy-dynnr.
PARAMETERS: p_test(4) .
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_test.
wf_repid = sy-repid.
wf_dynnr = sy-dynnr.
CLEAR: int_f4_data, int_f4_fields .
REFRESH: int_f4_data,
int_f4_fields.
int_f4_fields-fieldname = 'P_TEST'.
int_f4_fields-rollname = 'P_TEST'.
int_f4_fields-domname = 'P_TEST'.
int_f4_fields-langu = sy-langu .
int_f4_fields-position = 1.
int_f4_fields-leng = 4.
int_f4_fields-intlen = 4.
int_f4_fields-outputlen = 4.
int_f4_fields-datatype = 'CHAR'.
int_f4_fields-inttype = 'C'.
int_f4_fields-keyflag = 'X'.
int_f4_fields-dynpfld = 'X'.
int_f4_fields-comptype = 'E'.
int_f4_fields-lfieldname = 'P_TEST'.
int_f4_fields-fieldtext = 'Test Parameter'.
int_f4_fields-reptext = 'Test Parameter'.
int_f4_fields-scrtext_s = 'Test Parameter'.
APPEND int_f4_fields.
CLEAR int_f4_fields.
int_f4_data-data = 'ABCD'.
APPEND int_f4_data.
int_f4_data-data = 'EFGH'.
APPEND int_f4_data.
int_f4_data-data = 'IJKL'.
APPEND int_f4_data.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = 'P_TEST'
dynpprog = wf_repid
dynpnr = wf_dynnr
dynprofield = 'P_TEMP'
TABLES
value_tab = int_f4_data
field_tab = int_f4_fields
EXCEPTIONS
parameter_error = 1
no_values_found = 2
OTHERS = 3.
Regards
Raja
02-14-2005 6:22 AM
Hello Murthy,
This topic has been discussed at length in this forum in the past. For better explanation, you must search for the keyword with the FM name in this forum. This practice will actually help you in several cases and you will find that you don't even have to make a new post for that
The first step is to read the documentation for the FM, which is <i>very elaborate</i>.
Secondly, it would be quite simple if you could provide what field it is that you are trying to get this functionality for.
Regards,
Anand Mandalika.