‎2010 Feb 03 3:04 PM
Hi all,
I'm trying to create a variant to the program SAPF080. This program runs as a job once a month.
In here I need to create a variant to automatically determine the entry date. This entry date should be the last financial period (not equal to the month) until the day it runs.
Lets imagine that the period is from the 28 of January until the 25 of February. The report runs in the 10th of March.
The selection for the entry date should start on the 28th of january until the 10th of March.
How can I create a rule to dynamically use in the variant with this logic?
Regards,
Pedro
‎2010 Feb 03 3:17 PM
Hi,
I dont think its possible to write our own logic to calculate dates, but while saving variant you can see some standard sap functionalities to calculate the dates. You can use them, if any of them works for you then it would be great, otherwise you may need to create variants manually.
Thanks
‎2010 Feb 03 3:19 PM
Hi,
Check out below blog which discusses the same.
/people/vinod.vemuru2/blog/2010/01/04/how-to-create-a-dynamic-variant-and-setup-batch-job-with-dynamic-variant
Thanks,
Vinod.
‎2010 Feb 04 10:24 AM
‎2010 Feb 04 2:26 PM
Try this, When you save variant after you given the values (but dont give the fiscal date) you can see 'Selection variables' column, Select 'D' there and when you click on 'Name of Variable' you can see different variables selections, check to use one of them . I am not sure how to include our own calculated variable there. I will try to find it.
Thanks
Satyasuresh Donepudi