cancel
Showing results for 
Search instead for 
Did you mean: 

Upload documents in released status

Brunot
Explorer
0 Kudos

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.

Accepted Solutions (1)

Accepted Solutions (1)

christoph_hopf
Advisor
Advisor
0 Kudos

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

Brunot
Explorer
0 Kudos

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.

markus_deuter
Active Participant
0 Kudos

I would use BAPI_DOCUMENT_CHECKIN2 and after upload I would manipulate the documents status in table DRAW directly if a history is not neccessary. Why not use a seperate status "MI" = migration ?

So forget BAPI SETSTATUS and unlocking.

Pls rate if this was helpful ...

Regards,

Markus

Answers (0)