2012 Jan 03 9:28 AM
Hi Fox => Extremely disrespectful. Please remember you are addressing highly qualified human beings here.
Currently I am wondering why for only 2 fields in my selection screen the F4 search help I get no entry (empty) even though there are some values existing there. However if I generate / activate these specific fields, F4 returns the expected values for the search help. Unfortunately if last only as long as I am logged on. After logging off it doesnu2019t work any longer.
Does anyone know why.
Your help is highly appreciated
Kam
Edited by: kishan P on Jan 3, 2012 3:43 PM
2012 Jan 03 10:17 AM
Hi,
If you want search help on any custom field then u can use this code.
&----
*& Report ZTESTPRO4 *
*& *
&----
*& *
*& *
&----
REPORT ztestpro4.
TYPES:BEGIN OF ty_lfa1,
lifnr TYPE lfa1-lifnr,
END OF ty_lfa1.
DATA:gt_lfa1 TYPE STANDARD TABLE OF ty_lfa1,
gs_lfa1 TYPE ty_lfa1.
PARAMETERS:vendor(10) TYPE c.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR vendor.
SELECT lifnr
FROM lfa1
INTO TABLE gt_lfa1.
IF sy-subrc EQ 0.
SORT gt_lfa1.
ENDIF.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = 'LIFNR'
dynpprog = sy-repid
dynpnr = sy-dynnr
dynprofield = 'vendor'
value_org = 'S'
TABLES
value_tab = gt_lfa1
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.
2012 Jan 03 9:58 AM
Which fields are these plus checkyour program whether it is active or not. Please explain what do you mean by
However if I generate / activate these specific fieldsNabheet
2012 Jan 03 10:01 AM
Hi,
I mean activation of the these search parameters for which the F4 doesn't return any values.
Regards
Kam
2012 Jan 03 10:00 AM
Are these custom fields or standard?
What do you mean by generate and activate?
How do you assign F4 in your case?
Please give more details.
2012 Jan 03 10:17 AM
Hi,
If you want search help on any custom field then u can use this code.
&----
*& Report ZTESTPRO4 *
*& *
&----
*& *
*& *
&----
REPORT ztestpro4.
TYPES:BEGIN OF ty_lfa1,
lifnr TYPE lfa1-lifnr,
END OF ty_lfa1.
DATA:gt_lfa1 TYPE STANDARD TABLE OF ty_lfa1,
gs_lfa1 TYPE ty_lfa1.
PARAMETERS:vendor(10) TYPE c.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR vendor.
SELECT lifnr
FROM lfa1
INTO TABLE gt_lfa1.
IF sy-subrc EQ 0.
SORT gt_lfa1.
ENDIF.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = 'LIFNR'
dynpprog = sy-repid
dynpnr = sy-dynnr
dynprofield = 'vendor'
value_org = 'S'
TABLES
value_tab = gt_lfa1
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.
2012 Jan 03 2:40 PM
For starters, change
dynprofield = 'vendor'to
dynprofield = 'VENDOR'Rob
Added back opening quote.
Edited by: Rob Burbank on Jan 3, 2012 9:52 AM
2012 Jan 04 11:08 AM
Hi Fox => Extremely disrespectful. Please remember you are addressing highly qualified human beings here.
Did you mean "Hi Folks"?
2012 Jan 04 11:49 AM
Yes, I ment "FOLKS Sorry about that
However in my opinion Kishan P's reaction was kind of exaggeration
2012 Jan 04 11:55 AM
That explanation is a too "thin"... as a google search of site:sap.com shows that you regularly use "Hi Fox"?
The only other reference to this as a greeting is here --> http://slovioiseasy.blogspot.com/
Cheers,
Julius
2012 Jan 04 2:00 PM
2012 Jan 04 2:33 PM
Yes, I ment "FOLKS Sorry about that
> However in my opinion Kishan P's reaction was kind of exaggeration
Couldn't agree more.. come on.. i mean... addressing highly qualified human beings here ?
2012 Jan 05 4:29 PM