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

code

Former Member
0 Likes
686

Hi experts,

see the below code.

CALL METHOD CL_GUI_FRONTEND_SERVICES=>CLIPBOARD_IMPORT

IMPORTING

DATA = EXCEL_TAB1

EXCEPTIONS

CNTL_ERROR = 1

OTHERS = 4.

IF SY-SUBRC <> 0.

MESSAGE A037(ALSMEX).

ENDIF.

The EXCEL_TAB1 contains only one field of 4096 characters.

When i see the contents of EXCEL_TAB1 in debugging ,

it containd # in between....

How can we remove those #....?

Regards

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
642

hi,

do like this

<b>translate EXCEL_TAB1 using '# '.

condense s no-gaps.</b>

suppose take this

data:s(10) type c value 'ab#c'.

translate s using '# '. (don't forget to give 1 space after '#' inside single quotes)

condense s no-gaps.

write:/ s.

o/p will be abc.

Reward points if it helps you

Regards,

Sowjanya

Message was edited by: sowjanya s

5 REPLIES 5
Read only

Former Member
0 Likes
642

This is the following post to my previous..

Suppose the EXCEL_TAB1 contains '#'...how can we remove it..can we do it by searching that #...?..how can we do it?

Regards

Read only

0 Likes
642

Look at the help for the command REPLACE

Read only

Former Member
0 Likes
642

Usually, ABAP uses the character '#' to represent (unicode) characters, that cannot be displayed, i. e. asian characters ...

Read only

Former Member
0 Likes
643

hi,

do like this

<b>translate EXCEL_TAB1 using '# '.

condense s no-gaps.</b>

suppose take this

data:s(10) type c value 'ab#c'.

translate s using '# '. (don't forget to give 1 space after '#' inside single quotes)

condense s no-gaps.

write:/ s.

o/p will be abc.

Reward points if it helps you

Regards,

Sowjanya

Message was edited by: sowjanya s

Read only

Former Member
0 Likes
642

hi

good

check with your there might be some length prob that is the reason it is entering one junk character in that, check out the field value in the data base, wheather it contain any # or not, if not than there must be some hidden value it is getting while debugging the process.

thanks

mrutyun^