Skip to Content
author's profile photo Former Member
Former Member

funtion module to export header and item data

Hi friends,

I have two internal tables in which one is header data and other is item data.

Now i want to downlaod this data into excel file in which i need to get multiple items under each header data.

And alos i need header text display to columns names on the top in excel file.

Is there any funtion module which support this funtionality.

Could you please help me to solve this.

Thanks,

sathish

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Jun 15, 2008 at 12:45 PM

    Hi Satish,

    Two options.

    1. Take one more internal table(Final) and Loop at ur item table, read the header table and append the data accordingly. Finally download the data to excel using fm GUI_DOWNLOAD.

    For geeting headers first download the headers only(No data).

    Now call this FM again for downloading the actual data and set the FM attribute APPEND to X. Now it will append the actual data to the headers in the excel instead of overwriting the headers.

    2. Display the data in Hierarchical ALV and then download to excell.

    I think second option will be easier and flexible. Just u have to call 2 FMs.

    Thanks,

    Vinod.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.