Skip to Content
0
Sep 12, 2007 at 05:31 AM

How to add spaces in a string

180 Views

Hi ,

i have a string .

i want to replace 10 chars from offset 257 to 267 with 'SAPTIG '

i have used replace statement:

REPLACE SECTION offset 257 LENGTH 10 OF l_string WITH 'SAPTIG '

but not working.

It replaces starting 6 chars , itdoesnt consider the 4 spaces at the end of 'SAPTIG '.

Pls help