Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with string

Former Member
0 Kudos

Dear all,

I used BAPI

I have in following chars in:

     EXEMPLE          FR #ఀ
How to remove this special chars (#ఀ)? Moreover the offset is some times different (if spaces or letter).

LV_STRING+220(30) = EXEMPLE       (OK)

LV_STRING+220(30) =      EXEMPLE          FR #ఀ       (KO)

I don't understand the difference...

Thanks for your help.

David

3 REPLIES 3

Former Member
0 Kudos

Hi David,

This may be due to the "Carriage Return" in your string.

You can use SPLIT command at CL_ABAP_CHAR_UTILITIES=>CR_LF. to get of rid of that.

Check for more type of character attaributes for the above mentioned class .

R

Former Member
0 Kudos

Hi

Probably it's the character for the end of a record, try to use

CL_ABAP_CHAR_UTILITIES=>CR_LF

Max

Juwin
Active Contributor
0 Kudos

Kindly Search for Non printable character on SCN.

Thanks, Juwin