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 sheet uploading problem

Former Member
0 Likes
298

Hi Experts,

How to upload excel sheet into sap, what is the function module to be used.

Thanks and Regards,

Thirukumaran. R

Moderator message - Please search before asking - post locked

Edited by: Rob Burbank on Jul 3, 2009 11:58 AM

1 REPLY 1
Read only

Former Member
0 Likes
269

Hi,

Please use the below function module

-- To Convert Excel file to Internal table.

CALL FUNCTION 'TEXT_CONVERT_XLS_TO_SAP'

EXPORTING

I_TAB_RAW_DATA = TAB_RAW_DATA

I_FILENAME = P_FNAME

TABLES

I_TAB_CONVERTED_DATA = GT_XLDATA1

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.

ELSE.