ā2013 May 20 3:57 PM
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.
ā2013 May 20 7:48 PM
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.
ā2013 May 20 9:40 PM
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
ā2013 May 21 8:00 AM
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
ā2013 May 21 8:15 AM