Need to create the document with originals and checkin that document

HI Guys,
My requirement is to write a method to  create the document with originals and checkin that document of DMS.
Plz suggest the approach to get this requirement solved.
Regards,
RSK

Hi Bala,
Thanks for the reply.
Iam writing the code under method like below.
Importing:
ls_doc type bapi_doc_draw2.
  APPEND is_files TO it_files.
  CALL FUNCTION 'BAPI_DOCUMENT_CREATE2'
    EXPORTING
      documentdata               = ls_doc
   IMPORTING
     documenttype               = iv_doctype
     documentnumber             = iv_docnumber
     documentpart               = iv_docpart
     documentversion            = iv_docvers
     return                     = iv_return
   TABLES
    documentfiles              = it_files.
Iam checking with document number , document type, document part, document version... it is throwing error message as
error while checking in and storing: version number(25).
Please advice whether it is correct approach?
Regards,
RSK
Edited by: shravan kumar ravula on Dec 22, 2011 11:24 AM
Edited by: shravan kumar ravula on Dec 22, 2011 1:26 PM
Edited by: shravan kumar ravula on Dec 22, 2011 1:26 PM

Similar Messages

  • How to create the document with originals and checkin that document

    I am using this 2 bapi for creating DMS ,
    BAPI_DOCUMENT_CREATE2
    BAPI_TRANSACTION_COMMIT
    BAPI_DOCUMENT_CHECKIN2
    BAPI_TRANSACTION_COMMIT
    at last we want to c in DRAO table the created doc no should be updated here.
    But it not updating.how can i update in the table..
    Please tell via code..

    How do you call BAPI_DOCUMENT_CREATE2?
    I just tried with the example given in the documentation and with a little adjustment I created a document with an original which appears in the DMS_DOC_FILES table.
      DATA: ls_doc    LIKE bapi_doc_draw2,
            ls_return LIKE bapiret2.
      DATA: lf_doctype    LIKE bapi_doc_draw2-documenttype,
            lf_docnumber  LIKE bapi_doc_draw2-documentnumber,
            lf_docpart    LIKE bapi_doc_draw2-documentpart,
            lf_docversion LIKE bapi_doc_draw2-documentversion.
      DATA: lt_files LIKE bapi_doc_files2 OCCURS 0 WITH HEADER LINE,
            lt_drat  LIKE bapi_doc_drat OCCURS 0 WITH HEADER LINE.
      ls_doc-documenttype    = 'Z01'.
      ls_doc-documentversion = '01'.
      ls_doc-documentpart    = '000'.
      ls_doc-statusextern   = 'DR'.
      ls_doc-laboratory     = '001'.
      REFRESH lt_files.
      CLEAR lt_files.
      lt_files-docfile      = 'c:\BP\test.docx'.
      APPEND lt_files.
      CLEAR lt_drat.
      REFRESH lt_drat.
      lt_drat-language    = 'EN'.
      lt_drat-description = 'Info Rec Description'.
      APPEND lt_drat.
      CALL FUNCTION 'BAPI_DOCUMENT_CREATE2'
            EXPORTING: documentdata         = ls_doc
            IMPORTING: documenttype         = lf_doctype
                       documentnumber       = lf_docnumber
                       documentpart         = lf_docpart
                       documentversion      = lf_docversion
                       return               = ls_return
           TABLES: documentdescriptions = lt_drat
                   documentfiles        = lt_files.
      IF ls_return-type CA 'EA'.
        ROLLBACK WORK.
        MESSAGE ID '26' TYPE 'I' NUMBER '000'
                WITH ls_return-message.
      ELSE.
        COMMIT WORK.
      ENDIF.
    Best Regards,
    Martin

  • FCP7 HELP - Exported quicktime mov plays differently than what I edited on the timeline. The playback shows the clips with ins and outs that are different than what I set in the clips when I edited - some are too early and the clips don't playback

    Please help ASAP.
    Specs: IOS 10.6.8
    Processor 2.4GHz Intel Core i5
    Memory 4GB 1333 MHz DDR3 -- Everything is edited, sourced, and stored on an 2TB external hard drive to make things go faster.
    Editing with FCP 7
    When I export the sequence I edited with quicktime, the playback video is very different from what I edited on the timeline. The playback has the clips with ins and outs that are way off than what I cut, and some of the clips don't show at all or have changed transitions. However when I play in the timeline in FCP, the sequence is fine, just the way I cut it.
    The source of the clips was one long .mov that I cut into clips for the timeline. Everything has gone smoothly but the exported .mov is just so different.
    How can I get the time codes of the clips to be the same in the exported .movs? I just want the quicktime .mov to represent my edit exactly.
    This video is due tomorrow - if the solution is too time consuming, can I play within the FCP player window and Log and Capture?
    Thanks,
    MV

    What is your source material? Is it H.264? FCP does not work correctly with that material.
    Click on a source clip in the FCP Browser, and once selected, type Command + 9 to see the item properties for the clip. Either report those properties, or take a screen shot of the item properties, and post that here.
    Next, click anywhere in your timeline, and then type Command + 0 {zero} to see your Sequence Settings. Either report those Sequence Settings, or take a screen shot of the Sequence Settings and post that here.
    MtD

  • I need to create a new iPhoto library and import 'ORIGINALS' from a time machine backup on an external hard drive.

    I made the mistake of installing OS 10.9 on my older MacBook Air and the machine has become horribly slow and unpredictable. I visited the Apple store and questioned a 'Genius' about getting rid of 10.9 and reinstalling the previous OS 10.6 for which I have the disks. He advised that I should reformat the Air, reinstall 10.6 and then restore from the Time Machine backup that I have.
    He explained that of course, after I reinsatll 10.6,  I couldn't import the iPhoto Library from the backup drive complete because it had been recreated using the OS 10.9 and wouldn't work with 10.6.  I would have to create a new 10.6 iPhoto Library and move the actual ORIGINALS, from the backup into it.   He actually had the path to the iPhoto library shown on my Air to the point of >Pictures >iPhoto Library > ORIGINALS.
    I didn't question how he got the path to the point of > ORIGINALS and figured that it wouldn't take too much to do what he suggested. Now I can't find how to get to point of seeing the ORIGINALS in the path. When I go through the path >Pictures >iPhoto Library, the next column shows me the iPhoto Library icon and the info re size, creation date etc.
    Can anyone advise how to get to the 'ORIGINALS' in order to import them and does anyone have any further suggestions that might help in completing this procedure ?
    Thanks, in advance, for any assistance available.
    p.s. is there any way of looking at a Time Machine backup and finding what O.S. was present when the backup was produced ?

    Rather than do that, which means starting over from scratch, losing all your edits, organisation and so on, why not simply use iPhoto Library Manager to revert the Library to the older version? Easier, less destructive.
    The instructions on that are here
    If you really want to start over: you can access the Originals folder simply by going to your Pictures Folder and finding the iPhoto Library there. Right (or Control-) Click on the icon and select 'Show Package Contents'. A finder window will open with the Library exposed.

  • Creating user accounts with OIDDAS and use them from the OS

    Hi,
    I have a customer that is experiencing an error creating user accounts from OIDDAS, and use that user accounts from the operating system.
    My customer is using OID/OAS4OS 10.1.4.2.0, and that version is not longer available to download, then, I will try in my own environment
    with OID/OAS4OS 10.1.4.3.0.
    And the question is the following: is supported to create user accounts with OIDDAS and expect that users can work with OAS4OS and be
    able to authenticate in the operating system?
    For the reference, SR# 7222351.993:
    Thanks,
    Luis Vivero.
    Edited by: LV in ORCL on Dec 11, 2008 6:47 AM

    Hi Jacco,
    I didn't see your post before.
    Nop, unfortulately I don't have a document with that. I just received that answer
    from development (related to the plugin for AD that is not certified, and DAS is
    not intended to work with OAS4OS).
    Anyway, about the plugin to work with AD, this is working for me; at least I tested
    it by configuring the plugin, I configured synchronization, the mapping file, I did
    the bootstrap, and the accounts that were bootstraped now shows the OS attributes
    on DAS.
    Regards,
    Luis Vivero.

  • I need to create a link with confirmation..

    Please I need a help o this :
    I need to create a link with confirmation, it means that after clicking the link it does not redirects to the next page, but first it displays a question like "Are you sure you want to go to page XYZ" ? Yes / No  .If you click "No"  then message just dissapears, if you click "Yes" it goes to the next page...
    Any dea ? thanks in advance...

    <a href="XYZ.php" onclick="return confirm('Are you sure you want to go to page XYZ?')">XYZ.php</a>

  • Need information about FI document  with header and no items

    Hello Experts!
    I need your help for understanding the following subject :
    How is it possible when using F.13 to obtain a fi document with header without items sometimes,
    and fi document with header and items anothers times?
    We didn't saw/found customizing topics about that ( to enable or not header without items) Some exists?
    The only difference in the two cases are the document's type involded which are not the same.
    Regards,
    Josiane

    Hi,
    We verify  and compare everything.  it's the same everywhere except the document type of the invoice
    first case, F.13 create conciliation fi document with header and no items
    invoice ( doc. type YB )
    payment ( doc type ZT)
    conciliation ( doc type XZ )
    2th case, F.13 create conciliation fi document with header   and none items
    invoice ( doc. type YT )
    payment ( doc type ZT )
    conciliation ( doc type XZ )
    We match / compare  every fields and value  between invoice of 1st and 2tch case,  every fields and value between payment  of 1st and 2th case.
    ( we create  tests case in own integration system for reproduce  )
    We alse match / compare customizing of invoice type document YB and YT and  they seems identical...
    The procedure is the same with F.13 to do conciliation in both cases.
    we got same amount, same currency etc etc.
    We still didn't understand why with invoice type YT the conciliation document created is not the same as invoice type YB ...
    Nobody have idea ?

  • I am new to IPAD and I want o use facetime, how can I use it to communicate with my mac at home, do I need to create another account with a different email account

    I am new to IPAD and I want o use facetime, how can I use it to communicate with my mac at home, do I need to create another account with a different email account

    do I need to create another account with a different email account
    Yes, the email addresses need to be unique to each device. You may use the same Apple ID on each device, but the email address used by each device needs to be different.

  • What are the best options for creating a PDF with bookmarks and a hyperlinked TOC?

    What I'm interested in is whether or not there is an alternate process I could follow that would side step Word 2011's inability to export to PDF with bookmarks and hyperlinked TOCs. How do you create PDF documents with bookmarks and hyperlinked TOCs in your documents?
    Some background:
    In Word 2010 and 2013 for Windows (and I'm sure this applies to older versions as well), you can export documents to a PDF file format where the exported file will carry over the bookmarks and hyperlinked table of contents. Specifically, by making specific text headers, will appear in the final PDF file as bookmarks on the side (see image taken from Adobe's website).
    Regarding the table of contents, using Word's built in Table of Contents feature successfully ports the ability to navigate to a specific section by clicking on its chapter in the table of contents to the finished PDF file.
    I've read several forum discussions that say it's not possible to do this from Word 2011, so my current solution is to just finish all documents on a Windows machine (either with parallels or a separate computer). The alternate process flow of creating a word document, exporting it to PDF, then rehyperlinking everything in Acrobat is just too time consuming to consider.

    Hi, beejasaurus
    I found a possible kluge from this discussion here
    https://forums.adobe.com/thread/1008480
    Create the hyperlinks in Word, save the file
    Open that file with Pages, export as PDF.
    The links work from that PDF.
    Note, I did not try this with TOC but it worked with hyperlinks embedded in the Word document

  • We created a pdf document with comments and hyperlinks. On iPad, comments/hyperlinks disappear.

    Using Acrobat Pro 9, we created a pdf with comments and hyperlinks to be shared with a large community on the iPad, through a server. Once the document is opened on the iPad, all the comments and hyperlinks disappear. Are we missing a tool on the iPad or is there a different way to create this file? Thank you.

    Is everyone on the iPad using the latest version of Adobe Reader mobile for iOS (10.6 at the moment)? You can see all the comments (including drawing markups) as well as view the notes attached to text markup with this version.

  • Hi, we need to create the test environment from our production for oracle AP Imaging. we have soa,ipm,ucm and capture managed servers in our weblogic. can anyone tell me what is the best way to clone the environment, can I just tar the weblogic file syste

    Hi, we need to create the test environment from our production for oracle AP Imaging. we have soa,ipm,ucm and capture managed servers in our weblogic..
    Can anyone tell me what is the best way to cloning the application from different environment, the test and production are in different physical server.
    Can I just tar the weblogic file system and untar it to the new server and make the necessary changes?
    Can anyone share their experiences and how to with me?
    Thank in advance.
    Katherine

    Hi Katherine,
    yes and no . You need as well weblogic + soa files as the database schemas (soa_infra, mds...).
    Please refer to the AMIS Blog: https://technology.amis.nl/2011/08/11/clone-your-oracle-fmw-soa-suite-11g/
    HTH
    Borys

  • My question is, when i bought my sons ipod I created the account with my email, the I purchased an ipod as well and used to same account.  I want him to have his own account so he can't access my itunes money.

    My question is, when I bought my sons ipod I created the account with my emai, then I purchased an ipod as well, so we share an account.  I want him off of my account.  How do you do that, he has his own computer.

    His own password for what? You can only have one password for one account.
    He can use your account for items and he can also use his own account. To purchase items with a different account you go to Settings>Store and sign out and sign into the other account.
    To update apps you have to sign into the account the purchased them.

  • I have upgraded to Pages 5.0.1 and now I cannot print or pass along "comments" in the text of a document. I previously was able to convert the Pages document, with comments, to a "Word" document so that others could view the edited text. How do I do that?

    I have upgraded to Pages 5.0.1 and now I cannot print or pass along "comments" in the text of a document. I previously was able to convert the Pages document, with comments, to a "Word" document so that others could view the edited text. How do I do that?

    When you installed Pages v5, it automatically moved the older Pages ’09 v4.3 into /Applications/iWork '09 folder. If you want normal comment interoperability, you are advised to resume using the older version of Pages. Newer, is certainly not better with Pages v5.

  • I have changed my Apple ID name and I want to change it on iCloud, however I am not able to delete the previous account because I need to turn off the Find my iPhone - and for that I need to log in with the old name and that is not working. Help anyone?

    I have changed my Apple ID name and I want to change it on iCloud, however I am not able to delete the previous account because I need to turn off the Find my iPhone - and for that I need to log in with the old name and that is not working. Help anyone?

    Hey tulgan,
    This link will provide information on what to do after you change your Apple ID:
    Apple ID: What to do after you change your Apple ID
    http://support.apple.com/kb/HT5796
    Welcome to Apple Support Communities!
    Take care,
    Delgadoh

  • ITunes needs to fix the problem with there gift cards not being activated this is not up to the retailer and they will not return scratched coded cards! There is thousands of people having this problem please fix it

    iTunes needs to fix the problem with there iTunes cards not activating properly! This is not the retailers fault and they will not return iTunes cards that have had the code area scratched there for apple needs to credit and or activated the cards there is thousands of people having this problem please bite the bullet and fix it already I will not be using iTunes until this is corrected...

    If you haven't received the item then try the 'report a problem' page to contact iTunes Support : http://reportaproblem.apple.com
    If the 'report a problem' link doesn't work then you can try contacting iTunes support via this page : http://www.apple.com/support/itunes/contact/- click on Contact iTunes Store Support on the right-hand side of the page, then Purchases, Billing & Redemption

Maybe you are looking for

  • To delete sales order using BAPI_SALESORDER_CHANGE

    HI ,        I am using BAPI_SALESORDER_CHANGE to delete a bulk of order lines for an order.But the issue is...the entries are deleted in VBEP and VBUP tables for all the order lines where in VBAP only few order lines are deleted.This is happening rep

  • Change GL Account and 'SET' EXKN

    I get the syntax error 'Null Value' where the code is commented below when trying to use the chosen interface. I am trying to change and  'SET' the value of  LS_ACCT-SAKTO, in the GL Account Number.  I know it thinks the interface doesn't exist. Is i

  • Why is the text box acting so weird??

    I am trying to do something simple that I've done a million times in Photoshop CS5 -- create a text box with some text inside. But something is going wrong and I can't quite figure it out... Notice how the text box is now much larger than the text di

  • Digital Camera Raw update 4.09

    has just been released. Hopefully this will bring to a close all the recent image corruption activity.

  • Didn't receive receipt after app purchase.

    I bought Whatsapp on my iphone 3GS today. But I haven't received a receipt yet. But when I bought a paid application before, I received a receipt with all the details (order Id, receipt date, order total, billed to, item, seller, type, unit price, su