Skip to Content

Error message on same screen using TMG event

Dear All,

I am stuck due to a very small issue in TMG events.

Using TMG event 01, I need to do some validation and display some error messages.

But these error messages are coming on to the next screen and if I press 'Enter', it navigates back to same screen with data.

Requirement is:

  1. Error message on the same screen
  2. Disable all fields except the field which has error

Following is the screenshot of the error message on next screen:

Looking for a solution. Kindly help.

-

Regards

Deepak Batra

error.JPG (30.3 kB)
Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

6 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Dec 31, 2012 at 08:22 AM
    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 31, 2012 at 08:53 AM

    I did something to meet exactly your kind of requirement long back but have to check the code..

    meanwhile could you please confirm if u are displaying teh message as

    MESSAGE ' Err blah blah' TYPE 'E' DISPLAY LIKE 'S'.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 11, 2013 at 07:38 AM

    Hi Deepak,

    I am having the same problem right now. Please tell me the required process to solve this problem.


    Regards,
    Nooruddin

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Feb 20, 2014 at 04:11 AM

    Hi,

    I had the same problem but none of the above solution seemed to work for me.

    Finally i put the validations in PAI module of the screen.

    PROCESS AFTER INPUT.
    MODULE LISTE_EXIT_COMMAND AT EXIT-COMMAND.
    MODULE LISTE_BEFORE_LOOP.
    LOOP AT EXTRACT.
    MODULE LISTE_INIT_WORKAREA.
    CHAIN.
    FIELD ZMPP_WND_BOOTH_V-BOOTHID .
    FIELD ZMPP_WND_BOOTH_V-BOOTHSTAT .
    FIELD ZMPP_WND_BOOTH_V-BOOTH_DESC .
    MODULE SET_UPDATE_FLAG ON CHAIN-REQUEST.
    ENDCHAIN.
    FIELD VIM_MARKED MODULE LISTE_MARK_CHECKBOX.

    "added by me for validations
    FIELD ZMPP_WND_BOOTH_V-BOOTHID MODULE check_booth_assignment.

    CHAIN.
    FIELD ZMPP_WND_BOOTH_V-BOOTHID .
    MODULE LISTE_UPDATE_LISTE.
    ENDCHAIN.
    ENDLOOP.
    MODULE LISTE_AFTER_LOOP.

    add your validations in the module created by you.

    Regards,

    Ninad Joshi.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 05, 2015 at 06:03 AM

    How can slove this issue?

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 05, 2015 at 09:18 AM

    Hello,

    If the Message is triggered before the START-Of-SELECTION event,

    Display message of type 'S' but display like 'E'.

    Also, set a error flag.

    Then, in START-OF-SELECTION,

    IF the error flag is set, LEAVE LIST-PROCESSING.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.