cancel
Showing results for 
Search instead for 
Did you mean: 

Copy the value of variable from main window to another window...

aris_hidalgo
Contributor
0 Kudos

Hello Experts,

I have a concern regarding smartforms. Currently, I am modifying an existing form

which is a sales invoice. There it shows the amount with VAT included(this is done in the main window)

.Now, my requirement is that I need to show that amount lets say 10,000 to another window

but I need to spell that in words. So, how do I copy the final value of that variable

that holds the amount with VAT(10,000) to another window and spell it in words?

Hope you can help me out here guys. Thank you and take care!

Accepted Solutions (1)

Accepted Solutions (1)

former_member193831
Active Participant
0 Kudos

Hi,

In smartforms you need to pass the value from where u are retrieing to the "Output parameters" in the Porgram lines top header.

Then u would be able to print it in another window.

To print the amount in words there is a Function module Spell_amount

Regards,

Vivek

**-> Reward points if helps.

Answers (1)

Answers (1)

Former Member
0 Kudos

hi

do in this way... after calculating the value. copy that into a global variable(declare this in global data of a form. now in the other window insert program lines and call FM-- SPELL_AMOUNT or HR_IN_CHG_INR_WRDS .

Note for the window (u want to print the total amount) in the CONDITION tab tick only after End of Main window.

i hope it clear now

Please Close this thread.. when u r problem is solved. Reward if Helpful

Regards

Naresh Reddy K