Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Error while closing F4 help window

I have used FM F4IF_INT_TABLE_VALUE_REQUEST, to add F4 help to input element of my screen, but when I try to select a value from the list or close the input help window, the control goes to dump with following error message:

The program attempted to issue a " " message during "F4" processing.

This is an illegal operation.

The program was terminated.

I am using the following code:

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

EXPORTING

retfield = 'LIFNR'

dynpprog = sy-repid

dynpnr = sy-dynnr

dynprofield = 'WA_YCT3-LIFNR'

value_org = 'S'

TABLES

value_tab = it_lfa1

EXCEPTIONS

parameter_error = 1

no_values_found = 2

OTHERS = 3.

IF sy-subrc = 1.

RAISE parameter_error.

ELSEIF sy-subrc = 2.

RAISE no_values_found.

ELSE.

MESSAGE 'Unknown error occured while processing request' TYPE 'E'.

ENDIF.

ENDMODULE.

replied

Hello Sai,

You are raising error message on sy-subrc = 0 ( Succcessful case ) also.

if sy.subrc 1..

..

if sy-subrc 2..

else..

(( At this place your control goes even in case of success ))

endif.

Regards,

Abhishek

0 View this answer in context

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question