cancel
Showing results for 
Search instead for 
Did you mean: 

Fiscal Year print Format in smart form

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

>

> 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

Answers (0)