SAP R/3 форум ABAP консультантов
Russian ABAP Developer's Club

Home - FAQ - Search - Memberlist - Usergroups - Profile - Log in to check your private messages - Register - Log in - English
Blogs - Weblogs News

Запрет выхода с селекционного экрана



 
Post new topic   Reply to topic    Russian ABAP Developer's Club Forum Index -> ABAP
View previous topic :: View next topic  
Author Message
Максим
Специалист
Специалист



Joined: 27 Sep 2007
Posts: 61

PostPosted: Fri Nov 14, 2008 5:22 pm    Post subject: Запрет выхода с селекционного экрана Reply with quote

Добрый вечер!
Ставится проверка на допустимость значения в поле. Как бы сделать, чтобы при нажатии пользователем Esc программа не завершалась?

Code:
AT SELECTION-SCREEN ON p_per2.
  PERFORM check_interval.
  IF cb_norm IS INITIAL.
    IF NOT p_per1 IS INITIAL AND
       NOT p_per2 IS INITIAL AND
           p_per1 > p_per2.
      MESSAGE e000(su) WITH text-e10.
    ENDIF.
  ENDIF.



sel_scr_error.PNG
 Description:
 Filesize:  6.1 KB
 Viewed:  6033 Time(s)

sel_scr_error.PNG


Back to top
View user's profile Send private message
XXX_:)
Аналитик
Аналитик


Age: 40
Joined: 01 Feb 2008
Posts: 387
Location: Воронеж

PostPosted: Mon Nov 17, 2008 12:23 pm    Post subject: Reply with quote

Может, просто выдавать сообщение какого либо другого типа?
_________________
Hормальные люди делают вещи намного более безумные чем всё, что делают сумасшедшие (c) С.Лем
Back to top
View user's profile Send private message Blog
Удав
Гуру
Гуру


Age: 48
Joined: 25 Jan 2008
Posts: 580
Location: Москва

PostPosted: Mon Nov 17, 2008 1:54 pm    Post subject: Reply with quote

Поставить проверку кода функции в обработку:
Code:
AT SELECTION-SCREEN ON...
  CHECK sy-ucomm = 'ONLI' or sy-ucomm IS INITIAL.
  .....

_________________
С уважением,
Удав.
Back to top
View user's profile Send private message
Максим
Специалист
Специалист



Joined: 27 Sep 2007
Posts: 61

PostPosted: Mon Nov 17, 2008 2:24 pm    Post subject: Reply with quote

Удав wrote:
Поставить проверку кода функции в обработку:
Code:
AT SELECTION-SCREEN ON...
  CHECK sy-ucomm = 'ONLI' or sy-ucomm IS INITIAL.
  .....


Вот я торможу Sad
Спасибо!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Russian ABAP Developer's Club Forum Index -> ABAP All times are GMT + 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


All product names are trademarks of their respective companies. SAPNET.RU websites are in no way affiliated with SAP AG.
SAP, SAP R/3, R/3 software, mySAP, ABAP, BAPI, xApps, SAP NetWeaver and any other are registered trademarks of SAP AG.
Every effort is made to ensure content integrity. Use information on this site at your own risk.