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

Message type E

Former Member
0 Likes
1,042

hi,

i am using message type E to verify an imput field. when i enter a wrong one the message comes up. But, i can not enter another imput  without leaving the program and enter again.

what should i do so that message let me set another data without leaving the program.

thanks.

4 REPLIES 4
Read only

Former Member
0 Likes
985

Where are you triggering the message? If it's at START-OF-SELECTION event, try using MESSAGE 'Your message' TYPE 'S' DISPLAY LIKE 'E', then a STOP to get back to selection-screen.

Read only

Former Member
0 Likes
985

Hi Meriem,

You should write the validation and error message inside the event AT SELECTION-SCREEN ON <Field> where <Field> is the name of your selection screen field. Then it will show the error and only open that field as editable to correct the error.

You can check the below SAP help document.

http://help.sap.com/saphelp_nw70/helpdata/en/79/34a237d9b511d1950e0000e8353423/content.htm

Regards,

Karthik D

Read only

RaymondGiuseppi
Active Contributor
0 Likes
985

Is it a SELECTION-SCREEN or a MODULE POOL, In both case, if you want that the field or group of fields to be input allowed, you have to code it correctly.

In module pool :

FIELD fieldname MODULE checkmodule.

CHAIN.

FIELD field1.

FIELD field2.

MODULE cheeckfields AT CHAIN-INPUT.

ENDCHAIN.

In selection-screen

AT SELECTION-SCREEN ON field.

AT SELECTION-SCREEN ON BLOCK b01.

For ressource consuming statement, before the SELECT statement add a check like

IF sscrfields-ucomm = 'ONLI' or sscrfields-ucomm = 'PRIN'.

so following statements will only be executed when user request execution and not when Enter is pressed.

Check via F1 or at help.sap.com for syntax of those statements. Read also MESSAGE statement documentation.

Regards,

Raymond

Read only

0 Likes
985

Cheers !!! Answered, Could not be better !!!