Q
Problem solve Get help with specific problems with your technologies, process and projects.

Error occuring with message type 'E'

Learn how to troubleshoot an error occuring with SAP message type 'E'. Application development guru Matt Billingham advises a reader who is encountering this problem.

I have a selection screen where I have a parameter and a select-option.

SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001. PARAMETERS : p_apofan type ymsm_apo_ahsname-apo_fan_name...

OBLIGATORY. SELECT-OPTIONS s_werks FOR wa_werks. SELECTION-SCREEN END OF BLOCK b1.

I am validating data entry in these fields at screen-selection:

AT SELECTION-SCREEN.
IF sy-ucomm = ' ' or sy-ucomm = 'ONLI'.
PERFORM validate_apofan.
PERFORM validate_plant.
endif.

In the validation subroutine I have written validation code. If it not valid then show error message and set the cursor.

MESSAGE e023 WITH text-e04.
SET CURSOR FIELD 'S_WERKS'.

But the cursor is not setting in s_werks field. What is the problem? I have even tried SET CURSOR FIELD 'S_WERKS-LOW' and it is not setting. Why is this happening? What am I doing wrong? How can I set the cursor on a field in this situation?

When you issue a message type 'E', processing stops at that point within the block. You never get to the SET CURSOR FIELD statements.

Move your SET CURSOR FIELD before the message is output. Also, as S_WERKS is a select option, you need to specify S_WERKS-LOW.

This was last published in October 2005

Dig Deeper on SAP ABAP

PRO+

Content

Find more PRO+ content and other member only offers, here.

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Please create a username to comment.

-ADS BY GOOGLE

SearchManufacturingERP

SearchOracle

SearchDataManagement

SearchAWS

SearchBusinessAnalytics

SearchCRM

SearchContentManagement

SearchFinancialApplications

Close