Prevent user from submitting
the same jobname ZXXX twice
tables: tbtco.
data: t_jobcnt(1) type n,
t_sdluname like tbtco-sdluname,
t_strtdate like tbtco-strtdate,
t_strttime like tbtco-strttime.
select * from tbtco where jobname = 'ZXXX'
and strtdate = sy-datum
and status = 'R'.
t_jobcnt = t_jobcnt + 1.
if t_jobcnt = 1.
t_sdluname = tbtco-sdluname.
t_strtdate = tbtco-strtdate.
t_strttime = tbtco-strttime.
endif.
endselect.
if sy-subrc = 0.
if t_jobcnt < 1.
message e123 with
t_sdluname 'have execute the program on'
t_strtdate t_strttime.
endif.
endif.
More Function Module
Functions / SAP
Script / ALV
Tables
Database Table
ABAP Books List
ABAP/4 Certification,
Programming, Smartforms, Sapscripts and Object Oriented Programming Books
Smart Forms
SAP Smartforms
ABAP Menu:
ABAP Example Hints
and Tips
Return to Index:-
SAP ABAP/4 Programming,
Basis Administration, Configuration Hints and Tips
(c) www.gotothings.com All material on this site is Copyright.
Every effort is made to ensure the content integrity.
Information used on this site is at your own risk.
All product names are trademarks of their respective
companies. The site www.gotothings.com is in no way affiliated with
SAP AG.
Any unauthorised copying or mirroring is prohibited.
|