on 10-01-2014 6:25 AM
Hi All,
I have a requirement to show previous month/current year based on system date e.g. today date is 01.10.2014, my variable should show 09.2014.
To achive above, I have created formula variable with customer exit as processing type and choose date under curreny/unit dimension, output shows 0/0/000. If choose time it is showing time format
Pleae give some inputs.
Regards
Naani
Naani,In my eyes you can get the month and year from date using formula variable with replacement path but the format will not be like this 09.2014 it will be in number format.
Reason we do not have month dimension under currency/unit tab in formula variable.
Hope this helps.
Regards,
AL
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi All, Thanks for your feedback.
My requirements is to create formula variable to use in columns, the problem is
If I choose date under curreny/unit dimension, output shows 0/0/000. If choose time it is showing time format
Please give some inputs.
Regards
Naani.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi, As our friends suggested, this can be achieved without using customer exit. Create Formula variable on month with replacement path. In replacement Tab, select replace variable with and provide your input variable name there and set offset start as '0' and offset length as '6' ,since system considers date as 20141001. Your result will be 10.2014 and offset -1 will give 09.2014. Hope this helps.
Regards,
Dinkar Adem
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
above requirment not required customer exit,
you can easely acheive the creating formula variabls and using the offset functions in formula variables.
please look at above document.
Thanks,
Phani.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Naani,
create the variable for 0CALMONTH field, & include the below code in your customer exit and get the required output format.
date = sy-datum.
year = date+0(4).
month = idate+4(2).
if month = 1.
month = 12.
year = year - 1.
else.
month = month - 1.
endif.
CONCATENATE year month '1' INTO l_s_var_range-high.
Regards
Sureshkumar C.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
80 | |
9 | |
9 | |
7 | |
7 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.