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: 

garble code in debug mode

Former Member
0 Kudos

hi,

i downloaded a txt file from 3rd party software and upload to sap. all country are ok except 1 country.

in 1 of the line, there is a character at the begining of the line :

锘?20:070511

it should actually be :20:070511.

this character only can be seen in debug mode. i tried to delete the line and type in manually in the txt file and reupload to sap but the character still there.

what could be the cause and how to do away with it?

thanks

6 REPLIES 6

Former Member
0 Kudos

Hi

Just check the length of the variable. If you try to move contents larger in size than the variable length, then '*' will come as first character. Maybe this could be a reason. I would suggest that you push the offset exactly the same number of characters the variable can hold.

Regards

Navneet

0 Kudos

hi,

no issue to the length of variable. as i said, all other country have no problem but only this particular country.

i try to delete and type in manually in the text file and upload to sap again but in debug mode still shows the character.

thx

former_member223537
Active Contributor
0 Kudos

Hi,

Open the file in Notepad & click on SAVE AS

Select encoding as Unicode or UTF-8 and then upload the file.

In GUI_UPLOAD use the appropriate Code page specific to that country.

Best regards,

Prashant

0 Kudos

hi,

i try Unicode or UTF-8 but also cannot.

i am using ws_upload. may i know what do you mean appropriate code page?

thanks

former_member223537
Active Contributor
0 Kudos

Hi,

If possible, please use GUI_UPLOAD, if its available on your system.

CODE PAGE helps identify SAP, which Texts/characters its dealing with.

Each country has different code page.

Chinense say 1100

Best regards,

Prashant

0 Kudos

hi,

i change to gui_upload but i got short dump of type conflict when calling a fm.

the problem due to file has a different field type.

why like that? ws_upload has no problem on this.

also, how to define the code page? its not in the parameter. i saw it in the fm.

thanks