Skip to Content
0
Former Member
Jun 03, 2009 at 12:09 PM

Problem with REPLACE ALL OCCURRENCES in Smartform

366 Views

Dear All,

I am having a problem with REPLACE ALL OCCURRENCES when using it in Smartform.

The code from my Smartfom is as below :

LOOP AT zline INTO lwa_zline.
  REPLACE ALL OCCURRENCES OF '#' IN lwa_zline-tdline WITH space
              IN CHARACTER MODE.    
  MODIFY zline FROM lwa_zline.
ENDLOOP.

This code works fine if written in a report but does not replace character # when written in Smartform.

Pls help.

regards,

Jinson.