Skip to Content
0
Former Member
Nov 11, 2008 at 12:36 PM

headings in app server

12 Views

I need to transfer output data to application server, the data correctly went to app server, but how to set headings for the fileds,

my sending my code please help me

headings get appended to final internal table but in output we are not able to see.

please suggest any changes required in the below code

OPEN DATASET f_file FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.

gt_bseg-belnr = 'DOCUMENT'.

gt_bseg-bukrs = 'COMPANY CODE'.

gt_bseg-gjahr = 'YEAR'.

move gt_bseg-belnr to gt_final-belnr.

move gt_bseg-bukrs to gt_final-bukrs.

move gt_bseg-gjahr to gt_final-gjahr.

APPEND gt_final.

LOOP AT gt_setleaf .

move gt_bseg-belnr to gt_final-belnr

move gt_bseg-bukrs to gt_final-bukrs.

move gt_bseg-gjahr to gt_final-gjahr.

APPEND gt_final.

TRANSFER gt_final TO f_file.

CLEAR gt_final.

ENDLOOP.

CLOSE DATASET f_file.