Dear Experts,
Let me put the requirement and what I have done so far.
I wanted to copy my current years data ( jan through dec...may consist of actuals and plan ) and wanted to have it as the Plan for Next Year data.The user from the web interface selects the forecast year / period based on which he data will be selected and copied.
To do that I used a copy function .I am able to copy the records bu using the web interface .I created a variable that reads the current forecast year / period and derives year out of it , goes into loop and gets all 12 periods that user sees at the time of the selection of forecast year / period .
Then I changed my fiscal year to the new ficsal year for which I want my plan.
What needs to be done!!
When I have to copy the this years data as the plan of the next year data I also need to change the YEAR in all my time characteristics wherever it is appearing eg fiscal year / peirod , calendar year / month etc .
So wht i thought was I would do is i want to extract the values of my Fiscal Year/Period first ..out of that I want to take year and priod values separately in two different varibale .
Once that is done I will increment the year by the factor according to my requirement and the period would reamian the same.
The last step would be to concatenate these two things year period back & then will pass the values.
Now for this I need to write the ABAP code which i have never done and where I need your help.
Please suggest.
Regards,
Ankit