on 01-23-2009 11:27 AM
hi all,
I have a requirement where in i have to print amount in words. The user enters the amount in table rows, and the total in amount gets printed in another text field. I have put the code for sum in the exit event of the rows(cell) this is done through formcalc.
Now i have requirement to print the amount in words
1. Is there any function like SPELL in form calc? (i doubt there would be one...!!)
2. If there is no such funcrion, then how to implement this functionality? Can i some how call the FM SPELL in the interactive form or may be generate a event that would call FM SPELL in my WD componentand then print the result back in my interactive form?
All help will be appreciated.
Solved, it my self.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi Sandra,
Would be glad to do so, and here it goes....
1. I placed a SubmittoSap button from Native controls library, as i am using WD ABAP (Native).
2. In the interactive UIElement on the layout tab of my WD component, i created an event handler "PDF_MODIFY" on OnSubmit event
3. And within this method i put the code to read the context element which is bound to the element in PDF, and passed that value (amount in figures) to SPELL_AMOUNT Function module.
4. In the last and final step i called the method Set_Attribute to set the value (amount in words) to the desired element in PDF form.
And it was working after following all these steps.
Hey Runal,
I haven't had much experience with Interactive forms inside WDJ, but I think this will work...
In the Submit To SAP button, this code exists...
// DO NOT MODIFY THE CODE BEYOND THIS POINT - 710.20060821084622.325745.280724 - SubmitToSAP.xfo
ContainerFoundation_JS.SendMessageToContainer(event.target, "submit", "", "", "", "");
// END OF DO NOT MODIFY
This code triggers an event call to the backend.
What I would do is have a variable in your form that you set just before you click the button so you know what "event" you want to trigger, then of course, set it to null inside the method... when it goes back into the method in your web dynpro, you could then take the number, call the function module, and return the value to the screen.
In theory, this should work.
Hope this helps...
Cheers,
Kevin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
24 | |
11 | |
9 | |
7 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.