Want to create Document new version with BAPI_DOCUMENT_create2

Hi,
I want to create a document with new version with the help of existing document in DMS. In my development of module pool
i can add new file and also i can create new version of existing document. all this i can do from my Z-development.
When on initial time when there is no dicument exist BAPI creating new document correctly with attached files. also i am able to create a new version of that document if i am excuting applicatin from my PC. if this appication run from another system to generate new version BAPI is giving me Error.
i am passing below data in DOCUMENTFILES(table parameter of BAPI) for existing File which is available already in older version.
DOC_HEADER-DOCUMENTTYPE = 'ABC'
DOC_HEADER-DOCUMENTNUMBER = '456'
DOC_HEADER-DOCUMENTVERSION = '00'
DOC_HEADER-DOCUMENTPART = '000'
FWA_DOCFILE-STORAGECATEGORY = 'ZDMS'.
FWA_DOCFILE-WSAPPLICATION = PFX_EXT.
FWA_DOCFILE-DOCPATH = F_FILEPATH.
FWA_DOCFILE-CHECKEDIN = ''.
FWA_DOCFILE-ACTIVE_VERSION = 'X'.
FWA_DOCFILE-DOCUMENTTYPE = WA_COMDOC-DOKAR.
FWA_DOCFILE-DOCUMENTNUMBER = WA_COMDOC-DOCNR.
FWA_DOCFILE-DOCUMENTPART = WA_COMDOC-DOKTL.
FWA_DOCFILE-DOCUMENTVERSION = WA_COMDOC-DOKVR.
FWA_DOCFILE-APPLICATION_ID = WA_DOCFILE-APPLICATION_ID.
FWA_DOCFILE-FILE_ID = WA_DOCFILE-FILE_ID .
FWA_DOCFILE-DOCFILE = F_FILENAME.
APPEND FWA_DOCFILE TO FIT_DOCFILE.
I am passing all those data which i am getting from BAPI_DOCUMENT_GETDETAIL2 for existing attached file. Need help.

use BAPI_DOCUMENT_CREATENEWVRS2 ..

Similar Messages

  • I have 2 apple id's with different apps and data saved under each.  It's very annoying so now I want to create a new id with my primary email address I use now.  If I do that is there any way to transfer all my saved apps and app data like game saves etc?

    I have 2 apple id's with different apps and data saved under each.  It's very annoying so now I want to create a new id with my primary email address I use now.  If I do that is there any way to transfer all my saved apps and app data like game saves etc so I don't lose all of that information and can easily switch to a singular apple id?

    Apple does not transfer content bought with one Apple ID to another Apple ID. Apple will not merge two Apple IDs.
    If most of your content was bought with the Yahoo! Apple ID but you now want the Gmail address for your Apple ID, the trick will be to change the address used for the Yahoo ID with the Gmail address. However, to do that you must first free the Gmail address from that other Apple ID. Use the instructions from Apple to substitute another address that is not used as an Apple ID for your Gmail address in the Apple ID with the Gmail address. Then, when the Gmail address is no longer used in an Apple ID, you can use the same instructions to substitute the Gmail address for the Yahoo address in the Apple ID with the Yahoo address.
    Changing the email address you use for your Apple ID -
    http://support.apple.com/kb/HT5621

  • Create document in Background with BAPI_DOCUMENT_CREATE2

    Hi,
    how can i create a document with the BAPI_DOCUMENT_CREATE2 in background (not in dialog)?
    I want to upload the original from my front-end (Path: C:\test.pdf).
    If i use the paramter "pf_http_dest = SAPHTTP", it didn't work.
    I don't want to upload the file from the applicationserver (not SAPHTTPA).
    I am thankful for any solution?
    Thanks in advance.
    Sebastian

    The straight answer is that it doesn't work.
    The only workaround I've used befor is having a shared network folder that both your user and the user running the SAP dialog service have access to. This does work, but you could argue it is a little messy.
    That windows user is probably named SAPservice<SID> on the OS level (or equivalent for Linux).
    Windows Operating System User Settings in an SAP System - SAP NetWeaver Security Guide - SAP Library
    Share a folder and grant both acess. Afterwards you can run the bapi with the network path.
    espen

  • Create a new user with Privileges to execute Seeded API's

    Hi,
    We have a requirement from our client, they want to create a new user with Privileges to execute Seeded API’s,
    So they dont want to execute using APPS user.
    We want to know is it possible to have a new user for executing seeded API's and if so what all priveleges we need to have.
    We are on 12.1.3 with 11.2.0.3  two node RAC Database on Exadata and Exalogic servers.
    Waiting for your suggestions and replies.
    Thanks

    Hi,
    Plz update this forum,
    and give me a suggestion at the earliest,
    Waiting for your valuable advice.
    Thanks

  • Update and create a new version of a PO

    Hi all experts,
    I'm doing a simple report to synch POs between an R3 and the SRM system. In order to do this, the report (who's running on the SRM) does as follows:
    1) given a PO number, retrieves from the backend all the PO-related tables (and translate them into SRM-like structures, but this is a minor note);
    2) retrieves details for the PO specified in SRM (BBP_PD_PO_GETDETAIL);
    3) perform a mapping between SRM items and corrispective R3 ones.
    4) update eventually some fields from the R3.
    5) then, finally, tries to do an update. And here the mess begins... I can't manage the update phase to do what I want...
    First of all; I retrieve all the data I need from the SRM system as follows:
    CALL FUNCTION 'BBP_PD_PO_GETDETAIL'
        EXPORTING
    *     I_GUID                           =
          I_OBJECT_ID                      = p_ebeln
    *     I_ATTACH_WITH_DOC                = ' '
          I_WITH_ITEMDATA                  = 'X'
    *     I_READ_BE_DATA                   = ' '
    *     I_ITEM_SORTED_BY_HIERARCHY       =
    *     I_WITHOUT_HEADER_TOTALS          =
        IMPORTING
          E_HEADER                         = srm_header
    *     ET_ATTACH                        =
        TABLES
          E_ITEM                           = srm_item
          E_ACCOUNT                        = srm_account
          E_PARTNER                        = srm_partner
          E_CONFIRM                        = srm_confirm
          E_LONGTEXT                       = srm_longtext
          E_LIMIT                          = srm_limit
          E_ORGDATA                        = srm_orgdata
          E_TAX                            = srm_tax
          E_PRIDOC                         = srm_pridoc
          E_MESSAGES                       = srm_messages
          E_ACTVAL                         = srm_actval
          E_ACC_ACTVAL                     = srm_acc_actval
          E_VERSION                        = srm_version
          E_HEADER_REL                     = srm_header_rel
          E_ITMLIM_REL                     = srm_itmlim_rel
          E_STATUS                         = srm_status.
    Then, since the modifications required are just at item granularity, I work on the srm_item table (i.e., let's say that the X item has its description changed).
    The problem is the UPDATE task: basically, I tried to use the BBP_PD_PO_UPDATE as follows:
    CALL FUNCTION 'BBP_PD_PO_UPDATE'
        EXPORTING
         i_park                       = 'X'
         i_header                     = s_headeru
         I_SAVE                       = ''
    *   IV_REJECT                    =
    *   IT_ATTACH                    =
        IV_WITH_CHANGE_VERSION       = ''
    * IMPORTING
    *   E_CHANGED                    =
    *   ES_HEADER                    =
       TABLES
         i_item                       = v_item
    *   I_ACCOUNT                    =
    *     i_partner                    = t_partner
    *   I_CONFIRM                    =
    *   I_LONGTEXT                   =
    *   I_LIMIT                      =
    *   I_ORGDATA                    =
    *   I_TAX                        =
    *   I_PRIDOC                     =
         e_messages                   = t_messages    .
    CALL FUNCTION 'BBP_PD_PO_SAVE'
    EXPORTING
    *    IV_WORKITEM_ID               = srm_header-object_id
    *     IV_USERTYPE                  =
         IV_HEADER_GUID               = srm_header-guid
         IV_CREATE_HIST_VERSION       = 'X'
    COMMIT WORK AND WAIT.
    where s_headeru is simply an adeguate structure for the FM (MOVE-CORRESPONDING srm_item TO s_headeru), so nothing new.
    Issues: this code actually updates the PO. I can see on the SRM web interface that the order's been updated (e.g. modified description)... BUT there's no trace of the previous version. Calling the UPDATE FM in this way pratically overwrites the order on SRM.
    IV_WITH_CHANGE_VERSION field seems not working: if I flag this field ('X') the update fm seems not working.
    Can anybody help me understanding how these FM calls and parameters works?
    I'd like to manage 3 different cases:
    - overwrite the version in update (OK, I got it),
    - overwrite the version in update and try to distribute (OK, got it just flagging the 'iSave' param);
    - don't overwrite, but create a new active version and don't distribute (that's still missing.. )
    Thanks in advance and forgive this huge post
    EDIT: sorry, I forgot to specify that if I flag the IV_WITH_CHANGE_VERSION input parameter for the UPDATE FM, the update doesn't work. More precisely, it terminates without any error message but the effect is that nothing seems to be done.
    Edited by: Matteo Montalto on Feb 27, 2009 5:55 PM

    Well, I'm now back on the system I was working on and can confirm that the version management is active in SRM.
    Maybe I can formulate the question in a simpler way...
    My task is quite simple: retrieve a Purchase Order in SRM (using the BBP_PD_PO_GETDETAIL function module), do some modifications on it (this step has been already tested) and then simply create a new version of the same purchase order (that obviously, will become the active version).
    What I have in hand are the structures I got from the BBP_PD_PO_GETDETAIL, eventually modified.
    Any hint? The solution posted above allows me to overwrite the PO active in SRM, I'd like to manage also the case in which the user wants to create a new version of the PO .

  • When I create a new polygon with applescript in in design cs4, I want to make a drop shadow

    when I create a new polygon with applescript in in design cs4, I want to make a drop shadow
    Is it possible?
    I am working with MAC OS 10.6.7 and CS4
    Can somebody help me?

    Adding a drop shadow should work fine regardless of shape… As Im a big fan of using styles everywhere I can…
    tell application "Adobe InDesign CS5"
    activate
    tell the active document
    set GotNoStyle to make new object style
    set properties of drop shadow settings of fill transparency settings of GotNoStyle to ¬
    {mode:drop, distance:3, angle:135, spread:0, blend mode:multiply, opacity:50, honor other effects:true, x offset:3, y offset:3, knocked out:true, use global light:false}
    set SomeFill to the last swatch
    tell the first page
    make new rectangle with properties ¬
    {fill color:SomeFill, geometric bounds:{10, 10, 30, 30}}
    apply object style (the result) using GotNoStyle without clearing overrides
    make new oval with properties ¬
    {fill color:SomeFill, geometric bounds:{10, 40, 30, 70}}
    apply object style (the result) using GotNoStyle without clearing overrides
    end tell
    end tell
    end tell
    You can then edit the object style to make global changes… Sorry my values were for my euro metric head…

  • I want to open a domain.site2 file outside the default folder (User/Library/Application Support/iWeb) with iWeb11, but iWeb only opens the domain file in the default folder. If I delete the default domain file, iWeb wants to create a new site. Help please

    I want to open a domain.site2 file outside the default folder (User/Library/Application Support/iWeb) with iWeb11, but iWeb only opens the domain file in the default folder. If I delete the default domain file, iWeb wants to create a new site. Does anyone have the same problem or know how to fix it?

    In Lion the Finder folder is now invisible.  To make it permanetely visible enter the following in the Terminal applicaiton window: chflags nohidden ~/Library and hit the Enter button - 10.7: Un-hide the User Library folder.
    For opening your domain file in Lion for the first time or to switch between multiple domain files  Cyclosaurus has provided us with the following script that you can make into an Applescript application with Script Editor. Open Script Editor, copy and paste the script below into Script Editor's window and save as an applicaiton.
    Just launch the applicaiton, find and select the domain file you want to open and it will open with iWeb. It modifies the iWeb preference file each time it's launched so one can switch between domain files.
    do shell script "/usr/bin/defaults write com.apple.iWeb iWebDefaultsDocumentPath -boolean no"delay 1
    tell application "iWeb" to activate
    OT

  • HT4897 I created an alias precisely because I wanted to make it the new default name and then quickly realized it wasn't possible. How long after deleting the alias will it become available again so that I can create a new account with it?

    I created an alias precisely because I wanted to make it the new default name and then quickly realized it wasn't possible. How long after deleting the alias will it become available again so that I can create a new account with it?
    I'm trying to make iCloud mail my primary email but I'm concerned that I may have lost the perfect email address forever.

    I have the same problem. After our wedding I've created an alias ([email protected]) to my actual AppleID Account ([email protected]). Now I'd the idea to delete the alias and my actual AppleID to create a new AppleID with ([email protected]).
    Is there really no possibilty to do this?
    Thanks in advance for quick and positive feedback.

  • Hello, I want to download a new version of Itunes on my windows PC to to communicate with my Ipad, but the program says: I cannot terminate this download. Since I have also removed the old version of Itunes, now I can't do nothing to communicate with Ipad

    Hello, I want to download a new version of Itunes on my windows-7-PC to to communicate with my Ipad, but the program says: I must terminate this download. Since I have also removed the old version of Itunes, now I can't do nothing to communicate with my Ipad

    figured it out myself; saw the solution with similar problems...Thanks

  • I'm so confused!! I just want to create interactive pdf files (with video and flash files), but this free trial version is confusing!! help!?!

    i'm so confused!! I just want to create interactive pdf files (with video and flash files), but this free trial version is confusing!! help!?!

    Thanks for your suggestions. I checked to see if the options you suggested were set incorrectly but they were set to sync all. This led me to think the problem was actually in the iphone. I re-initialized the iphone and did not allow the system to restore any of the previous settings. In essence, I forced the phone to reset to factory settings. Then my video podcasts started syncing. All is well now. I did notice that I had seven podcasts selected that were "HD" presentations, and as such, are not compatible with the iphone. I don't know if this had anything to do with my earlier situation, but now I'm getting the video podcasts automatically. I'm happy. It wasn't much fun forcing the iphone to forget all of my preferences and I'm still customizing the phone now several days later. I think I have everything working and back to normal except I haven't identified any of my email accounts as of yet. Thanks for your help.

  • I just reinstalled and this is the question that show "You have made changes to your photo library using a newer version of iPhoto. Do you want to quit and use the latest version of iPhoto, or do you want to create a new photo library?"  what do i do next

    I just reinstalled and this is the pop up that shows "You have made changes to your photo library using a newer version of iPhoto. Do you want to quit and use the latest version of iPhoto, or do you want to create a new photo library?"  what do i do next? it just keeps popping up and loading but only gives a quit button?

    Update it.
    How old is your Mac? If it's very recent you need to update via the App Store
    If you purchased at the App Store you need to update via the App Store
    Otherwise you update via Softare Update
    Regards
    TD

  • You have made changes to your photo library using a newer version of iPhoto. Do you want to quit and use the latest version of iPhoto, or do you want to create a new photo library?

    Long story short, I made a backup using TimeMachine of my iMac.  I got my MBA which was being repaired and i restored from backup.  Everything works fine, except for iPhoto which is not saying:
    "You have made changes to your photo library using a newer version of iPhoto. Do you want to quit and use the latest version of iPhoto, or do you want to create a new photo library?"
    I have OS X 10.7.2 and iPhoto 9.1.4.  I've tried:
    Repairing permissions
    Deleting iPhoto, installing agaian, and updating
    Repaired iPhoto Library (stays stuck at 98% when rebuilding database)
    I've also tried iPhoto Library manager which cannot even see the library
    Tried restoring from backup from iPhoto and it messed up library (I still had my backup)
    Quite frustrating - any ideas on how to get iPhoto back to life?

    Dunno why Software update was not displaying the latest version of iPhoto (9.2.1 as of January 27, 2012)...updating to this has fixed the issue

  • I have just just installed a new version of itunes. When i tried to run the new version it came up with the message "The file ituneslibrary.itl cannot be read because it was created by newer version of itunes. Can anybody advise?

    I have just just installed a new version of itunes. When i tried to run the new version it came up with the message "The file ituneslibrary.itl cannot be read because it was created by newer version of itunes.
    I installed the new version because itunes had not recognised my ipod nano 5G, and told me to reinstall. Itunes selected which version to install, so I don't understand what is going on. To add insult to injury it installed a pile of malware which I am still trying to get rid off.
    Any advice would be helpful

    Hello Davedamoclese,
    Go through the below link to Remove iTunes and all its components from your computer first and then Re-install fresh copy of iTunes on your computer.
    http://support.apple.com/kb/HT1923
    Note : DO not delete iTunes Library as it contains all your iTunes data, please go through the below link for where it is saved on your computer :
    http://support.apple.com/kb/ht1391
    You can download the latest version of iTunes from the below link :
    http://www.apple.com/itunes/download/

  • If i have an Apple account with monay in it and i want to creat a new account can i transfer the money from the old account to the new account ?

    if i have an Apple account with monay in it and i want to creat a new account can i transfer the money from the old account to the new account ?

    If the money contains a completely unspent balance from an iTunes gift card, the iTunes Store staff can put that money back onto the card.
    (89393)

  • I want to create a new apple id with another email, It says email already in use...

    I want to create a new apple id with another email, It says email already in use, but there is no account with that email( i use it for facetime and get apple offers) What do i do?

    You can check to see if it is associated with one of your IDs by following this: http://support.apple.com/kb/HT5625, and entering the email address at step 2 to see if it finds an ID owned by you.  If it doesn't, contact the Apple account security team and have them check into it by going to https://expresslane.apple.com, then click More Products and Services>Apple ID>Other Apple ID Topics>Apple ID account security.

Maybe you are looking for

  • Load balancing on zones

    Hi everybody, I have question about load balancing in zones. Can we perform load balancing on zones? If so is what are the pros and con in doing that? FYI i am asking about native zones. Any help will be greatly appreciaed. Thanks, John

  • Column-map in weblogic-cmp-rdbms-jar.xml

    Hi, How to specify column-map for the following database tables: Table1: id,col2,col3. Primary key - id. Table2: m_id,description,col4,col5. Primay key - (m_id,col4). The relationship I specified is table1-has-many-table2. This is a 1 to m relation a

  • Oracle Report Server with Weblogic crash

    Hello, I am using Report Server 6i on WinNT and the web server used is WebLogic 6.0.. The reports generated are of HTMLCSS format or PDF format. Cud U please send the replies for the below queries at the earliest.. 1.The data in the generated report

  • Thumbnails from Video without picture

    Hi I have a problem on the organizer. All the thumbnails from video are without any pictures, even when I do refresh the thumbnails. This does not happen in Premiere Elements where i get a picture in the thumbnails from every video. Why? Thank you fo

  • I really need help dual-booting Windows 7 on my Macbook Pro

    Hi.  I am totally lost in dual-booting Windows 7 on my Macbook Pro.  I got rEFIt, but I don't know what I need for the Windows 7 part.  Do I put an .iso file on a flashdrive?  Or can I just do it easier with a physical disc of Windows 7?  If you coul