Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Variable calculation

I have a requirement where Week range variable is calculated based on User Entry to a Variable which is single value Week.

The Week infoobject is a Z one and not the standard one.

That is if user enters week 0102007 in the variable1, the second variable should have week range from 0012007 to 0102007.

I also have costcenter in the selection screen.

I am facing 2 problems.

First, when I debug and when i_step = 1, the i_t_var_range does not show any of the above mentioned variables but is showing 0calday which is not used in query design at all.

And it does not stop at my break-point when i_step = 2.

And also while subtracting week, that is, 0022007 - 3, for calculation purposes, it is giving value 9992007.

Is there any function module to calculate FiscWeek?


Former Member
Not what you were looking for? View more on this topic or Ask a question