Hello,
we try to read (larger) files with the filereadex function into a blob. Our application crashes with a "Bad runtime function reference" error. I tried with around 500 files and found 5 files with this error.
I also found this bug report https://apps.support.sap.com/sap/support/knowledge/preview/en/2475963 and I think it is the same problem. We use PB12.6 atm. Is this bug still there in PB 2017?
its an file upload to an API. Under normal circumstances the API is for uploading smaller documents (pdf, jpg, ...) so there is no problem. But we have a customer who wants to upload bigger files too. Here is some code
li_filenum = fileopen(gs_ablage_path + is_ablage, StreamMode!, Read!, LockWrite!)
filereadex(li_filenum, lb_file)
fileclose(li_filenum)
ls_adress = iou_kundenportal.is_kundenportal_domain + 'kundenportal/api/dokument_file/' + string(il_kundenportal_id) + '/'
lole_xmlhttp.open("PUT", ls_adress, false)
lole_xmlhttp.setRequestHeader("Authorization", "Token " + ls_token )
lole_xmlhttp.setRequestHeader("Content-Type", "*/*" )
lole_xmlhttp.setRequestHeader("Content-Disposition","attachment; filename=" + toolbox.uf_cleanfilename(extractfilename(is_ablage)))
lole_xmlhttp.setRequestHeader("Content-Length", string(len(lb_file)) )
lole_xmlhttp.send(lb_file)
I deleted all the error handling and so around it but yeah, thats what I try to do in a nutshell :)