cancel
Showing results for 
Search instead for 
Did you mean: 

Comma

0 Kudos

Hi All,

I am workiing on Invoice script. It display duty amounts without comma.

I define fields in driver program like

DATA: BEGIN OF exctab OCCURS 0,

bcdamt(15),

cvdamt(15),

dutyamt(15) ,

END OF exctab.

E.g

If we take dutyamt it display like 64711.43

But i want to show amount like 64,711.43

so how to add comma in amount.

Thanks

Vijay

Accepted Solutions (0)

Answers (3)

Answers (3)

former_member181995
Active Contributor
0 Kudos

Suhas,

DATA: BEGIN OF exctab OCCURS 0,

bcdamt(15),

cvdamt(15),

dutyamt(15) ,

END OF exctab.

try to assign as type DMBTR to all amount rather than char type.

like :

bcdamt(15) type DMBTR ,

Amit.

Former Member
0 Kudos

HI,

insted of char declare them ass CURR fields...

former_member195383
Active Contributor
0 Kudos

hi...

it depends on ur SU3 settings....

go to tcode SU3->Defaults tab>in the decimal notation change it to required format.

save and then relogin and execute ur program...u ll get the desired result....

and also change the type of the fields to type KWERT

Edited by: Rudra Prasanna Mohapatra on Aug 6, 2008 1:36 PM

0 Kudos

Hi

I goto tcode su3 and cheak in decimal notation. The format mention there is correct.

I also define the field like

dutyam type kwert,

but it will give error

"EXCTAB-DUTYAM" must be a character-type data object (data type C, N, D, T, or STRING).

So how i solve this problem?

thanks

Vijay