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

about bdc uploading

Former Member
0 Likes
631

Iam new to sap, i done the program for uploading excel file in bdc format, but that flat file having headings.. my requirements is that flat file with headings also we want to upload ....In bdc uploading the excel file, in this excel file having headings then how to upload?

5 REPLIES 5
Read only

Former Member
0 Likes
591

Hi Priya,

U can try like the following pseudo code :

CALL FUNCTION 'TEXT_CONVERT_XLS_TO_SAP'

     EXPORTING

*     I_FIELD_SEPERATOR        =

     I_LINE_HEADER            =  'X'

       I_TAB_RAW_DATA           =  IT_RAW       " WORK TABLE

       I_FILENAME               =  P_FILE

     TABLES

       I_TAB_CONVERTED_DATA     = IT_DATATAB[]    "ACTUAL DATA

    EXCEPTIONS

       CONVERSION_FAILED        = 1

       OTHERS                   = 2.

Thanks

Vivek

Read only

0 Likes
591

Thank you vivek, it is working

Read only

Former Member
0 Likes
591

Hi Priya,

Could u pls give me the Excel format , So I can give u the code for tha EXCEL.

Thanks

Tarak

Read only

Former Member
0 Likes
591

Hi Priya,

When you are uploading the flat file you should not upload the heading to the database.that heading are for understanding purpose. remove the heading and move the flat file data to the internal table and upload the data to the database.

Thanks.

Pavan.

Read only

0 Likes
591

This message was moderated.