on 04-08-2009 7:02 AM
hiii
I am upload image from my PC to MIME
This is My bsp view page.
<htmlb:form method="post" encodingType="multipart/form-data">
<htmlb:fileUpload id = "myUpload"
size = "20"
onUpload = "OnInputProcessing()" />
</htmlb:form>
In DO_HANDLE_EVENT using this code\
DATA: lr_mime_rep TYPE REF TO if_mr_api.
DATA: file_name TYPE string.
DATA: fileUpload TYPE REF TO CL_HTMLB_FILEUPLOAD.
fileUpload ?= CL_HTMLB_MANAGER=>GET_DATA(
request = request
id = 'myUpload'
name = 'fileUpload' ).
file_name = fileUpload->file_name.
and i m getiing error here
cl_gui_frontend_services=>gui_upload(
EXPORTING
filename = file_name " Name of file
filetype = 'BIN'
IMPORTING
filelength = lv_length " File length
CHANGING
data_tab = lt_data " Transfer table for file contents
EXCEPTIONS
OTHERS = 19 ).
this meathod is not gui supported.
plz tel me how it works in BSP.
Hi Prashant,
I also faced the similar issue and I got the solution which you can find in [this|https://forums.sdn.sap.com/click.jspa?searchID=24609379&messageID=6684222] thread.
You are right, you can not use cl_gui_frontend_services in BSP.
Hope this helpful.
Regards,
Abhinav
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Do not open many threads for the same topic.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.