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

BDC

Former Member
0 Likes
491

Hi ,

i hav reqirement yhat i need to transfer an excel file from legacy system and i want to update in SAP standard tables.

which is the best way to do?

regards,

rao

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
473

hi,

For uploading the data from excel file into the internal table use the function modules :

1. CALL FUNCTION 'TEXT_CONVERT_XLS_TO_SAP'

EXPORTING

I_FILENAME = ‘File path’

TABLES

I_TAB_CONVERTED_DATA = ‘Actual data’

or

2. CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'

EXPORTING

FILENAME = FILEPATH

I_BEGIN_COL =

I_BEGIN_ROW =

I_END_COL =

I_END_ROW =

TABLES

INTERN =

and for updating the data to sap database use call transaction or session method.

3 REPLIES 3
Read only

Former Member
0 Likes
473

first you have to upload data from excel to internal tables using FM: ALSM_EXCEL_TO_INTERNAL_TABLE...after that you can upload data using GUI_UPLOAD.

Reward if useful.

Dara.

Read only

0 Likes
473

Hi,

where should i write the function module,and the data in the excel shhet does nt hav fixed lengths.suppose i have a field by name amount :the value for amount are 304.45,4 respectively.will sap accept it?or we should give field lengths?

regards,

rao

Read only

Former Member
0 Likes
474

hi,

For uploading the data from excel file into the internal table use the function modules :

1. CALL FUNCTION 'TEXT_CONVERT_XLS_TO_SAP'

EXPORTING

I_FILENAME = ‘File path’

TABLES

I_TAB_CONVERTED_DATA = ‘Actual data’

or

2. CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'

EXPORTING

FILENAME = FILEPATH

I_BEGIN_COL =

I_BEGIN_ROW =

I_END_COL =

I_END_ROW =

TABLES

INTERN =

and for updating the data to sap database use call transaction or session method.