‎2007 May 22 10:53 AM
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.
‎2007 May 22 10:56 AM
Hi,
In PAI
Case sy-ucomm.
when 'BUTTON_NAME_IN_CAPS'.
*increase the count.
endcase.
Rgds
Rehma
‎2007 May 22 10:56 AM
Hi,
In PAI
Case sy-ucomm.
when 'BUTTON_NAME_IN_CAPS'.
*increase the count.
endcase.
Rgds
Rehma
‎2007 May 22 11:23 AM
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
‎2007 May 22 1:04 PM
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