2005 Apr 05 6:55 AM
Hi all,
could you show me the example ABAP code how create writethe .txt file. And how write CRLF during create this file.
Thanls a lot.
Hi all,
could you show me the example ABAP code how create writethe .txt file. And how write CRLF during create this file.
Thanls a lot.
2005 Apr 05 7:05 AM
for creating files on the application server use OPEN DATASET COMMAND. For more on thiis check out the ABAP Key work documentation.
open dataset <file name with path> for output in text mode.
transfer <data> to <filename with path> .
close dataset <filename with path>.
And for CRLF
concatenate <b>string1</b> cl_abap_char_utilities=>cr_lf <b>string2</b> to <b>strings</b> .
Regards
Raja
2005 Apr 05 7:07 AM
Hi,
you need 3 commands (look F1 too!)
to create file on application server:
1) open dataset file for output in text mode
2) loop at itab.
transfer itab to file.
endloop.
3) close dataset file
regards Andreas
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |