Remove Invalid characters or Special Chars using by FM

Remove Invalid characters or Special Chars


We can remove special characters by using below standard functional module.


CALL FUNCTION 'SCP_REPLACE_STRANGE_CHARS'
      EXPORTING
        INTEXT      =
SOURCE_FIELDS-FIELDNAME
        REPLACEMENT = 46
      IMPORTING
        OUTTEXT     = RESULT.

                CONDENSE RESULT NO-GAPS.
   TRANSLATE RESULT TO UPPER CASE.
   IF RESULT CO '!'.
    RESULT = '.'.
   ENDIF.

1 comment:

  1. thanks dude, iam so cool after finding your blog information, its really usefull to me thank you so much.
    who are want to learn.http://goo.gl/i0ddiO

    ReplyDelete

Ads: