on 08-25-2008 3:20 PM
Hi Friends
In a SAP Script I am passing a currency field to the subroutine as an i/p parameter and since it gets converted to character format in subroutine because of 'itcsy' , ihave deleted the trailing zeroes and decimal points from the field and performed calculations on the field, now i need to pass this char field back to SAP script but i need to display that field in currency format with commas and decimal points in the script...how do i do that???
Thanks
Vishal.
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Vishal,
When you pass the currency amount into the perform, no need to remove the trailing zeros and the decimal point.
Only thing you need to remove is the comma seperator as it gives a runtime error during calculation.
To convert it back to the format with comma, write the below command:
WRITE v_Item_total currency '2' to v_item_char.
CONDENSE v_item_char.
Here v_item_total is a number which is converted to comma seperated number and passed to char variable.
This char variable is then passed to the SCRIPT.
regards,
Gaurav.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
ihave deleted the trailing zeroes and decimal points from the field and performed calculations on the field
I dont think you need to delete trailing zeroes and decimals from the fields.
just check without that.
regards
padma
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
use write statment to move the character value back to currency field and pass currecny field to SCRIPT
write wf_char to wf_curr.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.