Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

error in the file

Hi I have an upload program whcih reads a file from server.

in the file iam getting the first record as


but actually there is no # in the file but while reading this record in debug mode iam finfing this # and

because of this it's going dump.though the # is not in file why iam getting this??please suggest

Former Member

data: c_val type c value CL_ABAP_CHAR_UTILITIES=>CR_LF.

replace all occurance of c_val from wa_itab with space.

This generally happens if the file is not writen in ASC format....


find the string lenght of the wa_itab subract by 1 and use offset to move the wa_final.

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question