I have to upload file of any kind using Web Dynpro into SAP R/3 and call BAPI_DOCUMENT_CREATE2 function.
I tried to use BAPI_DOCUMENT_CREATE2 PF_FTP_DEST="SAPFTP" parameter to upload local client "C:\xxx.doc" file but I got function dump because it is web application running under Portal.
I tried to store the file in Web Dynpro server directory but this is Windows server and SAP Unix server can't reach the file.
I tried to upload the file (using fileupload ui) and pass it in bin format (RAW) to RFC function but after that I don't know which standard function I should use to store this RAW format file in SAP directory.
Does anyone have a good idea how to solve this problem? Thanks.
Chang Chung Chi