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

'ALSM_EXCEL_TO_INTERNAL_TABLE issue

Former Member
0 Likes
638

Hi

I tried below fm to download data. But sy-subrc value is 2

pls help me

CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'

EXPORTING

filename = p_pcfile

i_begin_col = 1

i_begin_row = 2

i_end_col = 255

i_end_row = 65000

tables

intern = it_material

EXCEPTIONS

INCONSISTENT_PARAMETERS = 1

UPLOAD_OLE = 2

OTHERS = 3

.

IF sy-subrc <> 0.

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

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

ENDIF.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
563

hi,

Check out the file format and the path ...Refer the below path for a piece of code for reference

http://www.sapdev.co.uk/file/file_upexcelalt2.htm

Regards,

Santosh

3 REPLIES 3
Read only

Former Member
0 Likes
563

Hi ,

Check if the file name is correct .

Regrads

Arun

Read only

Former Member
0 Likes
563

Hi

Check the type of parameters which you are passing in sub-routine , and make comments of error messgae to avoid run time message.

Aditya

Read only

Former Member
0 Likes
564

hi,

Check out the file format and the path ...Refer the below path for a piece of code for reference

http://www.sapdev.co.uk/file/file_upexcelalt2.htm

Regards,

Santosh