Skip to Content
0
Former Member
Dec 09, 2009 at 07:32 AM

Getting error "file cannot be opened" while runningFM BAPI_DOCUMENT_CREATE2

850 Views

Hi,

We are trying to upload document through Function Module BAPI_DOCUMENT_CREATE2. But we are getting below error.

TYPE E

ID 26

NUMBER 107

MESSAGE "File cannot be opened"

Original files are stored in SAP ECC Application Server.

Below I/Ps are given to Function Modules.

DOCUMENTDATA

DOCUMENTTYPE APP

DOCUMENTNUMBER

DOCUMENTVERSION 00

DOCUMENTPART 000

DESCRIPTION Upload from Server

USERNAME TPL_MM_ABAP

STATUSINTERN FR

DOCUMENTFILES

SOURCEDATACARRIER tpeccdev

STORAGECATEGORY ZST_AHMD

WSAPPLICATION JPG

DOCPATH /usr/sap/data/dms/file0023/712FL20070616.0002068.jpg

We also given full rights to folder "file0023" on OS level.

Thanks in advance....

Sunny