Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Error message on same screen using TMG event

Former Member
0 Kudos

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

11 REPLIES 11

former_member194152
Contributor
0 Kudos

0 Kudos

Dear Gagan,

I tried but it's still same except that icon changes.

I have also tried :

-call transaction and skip first screen.

-leave list-processing AND RETURN TO SCREEN 0001.

-return.


But no results.

Former Member
0 Kudos

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'.

0 Kudos

Dear Prasenjit,

Ya if u can check your logic, it will be helpful.

I have tried this way, but of no use.

Now am using message class.

0 Kudos

Hi deepak ,

Did you solved the issue.. Please let Us know ..

Facing the same here

NooruBohra
Participant
0 Kudos

Hi Deepak,

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


Regards,
Nooruddin

0 Kudos

try

message s display like 'e'.

LEAVE LIST-PROCESSING.

For me it worked.

0 Kudos

Hi Deepak,

Try below given code.

MESSAGE e398(00) WITH 'Error:Number range should not overlap!' DISPLAY LIKE 'S'.
LEAVE TO LIST-PROCESSING.



Regards,

Ramiz.

0 Kudos

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.

Former Member
0 Kudos

How can slove this issue?

Former Member
0 Kudos

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.