Application Development and Automation 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: 
Read only

enabling the text field at runtime

Former Member
0 Likes
537

hi friends,

textfield is disabled when the screen is displayed to the user(i did this thing). when a button is clicked on the screen i have to enable the text field on the screen.how to do this.

please help me in this regard

hi friends,

textfield is disabled when the screen is displayed to the user(i did this thing). when a button is clicked on the screen i have to enable the text field on the screen.how to do this.

please help me in this regard

3 REPLIES 3
Read only

Former Member
0 Likes
498

Hi Janakiram,

In ABAP there is a transaction called shdo screen varients

u can make the changes u asked for.

Or go through this thread.

Reward Points For Helpful.

Regards,

Harini.S

Read only

Former Member
0 Likes
498

Hi,

Declare a button:

SELECTION-SCREEN:   PUSHBUTTON 2(10) but1 USER-COMMAND dis.

AT SELECTION-SCREEN.
  CASE sscrfields-ucomm.
   WHEN 'DIS'.
      dis = 'X'.   "a char 1 variable
   ENDCASE.

AT SELECTION-SCREEN OUTPUT.
  IF dis = 'X'.
    LOOP AT screen.
      IF screen-name = 'YOUR_FIELD_NAME'.
        screen-input = '1'.
        modify screen.
      ENDIF.
    ENDLOOP.
  ENDIF.

Regs & rews if helpful

Read only

varma_narayana
Active Contributor
0 Likes
498

Hi Janaki Ram..

In the PBO module use this code

LOOP AT SCREEN.

IF SCREEN-NAME '<TEXT FIELD>'.

SCREEN-INPUT = 1.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

<b>Reward if Helpful.</b>

.