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

module pool

Former Member
0 Likes
422

hi,

how can i increment a variable value when i press a pushbutton.

for example.. if i press a button for 2 times ..i need variable value to be 2.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
402

Hi,

In PAI

Case sy-ucomm.

when 'BUTTON_NAME_IN_CAPS'.

*increase the count.

endcase.

Rgds

Rehma

3 REPLIES 3
Read only

Former Member
0 Likes
403

Hi,

In PAI

Case sy-ucomm.

when 'BUTTON_NAME_IN_CAPS'.

*increase the count.

endcase.

Rgds

Rehma

Read only

former_member196299
Active Contributor
0 Likes
402

HI Chaitanya ,

data: count type i .

Lets say , Count is the screen field element which will indicate about the number of clicks ..

In PAI module ...

case sy-ucomm.

when ' click'

increase the value of count to 1 .

write the needed code .

endcase.

thats it ....

Regards,

Ranjita

Read only

Former Member
0 Likes
402

Hi,

DATA: ok_code TYPE sy-ucomm,

save_ok LIKE ok_code,

num TYPE i value '1',

output(8) TYPE c.

CALL SCREEN 100.

MODULE user_command_0100 INPUT.

save_ok = ok_code.

CLEAR ok_code.

CASE save_ok.

WHEN 'BUTTON_EXIT'.

LEAVE PROGRAM.

WHEN 'BUTTON_1'.

output = i + 1.

ENDCASE.

ENDMODULE.

rgds

Deepak