‎2008 Jan 08 12:59 PM
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.
‎2008 Jan 08 1:05 PM
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