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

F4 search help returns empty records!

Former Member
0 Likes
4,516

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
3,236

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.

11 REPLIES 11
Read only

nabheetscn
SAP Champion
SAP Champion
0 Likes
3,236

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 fields

Nabheet

Read only

0 Likes
3,236

Hi,

I mean activation of the these search parameters for which the F4 doesn't return any values.

Regards

Kam

Read only

Former Member
0 Likes
3,236

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.

Read only

Former Member
0 Likes
3,237

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.

Read only

0 Likes
3,236

For starters, change

dynprofield = 'vendor'

to

dynprofield = 'VENDOR'

Rob

Added back opening quote.

Edited by: Rob Burbank on Jan 3, 2012 9:52 AM

Read only

matt
Active Contributor
0 Likes
3,236

Hi Fox => Extremely disrespectful. Please remember you are addressing highly qualified human beings here.

Did you mean "Hi Folks"?

Read only

Former Member
0 Likes
3,236

Yes, I ment "FOLKS Sorry about that

However in my opinion Kishan P's reaction was kind of exaggeration

Read only

Former Member
0 Likes
3,236

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

Read only

Former Member
0 Likes
3,236

So what was the answer??

Rob

Read only

Former Member
0 Likes
3,236

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 ?

Read only

Former Member
0 Likes
3,236

Exaggerated? You think?

pk