on 05-10-2009 10:18 AM
Hi Experts.
I wonder if there is any reading material that can help me about editing my output text file.
I defined a string and export it to a file. the problem is that i need the file begin at the second line.
didn't find any command would fulfil my request.
all the NEW-LINE's cmd are about printing right to the screen.
i also tried using the ASCII code and unfortunately it doesn't work...
Thanks alot!
Yuval.
> I wonder if there is any reading material that can help me about editing my output text file.
Well - SAP is not an editor...
> I defined a string and export it to a file. the problem is that i need the file begin at the second line.
>
> didn't find any command would fulfil my request.
>
> all the NEW-LINE's cmd are about printing right to the screen.
to the screen - if you output to a file?
> i also tried using the ASCII code and unfortunately it doesn't work...
Without example code it's impossible to help....
Markus
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Markus
that's what i wrote:
0. DATA: text_line(368) TYPE c.
1. OPEN DATASET p_file FOR OUTPUT IN TEXT MODE ENCODING DEFAULT
2. WITH NATIVE LINEFEED AT POSITION 12.
3. LOOP AT ls_output.
4. DATA: wa_ls_out LIKE LINE OF ls_output.
5. len_lifnr = strlen( wa_ls_out-lifnr ).
pos_lifnr = 8 - len_lifnr.
IF pos_lifnr > 0.
CONCATENATE
wa_ls_out-lifnr
str_len(pos_lifnr)
wa_ls_out-name1
INTO text_line.
ELSE.
CONCATENATE
wa_ls_out-lifnr
wa_ls_out-name1
INTO text_line.
ENDIF.
6. TRANSFER text_line TO p_file.
IF sy-subrc <> 0.
EXIT.
ENDIF.
ENDLOOP.
at line 0. "text_line" - keep a string, length of 368 chars.
at line 1. "p_file" is my output file.
at line 3. "ls_output" it's an internal table that include the relevant fields i want to represent in seperate
lines.
unfortunately, at the output file it's written as one long line, and i need it as seperate lines.
i really appreciate if u have any suggestion,
Anyway Thanks a lot.
Yuval.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.