Application Development 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: 

ABT TEXT FIELD

Former Member
0 Kudos

HOW WE WILL DISABLE A TEXT FIELD WHEN WE R CALLIN A SUBSCREEN , FIELD IS INSIDE THE SUBSCREEN.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi Rahul

First of all identify when you want the text field to be hidden....

There may definitely be multiple options to do it...

Consider the following

You will be going to subscreen from a main screen..immediately before "CALL SUBSCREEN XXX ' statement write a module and set a global variable = 'X' if you need the text field to be hidden...

In the subscreen PBO'

Write the code

If the variable = 'X'.

Loop at screen.

If screen-name = 'TEXT_FIELD'.

"name of the text field in capslock

screen-active = 0.

Modify screen.

endif.

endloop.

Pls check and revert..reward if useful

Regards

Byju

7 REPLIES 7

Former Member
0 Kudos

Hi,

you have to assign that fileld to a different group and on based on the condition u should change its screen attribute.

Like

loop at screen.

if screen-group1 = 'G1'.

screen-active = 1.

screen-input = 0.

screen-output = 1.

screen-invisible = 0.

modify screen.

endif.

if screen-group1 = 'G2'.

screen-active = 1.

screen-input = 0.

screen-output = 1.

screen-invisible = 0.

modify screen.

endif.

if screen-group1 = 'G3'.

screen-active = 0.

screen-input = 0.

screen-output = 0.

screen-invisible = 1.

modify screen.

endif.

if screen-group1 = 'G4'.

screen-active = 1.

screen-input = 1.

screen-output = 1.

screen-invisible = 0.

modify screen.

endif.

if screen-group1 = 'G5'.

screen-active = 0.

screen-input = 0.

screen-output = 0.

screen-invisible = 1.

modify screen.

endif.

endloop.

endif.

***************************************************

if ok_code_1 = 'CRT'.

loop at screen.

if screen-group1 = 'G1'.

screen-active = 1.

screen-input = 1.

screen-output = 1.

screen-invisible = 0.

modify screen.

endif.

if screen-group1 = 'G2'.

screen-active = 1.

screen-input = 1.

screen-output = 1.

screen-invisible = 0.

modify screen.

endif.

if screen-group1 = 'G3'.

screen-active = 1.

screen-input = 1.

screen-output = 1.

screen-invisible = 0.

modify screen.

endif.

if screen-group1 = 'G4'.

screen-active = 1.

screen-input = 1.

screen-output = 1.

screen-invisible = 0.

modify screen.

endif.

if screen-group1 = 'G5'.

screen-active = 0.

screen-input = 0.

screen-output = 0.

screen-invisible = 1.

modify screen.

endif.

endloop.

this all will be based on requirment

reward points if helpful

Former Member
0 Kudos

Hi Rahul

First of all identify when you want the text field to be hidden....

There may definitely be multiple options to do it...

Consider the following

You will be going to subscreen from a main screen..immediately before "CALL SUBSCREEN XXX ' statement write a module and set a global variable = 'X' if you need the text field to be hidden...

In the subscreen PBO'

Write the code

If the variable = 'X'.

Loop at screen.

If screen-name = 'TEXT_FIELD'.

"name of the text field in capslock

screen-active = 0.

Modify screen.

endif.

endloop.

Pls check and revert..reward if useful

Regards

Byju

0 Kudos

HI , I ONLY WANT TO DISPLAY DAT FIELD , BUT NOT HIDDEN , FIELD SHOULD APPER ON SCREEN BUT IN A MODE SO DAT WE CAN NOT CHANGE DAT FIELD.

0 Kudos

Hi rahul ,

so you should do like that

if screen-group1 = 'G4'.

" where G4 is the group assigned to that field

screen-active = 1.

screen-input = 0.

screen-output = 1.

screen-invisible = 0.

modify screen.

endif.

rewards points if helpful

0 Kudos

Hi,

loop at screen.

if screen-group1 = 'G1'.

screen-input = 0.

modify screen.

endif.

endloop.

reward points

Regards,

Prasanna

0 Kudos

Hi Rahul...

In that case do the same code

but replace

Screen-active = 0. "hides the field

by screen-input = 0. "makes the screen as display only

ie..

Loop at screen.

if screen-name = TEXT_FIELD

Screen-input = 0.

endif.

endloop.

Pls revert if u need more clarity

Reward if helpful

Regards

Byju

0 Kudos

SOLVED THE PRB