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
Lil-One
Участник
Участник


Age: 33
Joined: 29 Jun 2011
Posts: 2
Location: Moscow

PostPosted: Wed Jun 29, 2011 6:00 pm    Post subject: Как сделать поле ввода параметра не редактируемым? [решено] Reply with quote

Здравствуйте!
подскажите пожалуйста Smile

SELECTION-SCREEN BEGIN OF BLOCK pole WITH FRAME TITLE text-001.

PARAMETERS:inf_x AS CHECKBOX.

PARAMETERS:ed TYPE p9022-education.
SELECTION-SCREEN COMMENT 40(40) ed_text.
PARAMETERS:form_ed TYPE p9022-form_education.
SELECTION-SCREEN COMMENT 40(25) frm_text.
PARAMETERS:vid_y4 TYPE p9022-slart.
SELECTION-SCREEN COMMENT 40(79) vid_text.
PARAMETERS:y4_zav TYPE p9022-code_school.
SELECTION-SCREEN COMMENT 44(79) y4_text.
PARAMETERS:god_o TYPE p9022-endyear.

SELECTION-SCREEN END OF BLOCK pole.

Хочу сделать так, чтобы при нажатии галочки поля ввода параметров на селекционном экране нельзя было редактировать
Заранее спасибо! Smile



1.jpg
 Description:
 Filesize:  20.51 KB
 Viewed:  9835 Time(s)

1.jpg




Last edited by Lil-One on Thu Jun 30, 2011 11:44 am; edited 1 time in total
Back to top
View user's profile Send private message
Dmitriy
Аналитик
Аналитик


Age: 47
Joined: 14 Nov 2008
Posts: 300
Location: Russia

PostPosted: Wed Jun 29, 2011 6:36 pm    Post subject: Reply with quote

Учитесь пользоваться поиском Wink

Code:
*&---------------------------------------------------------------------*
  SELECTION-SCREEN BEGIN OF BLOCK pole WITH FRAME TITLE text-001.

  PARAMETERS:inf_x AS CHECKBOX USER-COMMAND u01.

  PARAMETERS:ed TYPE p9022-education MODIF ID m00.
  SELECTION-SCREEN COMMENT 40(40) ed_text.
  PARAMETERS:form_ed TYPE p9022-form_education MODIF ID m00.
  SELECTION-SCREEN COMMENT 40(25) frm_text.
  PARAMETERS:vid_y4 TYPE p9022-slart MODIF ID m00.
  SELECTION-SCREEN COMMENT 40(79) vid_text.
  PARAMETERS:y4_zav TYPE p9022-code_school MODIF ID m00.
  SELECTION-SCREEN COMMENT 44(79) y4_text.
  PARAMETERS:god_o TYPE p9022-endyear MODIF ID m00.

  SELECTION-SCREEN END OF BLOCK pole.

*&---------------------------------------------------------------------*
AT SELECTION-SCREEN OUTPUT.

  LOOP AT SCREEN.
    CASE screen-group1.
      WHEN 'M00'.
        IF inf_x IS INITIAL.
          screen-input = 1.
        ELSE.
          screen-input = 0.
        ENDIF.
    ENDCASE.
    MODIFY SCREEN.
  ENDLOOP.
*&---------------------------------------------------------------------*

_________________
ABAP/4 You
Back to top
View user's profile Send private message
Lil-One
Участник
Участник


Age: 33
Joined: 29 Jun 2011
Posts: 2
Location: Moscow

PostPosted: Wed Jun 29, 2011 7:25 pm    Post subject: Reply with quote

Dmitriy, спасибо большое Smile
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.