Application Development 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: 

Header filed in the output text file

Former Member
0 Kudos

Hi all,

I am extracting the vbak data into one internal table and using GUI_download function module i am creating a text file and sending this vbak data to that file.

i am getting all the data and fields, but i want to give the header for all the fields(Short text), can any body plz send the code for this.

BALU.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi

U can use fm DD_GET_FIELD_INFO

Max

2 REPLIES 2

Former Member
0 Kudos

Hi

U can use fm DD_GET_FIELD_INFO

Max

0 Kudos

Sorry

The fm is DDIF_FIELDINFO_GET

So

DATA: T_HEADER LIKE STANDARD TABLE OF DFIES WITH HEADER LINE,
      T_VBAK LIKE STANDARD TABLE OF VBAK,
      T_FILE(10000) OCCURS 0 WITH HEADER LINE.

* Download the label:
DATA: POS.
LOOP AT T_HEADER.
 WRITE: T_HEADER-SCRTEXT_S TO T_FILE+POS(10).
 POS = POS + 10.
ENDLOOP.
APPEND T_FILE.

* Here append the data from T_VBAK to T_FILE

Max