2013 Aug 20 1:22 PM
Hi,
we created a z program to upload documents using BAPI_DOCUMENT_CREATE2.
When we click on a custom field system open a popup asking the path from which import the document.
After this an error message compares saying that dms object has not been created.
Now my question is: "Is there any max number of chars for the directory?" I know in windows is 260 but in my case the directory and the file has less than 260 chars.
The file has a number of chars equals to 62 (this number doesn't include the extension i.e.: .pdf)
Thanks
Best regards
2013 Aug 20 1:27 PM
2013 Aug 20 1:27 PM
2013 Aug 20 1:35 PM
Yes it's a pdf
The network path is:
Z:\Supply Chain\_Acquisti\Contratti in essere\Fornitori Commerciali\2013
In the folder 2013 there is a document, the name of this file is: "Contratto d'Acquisto - Parti Commerciali - 20130130 da firmare.pdf"
If I upload it from a local path (i.e. my PC) or If I rename the document into "Prova.pdf" uploading works correctly.
2013 Aug 20 1:55 PM
Hi AA,
Is your Network Folder is Share able ? if (y)
LT_FILES-DOCFILE = " \\your source IP Address \ your share able folder name \ file name .pdf "
Example : \\ 192 .168.0.1 \ Share_Folder_Name \ File_Name.pdf
Regard's
Smruti
2013 Aug 20 2:01 PM
And you have a reasonable capability to parse the pdf into your fields for your BAPI?
Neal
PS: What function are you using to read the file? This probably gets more at the question that you asked about.
2013 Aug 20 2:07 PM
I renamed the document from "Contratto d'Acquisto - Parti Commerciali - 20130130 da firmare.pdf"
to Prova.txt and I tried to upload again the file from the network path "Contratto d'Acquisto - Parti Commerciali - 20130130 da firmare.pdf" and it works.
I think that is related to the lenght of the path but I don't know how many chars is the max limit
2013 Aug 20 2:54 PM
I click F1 in the popup with the path, then I get the name of the structure: RLGRAP-FILENAME
Double click on it and then I get the following:
FILENAME LOCALFILE CHAR 128 0 File locale per upload/download
2013 Aug 20 3:05 PM
2013 Aug 20 2:02 PM
Check the program after reading the document path it would be storing in a variable before passing to fm check the variable length it might be truncating.
Regards
2013 Aug 20 3:07 PM
You do know that by having chosen a correct answer that you will tend to get no more responses?
2013 Aug 20 3:27 PM
Yes I know that thanks,
I verified the structure RLGRAP-FILENAME and I can see a limit of 128 chars for the path
2013 Aug 20 5:11 PM