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

Active/Deactive screen controls

Former Member
0 Likes
650

Hi all!,

If the case is like there are several controls (e.g. text boxes) witch are controlled by several buttons.

Which will behave (active/deactive) according to corrsponding buttons i press.

How can i do? how can i handle loop in pbo?

what wud be the flow logic sequence?

thanks in advance.

5 REPLIES 5
Read only

Former Member
0 Likes
618

You need to use the following in the PBO.

Loop at screen.

if screen-name eq 'Name of you field'.

screen-input = 0.

modify screen.

endif.

Endloop.

There are many other options that can be done, you will need to take a look at the structure of 'SCREEN' when in debug mode.

Read only

Former Member
0 Likes
618

if ok_code = 'button1'.

loop at screen.

IF screen-group2 = 'PRK' OR screen-group2 = 'NPK'.

  • for display mode, give '1' for input enabled

screen-input = '0'.

MODIFY SCREEN.

ENDIF.

endloop.

endif.

Message was edited by: Anupama Reddy

Read only

0 Likes
618

hi,

Try teh code.

      loop at screen.
       if screen-name = "abc".
        screen-input = 0.
        modify screen.
       elseif...
        screen-input = 0.
        modify screen.
       elseif...
        screen-input = 0.
        modify screen.
       endif.
      endloop.

Regards,

Richa

Read only

Former Member
0 Likes
618

hi

good

loop in pbo->

PROCESS BEFORE OUTPUT.

MODULE status_0100.

LOOP WITH CONTROL flights.

MODULE fill_table_control.

ENDLOOP.

PROCESS AFTER INPUT.

MODULE cancel AT EXIT-COMMAND.

LOOP WITH CONTROL flights.

MODULE read_table_control.

ENDLOOP.

MODULE user_command_0100.

http://help.sap.com/saphelp_nw04/helpdata/en/9f/dbac4435c111d1829f0000e829fbfe/content.htm

thanks

mrutyun^

Read only

anversha_s
Active Contributor
0 Likes
618

hi,

sorry for the earlier post

rgds

anver