I have what would be a simple thing. A need to have leading zero retained on a variable..that holds a month.
I have a field that is 20090501 and I want to make it 20090401... that is take 1 month off
But problem is the calculation does not give leading zeros
... here is very cut down version of what I am doing
DATA: lv_Period(8) type c,
lv_mm(2) type c.
lv_mm = '05'.
lv_mm = lv_mm - 1. "becomes 4. " how do I make it "04".
concatenate '2009' lv_mm '01' into lv_Period. " this becomes 2009401 and not 20090401