Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

AL11 directory file to DMS Data upload

Former Member
0 Kudos
1,584

Hi,

I have uploaded my .pdf ( or any extension ) in my AL11 directory using CG3Z . Now i want to create document

using uploadedfile as originals. Which BAPI should i use and which parameters to pass?

Thanks

Parag

1 ACCEPTED SOLUTION

former_member182387
Active Participant
0 Kudos
1,165

Hi,

You can use the BAPI "BAPI_DOCUMENT_CREATE2"

and pass the details of originals in teh Table parameter DOCUMENTFILES" ( You can directly give the AL11 link)

PLease study the documentation of this BAPI for more details

6 REPLIES 6

former_member182387
Active Participant
0 Kudos
1,166

Hi,

You can use the BAPI "BAPI_DOCUMENT_CREATE2"

and pass the details of originals in teh Table parameter DOCUMENTFILES" ( You can directly give the AL11 link)

PLease study the documentation of this BAPI for more details

0 Kudos
1,165

Hi,

Where do i have to put the path of the al11 link?

I had put it in: documentfiles-docfile, like /var/load/Data/manuals/123.pdf

I get an error.

Edited by: Niki Vandersteen on May 18, 2011 5:09 PM

0 Kudos
1,139

hello,

I have tried this and document number for DMS is getting generated but the file size is zero KB but i can see the file is stored properly in AL11 directory can you help me how to achieve the correct method please..

 

Srija
Discoverer
0 Kudos
1,062

Hi ,

Have you solved this issue? I am also facing this. Can you help me if it is solved?

matttosz
Newcomer
0 Kudos
657

Hey guys, I was facing the same problem, my files were being saved but with 0 kbs, the solution found was to upload the file through the API_CV_ATTACHMENT_SRV api.

Tks

0 Kudos
244

We need to use only the API service not BAPI_CREATE_DOCUMENT2 to avoid files were being saved but with 0 kbs.

Thank you

Raghav