2007 Feb 15 10:24 PM
Hi Experts,
My prog will be shceduled to run background.
I need to control certain logic & validations if my program is triggerred again for second time & so forth.
How to handle this? Please help.
Thanks
Dany
Hi Experts,
My prog will be shceduled to run background.
I need to control certain logic & validations if my program is triggerred again for second time & so forth.
How to handle this? Please help.
Thanks
Dany
2007 Feb 15 10:31 PM
2007 Feb 15 10:38 PM
Hi Rob,
The report will trigger for billing due list(tcode: vf04) which will be run twice in a day say mor n & evening.
2007 Feb 15 10:58 PM
Hello Dan,
Better design a table with the report name, sz-uname, sz-datum and sz-uzeit.
Update this table when it does not contain an entry with the current date.
WHen it contains an entry with current date and make ur validation.
Hope this will solve ur problem.
Vasanth
2007 Feb 15 11:13 PM
Hi Vasanth M ,
Actually i am running a report for set of different invoices in one batch. All these invoices will have same batch number at a given time.
The same invoices may appear in the second batch run but they should have a diffrent batch#. When batch# is different even though the invoice no is same, i need to carry on further validation.
Can anyone suggest accordingly?
thanks
2007 Feb 16 12:48 AM
Hi,
Is the job defined w.r.t. to the batch #?
I mean is the batch # assigned to the background job, if yes, then
check the table TBTCO with jobname = batch#. You can get the executed date , time, released by user and several other info.
Maybe with this you can manage to check if it is a duplicate one or not.
But, this will not contain the contents of the job being executed.
Just go through this table.
Regards
Subramanian
2007 Feb 16 2:50 AM
Hi Subramanian PL,
My report triggers for the trans VF04. The invoice # can be the same for the next billing run and in order to prevent this from using the same vbeln in the next run i am using a batch# which contains multiple invoices (VBAP-VBELN).
When VF04 is exec again, my report gets triggered (in background) and now i should check if any VBELN has entered from the last billing run. So i need to check if there is again a vbeln which is being exec for the second time. This can be eliminated by checking vbeln with batch# which is generated using a number range.
So how to check if my report is getting triggered for the second time ,.etc.
Pls help me how to do this.
thanks
Dany
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |