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

i need a help for DATA transfer

Former Member
0 Likes
969

i want to data transfer ITAB to application server(linux)

through OPEN dataset.

i face a problem with error:

u see the code:

OPEN DATASET W_EXTRACT FOR OUTPUT FILTER 'compress'.

IF NOT T_FINAL[] IS INITIAL.

LOOP AT T_FINAL.

transfer t_final to '/dataintg/kltcm/test.txt'.

ENDLOOP.

ENDIF.

plz tell me

what is the problem with code.

i want to data transfer ITAB to application server(linux)

through OPEN dataset.

i face a problem with error:

u see the code:

OPEN DATASET W_EXTRACT FOR OUTPUT FILTER 'compress'.

IF NOT T_FINAL[] IS INITIAL.

LOOP AT T_FINAL.

transfer t_final to '/dataintg/kltcm/test.txt'.

ENDLOOP.

ENDIF.

plz tell me

what is the problem with code.

6 REPLIES 6
Read only

Former Member
0 Likes
943

OPEN DATASET W_EXTRACT FOR OUTPUT FILTER 'compress'.

IF NOT T_FINAL[] IS INITIAL.

*Transfer the data from internal table

LOOP AT T_FINAL.

  • transfer t_final to '/dataintg/kltcm/test.txt'.

TRANSFER T_FINAL TO W_EXTRACT.

IF SY-SUBRC <> 0.

MESSAGE E999(ZMM) WITH 'File not Transfered'(011).

ENDIF.

ENDLOOP.

ENDIF.

*For Close dataset.

CLOSE DATASET W_EXTRACT.

Read only

Former Member
0 Likes
943

What is your error?

Rob

Read only

0 Likes
943

file not transfer ' DATASET_CANT_CLOSE'

Read only

0 Likes
943

abap runtime error 'DATASET_PIPE_CLOSED '

Read only

0 Likes
943

Try:

OPEN DATASET w_extract FOR OUTPUT FILTER 'compress'.

CHECK sy-subrc = 0.

IF NOT t_final[] IS INITIAL.

*Transfer the data from internal table
  LOOP AT t_final.

* transfer t_final to '/dataintg/kltcm/test.txt'.
    TRANSFER t_final TO w_extract.

  ENDLOOP.
*For Close dataset.
  CLOSE DATASET w_extract.
ENDIF.

IF sy-subrc <> 0.
  MESSAGE e999(zmm) WITH 'File not Transfered'(011).
ENDIF.

Rob

Read only

0 Likes
943

yes sy-subrc = 0.

but error is come in transfer t_final to w_extract.