Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Workflow emails displaying comma as decimal separator

Former Member
0 Likes
814


Hello,

My workflow for claims approval sends out email to the requester when a claim is approved.

The problem is the amount mentioned in the email text is of the format 2.355,00.

I want it to be displayed like 2,355.00.

I have set the User's default settings for the approver in SU01 to "1,234,567.89", but that did not help.

Please help.

Thanks,

Ashu


Hello,

My workflow for claims approval sends out email to the requester when a claim is approved.

The problem is the amount mentioned in the email text is of the format 2.355,00.

I want it to be displayed like 2,355.00.

I have set the User's default settings for the approver in SU01 to "1,234,567.89", but that did not help.

Please help.

Thanks,

Ashu

4 REPLIES 4
Read only

Abhijit74
Active Contributor
0 Likes
693

Hello,

Use function module STRING_REPLACE to convert the decimal notation.

CALL FUNCTION 'STRING_REPLACE'

EXPORTING

pattern = ','

substitute = space

changing

text = lv_text

EXCEPTIONS

WRONG_STRING_LENGTH = 1

OTHERS = 2.


And also check

report zrich_0004.

data: c(100) type c.

data: length type i.

data: offset type i.

c = '1223,54'.

length = strlen( c ).

offset = length - 3.

translate c+offset(1) using ',.'.

write:/ c.

Or use replace all occurrences of statements

Thanks,

Abhijit

Read only

Former Member
0 Likes
693

Thanks for the reply Abhijit.

I can use that code, but the thing is the emails display correct format in our Development and Quality clients, only in Production this format is displayed.

Could this be some setting?

Thanks and Regards,

Ashu

Read only

0 Likes
693

Check the requestor decimal notation in SU01, also check the company code decimal notation in OY01.

Read only

Former Member
0 Likes
693

Thanks everyone for the replies.

Just found out the setting of the Workflow background user that is responsible for sending emails was incorrect.

I corrected the same and problem is resolved.

Thanks again.

Regards,
Ashu