‎2007 Jul 13 1:13 PM
Hi all,
I am creating one module pool program in which i am taking some I/O fields
for Input Output both possible...
Now i have also created one push button DISPLAY..
Now when user enter Serial Number and press DISPLAY button all other I/O fields other than Serial Number should fill and become input not possible.
All data coming but i dont know what to do to make input 0.
Is it possible?
Can anyone help me?
Thanks in advance.........
‎2007 Jul 13 1:20 PM
Hi,
Create a PBO module as follows.
MODULE init_screen.
MODULE init_screen OUTPUT.
LOOP AT SCREEN.
IF SCREEN-NAME = 'FIELD1' OR SCREEN-NAME = 'FIELD2'. " Put all your field checks here
SCREEN-INPUT = 0.
MODIFY SCREEN.
ENDLOOP.
ENDMODULE.
You can also group all the screen fields and use
SCREEN-GROUP1 = 'GROUP NAME' instead.
Regards,
Sesh
‎2007 Jul 13 1:20 PM
Hi,
Create a PBO module as follows.
MODULE init_screen.
MODULE init_screen OUTPUT.
LOOP AT SCREEN.
IF SCREEN-NAME = 'FIELD1' OR SCREEN-NAME = 'FIELD2'. " Put all your field checks here
SCREEN-INPUT = 0.
MODIFY SCREEN.
ENDLOOP.
ENDMODULE.
You can also group all the screen fields and use
SCREEN-GROUP1 = 'GROUP NAME' instead.
Regards,
Sesh
‎2007 Jul 13 1:26 PM
In your PBO module write this code.
loop at screen.
if screen-name = 'YOURFIELD .
if save_ok = 'DISPLAY'.
SCREEN-INPUT = 0.
else.
SCREEN-INPUT = 1.
endif.
modify screen.
endif.
endloop.
You need to do it for all your fields.
‎2007 Jul 13 1:28 PM
‎2007 Jul 13 1:33 PM
Hi,
You need to put it in PBO module as PBO modules are executed before the screen is shown to the user, so you will see the effect only if you put this code in PBO module.
Regards,
Sesh
‎2007 Jul 13 1:33 PM
‎2007 Jul 13 1:35 PM
‎2007 Jul 13 1:42 PM
need to write under PBO
example :
process on before-output.
module screen.-> double click on module
module screen.
loop at screen.
here write the code.
endloop.
endmodule.
Thanks
Seshu
‎2007 Jul 13 1:42 PM