Skip to Content
avatar image
Former Member

How to eleminate # in transformation ENDROUTINE

Hi SAP Gurus,

I would like to eleminate permittet Characters like "#" and '!' (first place in a string) in an ENDROUTINE of a transformatio. So far I did the elemination in a field routine:

Code example:
RESULT = SOURCE_FIELDS-SGTXT.
IF RESULT(1) = '!'.
RESULT(1) = ' '.
endif.

* Hash is not permitted at all
while RESULT CA '#'.
RESULT+sy-fdpos(1) = ' '.
endwhile.

Is there a way to put this logic in an ENDROUTINE.

Regards

Volker

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

0 Answers