Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Replace a string in a character field with a amount value

Hi,

I have a text field in which I want to replace a string with an amount value. while am trying to replace it , it gives me some empty space.

For example:

amount = '1200 '

message = 'The STIP amount is &1'

in my code :

replace &1 with message into message.

the result is

'The STIP amount is 1200 '

I dont want the space after 1200.

I tried for condense no-gaps also but it is not working ..

What may be the problem?

Can you suggest some solution for this?

Regards,

Vimala

Tags:
Not what you were looking for? View more on this topic or Ask a question