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

input parameters

Former Member
0 Likes
579

Hi all,

when i click a button the next button must be visible. so i wrote a code like this.

MODULE user_command_9000 INPUT.

CASE sy-ucomm.

WHEN 'CL1'.

LOOP AT SCREEN.

if screen-group1 = 'G1'.

screen-active = 1.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

endcase.

next button is not visible.

please tell a solution

Edited by: sivakumar87 on Feb 10, 2011 5:34 AM

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
552

Hi,

I am giving a sample piece of code.Hope it will help you.Please check whether it is working or not.

Declare globaly the variable.

DATA check type string value 'INITIAL'.


Module change_screen OUTPUT.
      if check = 'NEW'
         loop at screen.
            if screen-group1 = 'G1'.
                  screen-active = 1.
              MODIFY SCREEN.
            ENDIF.
        ENDLOOP.
     endif.
  Endmodule.
 
  Module user_command INPUT.
      case okcode.
           when 'CL1'.
               clear okcode.
               check = 'NEW'.
               leave to screen XX. "this screen
      endcase.
  Endmodule.

Regards,

Suvajit

4 REPLIES 4
Read only

Former Member
0 Likes
552

Hi,

Write the same code in PBO module means before calling the screen again.

Regards,

Suvajit

Read only

Former Member
0 Likes
553

Hi,

I am giving a sample piece of code.Hope it will help you.Please check whether it is working or not.

Declare globaly the variable.

DATA check type string value 'INITIAL'.


Module change_screen OUTPUT.
      if check = 'NEW'
         loop at screen.
            if screen-group1 = 'G1'.
                  screen-active = 1.
              MODIFY SCREEN.
            ENDIF.
        ENDLOOP.
     endif.
  Endmodule.
 
  Module user_command INPUT.
      case okcode.
           when 'CL1'.
               clear okcode.
               check = 'NEW'.
               leave to screen XX. "this screen
      endcase.
  Endmodule.

Regards,

Suvajit

Read only

Former Member
0 Likes
552

Hi Shiva

first check in which group you have defined the group for that button

according to your code it should be in group 1 only.

Thanks

Lalit

Read only

Former Member
0 Likes
552

Hi Siva,

Code written by you is correct but has to be written in PBO & not in PAI.

Goodluck.