Application Development and Automation 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: 
Read only

Problem with string

Former Member
0 Likes
662

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
Read only

Former Member
0 Likes
590

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

Read only

Former Member
0 Likes
590

Hi

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

CL_ABAP_CHAR_UTILITIES=>CR_LF

Max

Read only

Juwin
Active Contributor
0 Likes
590

Kindly Search for Non printable character on SCN.

Thanks, Juwin