Application Development 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: 

Updateing excel sheet

Former Member
0 Kudos

Hi,

I have got a task to write my BDC program such tht my end user will update the excel sheet using BDC Txcode as he updates the data in his local machine.

For this the logic that i have used is i have selected my maximum value from my table and that i have holded i a local variable and that local variable i have assigned in my begin of row. But it is taking me to RUN time error.

My code...

data: SL TYPE I,

S TYPE I.

SL = 0.

S = 0.

SELECT MAX( FASLN ) INTO S FROM ZRPFORMA1.

SL = S + 1 .

CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'

EXPORTING

filename = P_FNAME

i_begin_col = 1

i_begin_row = SL

i_end_col = 44

i_end_row = 5

TABLES

intern = IT_FILE_UPLOAD

.

where u can see i have assigned SL in the begin of my row, i want to know whether this is correct or wrong.

Thks

3 REPLIES 3

Former Member
0 Kudos

I think it will be correct.

Former Member
0 Kudos

I think The short dump occurs because of output length, check the data type and length of FASLN.

correct your select statement as bellow

SELECT count( distinct FASLN ) INTO s FROM ZRPFORMA1

or correct data type and lenght oif variable S

Thanks

Ganesh

Former Member
0 Kudos

Close.