on 09-24-2019 2:28 PM
Hello All,
i need to get quarter value along with 0fiscper ( 0fiscper format is 001.2019, 002.2019..etc).
we have 0fiscvar , fiscyear , 0fiscper3 in flow. Using these how can we get quarter value through routines/bex options.
if possible pls provide syntax since am new to ABAP.
Thanks
Raki
yah i will do the same. i have developed code but facing few issues. will try to solve by tomorrow.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If you are able to fix your issue, requesting you to close this discussion.
also we can create a custom infoobject zquarter type char and length 7 , alpha conversion.
write a field routine by mapping 0fiscper to zquarter.
code :
DATA : LV_PER1 TYPE N.
DATA : LV_YEAR1 TYPE bdatj.
** target field: ZQUARTER
*$*$ begin of routine - insert your code only below this line *-* * Note the _M class are not considered for DTP execution.
* Breakpoints must be set in the _A class instead.
"insert your code here
LV_PER1 = SOURCE_FIELDS-FISCPER+4(3).
lv_year1 = SOURCE_FIELDS-FISCPER(4).
CASE LV_PER1.
WHEN '001' OR '002' OR '003'.
CONCATENATE 'Q1.' LV_YEAR1 INTO RESULT.
WHEN '004' OR '005' OR '006'. CONCATENATE 'Q2.
' LV_YEAR1 INTO RESULT.
WHEN '007' OR '008' OR '009'.
CONCATENATE 'Q3.' LV_YEAR1 INTO RESULT.
WHEN '010' OR '011' OR '012'.
CONCATENATE 'Q4.'
LV_YEAR1 INTO RESULT.
ENDCASE.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
we have created a custom infoobject liek 0fiscper and laoded hierarchies manually from 001.2016 to 012.2027 and its quarters. . now we are getting quarters.and support teams have to perform year end activity to update quarters values for newyear after december 2027. in jan 2028 first week they can maintain using rsa1 or rsh1 for custom object.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey Ravi,
If your company's calendar and fiscal calendar are same. You can always calculate Quarters based on fiscal period(which will be similar to your calmonth and calquater ).
I would suggest you go with creating a routine at your cube/ADSO level for Quarter calculation, rather than trying to do it at Bex.
If you are willing to do that Bex, Virtual Char is an option i can think of, but that will be bit expensive in terms of query performance for bigger result set.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey Ravi,
If you are planning to go for End routine, you can use 0FISCPER directly to calculate calquarter. I am not sure, why calquarter not being a key field will impact it in any way. All it will be doing is read the values from FISCPER and based on your logic it will populate the quarter in its format YYYYQ .
User | Count |
---|---|
89 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.