2008 Jun 24 3:26 PM
Dear All,
I wanted to download data from T code FCHN, I know that I can download data on to my hard disk. Is there any way that I can download onto Unix Server.
Thank you
Regards
venkat
Dear All,
I wanted to download data from T code FCHN, I know that I can download data on to my hard disk. Is there any way that I can download onto Unix Server.
Thank you
Regards
venkat
2008 Jun 24 4:08 PM
With this abap code:
submit RFCHKN10 EXPORTING LIST TO MEMORY
AND RETURN
with par_xper = par_xper
with ............
the list of parameters here
.
CALL FUNCTION 'LIST_FROM_MEMORY'
TABLES
LISTOBJECT = ABAPLIST
EXCEPTIONS
NOT_FOUND = 1
OTHERS = 2.
CALL FUNCTION 'LIST_TO_ASCI'
EXPORTING
LIST_INDEX = -1
WITH_LINE_BREAK = 'X'
IMPORTING
LIST_STRING_ASCII =
TABLES
LISTASCI = it_lin
LISTOBJECT = ABAPLIST
EXCEPTIONS
EMPTY_LIST = 1
LIST_INDEX_INVALID = 2
OTHERS = 3
.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
OPEN DATASET FILE_PATH FOR OUTPUT IN TEXT MODE ENCODING NON-UNICODE.
IF SY-SUBRC EQ 0.
CATCH SYSTEM-EXCEPTIONS DATASET_READ_ERROR = 11
OTHERS = 12.
loop at it_lin.
transfer it_lin-line to FILE_PATH.
endloop.
CLOSE DATASET FILE_PATH.
ENDCATCH.
2008 Jun 24 4:11 PM
Venkat,
after displaying the O/P than see in menubar
list>export>spreedsheet or local file.Amit.