cancel
Showing results for 
Search instead for 
Did you mean: 

Down load to Application server

Former Member
0 Kudos

Hi,

That I am using GUI_DOWNLOAD TO down load my final table T_FINAL to presentation server I need to download my final table to Application server Please give me sample code and path to down load my table in to application server.

Regards,

Muthu

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Answers (1)

Answers (1)

Former Member
0 Kudos

hi,

plz refer to the code:

DATA:
  w_fname(60) VALUE  '.\itab',.      " File Name on Application 
              

OPEN DATASET w_fname FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.

  LOOP AT itab INTO wa.

    TRANSFER wa TO w_fname.

  ENDLOOP.                           

  IF sy-subrc EQ 0.
    message 'file downloaded' type 'S'.
  ENDIF.                               " IF SY-SUBRC EQ 0

  CLOSE DATASET w_fname.

with luck,

pritam.