BAPI_DOCUMENT_CREATE2 problem with copying document-version

Hi experts!
I want to copy Documents from one Sap-System to another via RFC.
So I read the documents in the source-system with 'BAPI_DOCUMENT_GETDETAIL2' via RFC. then I want to insert the documents received in the target-system with BAPI_DOCUMENT_CREATE2.
The result is that from a document all part-documents are been copied, but only one (the first) version of a document-part.
my coding:
... for reading the documents
    CALL FUNCTION 'BAPI_DOCUMENT_GETDETAIL2'
         DESTINATION p_rfcdst
      EXPORTING
        documenttype               = gs_draw-dokar
        documentnumber             = gs_draw-doknr
        documentpart               = gs_draw-doktl
        documentversion            = gs_draw-dokvr
        getobjectlinks             = 'X'
        getcomponents              = 'X'
        getstatuslog               = 'X'
        getlongtexts               = 'X'
        getactivefiles             = 'X'
        getdocdescriptions         = 'X'
        getdocfiles                = 'X'
        getclassification          = 'X'
        getstructure               = 'X'
        getwhereused               = 'X'
    HOSTNAME                   = ' '
      IMPORTING
        documentdata               = gs_doc_data
        return                     = gs_return_get
      TABLES
        objectlinks                = gt_obj_links
        documentdescriptions       = gt_doc_desc
        longtexts                  = gt_long_texts
        statuslog                  = gt_status_log
        documentfiles              = gt_doc_files
        components                 = gt_comp
        characteristicvalues       = gt_char_val
        classallocations           = gt_class_alloc
        documentstructure          = gt_doc_struc
        whereusedlist              = gt_where_used.
my coding:
... for creating the documents
  CALL FUNCTION 'BAPI_DOCUMENT_CREATE2'
    EXPORTING
      documentdata         = gs_doc_data
    IMPORTING
      documenttype         = gs_create-dokar
      documentnumber       = gs_create-doknr
      documentpart         = gs_create-doktl
      documentversion      = gs_create-dokvr
      return               = gs_return_create
    TABLES
      characteristicvalues = gt_char_val
      classallocations     = gt_class_alloc
      documentdescriptions = gt_doc_desc
      objectlinks          = gt_obj_links
      documentstructure    = gt_doc_struc
      documentfiles        = gt_doc_files
      longtexts            = gt_long_texts
      components           = gt_comp.
Result:
eg. - Source Document
Document   AUF/N4711/xxx/xx
Part      Version    Status      Description
010       00           FR           Cond.-010-00
011       00           FR           Cond.-011-00
011       01           FR           Vers-011-01
011       02           FR           Vers-011-02
012       00           FR           Cond.-012-00
       Target Document
Document   AUF/N4711/xxx/xx
Part      Version    Status      Description
010       00           FR           Cond.-010-00
011       00           FR           Cond.-011-00
012       00           FR           Cond.-012-00
Is there only the possibility to create one version of a document with BAPI_DOCUMENT_CREATE2 ?
Thanks in advance for helping me!
Franz

Hi Avinash,
a
Thanks for the reply.
I am able to create document number in IDES system. I am getting error development system while creating document number with the FM. Configuration settings and the test data are same for both IDES and Dev. system.
What could be the problem and how to rectify it.
Regards
SP Raj

Similar Messages

  • I just upgraded my iMac to Lion, and a few seconds ago, I upgraded the iWork package and now I'm having some problems with the new version of Pages (4.1) When I try to change something in a document, a message says "the program is not responding"

    I just upgraded my iMac to Lion, and a few seconds ago, I upgraded the iWork package and now I'm having some problems with the new version of Pages (4.1) When I try to change something in a document, a message says "the program is not responding", so I have to force it to close. By the way, the SAVE botton stays the same even I change erverything in my document. Please, a have a work to finish, **** me. What I can do abou it?

    I just upgraded my iMac to Lion, and a few seconds ago, I upgraded the iWork package and now I'm having some problems with the new version of Pages (4.1) When I try to change something in a document, a message says "the program is not responding", so I have to force it to close. By the way, the SAVE botton stays the same even I change erverything in my document. Please, a have a work to finish, **** me. What I can do abou it?

  • Problems with Itunes New Version?

    Problems with Itunes New Version?
    Here is a copy of the error message. Every Time I listen to a song and it end and I go to listen to a new song the Itunes Freeze up. This is on the New Version of Itunes. I have a Windows 7 32bit 3GB Ram 1TB harddrrive Space
    <edited by host>
    Thanks,
    <edited by host>
    Fault bucket 1279649891, type 5
    Event Name: AppHangB1
    Response: Not available
    Cab Id: 0
    Problem signature:
    P1: iTunes.exe
    P2: 9.2.1.5
    P3: 4c47745b
    P4: e36b
    P5: 2048
    P6:
    P7:
    P8:
    P9:
    P10:
    Analysis symbol:
    Rechecking for solution: 1
    Report Id: 46dfdb3e-99a7-11df-8064-00038a000015
    Report Status: 0
    Fault bucket 1279649891, type 5
    Event Name: AppHangB1
    Response: Not available
    Cab Id: 0
    Problem signature:
    P1: iTunes.exe
    P2: 9.2.1.5
    P3: 4c47745b
    P4: e36b
    P5: 2048
    P6:
    P7:
    P8:
    P9:
    P10:
    Analysis symbol:
    Rechecking for solution: 0
    Report Id: 46dfdb3e-99a7-11df-8064-00038a000015
    Report Status: 0

    There certainly is a problem with itunes. I downloaded 9.2 and now it won't open. It won't recognize my iphone, either. I uninstalled it in the order recommended by the site, no joy. Deleted a configuration file, no joy. System Restore, no joy. All other software and hardware on the machine is working fine. I call AppleCare AND a local store, either they are completely clueless (which I doubt), or they have no idea how to fix it. I can't even back up my phone, or use the ipod. And since no one at Apple seems to care enough, I'll have to wait until the clamor is loud enough for them to even admit to a problem before I can use the ipod again.

  • Problems with attached documents in Mail and Docs To Go

    Hello everybody.
    I've found a problem with attached documents in Mail. In fact, if I click on attached documents with .doc (microsoft office word 97-2004) and files in .docx Office Open .xml, the iPad doesn't open them, also if I click in "Open with Docs To Go (which should support these files' format)".
    How can I do? There's an application or another way to open these files?
    Other Informations:
    Docs To Go version: 5.2.2

    Update the patch to the Sapgui.
    Regards,
    Ignacio.

  • How do I fix the problems with the newest version of firefox

    I a having a major problem with the newest version of firefox and I am not happy with it. I did everything that I am supposed to do with the reset, but it is still not working correctly. It has a lot of no responses and freezing up problems.
    How do I fix this problem?

    You didn't provide any information about your Firefox setup. Can you do that and paste it in a new reply?
    *Navigate to <code>about:support</code> via Address Bar
    *Click the button that says <code>Copy text to clipboard</code>
    *Now, go back to your forum post and click inside the reply box. Press Ctrl+V to paste all the information you copied into the forum post.
    Can you try to start Firefox in Safe Mode to see if Firefox opens and works properly with no error? You can start Firefox in Safe Mode below:
    *'''Windows/Mac''': Hold the SHIFT/Option key while opening Firefox
    *'''Linux''': Run ''firefox -safe-mode'' in the Terminal/Konsole
    If Firefox opens up fine with no problems, it's probably one of your extensions that's causing the issue. You can re-enable your add-ons one by one until you find the one that causes the issue upon being re-enabled.

  • What is the problem with the newest version of iTunes (Failed to install - error 7

    What is the problem with the newest version of iTunes (Failed to install - error 7 & missing MSVCR80.dll) - the DLL is not missing.  tgried to install today and it failed - what a waste.

    Go to Control Panel > Add or Remove Programs (Win XP) or Programs and Features (later)
    Remove all of these items in the following order:
    iTunes
    Apple Software Update
    Apple Mobile Device Support (if this won't uninstall go to the next item)
    Bonjour
    Apple Application Support
    Reboot, download iTunes, then reinstall, either using an account with administrative rights, or right-clicking the downloaded installer and selecting Run as Administrator.
    The uninstall and reinstall process will preserve your iTunes library and settings, but ideally you would back up the library and your other important personal documents and data on a regular basis. See this user tip for a suggested technique.
    Please note:
    Some users may need to follow all the steps in whichever of the following support documents applies to their system. These include some additional manual file and folder deletions not mentioned above.
    HT1925: Removing and Reinstalling iTunes for Windows XP
    HT1923: Removing and reinstalling iTunes for Windows Vista, Windows 7, or Windows 8
    tt2

  • A problem with copy/paste from extract panel in Dreamweaver 2014.1.1

    I have a problem with copy/paste from extract panel in Dreamweaver 2014.1.1 :
    Russian letters pasting in dreamweaver html in such way:  ffd0 ff9e  ffd0 ff9a ffd0 ff9e ffd0 ff9c ffd0 ff9f ffd0 ff90 ffd0 ff9d ffd0 ff98 ffd0 ff98
    Can you help? What could it be?

    Hi,
    I test the issue with my colleague and didn't find the same issue.
    Here is the screenshot:
    So please check if Lync Server 2013 and all the issued Lync 2013 client update to the latest version firstly, it not update to the latest version, update it and then test again.
    Best Regards,
    Eason Huang
    Eason Huang
    TechNet Community Support

  • Is Anyone Having Problems with the newer version of Firefox?

    I still have my older Mac OsXv10.4 Tiger software. I wasn't exactly happy with Safari browser as it would block many sites and were considered incompatible so I downloaded the free Firefox browser (the 2.0 version) of which I STILL have. I'm aware that there is a much newer version and would like to download that, but I've heard a lot of people saying they have been having severe problems with it, but then they have PCs and not Macs.
    So my question is for you Mac users that use Firefox, have you had major problems with the newer version? I'm real hesitant to download if I'm going to have the same problem PC users are having...like constantly crashing. Also would my old Tiger software be compatible? I don't want to upgrade to Leopard.

    Yes. I had problems with Firefox 3.5. The primary problem was very slow or never-ending loading of certain websites (particularly secure sites and sites with many features). I also have had similar, but not as bad, problems with Safari 4. I never had these problems with Safari 2 or Firefox 2. It just seems that with each update, the problems increased for me. I have read the Safari and Firefox forums and tried many fixes with little improvement. I have come to the conclusion that there is some kind of compatibility problem between the latest versions of Safari and Firefox and Shockwave Flash and/or Javascript and OS 10.4, particularly on PPC Macs. I expect there are many who will disagree and I cannot argue or prove the point. This is just my opinion. And I recognize that my problems could be caused by my setup and not by the browsers. By the way, I do not use any add-ons with any of my browsers. Anyway, I got tired of dealing with it and installed the latest version of Camino about 2 weeks ago. I also did a clean install of Firefox 3.0.13. Camino is working out great for me. It is simple and it works. No problems at all. So currently I am using Camino as my primary browser and Firefox 3.0.13 as my backup. I hope this helps.

  • A problem with copying text from english pdf to a word file

    i have a problem with copying text from english pdf to a word file. the english text of pdf turns to be unknown signs when i copy them to word file .
    i illustrated what i mean in the picture i attached . note that i have adobe acrobat reader 9 . so please help cause i need to copy text to translate it .

    Is this an e-book? Does it allow for copying? It is possible that the pdf file is a scan of a book?

  • Problem with this new version is when i open firefox something change my home page to mozila defalut page and in the new tab open mozila firefox first run page.Sorry for my bad English

    Problem with this new version is when i open firefox something change my home page to mozila defalut page and in the new tab open mozila firefox first run page.Sorry for my bad English

    Sounds like this issue:
    * http://kb.mozillazine.org/Preferences_not_saved
    * [[Preferences are not saved]]

  • Problem with the Arabic vowelization in V 4.0 although we didn't face this problem with the previous versions ,so please fix it up quickly

    There is a problem with the arabic vowelization in the browser version 4.0 although we didn't face this problem with the previous versions ,so please fix it up quickly because it affects on our work

    Do you have an Arabic version of Firefox installed which isn't displaying the vowelization correctly, or are you trying to read it using an English language version?
    There are a few add-ons for Arabic which might possibly help here: [https://addons.mozilla.org/en-US/firefox/search/?q=arabic&cat=all&x=0&y=0 Arabic add-ons]

  • Problem with the active version of the transfer rule ABAP program with sour

    Hi,
    I have a problem with the active version of the transfer rule ABAP program with source system EXCEL. 
    The system does not react to changes done in the transfer rule coding. For FISCPER I have hardcoded the result 'BABABA' and still the results delivered are those from the CSV.
    Resetting the system buffers does not help. The problem is systematic in combination with source system EXCEL (i.e. not only 1 InfoSource).  Checking the active program Extras->Display Program shows the coding (result='BABABA') being there, but
    as stated, the system does not produce the result BABABA, but instead the result of the CSV.
    It seems as if the original version from the very first activation of the transfer rule program remains somewhere and continues to be used.  Does anybody know how to flush it out and get the system to actually use the coding appearing as the active program.
    I have posted an OSS note, but SAP takes it time to answer and I am under time pressure so I figured that maybe one of you know who to solve it before SAP does.
    Greetings and thanks,
    Martin

    Hi martin,
    just try to go out the RSA1 and then return to your infopac. ...
    sometimes there some "cache" trouble

  • Problem with Copied Business Object : SELFITEM

    Hi,
    sub:    Problem with Copied Business Object : SELFITEM
    I want to use changed selfitem BOR for carbon copy functionality. For it, i copied the BOR : SELFITEM. it is giving error
    In SWI2_DIAG it is showing like this.
    Work item  cannot be read                                                
    Work item 000000639770: Object  method SWW_BI_EXECUTE_S cannot be executed
    The problem is with COPYING The Business Object. Because , generally we extend BOR ,not copy. But i did copy.
    Please help me regarding this.
    Balaji.T.

    hi Martin,
    The problem may not be in method. because simply we copied the BO:SELFITEM into ZSELF . And i want to test this for a mail at first , whether copied BOR  is working or not.The mail is not triggering . it is saying that it is Error.
    WF_BATCH error...
    I can see error in Tx: SWI2_DIAG ,
    this is Error :
    Work item 000000639770: Object  method SWW_BI_EXECUTE_S cannot be executed
    Once it is rectified i can modify the method in BO:ZSELF.
    Thank you in Advance..
    Balaji.T.

  • Really having problems with organising documents in pages. For example, deleting pages deletes the whole section and I cannot insert a section break as its greyed out & sending an object to background deletes several pages - what the **** is going on???

    Really having problems with organising documents in pages. For example, deleting pages deletes the whole section and I cannot insert a section break as its greyed out & sending an object to background deletes several pages and trying to insert a text box autmatically creates new pages- what the **** is going on??? Is this programme really this badly thought out? I thought everything apple was supposed to be intuitive!?!?!? Help.

    You can not insert a section break into a textbox.
    You appear to have a lot of objects with wrap set, that once you take them out of the flow of text (by sending them to the background) causes the text to reflow and contract into fewer pages. Pages is almost unique in the way it forms up pages in Word Processing mode only so long as there is text on them.
    I suspect you probably have hammered away at returns, spaces and tabs as well to position things, which only works to add to the mess.
    Download the Pages09_UserGuide.pdf available under the Help menu and swot up a bit on how it works.
    You may find this a usueful resource as well:
    http://www.freeforum101.com/iworktipsntrick/
    Peter
    PS There is quite a lot of programming in OSX that is far from "intuitive". Pages is easy at one level, when using the templates, otherwise it can be quite frustrating.

  • Problem with Silverlight 5, version 4 worked great on my IMAC.

    Problem with Silverlight 5, version 4 worked great on my IMAC.  Since I updated all my movies shutter or they stop to refresh.  No one from Netflix or Microsoft can solve this problem.  Please advise if there is a fix, maybe drop the silverlight plugin and contract with Flash Player plugin it works with everything.
    Please don't advise me to uninstall and re-install the silverlight plugin I wrote a paper on un-installinging this plugin.
    Please advise, I know there is an army of frusrated Netfix members out there.

    The solution is to download and install the latest version of Flip4Mac, which now includes a Silverlight component:
    http://dynamic.telestream.net/downloads/download-flip4macwmv.htm
    But the latest news is that Microsoft will probably abandon Silverlight in favour of HTML5:
    http://www.appleinsider.com/articles/10/10/29/apples_ios_pushes_microsoft_to_dia l_down_silverlight_for_html5.html  and
    http://www.bbc.co.uk/news/technology-11673384
    If you want to remove Silverlight the instructions are here:
    http://support.microsoft.com/kb/970064

Maybe you are looking for

  • Is there something wrong with my iPhone 5?

    Since i've had my iPhone 5 it's been working perfectly until about a month ago. Chargers won't last longer than a week. Some have been from Apple, some have been cheep ones. Recently, some won't even last more than 2 days. My phone can be on charge f

  • On execute query a save message appears

    hi, i have an item which is enabled only when enter_query is pressed. a number is given in that item which then populates the rest of the items of the same datablock when execute_query is pressed. now if i change the item/number then the message appe

  • Installing Metadata Integrator alone??

    Hi, I want to know if it is possible to install Metadata Integrator in a Windows machine alone if my Data Services XI 3.2 and Business Objects Enterprise XI 3.1 SP2 are install in other server on Unix Platform. My question is because Metadata Integra

  • Relocating datafiles on standby database after mount point on stanby is ful

    Hi, We have a physical standby database. The location of datafiles on primary database are at /oracle/oradata/ and the location of datafiles on standby database are at /oracle/oradata/ Now we are facing a situation of mount mount getting full on stan

  • Where has my saved movie gone?

    I've just edited a movie clip. I've gone into saved as, entered a new name etc. But can i find this to open again? No way...where can it have gone? i must be doing something simply fundamentally wrong...any suggestions? Allan