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

How to use fun module SAP_CONVERT_TO_XLS_FORMAT

Can any body give logic, how to use function module SAP_CONVERT_TO_XLS_FORMAT to download internal table data to Excel sheet.

Regards,

Naseer.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Dec 26, 2007 at 06:12 AM

    hi Nasser,

    This is kiran kumar.G.If we use the above function module we get the below function module.I can explain what are the neccesity parameters we have to use check it once.

    FUNCTION MODULE OUTPUT:

    CALL FUNCTION 'SAP_CONVERT_TO_XLS_FORMAT'

    EXPORTING

    • I_FIELD_SEPERATOR =

    • I_LINE_HEADER =

    i_filename =

    • I_APPL_KEEP = ' '

    tables

    i_tab_sap_data =

    • CHANGING

    • I_TAB_CONVERTED_DATA =

    • EXCEPTIONS

    • CONVERSION_FAILED = 1

    • OTHERS = 2

    .

    IF sy-subrc <> 0.

    • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

    • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

    ENDIF.

    PARAMETERS:

    I_FIELD_SEPERATOR = 'X'.

    i_filename ='FILE PATH'

    i_tab_sap_data = 'UR INTERNAL TABLE NAME'

    Award points if helpful.

    kiran kumar.G

    Have a Nice Day...

    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.