Skip to Content
0

How to eleminate # in transformation ENDROUTINE

Jan 29 at 10:44 AM

6

avatar image
Former Member

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

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

0 Answers