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: 

Making screen-input 0 in module pool

Former Member
0 Kudos

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.........

1 ACCEPTED SOLUTION

0 Kudos

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

8 REPLIES 8

0 Kudos

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

Former Member
0 Kudos

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.

0 Kudos

Hi

Thanks for ur help...

I have to write it into PBO module?

0 Kudos

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

0 Kudos

yes u have to write in PBO..

Regards

Prax

0 Kudos

its saying that

SCREEN is not a database table.

0 Kudos

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

0 Kudos

Hi,

Can you show us the code?

Regards,

Sesh