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

reg event capturing

Former Member
0 Likes
291

Hi all

i have a report . if i execute the report thr selection screen, i have set a variaale to '1'. and like that i have to count no of times that is executed?

regards

karthik

very urgent.

1 REPLY 1
Read only

Former Member
0 Likes
272

Hi

i think this code might help u this code is tht restrcing the execution for fixed no of times it might help u

plzz reward if it is usefull

*DATA:count,date LIKE sy-datum.

*

*GET PARAMETER ID 'MAX' field count.

*GET PARAMETER ID 'DAT' FIELD date.

*

*IF date is initial.

*date = sy-datum.

*ENDIF.

*

*IF date = sy-datum.

*count = count + 1.

*else.

*message e000(zmsgtab)."u con't execute it more than once in a day.

*endif.

*set PARAMETER ID 'MAX' field count.

*

*IF count > 5.

*count = 0.

*set PARAMETER ID 'MAX' field count.

*date = date + 1.

*set PARAMETER ID 'DAT' field date.

*message e000(zmsgtab)."u con't execute it more than once in a day.

*ENDIF.

*

*write:/ 'this is my program'.

plzz dont forget to reward