Skip to Content

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

# symbol in application server file

Hi Everyone,

I am picking one text file from application server in my program.The format is:

The format of the file is

ITM^^95010620T9S7^^

CONSYMU600408140GE785799475247.00

CTN100069350408001759498163450030443202400027810

While saving the text file in application server,SAP automatically inserts the character # at the end of each line and the file gets stored in this format in application server.

ITM^^95010620T9S7^^#

CONSYMU600408140GE785799475247.00#

CTN100069350408001759498163450030443202400027810#

What does this symbol # represents?

When i read the data in my internal table, the symbol # gets appended at the end of the field.

I am not able to separate the symbol # from value 27810.

I tried with this option also(carriage return)

CONSTANTS: con_cr type x value '0D'.

But not able to split my last field from symbol #.

Any idea how to get rid of symbol #.

Thanks in advance.

Regards,

Tarun

Tags:
Former Member
Former Member replied

Hi Tarun,

Use this code.

data: l_sep1 TYPE c,

l_sep = cl_abap_char_utilities=>cr_lf.

REPLACE ALL OCCURRENCES OF l_sep IN l_wa_data-data WITH space.

Thanks

Swagatika

0 View this answer in context

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question