Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

download data from T code FCHN

Former Member
0 Likes
534

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

2 REPLIES 2
Read only

Former Member
0 Likes
470

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.

Read only

Former Member
0 Likes
470

Venkat,

after displaying the O/P than see in menubar 

list>export>spreedsheet or local file.

Amit.