Use TVARV date calculation for date range?

Use TVARV date calculation for date range?
Hello,all.I haven't used TVARV for R/3 but had once in R/2 for one date parameter and we had a nightly job that updates the entries.Now,I'm thinking whether to create a new TVARV variable to use for my date range select-option or just calculate the dates within the program at S-O-S.What are the pros and cons of these two ways?Is using a TVARV variable more accurate?I plan to schedule a batch job that will execute at the start of every next quarter.I want to have the date range with low value of start of previous quarter and high value of end of previous quarter.Example:Code:Select allsy-datum (also run date) = 20030701 (start of next qtr.) date-low = 20030401 (start of prev.qtr.) date-high = 20030630 (end of prev.qtr.) Which would you recommend for me to use?It looks like if I go the TVARV approach,I would need a separate logic/abap to update my TVARV variable?Experts,I need your advise!Thanks.Aui
chouk 1年前 已收到1个回答 举报

苗可心 幼苗

共回答了12个问题采纳率:83.3% 举报

KeithS ,your first answer is correct but not the second one. The problem withthe dynamic variant if your process did not work for few days in betweenand your program is scheduled based on the dynamic variant you might loose processing of few days data. TVARV is correct. You will have last run date stored in TVARV and your next run of the program picks up the data from the last run date.snoopyaui, use the TVARV and some code to ur program accordinglysaper 查看原帖

1年前

3
可能相似的问题
Copyright © 2024 YULUCN.COM - 雨露学习互助 - 17 q. 0.069 s. - webmaster@yulucn.com