Skip to Content

Upload documents in released status

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.

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    Posted on Sep 26, 2013 at 10:27 AM

    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,


    Add a comment
    10|10000 characters needed characters exceeded

    • 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 ...



Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.