Skip to Content

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

Hi expert. replace . with space

HI expert.

I want to replace '.' with space . so I proceed below.

itab is composed to two feilds.

date1 type char10

date2 type char10

the field's values are '2011.01.01'.

REPLACE ALL OCCURRENCES OF REGEX '\b(.)\b'

IN TABLE ITAB WITH SPACE

RESPECTING CASE.

result.

date1 : '2011010120'

date2 : '110101'

but I want the result below.

date1 : '20110101'

date2 : '20110101'

what should i do?

please help.

Former Member
replied

Hi,

As u mention ur date is 2011.01.01 u want to make it as 20110101 as use the FM CONVERT_DATE_TO_INTERNAL.

REGARDS,

ZAFAR

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question