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

Exceute Pgm for second time

Former Member
0 Likes
806

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

6 REPLIES 6
Read only

Former Member
0 Likes
784

How often or under what circumstances will it be run?

Rob

Read only

0 Likes
784

Hi Rob,

The report will trigger for billing due list(tcode: vf04) which will be run twice in a day say mor n & evening.

Read only

Former Member
0 Likes
784

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

Read only

0 Likes
784

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

Read only

0 Likes
784

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

Read only

0 Likes
784

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