Script to load documents in KM Repository DB mode
Is there any good documentation on writing a script to load documents into a KM repository that is set up in DB mode?
In the past we had this repository as an FSDB and we could create scripts to upload to the file system. Now in DB mode we need to do the same.
Thanks,
Matt
Thanks Julian.
Can you suggest how to open the webDAV from a batch file?
Copy C:/MyData/Test1.txt //webDAV/Folder1/Test1.txt
Thanks,
Matt
Similar Messages
-
Scripting to load all pdfs in a month into the place command?
Hello, I was wondering if anyone knows of a script that allows for you to place all pdfs within a set date range from a folder into an InDesign document? I am looking to do my monthly report and each month I have to go out and get each one, would be nice to load the place tool with all the pdfs I have done with a set date range and then just place them accordingly. Is there something out there like this and/or am I missing something obvious?
Thanks!
BIM Sorry tomaxxi, am I suppose to be inputting something somewhere here in
regard to the dates? I would need an example like for lets say the month of
Nov. I try to paste this and save it in the script editor but it keep
saying that the file cannot be saved. Any ideas? Please bear in mind your
speaking to a guy who has like zero knowledge when it comes to scripts.
Best regards,
Robert
From: tomaxxi <[email protected]>
To: Robert Borchardt <[email protected]>
Date: 11/08/2010 03:29 PM
Subject: Scripting to load all pdfs in a month into the place command?
Sorry for delay...
I just tested script and it's working fine for me here.
I created 4 sample PDF-s with just one page, then started script,
selected exported PDF-s, script sorts them by creation date and loads
placegun.
So, all you need to do, is to start script and select documents you want to
place.
I changed script little, so make sure you use this one:
if(app.documents.length != 0){
var myFiles = File.openDialog("Select Files:", "*.pdf", true);
if(myFiles != null){
myFiles.sort(function ( a, b )
if ( a.created < b.created )
return -1;
if ( a.created > b.created )
return 1;
return 0;
app.activeDocument.place(myFiles);
}else{
alert("No files selected!");
}else{
alert("No documents opened!");
tomaxxi
http://indisnip.wordpress.com/ -
Loading documents and attaching them to business objects
Hi,
I am trying to load documents (Word and PDF files) into a content management server linked to a SAP CRM system. The documents need to be attached to business objects such as interaction records (BUS2000126) and service tickets (BUS2000116).
I have experimented with FMs <b>BDS_BUSINESSDOCUMENT_CREATEF</b> and <b>ARCHIV_CONNECTION_INSERT</b> but haven't yet found the right combination of values. The best I have done is to create a link which is visible in the GUI as an icon, but when I double click on it, I get an error message saying that the document does not exist (error 404).
The import parameters I am using in BDS_BUSINESSDOCUMENT_CREATEF are:
LOGICAL_SYSTEM = [blank]
CLASSNAME = ZCSIP_LTR (a value from table TOADV)
CLASSTYPE = BO
CLIENT = [default]
OBJECT_KEY = [blank]
FILES
DOC_COUNT = 00000001
COMP_COUNT = 00000001
COMP_ID = [blank]
DIRECTORY = U:\DOCUMENTS\TEST DATA\
FILENAME = FA.PDF
MIMETYPE = application/pdf
SIGNATURE
DOC_COUNT = 00000001
PROP_NAME = BDS_CONTREP
PROP_VALUE = ZT (my content repository name)
The FM returns a GUID as the OBJECT_KEY ...
Then I am using ARCHIV_CONNECTION_INSERT as follows:
ARCHIV_ID = ZT
ARC_DOC_ID = [GUID returned by BDS_BUSINESSDOCUMENT_CREATEF]
AR_OBJECT = ZCSIP_LTR (a value from table TOADV - as above)
MANDANT = [default client as above]
OBJECT_ID = [GUID of the object I want to attach the document to]
SAP_OBJECT = [Business object identifier] e.g. BUS2000126
DOC_TYPE = PDF
Can what I need to do be achieved through just using BDS_BUSINESSDOCUMENT_CREATEF? What import parameters should I use? What values should they contain?
Many thanks in advance,
PeterHi,
BDS classname BUS2032 and classtype BO
but function module 'BDS_BUSINESSDOCUMENT_CREATEF' and cl_bds_document_set class method
here is the code..
DATA: o_document_set TYPE REF TO cl_bds_document_set,
wa_signature LIKE bapisignat,
i_signature LIKE bapisignat OCCURS 1,
wa_files LIKE bapifiles,
i_files LIKE bapifiles OCCURS 1,
i_object_key LIKE bapibds01-objkey.
CREATE OBJECT o_document_set.
MOVE: '1' TO wa_signature-doc_count,
'1' TO wa_files-doc_count,
'c:\temp' TO wa_files-directory,
'1.jpg' TO wa_files-filename.
APPEND wa_signature TO i_signature.
APPEND wa_files TO i_files.
i_object_key = '0000261877'.
BREAK-POINT.
CALL METHOD o_document_set->create_with_files
EXPORTING
classname = 'BUS2032'
classtype = 'BO'
CHANGING
object_key = i_object_key
files = i_files
signature = i_signature
DATA : files LIkE BAPIFILES OCCURS 1 WITH header line.
files-doc_count = '1'.
files-directory = 'c:\temp\'.
files-filename = '1.jpg'.
APPEND files.
CALL FUNCTION 'BDS_BUSINESSDOCUMENT_CREATEF'
EXPORTING
LOGICAL_SYSTEM =
classname = 'BUS2032'
classtype = 'BO'
CLIENT = SY-MANDT
OBJECT_KEY = '0000261877'
IMPORTING
OBJECT_KEY =
tables
files = files
SIGNATURE =
EXCEPTIONS
NOTHING_FOUND = 1
PARAMETER_ERROR = 2
NOT_ALLOWED = 3
ERROR_KPRO = 4
INTERNAL_ERROR = 5
NOT_AUTHORIZED = 6
OTHERS = 7
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF
And check the OSS Note 317250.
<b>Reward points</b>
Regards -
Issue in WAD 7.0 regarding opening document from MIME repository
Hi Experts,
I am facing an issue in WAD 7.0 regarding opening document from MIME repository..
My requirement
I want to have a button , on clicking of this button one excel file ( already located at MIME Repository) should open in a new window.
To achieve the same, I have added one button. and also added one java script web item in my web template.
And as per my understanding, I need to write command/code in the script web item.
I have tried with several standard commands available, but not yet succeeded.
Please suggest the appropriate command or code , that I can put into the java script web item.
Also please provide me, if there is any other solution.
Thanks and Regards,I think you might be posted in the frong forum, what is WAD 7?
this forum is for WebIntelligence related questions, part of Business Objects software suite. -
WAD 7.0 issue regarding opening document from MIME repository
Hi Experts,
I am facing an issue in WAD 7.0 regarding opening document from MIME repository..
My requirement
I want to have a button , on clicking of this button one excel file ( already located at MIME Repository) should open in a new window.
To achieve the same, I have added one button. and also added one java script web item in my web template.
And as per my understanding, I need to write command/code in the script web item.
I have tried with several standard commands available, but not yet succeeded.
Please suggest the appropriate command or code , that I can put into the java script web item.
Also please provide me, if there is any other solution.
Thanks and Regards,
Biswarup GhoshYes I tried it at first with Script Item but it did not work. I am not sure how should I change the path because of the portal:
"/sap/bw/Mime/Customer/.../file.htm" - this path is not working anymore
Another option that you mentioned I do not want to use. I have about 20 different html files in MIME repository so I would have to create 20 different web application. I do not like this solution.
Regards
Erwin -
Loading xml instances into repository
Hello,
I have successfully registered an xml schema document at the XML DB repository. A table had been created and the storage is object-relational.
Now I want to load XML instances of the registered schema into the repository using WebDAV or HTTP. How can I tell the repository that these XML documents are schema instances and that they should be rows of the created table?
Thanks in advance.
Lars GeldnerLars,
Since no one else has answered this inquiry, I'll give you my opinion. You will need to add the namespace to the XML document when loading it into the repository. This way the XMLDB engine will know where the document needs to go to get shredded.
I've had trouble when using the drag and drop of WebDav to load up .xml docs into a registered schema. It was easier for me to use the directory entry pointer and load them up to the XMLDB that way. It may have been my expierence only though. -
Using Scripts to detect document size in inches?
Is it possible that a script detects the document size in inches not in pixels?
Thanks for the help!The size an Image will print is a simple calulation the numbet of Pixel Wide Devided by the imageg current DPI resolution. And numbet of Pixel High Devided by the imageg current DPI resolution. You can always change the DPI while maintaining the same number of pizels using Image Size with resample NOT checked to change the image's print size. All the information can be retrived in a script and the script can change the image's print size with or without resampling the image.
-
Error while loading document when user executes IW32
we have brand new laptops and desktops installed SAP GUI 6.40 patch level 27 and microsoft office 2003.when the user tries to execute IW32 and click on the long text button.when we try to change the editor it is giving ERROR WHILE LOADING DOCUMENT
ERROR WHILE LOADING DOCUMENT
message no .sofficeintegration142
DIAGNOSIS
An internal error occured in the SAP Document Container Control while loading a document
PROCEDURE
If the error recurs,enter a problem message.There are notes relating to how to create the log file using the report SAPROFFICEINTEGRATIONTRACE1Hi Rajanarenderreddy,
Were you able to resolve your problem?
If so how? We have a customer that is experiencing the same problem.
Thank you for your feedback.
Br,
Tom. -
Could not save the document to the repository for the following reason
Hi,
Some of the Scheduled reports are getting failed because of the following Error.
Could not save the document to the repository for the following reason: [repo_proxy 30] InfoStore::ObjectExport::commit - (Helpers::InfoStore::ObjectExport::commit) File Repository Server error : Failed to put the file to file server: frs://Output/a_242/027/084/5512178/aduu8vtfkntmvyv8lsnntas.wid already exists.(hr=#0x80042a4a)(Error #-2147210678 (WIS 30567)
i have searched about this but no use no information on the same.
So Pls let me know why this problem will occur and how to resolve this,I am new to this forum if any this is wrong pls let me know
Thanks in advance,HiShwetabh Suman
Thanks a lot for immediate response,
Please go through the following
From the logs I see a difference in the execution steps as below:
[2014-03-31 10:24:15,364] [TID:13] [INFO ] [child.RunStatusTimerTask.run():17]: calling checkRunStatus
[2014-03-31 10:24:31,887] [TID:3168] [INFO ] [child.ChildImpl.request():23]: request: [GetLoad]
[2014-03-31 10:24:31,888] [TID:3168] [INFO ] [child.ChildImpl.request():25]: response: [1]
[2014-03-31 10:24:37,879] [TID:3153] [ERROR] [webi.PublishingSubsystem.run():93]: Throwable exception caught:
com.businessobjects.rebean.wi.ServerException: Could not save the document to the repository for the following reason: [repo_proxy 30] InfoStore::ObjectExport::commit
- (Helpers::InfoStore::ObjectExport::commit) File Repository Server error : Failed to put the file to file server:
frs://Output/a_165/024/084/5511333/aqew_jeqdcjcrukoadjdtk0.wid already exists.(hr=#0x80042a4a)(Error #-2147210678 (WIS 30567)
Can you please help us understand the reason why the child.runstatustimertask.run() is called in the case where we get the failure. Because upon noticing the difference in the steps of execution I see that this method is called and after that the failure is occuring.
Also, few other findings are that :
1. The error occurs from both the nodes adaptive job servers randomly.
2. The IFRS and OFRS of one of the node is not being used at all for any file transfers (though the configurations are exactly same).
Please advise and help us get rid of the said error.
Can u give any permanent solution for us -
How to save the output of sap script to pdf document in sap
hi abapers
how to save the output of sap script in sap so that can retrieve the saved document later.
i have to save the rcia output from sap script in pdf document in sap so that it can be retrieved later
how to use dmsHi deepika,
This thread will solve ur problem OTF -> PDF
Regards,
Pravin -
XML Load Document in EXE does not run
LV 8.0 (or 8.01).
This has got to be a trivial installation problem. I wrote a simple VI that reads in an XML file using the XML Load Document vi. It runs like a charm. I then built an exe. Loading the exe results in the following set of errors:
Unable to Locate Component
This application has failed to start because xerces-c_2_2_0.dll was not found. Re-installing the application may fix this problem.
This is then followed by:
LabVIEW: Resource File not found
The file 'DOMUserDefRef.dll' is not a valid LabVIEW file
As it turns out, I just received my 8.01 CDs, so why not? I installed the upgrade, repaired the internet toolkit, sprinkled some distilled water on my keyboard, but the problem did not go away. I then un-installed ALL of LabView, re-installed 8.00, did the hokey pokey, problem is still there.
Am I missing some vital step? If so, I would love to find out where this is documented.
I've reduced the problem to just having the XML Load Document vi connected to the Close Reference VI. See the attached VI.
Thanks,
fredb.
Attachments:
XMLBug.vi 13 KBHi Casey;
The XML Load Document is part of the XML ToolKit - that comes with the Internet Toolkit from NI. I'm not sure how I can post NI's toolkits here. They are available in the Toolkit CD (part of the Professional Suite). (I tried to get a screen shot in here - can't even do that!).
I'll attach a sample XML Doc I've created. It is created by parsing the LVPROJ file in order to find all the dynamic VI's. I'll build one based on a very simple demo project and attach it here. I was able to parse most of it by using the get tag method, but when I went to use the get value - that would always return a blank string - so I gave up, found an example using the internet toolkit - and off I went.
I do have a workaround (not too elegant) - I create a simple text file each time I write the XML file. I then read the txt file from within the EXE.
Thanks for looking into this. I did get a pointer from my excellent field engineer (Lesley Yu) who suggested I take a look at...
http://digital.ni.com/public.nsf/websearch/694A29DC644542BC86256E29007CCAC1?OpenDocument
This recommends I explicitly register the dll. I have not had a chance to try this. I did completely uninstall LV and re-install it. That wasn't it.
Thanks again,
fredb.
Attachments:
Demo.zip 1 KB -
Remove save and saveas from file or document of km repository
HI experts
when i assign the permission of read to a file of ms word or other file or document in km repository when i assign km navigation iview to other user.he or she is able to read,saveas the file which i give to that user in km repository but my problem is that i just want that user just see the file but not saveas the file. Is there any facility for that in portal to just see the document or file not save as well as save as to the file
please help.........Hi Mousam,
This is a KM functionality. When you open any document on any of the repository, the document opens on the client.
So it takes and behaves as other standard documents on the client.
I really dont know a way to hide this functionality in KM, if the user has read access.
Good Luck!!!
Biroj Patro. -
Which method is ideal to transfer Java scripts from old documents to new ones?
I have at least eight different single pages with specific java scripts and have these options:
Copying from the «all edit java scripts» the whole piece to paste into the same window in the new Acrobat document (sometimes some fields lost function).
Copying the specific java script located in «Document java scripts» i into the same window in the new Acrobat document , also with problems.
Insert the specific page with a java script into the new one Acrobat document. This method has been perfect for the moment although I don't know if it is just orthodox enough to avoid conflicts in the future.!. Not recommended, you will pull all including fields, and document actions as well as overwrite existing form field and document actions.
2. Possible but could be time consuming.
3. Best choice. I would look at inserting a blank page into the PDF with the code, copy any fields with script to the blank page, save the file and then extract the inserted page. The page will also pickup the document actions and document level JavaScripts.
Another option would be creating an FDF file to add the document level code and actions to a PDF. -
Developed Sap scripts of invoice documents
hi,
how to Developed Sap scripts of invoice documents, purchase requisition documents and purchase order documents to suit client needs.if understand any one give me one example.you have standard one.
invoice --- RVINVOICE01.
U CAN FIND ALL IN TNAPR TABLE.
U NEED TO CHANGE THOSE AS PER CLIENT REQUIREMENT.
REGARDS.
SANTHOSH REDDY -
Require script to load fixed length flat file
Hi
Can anyone provide me a script to load a flat file into database ? A sample script would be ok
thanks in advance
SivaYou can use SQL*Loader to do this, or external tables in 9i or higher. These methods are well-documented in the Utilities Guide.
Cheers, APC
Maybe you are looking for
-
Alert is not getting displayed in Alert Inbox
Hi, We have created a BPM with an Alert. The Alert is getting triggered in the PE but we are not able to see the alert in the alert inbox. It is neither being displayed in ALRTDISP transaction. We have already subcribed that alert.
-
Ipod min has stopped being recognised
My ipod mini was installed on my windows XP and tunes bought/downloaded from itunes. Six months later and computer has stopped recognising ipod. Message says to "reset" or "restore" and only the restore option (with subsequent loss of songs) can be a
-
How can I read Safari mail on one computer that is on another computer?
I have an iMac (Tiger) and a MBPro (Leopard). I usually download and read Safari mail on my iMac; however, there are times when I am using my MBPro that I would like to be able to read the mail that is on my iMac. I always remove my mail from the ser
-
I have a new computer at work and all my song are on the server-when I try to change the folder location under preferences to the server, it still won't show my songs in Itunes?? please help!
-
Adobe X signatures and workflows?
I would like to set up a document that starts at person A. If A signs the document, it goes to B. if B signs, it goes to C for final approval. I've got the PDF set up with the three signatures. How would I set up the workflow for this?