on 06-16-2009 6:00 AM
i want to print fiscal year in this format 2008-09 below is the code ... the major issue is it prints like that
2008- 2009 kindly help me in this
CALL FUNCTION 'GET_CURRENT_YEAR'
EXPORTING
bukrs = '1000'
date = sy-datum
IMPORTING
prevy = fisc_year.
CONCATENATE fisc_year '0630' INTO fisc_day.
temp = fisc_year + 1 .
CONCATENATE fisc_year '-' temp INTO temp1
Regards
Ammad
>
> i want to print fiscal year in this format 2008-09 below is the code ... the major issue is it prints like that
> 2008- 2009 kindly help me in this
>
>
CALL FUNCTION 'GET_CURRENT_YEAR' > EXPORTING > bukrs = '1000' > date = sy-datum > IMPORTING > prevy = fisc_year. > > CONCATENATE fisc_year '0630' INTO fisc_day. > > temp = fisc_year + 1 . > temp = temp+2(2). "ADD this line > CONCATENATE fisc_year '-' temp INTO temp1
Add the above said line, this will solve your problem....
Regards
Karthik D
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
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.