cancel
Showing results for 
Search instead for 
Did you mean: 

in Scripts how to print the values in currence format

Former Member
0 Kudos

Dear abap guru's,

I am working on Purchase Order Script, copy from the standard script, after that wrote a one perform , in that added one new field to script, but value is printed like this formate : 1000.00, but i want to print 1,000.00 like this currence format. let me know the any solution

thanks to all

raj.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

hi

Menu SYSTEM-USERPROFILE-OWNDATA how the decimal notation is ...

&symbol(K)& which will ignore the conversion routines

&EKPO-MENGE& -> 1,234.560

&EKPO-MENGE(T)& -> 1234.560

surya

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi,

Another solution is Get the user settings of Currency format from USR01. According to that field USR01-DCPFM you can adjust the value using one external subroutine in script window.

Former Member
0 Kudos

helpful answer

former_member486972
Discoverer
0 Kudos

Use Command SET COUNTRY 'US' at start of element where u want to display the value

Edited by: Satwik Rao on Aug 26, 2009 9:11 AM

Former Member
0 Kudos

take currency data type and display the field.

Former Member
0 Kudos

i wort the external subrotine (Perform), in that perform use the ITCSY structuer, itcsy structure data type is CHAR only, so i get the data in CHAR formate only, that char formate has to print in currence formate let me know the information, if u know any solution.

thanks

raj

Former Member
0 Kudos

Hi ,

When you are populating the value in perform instead of assigning the value (using = ) pass it using WRITE TO.

Like : WRITE lw_total TO output-value.

Declare lw_total as currency field.

Regards,

Rajitha.