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

remove tab space

Former Member
0 Likes
4,468

hi ,

when iam uploading the file , the file contains the tab at the end of the record , those tabs are appended in the last field of the record along with the actual value and saved in the fields of the sys, one of the ways is i clean the filw and remove the extra tabs at the end of the record, or how can i clean the field value or free the field from the tab value

4 REPLIES 4
Read only

Former Member
0 Likes
1,727

while uploadding the file in CG3z

defualtly it will be in the binary i guess

change it to ASC

hope it will work

with regards

s.janagar

Read only

Former Member
0 Likes
1,727

You can shift it.

SHIFT wa-field RIGHT DELETING TRAILING cl_abap_char_utilities=>horizontal_tab.

Regards.

Read only

Former Member
0 Likes
1,727

Hi,

What transaction are you using for BDC . As i am not getting your problem exactly. As per my understanding restrict your that internal table field which is getting tab. For eg if your bdc internal table is like this

data: begin of itab occurs 0,

pernr like pa0000-pernr,

end of itab.

write like this.

data: begin of itab occurs 0,

pernr(7),

end of itab.

May be this can solve your problem. other explain clearly with code.

Regards,

Himanshu

Read only

Former Member
0 Likes
1,727

Hi ,

Use CONDENSE command on that field.

Regards,

Himanshu