cancel
Showing results for 
Search instead for 
Did you mean: 

Error while using File Upload through Frontend

shiny_victoria
Explorer
0 Kudos

Hi,

I need to upload an EXcel file , read the content and save the data to a db table. I used the


<htmlb:fileUpload id = "FileUpload"
                            onUpload    = "HandleUpload"
                            upload_text = "Upload"
                     size        = "40"  />

But while calling the function for clipboard


CALL FUNCTION 'CLPB_IMPORT'
    TABLES
      data_tab   = excel_tab
    EXCEPTIONS
      clpb_error = 1
      OTHERS     = 2.
  IF sy-subrc <> 0.
    MESSAGE a037(alsmex).
  ENDIF.

It is throwing the 'message a alsmex 037 cannot be processed in plugin mode https'. Can you pleas guide me how to rectify this problem. Is there a note for this?

Regards,

Shiny

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

You can not use CLPB_IMPORT in web service. Just have a look at this

http://help.sap.com/saphelp_nw04/helpdata/en/eb/8c683c8de8a969e10000000a114084/content.htm

Former Member
0 Kudos
Former Member
0 Kudos

Hi Shiny,

Did you ever come across a solution to this problem? I'm having the same issue myself.

I have a function module that transfers the data from an excel file into database tables and when I try to call the FM from a BSP page I get the same error

  • Message A ALSMEX 037 cannot be processed in plugin mode HTTP

Just wondering if you ever solved this or found another way of uploading excel using BSP?

Thanks,

Darren

Former Member
0 Kudos
Former Member
0 Kudos

Dear Darren,

The problem comes when inside the ABAP code an ABAP message wants to be

set. This wont work in case of this service is a web service (through HTTP).

The cause of the problem can be that a message appear, but

this does not allowed through HTTP connection.

Regards,

Adrian