2010 Jan 05 5:54 AM
Hi ,
I want logic to Terminate my ABAP- Program if the day is Sunday.
Please suggest possible ways to do this in Program code.
Thanks
2010 Jan 05 5:59 AM
Hi Gaurav,
You can use the FM DAY_IN_WEEK
It will return 7 for sunday.
Regards,
Amit Mittal.
2010 Jan 05 5:59 AM
Hi Gaurav,
You can use the FM DAY_IN_WEEK
It will return 7 for sunday.
Regards,
Amit Mittal.
2010 Jan 05 6:04 AM
2010 Jan 05 6:07 AM
Hi Gaurav,
go to sm36 to schedule the job. enter job name and start the wizard. the wizard will ask you at a point as according to which factory calander do you want to excute the job. select appropriate one which doesnt list sunday .
Hope this resolves the issue.
Thanks
Viquar Iqbal
2010 Jan 05 6:22 AM
Hi,
This you can do while creating a variant.You can create variant such that the job should not execute on a particular day.
Hope it helps.
Regards
Basav