cancel
Showing results for 
Search instead for 
Did you mean: 

Hi Team, comma separator for the values

pooja08
Explorer
0 Kudos

I have to display the value from 234567890 to 234,567,890. Please suggest me any FM how to achieve this?

Its bit urgent, please provide the solution as soon as possible.

Thank you in advance

Sandra_Rossi
Active Contributor
0 Kudos
If you want a quick answer, please give details about "display" and about the type and length of your variable (DEC, string, etc.). Display where? If it's just to convert from string to string, don't say "display". Also indicate your ABAP version. I hope you understand, for your future questions.

Accepted Solutions (1)

Accepted Solutions (1)

Sandra_Rossi
Active Contributor

So, your question is about Smart Forms and the variable type is C in your ABAP program.

If you declare your variable as numeric (P, etc.), the number will be automatically rendered with the number format defined in the user settings. Note that if it's an amount, you should link the amount variable to a currency code variable in the Smart Form.

Please search the details in the forum.

Answers (3)

Answers (3)

pooja08
Explorer
0 Kudos

I am using it in smartforms and the data type is char15

Sandra_Rossi
Active Contributor
0 Kudos
Please do not post a solution. Instead, click on "show replies" then "comment".
Ganesh_Pandian
Explorer
0 Kudos
Edrilan_Berisha
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi,

 

you talk about an ALV grid or where are you displaying it?

Have you tried to change the data type to DEC? What data type are you using?

 

Best,

Edrilan Berisha

SAP S/4HANA Cloud Financials Development

pooja08
Explorer
0 Kudos
I am using the smartforms, Here i need to display the value with comma separated and i used the data type char15, Tried with integer also not worked