Application Development and Automation 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: 
Read only

Excel Header

former_member184495
Active Contributor
0 Likes
611

Hi,

my requirement is to download my internal table to an excel with header,

i created another internal table with header, and inserted it to index 1.

Program gives me a dump 'Conversion error'.

My last 3 fields of internal table are marc-minbe, mard-labst and mbew-verpr, if i do not use these fields in my header internal table, i am getting header for other fields.

how could i resolve the issue.

cheers,

Aditya.

P.S Is there any other way to add Headers, some say GUI_DOWNLOAD has an option of FIELDNAMES, but since my version is different i am not getting that option...

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
425

Use that FM twice:

First time download only header

Second time append table contents to the same file (import parameter append = 'X')

3 REPLIES 3
Read only

Former Member
0 Likes
426

Use that FM twice:

First time download only header

Second time append table contents to the same file (import parameter append = 'X')

Read only

Former Member
0 Likes
425

Hi Aditya,

The problem is the declaration for the last three fields.

instead of define the internal table fields as

minbe type marc-minbe

labst type mard-labst

verpr type mbew-verpr

declare them as

minde(17),

labst(17),

verpr(15),

in the final internal table.

Regards,

ravi

Read only

former_member184495
Active Contributor
0 Likes
425

answered