abapdynprosap-selection-screens

why the output is Error message -> Invalid entry


REPORT zsaptechnical_test.

Parameters:
d_char OBLIGATORY.

write d_char.

Assume that the user entered '!' (No quotes) on the selection-screen and executed the program.

I am getting the output as Error message -> Invalid entry ? It would be helpful if someone explains what has actually happened .


Solution

  • You can find the explanation in the documentation:

    The "!" character in the initial position of an input field on the screen deletes all characters in the field before the data transport.

    Thus, the field is empty, and this triggers the OBLIGATORY validation.