2006 Nov 01 3:43 AM
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.
2006 Nov 01 3:45 AM
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.
2006 Nov 01 3:58 AM
2006 Nov 01 4:02 AM
2006 Nov 01 4:07 AM
2006 Nov 01 4:11 AM
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
2006 Nov 01 4:24 AM
yes sy-subrc = 0.
but error is come in transfer t_final to w_extract.