SAP, how to checkIn document files? -
i want create new document in sap. additional have files belongs document, these files want upload sap knwolegde base.
i'm using bapi_document_create2 create or bapi_document_checkin2 add files document info data. every thing works fine, except file upload or checkin.
i'm using documentfiles table. add row each file, set 3 fields:
row["storagecategory"] = "dms_c1_st"; row["docfile"] = "c:\temp\bom.pdf"; row["wasapplication"] = "pdf";
bapi erro message: "error while checking in , storing c:/temp/bom.pdf"
i set parameter
pf_ftp_dest = "sapftpa"; pf_http_dest = "saphttpa";
i have looked in log data (slg1). found following entry:
errmsg: error in opening file "..." reading (no such file or directrory) v1: scms_doc_create_files v2: 13
it nice if has idea , bring light in issue. in advance thomas
remember bapis run inside application server , not allowed make assumptions client side. means can't call sap gui , upload file there. c:\temp\bom.pdf has file on application server, not local machine!
Comments
Post a Comment