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: 

create HEADER AND FOOTER.

Former Member
0 Kudos

hi guys i need help from you

actually it is a outbound interface file format is ex.csv file ,i need to print the header and footer in the outbound file ex.csv file .

fields:record type,sequence number,y2k compilant indicator,date,time,request data name,client id -header. record type,sequence number,y2k compilant indicator,date,time,request data name,client id,record countfooter

Output:

IS00000000000+10000045sy-datum, sy-datlo,employee name,client id -


header

IE00000000000+10000045sy-datum, sy-datlo,employee name,client id,record count---footer.

thanking you

rajesh raj

1 ACCEPTED SOLUTION

amit_khare
Active Contributor
0 Kudos

Create an internal table with field as string.

Append all data along with Header as first and Footer as last of the data.

Download it.

3 REPLIES 3

amit_khare
Active Contributor
0 Kudos

Create an internal table with field as string.

Append all data along with Header as first and Footer as last of the data.

Download it.

0 Kudos

hi Amith thank for u reply could u provide me sample code or any other same type examples .

rajesh raj

Former Member
0 Kudos

Hi Rajesh Raj,

Is it posibble to adopt this logic for your requirement?

Declare a string type internal table.

Append the header, each record wanted to be downloaded and footer.

In appending each record, CONCATENATE if all fields are CHAR type, else use 'WRITE...TO' statement.

Finally, download it.

Regards,

R.Nagarajan.

-


We can -