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

Problem in getting the screen name

aasim_khan
Participant
0 Likes
1,088

Dear Experts,

One of the columns in my table control depends on the werks (plant) field i.e. if the user enters 1102, the columns should get input-enabled and for other plants it should be shown as an output only field.

How do I need to go about it?

I also want to ask that is it possible to change the table control field name dynamically i.e.

from itab-coilno to zgts_mast-coilno

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,067

Hi

in PBO

loop at screen

if werks = 1120

if screen-name = 'WERKS'

screen-input = 1

else

screen-input = 0

ENDIF.

modify screen

endloop.

hope this would solve your problem

Regards

Ramchander Rao.K

Dear Experts,

One of the columns in my table control depends on the werks (plant) field i.e. if the user enters 1102, the columns should get input-enabled and for other plants it should be shown as an output only field.

How do I need to go about it?

I also want to ask that is it possible to change the table control field name dynamically i.e.

from itab-coilno to zgts_mast-coilno

9 REPLIES 9
Read only

Former Member
0 Likes
1,068

Hi

in PBO

loop at screen

if werks = 1120

if screen-name = 'WERKS'

screen-input = 1

else

screen-input = 0

ENDIF.

modify screen

endloop.

hope this would solve your problem

Regards

Ramchander Rao.K

Read only

0 Likes
1,067

This is not working in my table control. The field on my table control should get input enabled which is not getting in the above code.

Read only

0 Likes
1,067

Hi

where are you writing the above code

loop at itab with control tc.

endloop.

now declare a module

module modify_screen

in the above module you write the above code

Hope this would solve your problem

Regards

Ramchander Rao.K

Read only

0 Likes
1,067

Hi Ramchander,

The logic you gave is correct, however, the problem is there is no way you can check werks eq '1102' in PBO. Hence, it is not getting procesed

Read only

0 Likes
1,067

Hi asim,

Why not???

didn't you declare a variable for PLANT ???

had you declared a variable for PLANT you can get it,

yes.

try it.

regards

Ramchander Rao.K

Read only

0 Likes
1,067

Well, see Ramchander, I'll be entering werks as 1102 when the screen shows up, that will be in the header area of the screen. Now, there is a button 'Accept', as soon as the user hits this button and if he has entered plant as 1102, then two fields in the table control should get input-enabled, if the user is entering any plant other than 1102, then the fields should be shown as output-only.

You asked me to declare a variable named plant, but the variable will get filled up only when I am entering something on the screen i.e. this will trigger PAI event.

Read only

0 Likes
1,067

Yaaar,

in any case you can get the screen the way you want it to be.

for any value the use enters

regards

Ramchander Rao.k

Read only

0 Likes
1,067

But after PAI, PBO will be trigerred to display same screen.

OR

If you are calling another screen in your PAI, PBO of called screen will be called.

Regards,

Mohaiyuddin

Read only

Former Member
0 Likes
1,067

Hi Asim,

Ramchandra is right , by looping in screen you can do .

Amresh.