Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

how can i find the fiscal year and amount in Words?

Former Member
0 Kudos

how can i find the fiscal year?

i want to print the financial year like 08-09 in smart form, how it is possible.

How can i write the Amount in Words?

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

You can use GET_CURRENT_YEAR to find the Fiscal year of the entered date.

CALL FUNCTION 'GET_CURRENT_YEAR'

EXPORTING

BUKRS = '1000' " Company Code

DATE = SY-DATUM " Date to find fiscal year for

IMPORTING

CURRM = w_currm " Current Fiscal Month

CURRY = w_curry " Current Fiscal Year

PREVM = w_prevm " Previous Fiscal Month

PREVY = w_prevy. " Previous Fiscal Year

Enter the date you need in the place of sy-datum.

Regards

Kiran Sure

6 REPLIES 6

GauthamV
Active Contributor
0 Kudos

hi,

u can find fiscal year in BKPF or BSEG table.

so use tht in ur smartform program.

u can write amount in words using function module SPELL_AMOUNT.

reward points if hlpful.

Former Member
0 Kudos

thanks gautham,

but i want to find the current fiscal year?

how it is possible?

Former Member
0 Kudos

try this fro fiscal year.


if month > 3 .
  year = sy-datum+0(4).
else.
  year = sy-datum+0(4) - 1.
endif.

Former Member
0 Kudos

hi,

Use FM SPELL_AMOUNT or HR_IN_CHG_INR_WRDS to convert amount in words ..


CALL FUNCTION 'SPELL_AMOUNT'
EXPORTING
LANGUAGE = SY-LANGU
CURRENCY = T001-WAERS
AMOUNT = SUM_UBKNT
FILLER = SPACE
IMPORTING
IN_WORDS = SPELL
EXCEPTIONS
NOT_FOUND = 1
TOO_LARGE = 2

Regards,

Santosh

Former Member
0 Kudos

hI,

1. For amount in words, use the fiunction module

SPELL_AMOUNT ,

2 .for fiscal year,

manual condition check,


if month > 3 .
  year = sy-datum+0(4).
else.
  year = sy-datum+0(4) - 1.
endif.

reply back

With Rgds,

S.BArani

Former Member
0 Kudos

Hi,

You can use GET_CURRENT_YEAR to find the Fiscal year of the entered date.

CALL FUNCTION 'GET_CURRENT_YEAR'

EXPORTING

BUKRS = '1000' " Company Code

DATE = SY-DATUM " Date to find fiscal year for

IMPORTING

CURRM = w_currm " Current Fiscal Month

CURRY = w_curry " Current Fiscal Year

PREVM = w_prevm " Previous Fiscal Month

PREVY = w_prevy. " Previous Fiscal Year

Enter the date you need in the place of sy-datum.

Regards

Kiran Sure