on 09-20-2013 4:01 PM
Hi All,
I am doing BW implementation for Retail company.
For Eg: As we people know calender year starts with 1st Jan to 31st dec and Fiscal Year starts with 1st April to 31st May ie Standard
Now my requirement is that this retail comapny has business defined on other parameters
Its like..
7th April to 6th May --> They consider as April
7th May to 6th June --> They consider as July
...
and so on
For Year they consider
7th April 2013 to 6th April 2014 ---> 2013
Now since we have calender year starting with 1st Jan to 31st dec and Fiscal Year starting with 1st April to 31st May the reports are coming according to this format.But I want reports according to the format shown Above.
Thanks
Mayur
Hey All
Thanks for your help
Mayur
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I Assume:
7th April to 6th May --> They consider as April
7th May to 6th June --> They consider as July May <-- one month back.
I don't know how your Fiscyear is.
but to calculate zyear & zcalmonth you need to have a normal date field in your source (say zsydate)
Write an end routine as below.
day = zsydate+6(2).
month = zsydate+4(2).
year = zsydate+(4).
if day < 07 AND month <= 04..
year = year-1.
endif.
if day < 07.
month = month - 1.
endif.
concatenate year month into zcalmonth.
zyear = year.
Thus it will calculate month & year as per ur requirement
Harshawardhan.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I feel your code is incomplete you have only considered the days before 7 .How about days after that ?
Suppose if my date is 08.04.2013 so in which category it will fall.
According to his logic it should come in month april right but in your code i do not find this condition.
Kindly update accordingly..
Regards,
AL
Hi All,
For example if I make new ZFISCYEAR ,ZCALYEARand ZCALMONTH then where will I mentiion the starting date ie 7 to end date 6
Thanks
Mayur
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Mayur,
I will give you some idea.
As you know your requirement is fully customized one. You have to create custom time characteristics by taking the templates of Fiscal year and Calyear.
You have to write field level routines to populate ZFISCYEAR and ZCALYEAR with the respective new logics. Take an ABAPer's help to achieve the same.
Regards,
Suman
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI
Do you need this in addtion to fiscalyear/period? If you need this in the datamodel you need to create a characteristic referencing 0fiscper and then code the logic in each routine you add your new time characteristic.
If you only want to do this on the reporting level you need to code it in cmod. Either way this as to be done with some abap logic.
hope that clarifies
Martin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.