Skip to Content
avatar image
Former Member

Selection Screen options loosing their focus when I enter wrong data in any of the parameters?

Hi,

I am having three selection screen parameters: P_VBELN, P_WERKS & P_MATNR.

I am having validations on checking the data entered is existed or not. But, when any field data does not exist, the other two fields are loosing their focus. How to overcome this?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

5 Answers

  • Jun 05, 2017 at 12:55 PM

    ....focus lost is not equivalent to input deactivated...

    Define a SELECTION-SCREEN BEGIN/END OF BLOCK to wrap the three parameters and execute the check and raise error messages in a AT SELECTION-SCREEN ON BLOCK block

    .

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jun 05, 2017 at 12:38 PM

    Hi ,

    Are using Error message for wrong data input.

    If you are using error message system will stop with step.

    Regards,

    krishna.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jun 05, 2017 at 12:42 PM

    Yes, I am using error messages for all the three fields.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      If you want to throw error after checking all three fields don't write error message for three fields individually.

      write error message after checking all fields and use some flags.

      Regards,

      krishna.

  • Jun 05, 2017 at 12:45 PM

    How do you mean 'the other two fields are loosing focus' ? Only one field can have focus at any one time. However, rephrasing what Krishna said if you are using message type 'E', then the erroneous field receives focus to enable you to modify it, with other fields on the screen being changed to display.

    If you wish all three fields to have an input status when one of the fields is in error use CHAIN....ENDCHAIN in your PAI.

    Add comment
    10|10000 characters needed characters exceeded

  • Jun 22, 2017 at 09:31 AM

    Hi,

    Use At Selection screen on event.

    At Selection Screen On P_VBELN.
    *Code For Validation.
    
    At Selection Screen On P_WERKS.
    *Code For Validation.
    
    At Selection Screen On P_MATNR.
    *Code For Validation.

    This should work.

    Regards,

    Mangesh

    Add comment
    10|10000 characters needed characters exceeded