cancel
Showing results for 
Search instead for 
Did you mean: 

Regarding Amt in words in sap script

Former Member
0 Kudos

Hi Gurus.....

I have created paymeent print script.. I want to use amt in words function in sap script.

i know spell amount function.. but this function in which palce i put in prpg like before/after openform/start_form/write_form....and how can i pass in sap-script window????????

give me example...

Vishal

Jigar

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi ! SPELL_AMOUNT will have a structure called SPELL. In that structure , tha amount'll be saved in words in the field WORD or WORDS(just check it once) . you make use of that field while using SPELL_AMOUNT func.module. Assign this value to any of your internal table fields and make use of that as you need.

Former Member
0 Kudos

Hi Vishal,

If you are using standard Cheque form then u will find the Spell_amount function already used in the form.

former_member196280
Active Contributor
0 Kudos

Goto Standard RFFOUS_C and find for FM SPELL_AMOUNT.

Use it in the same way.

Regards,

SaiRam

Former Member
0 Kudos

Hi Vishal,

Call 'SPELL_AMOUNT' function module in your print program before write_form.

Pass the resultant value of the FM, using a text element to the sap script and display.

Print Program Code:

DATA v_int TYPE i VALUE '1000'.

DATA var LIKE SPELL.

CALL FUNCTION 'SPELL_AMOUNT'

EXPORTING

AMOUNT = v_int

LANGUAGE = SY-LANGU

IMPORTING

IN_WORDS = var.

call function 'WRITE_FORM'

exporting

element = 'TEXT'

type = 'MAIN'

window = 'MAIN'.

SAPScript Code:

/: TEXT " Text element

  • &var& " var is a variable which hold the result of the FM in your print program

Hope this helps.

Thanks,

Srinivasa

Message was edited by:

Srinivasa Bhanuprasad Moningi

Former Member
0 Kudos

Hi srinivas

its not working........

give me more suggetion..

Vishal