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

make changes in text file.

Former Member
0 Likes
855

Hi all,

we are uplaoding a text file by bdc but when we are importing our text file from some other system we are getting some box type symbol in that text file , how to delete those boxes before uploading it to sap

plz help

regards

sarabjit

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
820

HI,

where exactly you are getting the box type,

is that a text file which you are uploading?

loop the internal table after uploading , search for the box and delete..

regards,

7 REPLIES 7
Read only

Former Member
0 Likes
821

HI,

where exactly you are getting the box type,

is that a text file which you are uploading?

loop the internal table after uploading , search for the box and delete..

regards,

Read only

Former Member
0 Likes
820

Hi sarbajit,

you mentioned that when you importing the file boxes are appering in the file do you think so that boxes may be of the actually data insted of deleating the boxes check y it is happeing.if get assured that the data is correct after importing ,

use the replace button in the menu optin and replace the symble with space it will solove your problem .

Read only

Former Member
0 Likes
820

open your text file and press the SAVE AS option , here you can change ENDCODING is UTF-8 format.

Read only

Former Member
0 Likes
820

Hi,

That is aspecial character you need to remove this special character before you pass this data to BDC....


data: lv_char  type x value '0D'.
 do.
   if view_fields-value cs lv_char.
     replace lv_char with space into view_fields-value.
     condense view_fields-value.
     modify view_fields index lv_index transporting value.
   else.
     exit.
   endif.
 enddo.

here you might have to replace 0D with the correct value whihc you can see in dbug mode by clicking on the hex display button also try with '09 in place of 0D.

Regards,

Himanshu

Read only

0 Likes
820

thanks himanshu,

but can u plz suggest me how to check hex value of that symbol , i don't have any idea abt it.

thanks

regards sarabjit

Read only

0 Likes
820

Hi,

When in debug mode you can check the hex value of that field using the magnifying glass symbol on the right hand side of the value.

Regards,

Himanshu

Read only

Former Member
0 Likes
820

thanks a lot to all of you