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
Sed0Y
Специалист
Специалист


Age: 41
Joined: 17 Mar 2010
Posts: 88
Location: Ukraine - Kiev

PostPosted: Fri Jul 09, 2010 4:41 pm    Post subject: показ поля по комбинации клавиш Reply with quote

у меня такой вопрос есть у меня

Code:
PARAMETERS:
            NAME      TYPE CHAR80 LOWER CASE,
            REGION    TYPE REGIO.


а как мне сдалать при заполнении этих полей, если нажать к примеру Ctrl+Alt+T появляется еще одно поле для заполнения к примеру

Code:
PARAMETERS:
            SOME_TEXT   TYPE CHAR255.

Question
Back to top
View user's profile Send private message
vga
Мастер
Мастер


Age: 65
Joined: 04 Oct 2007
Posts: 1218
Location: Санкт-Петербург

PostPosted: Fri Jul 09, 2010 10:22 pm    Post subject: Reply with quote

А не легче добавить кнопку - "Показать текст"?
_________________
Молитва - это запрос разработчику на изменение кода программы.
Back to top
View user's profile Send private message Blog Visit poster's website
broker_chelny
Участник
Участник



Joined: 23 Jan 2010
Posts: 26
Location: Naberezhnye Chelny

PostPosted: Tue Jul 13, 2010 2:36 pm    Post subject: Reply with quote

На Ctrl + F5, можно так сделать. Правда кнопка будет на панели инструментов
Code:

SELECTION-SCREEN: FUNCTION KEY 5.

PARAMETERS: test1 TYPE char10,
            test2 TYPE char10 MODIF ID tst.

INITIALIZATION.
*  functxt-text = 'Показать'.
  sscrfields-functxt_01 = functxt.

AT SELECTION-SCREEN OUTPUT.
  LOOP AT SCREEN.
    IF screen-group1 = 'TST'.
      IF is_unvis = abap_true.
        screen-active = 1.
      ELSE.
        screen-active = 0.
      ENDIF.
      MODIFY SCREEN.
    ENDIF.
  ENDLOOP.

AT SELECTION-SCREEN.
  CASE sscrfields-ucomm.
    WHEN 'FC05'.
      is_unvis = abap_true.
  ENDCASE.
Back to top
View user's profile Send private message
maxim
Участник
Участник


Age: 41
Joined: 28 Jun 2010
Posts: 6
Location: Riga

PostPosted: Wed Jul 14, 2010 11:39 am    Post subject: Reply with quote

Ctrl + F1.

Code:

TYPE-POOLS: abap,
            icon.

TABLES SSCRFIELDS.

CONSTANTS: BEGIN OF st_h,
            TEXT    type SMP_DYNTXT-TEXT VALUE IS INITIAL,
            ICON_ID   type SMP_DYNTXT-ICON_ID VALUE ICON_DEACTIVATE,
            ICON_TEXT type SMP_DYNTXT-ICON_TEXT VALUE IS INITIAL,
            QUICKINFO type SMP_DYNTXT-QUICKINFO VALUE 'Hide',
           END OF st_h,
           BEGIN OF st_s,
            TEXT    type SMP_DYNTXT-TEXT VALUE IS INITIAL,
            ICON_ID type SMP_DYNTXT-ICON_ID VALUE ICON_ACTIVATE,
            ICON_TEXT type SMP_DYNTXT-ICON_TEXT VALUE IS INITIAL,
            QUICKINFO type SMP_DYNTXT-QUICKINFO VALUE 'Show',
           END OF st_s.

DATA: switch type i.

SELECTION-SCREEN FUNCTION KEY 1.

PARAMETERS:
            NAME      TYPE CHAR80 LOWER CASE,
            REGION    TYPE REGIO,
            SOME_TXT  TYPE CHAR255 MODIF ID txt.


INITIALIZATION.

   sscrfields-functxt_01  = st_s.

AT SELECTION-SCREEN OUTPUT.
  LOOP AT SCREEN.
    CHECK screen-group1 EQ 'TXT'.
        screen-active = switch.
        MODIFY SCREEN.
  ENDLOOP.

AT SELECTION-SCREEN.
  CHECK sscrfields-ucomm EQ 'FC01'.
       CASE switch.
         when 1.
               switch = 0.
               sscrfields-functxt_01  = st_s.
         when others.
               switch = 1.
               sscrfields-functxt_01  = st_h.
       ENDCASE.
Back to top
View user's profile Send private message
Sed0Y
Специалист
Специалист


Age: 41
Joined: 17 Mar 2010
Posts: 88
Location: Ukraine - Kiev

PostPosted: Wed Jul 14, 2010 1:46 pm    Post subject: Reply with quote

А кнопку можно как-то спрятать или сделать не активной, но чтобы Ctrl+ работало?
А так все устраивает БОЛЬШОЕ спасибо!
Back to top
View user's profile Send private message
Удав
Гуру
Гуру


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

PostPosted: Wed Jul 14, 2010 1:54 pm    Post subject: Reply with quote

Вместо кнопки можно использовать пункт меню Wink
_________________
С уважением,
Удав.
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.