Skip to Content
author's profile photo
Former Member

Screen Validation

Hi

I am currently creating a new screen and wish to validate whether or not a user uses the selection column before pressing a button. This is fine, I am able to pop up an error message but after I have 'Entered' past the message, I now need to press enter again in order for the screen to allow me to select the column again.

Why do I need the double enter?

Message was edited by: Ian Stubbings

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • author's profile photo
    Former Member
    Aug 03, 2004 at 08:13 PM

    You need to chained the fields before calling the module in the PBO. For example:

    Chain.

    field: screenfield_1,

    screenfield_2,

    screenfield_3.

    module validate.

    endchain.

    This way, when the error occurs during validation, all fields will be open for input.

    Nablan Umar

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Cheers Nablan. I am now on the right track and moved my code from the user command section to the loop around the table control. Now, however, only the selection mark from the last loop is ready for input which was when the error was issued. Can I make all ready for input?

  • author's profile photo
    Former Member
    Aug 04, 2004 at 08:05 AM

    Hi,

    if you want to check for a single field, then you can use this too.

    You can ensure that a PAI module is only called when a certain condition applies by using the following statement:

    <b>FIELD <xyz>

    MODULE <check_xyz> ON INPUT|REQUEST|ON *-INPUT.</b>

    ON INPUT

    The ABAP module is called only if the field contains a value other than its initial value.

    ON REQUEST

    The module <mod> is only called if the user has entered something in the field. ON REQUEST condition is triggered through any form of "manual input".

    ON *-INPUT

    The ABAP module is called if the user has entered a "*" in the first character of the field, and the field has the attribute *-entry in the Screen Painter. When the input field is passed to the program, the * is removed. * behaves like an initial field in the ON INPUT condition.

    Add comment
    10|10000 characters needed characters exceeded