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

PLZ HELP ME...

Former Member
0 Likes
582

HOW TO <b>ENABLE</b> /<b> DISABLE</b> THE TEXT BOX BY USING CODING THAT HAS BEEN CREATED IN SCREEN PAINTER WITH THE PROPERTY CONDITION "<b>NOT POSSIBALE</b> " / " <b>POSSIBLE</b>" IN THE LAYOUT IN SCREEN PAINTER AND I NEED TO ENABLE / DISABLE THAT TEXT BOX WHILE RUN TIME IN PAI IS SE38. I NEED THE CODING R REFER WITH EXAMPLE DO THE NEEDFUL.

HOW TO <b>ENABLE</b> /<b> DISABLE</b> THE TEXT BOX BY USING CODING THAT HAS BEEN CREATED IN SCREEN PAINTER WITH THE PROPERTY CONDITION "<b>NOT POSSIBALE</b> " / " <b>POSSIBLE</b>" IN THE LAYOUT IN SCREEN PAINTER AND I NEED TO ENABLE / DISABLE THAT TEXT BOX WHILE RUN TIME IN PAI IS SE38. I NEED THE CODING R REFER WITH EXAMPLE DO THE NEEDFUL.

4 REPLIES 4
Read only

Former Member
0 Likes
562

Hi,

In the PAI event u write th code

LOOP AT SCREEN.

if screen-name = 'TEXTBOX'.

screen-active = 1 . "( 1-enable,0-disable)

modify screen.

ENDLOOP.

Reward points if it is helpful

Regards,

Sangeetha.a

Read only

Former Member
0 Likes
562

Hi,

do in PAI

Loop at Screen

screen-fieldname1 = 'YourFieldName'.

screen-input = 0.

modify screen.

endloop.

Regards,

Usman Malik

Read only

Former Member
0 Likes
562

Hi,

Sorry it is not in tha PAI..you have to write the code exactly where you want and when you want to do that

Read only

Former Member
0 Likes
562

Hi Krishna

I think i already replied the same post previously to u..........

Here is ur previous link

ok check it again

<b><u>In Se51 after u enter the program name and specify a screen number then click onm the lay out editor radio button and then go to change mode there u double click on the box which u want to disable then right side u can find an box displaying the details of the particular box there u can use option disable and u can disable the related box</u></b>

or <b><i>use code to disable box</i></b>


LOOP AT SCREEN and ENDLOOP
check this sample code

LOOP AT SCREEN.
IF RADIO1 = 'X'
AND SCREEN-GROUP1 = 'D2'.
SCREEN-ACTIVE = '0'.
ENDIF.
IF RADIO2 = 'X'
AND SCREEN-GROUP1 = 'D1'.
SCREEN-ACTIVE = '0'.
ENDIF.
MODIFY SCREEN.
ENDLOOP.

Reward if helpfull

Regards

Pavan