on 09-25-2013 8:55 AM
Hi gurus,
my need is to upload old documents up to DMS(we are migrating).
Most probably it will be done using a background job (the originals are placed on the application server).
It seems that bapi DOCUMENT_LOAD is able to create documents directly in released status (which is what i need)
but i read somewhere it only works in foreground mode.
So i am using DOCUMENT_CREATE2 but i can't seem to be able to create documents straight as released so i will need
to call bapi SETSTATUS for all steps until i reach RL.
That's kinda of annoying as it might slower the performance a lot.
What else can i do to create documents in background mode directly in RELEASED status?
I suggested to "unlock" customising rules just for migration but it seems that status network it's a bit dodgy.
Any other suggestion?
Thanks a lot.
Hi Bruno,
from my point of view the BAPI_DOCUMENT_LOAD could be useful for you maybe.
Reqarding the usage of BAPI DOCUMENT_LOAD I have to inform you that this BAPI is only used for a quite simple creation process of document info records by just processing the input data and create a new document info record or version. Based on your description and requirement to create the document info records in background I would recommend you to use the standard data
transfer workbench which is available through the tcode SXDA, for creating and changing Documents in background. See SAP note 817743 where you find further information how you could create documents with SXDA.
According to description in note 817743 you can use the DMS_LOAD01 report to create a sequential sample file. For this purpose, you willneed a document info record that will serve as an example for the document info records created by the files. This means that it must contain all required data; a description, additional data and classification, object links and originals.
I hope that this information could be useful for you.
Best regards,
Christoph
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I became aware of SXDA only after i had already developped a custom report for the porpouse.
The main point now is to create documents bypassing the status strategy and creating them directly as "released", as we are migrating old documents from LIMS system .
This seem to be an issue now as i can't save them in foreground but only using a background process.
bapi Document_load apparently doesn't work in background mode.
User | Count |
---|---|
107 | |
12 | |
11 | |
6 | |
5 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.