2008 Dec 02 4:23 AM
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
2008 Dec 02 4:26 AM
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
2008 Dec 02 4:26 AM
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
2008 Dec 02 5:21 AM
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.
2008 Dec 02 5:36 AM
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
2008 Dec 02 6:54 AM
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
2008 Dec 02 7:13 AM
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
2008 Dec 02 7:24 AM
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.
2008 Dec 02 7:28 AM
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
2008 Dec 02 8:27 AM
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
2008 Dec 02 4:30 AM
Hi Asim,
Ramchandra is right , by looping in screen you can do .
Amresh.
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |