CRM order giving the document could not be saved exception! Please help!

Hi Experts,
   I am changing the status of a order using CRM_STATUS_CHANGE_EXTERN and CRM_STATUS_CHANGE_INTERN.
   After this I call CRM_ORDER_INITIALIZE and the BAPI_BUSPROCESSND_SAVE.
   Finally commit.
           CALL FUNCTION 'CRM_ORDER_INITIALIZE'
              EXPORTING
                it_guids_to_init  = lt_crmd_guids
                iv_init_frame_log = 'X'
                iv_keep_lock      = 'X'
              EXCEPTIONS
                error_occurred    = 1
                OTHERS            = 2.
            ls_obj_save-guid = v_header_guid.
            append ls_obj_save TO lt_obj_save.
            CALL FUNCTION 'BAPI_BUSPROCESSND_SAVE'
               EXPORTING
                UPDATE_TASK_LOCAL       = 'X'  "commented. Taking default
                 SAVE_FRAME_LOG          = 'X'
               IMPORTING
                 LOG_HANDLE              = lv_log_handle
                TABLES
                  OBJECTS_TO_SAVE         =  lt_obj_save
                  SAVED_OBJECTS           =  lt_obj_saved
                  RETURN                  =  lt_return.
    The function BAPI_BUSPROCESSND_SAVE is returning error: The document could not be saved in it_return. I am not getting any other details. What am I doing wrong? Please help!
Thanks & Regards
Gopal

Hi Robert,
   The SPRO settings seems to be fine.
   The problem is that the order is not getting saved whenever there is backward status change. However if I see the item status via tcode "crmd_order" then it actually shows the new status. In other words status is changing but still order is not getting saved.
   When I debugged the code I found that first It has successfully executed the FM CRM_STATUS_CHANGE_EXTERN and then when CRM_ORDER SAVE is called the parameter et_saved_objects is empty. I am passing header Guid in  it_objects_to_save. If order is saved properly then et_saved_objects should be filled with order guid.
CALL FUNCTION 'CRM_ORDER_SAVE'
               EXPORTING
                 it_objects_to_save = lt_save
               IMPORTING
                 et_saved_objects   = lt_saved_obj
               EXCEPTIONS
                 document_not_saved = 1
                 OTHERS             = 2.
On further debugging inside CRM_ORDER SAVE I found that the FM CRM_EVENT_PASS_INFO_EXE_OW returns lt_events empty. That means the given guid  is not registered for saving. Why is this so?
  are there objects registered for saving
    call function 'CRM_EVENT_PASS_INFO_EXE_OW'
      exporting
        iv_exetime     = gc_event_exec_time-save_order
        iv_order_guid  = ls_object_to_save
        iv_obj_kind    = gc_object_kind-orderadm_h
      importing
        et_event_calls = lt_events
      exceptions
        others         = 99.
    if lt_events is initial.
      delete ct_objects_to_save.
      continue.
    endif.
   The problem is when the order is not getting saved the status change is not getting transferred to BW or BI.
   What could be the issue?
Thanks
Gopal
Edited by: gopalkrishna baliga on Apr 7, 2011 5:59 AM
Edited by: gopalkrishna baliga on Apr 7, 2011 6:09 AM

Similar Messages

  • Error while saving interactive pdf form:The document could not be saved.

    Hello,
    Can anyone please help me here.
    Not able to save the pdf form.
    I have interactive form which contains static fields,text fields,Document digital signature and a submit button.
    After filling and signing the form it will ask for saving the form.But saving is giving error.
    Error : The document could not be saved.There was a error reading the document(26).
    Can anyone please tell me why i am getting this error.
    Thanks in advance,
    Menaka.H.B

    Hello,
    Integrated into WD application means -> Interactive form generated in SFP transaction is used in abap webdynpro application.
    Offline scenarion -> Since it is an interactive form, user will fill the form offline and submit it by email.From the webdyn pro appliaction user will download the form to the local desktop.Fills it offline and submits the form.
    Now the interactive form generated directly from sfp tcode is working fine.I can fill the form,Sign it, save it and submit the form.
    But the form downloaded from the WD application cannot be saved and is not allowing to dogitally sogn the form.
    Its giving error The document could not be saved. there was a problem reading the document(26).
    Thanks and Regards,
    Menaka.H.B

  • The document could not be saved. There was a problem reading this document (114).

    After adding some sticky notes to a PDF in Adobe Reader i went to save it and it comes up with "The document could not be saved. There was a problem reading this document (114)." and will not let me save it. Please can you advise if there is anyway of saving this document with the sicky notes in?

    The problem is most likely document corruption. Try to work on a new copy from the original source.

  • The document could not be saved. A file I/O error has occurred

    Hello,
    I have scanned PDF files varying in size from < 1,000 pages to > 5,000 pages. I seem to experience this issue on and off on various files regardless of the size. The issue is when I OCR the pdf using Adobe Acrobat X Pro, when it's completed the OCR process and I go to save it errors out with: "The document could not be saved. A file I/O error has occurred"
    I have tried:
    1. Saving to local hard drive
    2. Saving to network drive
    3. Renaming file and repeating steps 1&2
    4. File/Save as and reducing (but it won't allow me to do so without saving first, lol)
    Any thoughts? Thanks so much.
    Phil
    System specs:
    Windows 7 Professional
    16 gb RAM
    500Gb Hard drive (409gb free)
    Adobe Acrobat X Pro
    Message was edited by: bldfb024  (system specs included at bottom)

    No it is from a disk drive.
    Robb Hanke
    [signature deleted by host]

  • Error message "The document could not be saved. This file is already open" when trying to complete an electronic signature.

    Running Adobe Acrobat Professional 10.1.0. I cannot upgrade to newer version because several applications were already tested on this version.
    When trying to complete an electronic signature, my users receive the error message ""The document could not be saved. This file is already open".  When they close and open the file again to try to sign again they find a corrupted electronic signature.  Instead of a clean signature with the box colored in light blue they see their signature with the embedeed message Click Here to Verify & Sign with the box colored in grey.
    We turned off antivirus in the Sharefolder where the forms are stored and nothing.  We turned off the antivirus on the client and nothing.  We stored the files in another server and nothing.  One workaround is saving the file in the desktop, signing it, and then back to the Sharefolder.  Another is saving the file with a different file name.
    I've searched and the only similar thing was caused by the Windows Preview Pane.  See Information Transmogrification: Adobe Acrobat saving a file does not work, displays “File may be read-only”.  No luck with this one too.
    Is definitively an intermittent problem.  The users that experience the problem experience it intermittently.
    This started to happen when we move our computers to Windows 7.
    Any ideas?

    Correction on Question:
    This is a web application and the users need to be able to load the editable .pdf form from the website, edit it and submit it back to the website from within Internet Explorer.
    Users began getting the error message:
    'The document could not be saved. This file is already open.'
    last Friday after having no problems prior to this. Some users can edit the editable .pdf forms on the website and save the file with the same name to the website. Some get the error mentioned in the subject. 
    We really need help getting this resolved.
    Sandy Martin

  • When I try to save a doc to my server I sometimes get this: The document could not be saved. There was a Macintosh system error (-5000). What does it mean?

    When I try to save a doc to my server I sometimes get this: The document could not be saved. There was a Macintosh system error (-5000). What does it mean?

    What kind of file are you saving, and what sort of clientserver setup do you have?
    If you're using MS Office, it doesn't play nice with OS X Server, particularly with network homes.

  • I keep getting "The document could not be saved. A file I/O error has occurred."

    Everytime I try to save a PDF file in Reader X... "save as...PDF" I get the "The document could not be saved. A file I/O error has occurred."
    When I save it "save as...Text" is saves.

    No it is from a disk drive.
    Robb Hanke
    [signature deleted by host]

  • The document could not be saved. The server said: "The operation failed because an unexpected error occurred. (Result code 0×80020005)" Please ensure you have completed all required properties with the correct information and try again.

    I am having problems  saving documents back to SharePoint when any of the document properties (metadata columns) are set to be "managed metadata". The check-in/save fails with error:
    The document could not be saved. The server said:
    “The operation failed because an unexpected error occurred. (Result code 0×80020005)”
    Please ensure you have completed all required properties with the correct information and try again.
    I have seen similar threads that suggest this is a known issue with this version of Acrobat but I would like conformation from Adobe that this is a known issue and whether it is fixed in a newer version?
    Adobe Acrobat version 10.1.13
    SharePoint 2010

    Hi quodd,,
    We are sorry for the issue being faced by you. I need some information from you so that I take further steps:
    1. Which Adobe product are you using Acrobat or Adobe reader- what is the complete version?
    2. How are you opening and saving the PDF, the exact workflow?
         Are you doing it from within Adobe Reader/Acrobat application or opening it from browser, doing changes and saving it using browser itself.
    3. Can you try to save a PDF to library with Custom template and managed metadata columns using browser directly.
    4. Please verify that columns name do not contain spaces or some other special characters.
       Can you try to save PDF to library with Custom template and just a single managed metadata column  with a simple name
    Thanks,
    Nikhil Gupta

  • Adobe Acrobat Pro XI 11.0.06 when I reduce file size or try to optimize, I get this error: The document could not be saved. A number is out of range. I do the exact same thing every month and it works. I did it a few days ago and it worked. I receated the

    Adobe Acrobat Pro XI 11.0.06 when I reduce file size or try to optimize, I get this error: The document could not be saved. A number is out of range. I do the exact same thing every month and it works. I did it a few days ago and it worked. I receated the pdf, I renamed it. tried to do it before I imported more pages. no go. the 16 mg pdf will normally reduce to 5 or 6

    Hi,
    Are you facing the issue with any pdf file?
    Please try updating Acrobat to 11.0.7 and check.
    You might also want to repair Acrobat and see.
    Regards,
    Rave

  • The document could not be saved. an unexpected network error occurred

    I have several users on a terminal server that access a PDF from a file server. This PDF has many fillable fields like Name: with an empty text box next to it.
    Sometimes when the users open this PDF everything is missing except the fillable text fields. If they try to save the file they get the error in the subject of this ticket:
    the document could not be saved. an unexpected network error occurred
    Obviously, this sounds like a networking error, but 2 things.
    1) The terminal server and the file server on both virtual servers on the same host, using the same SAN. Very unlikely to have a networking error.
    2) This doesn't happen to every, it seems to be only affecting 3 of about 25 right now, and it is not all the time.
    Any thoughts? I have checked to see if there were any hidden lock files, but that wasn't it. Google-fu turned up nothing.
    Thanks for your help

    Hey jdorimoto,
    Could be please confirm if you are using Adobe Reader or Acrobat (what version) to open a PDF form.
    What version of OS are you using?
    Try saving the form to any other location with administrative privileges and then check.
    Hope to get your response.
    Regards,
    Anubha

  • The document could not be saved. There is error reading the document(23).

    HI ,
    Im getting error : the document could not be saved. There is error reading the document(23).
    Had tried de-select "Save As Optimizes for Fast Web View". error still persist.
    Pls help. Thanks

    Hi,
    I am moving your posting at Acrobat.com forum to Acrobat forum.
    Hisami

  • The document could not be saved.  Write error.

    I have a portfolio with a OneNote section embedded in the portfolio.  When I attempt to save the document, I get an error message stating, "The document could not be saved.  Write error."  The document is stored on a network drive.  Other users are able to make edits and save.  I am using Acrobat x, Windows 7, and SharePoint 2010.  I am unable to find any solutions on the web.

    *Bump*

  • The document could not be saved error when Saving to a SharePoint Document Library

    I am having an error when opening and commenting on Adobe PDF's that are stored in SharePoint 2010. When I attempt to save a PDF I have commented on I get the following error:
    The Document could not be saved. The server said:
    "The operation failed because an unexpected error occurred. (Result code: 0x80020005)"
    This seems to happen in a Document Library that is based on a custom template with Managed Metadata columns, when we remove the columns it seems to work and when we create a library with a standard document library template and manually add the manage metadata columns it also works fine.
    We would make this change to all document libraries where this issue occurs however this template is applied to 100's of libraries with thousands of documents stored in them. Is there anything we can look at to attempt to resolve this issue?
    Word, Excel, PowerPoint, etc. documents seem to work fine in these libraries.

    Hi quodd,,
    We are sorry for the issue being faced by you. I need some information from you so that I take further steps:
    1. Which Adobe product are you using Acrobat or Adobe reader- what is the complete version?
    2. How are you opening and saving the PDF, the exact workflow?
         Are you doing it from within Adobe Reader/Acrobat application or opening it from browser, doing changes and saving it using browser itself.
    3. Can you try to save a PDF to library with Custom template and managed metadata columns using browser directly.
    4. Please verify that columns name do not contain spaces or some other special characters.
       Can you try to save PDF to library with Custom template and just a single managed metadata column  with a simple name
    Thanks,
    Nikhil Gupta

  • Error Message "The document could not be saved. A number is out of range"

    Hello to all,
    I'm working on a G5/10.4.11/Illust CS3/Acrobat 9 and use to generate .pdfs from .ais by using "Save as pdf" function. Either with LowRes profile and HighRes profile. My pdfs are sent to PC users that use to post it them for changes. But when they need to save them, they get the message "The document could not be saved. A number is out of range".
    I know there was a few subject about that but do you have a recent solution to give me to help avoiding this bug ?
    Many thanks in advance !
    Stekc

    As a follow to the above, the problem was related to a file transfer.  The PDFs in question were being transfered from a Unix platform to a Windows Server.  The transfer was defaulting to ASCII or Text and not binary.  Apparently this was never an issue with older versions of Adobe Reader.  Once the transfer was switched to binary, Reader X was able to view the files with no missing pages.  Something was being stripped from the file that Reader X just didn't like.

  • Error: The document could not be saved

    Hi
    I opened one of pdf file from mapped network drive and then make comment in it and  I am unable to save it. I receive the following error
    " The document could not be saved. Cannot save to this filename. Please save the document with a different name or in a different folder."
    Please advise.
    Thanks.

    Hi,
    You may refer the following thread for the solution and detailed discussion:- Cannot Save as to network after update to 11.0.10.
    Regards,
    Nakul

Maybe you are looking for

  • How do i get pop3 mail to stay "completely" on iphone?

    my work email is a pop3 account. it works well other than the following: 1) email loads properly w/ attachments, etc. and i can view on the iphone. 2) when i go back to look at the same message later, the iphone looks for the information again, will

  • Text on my screen is blurry/fuzzy

    hello. i accidentally hit a key (not sure which one) the other day, and then i noticed that my desktop background had changed from my customized background to the default blue Mac screen. no big deal, i just changed it back to the picture i had up be

  • VBRP does't have the PROFIT CENTRE FIELD

    Hi Gurus, Hi Gurus I  am fetching the billing(commision, credit notes ) from vbrp, based on profit centre, controlling area and date. but some where in vbrp profit centre field having no value. Actually this report is FICO  but commission ,credit not

  • Billing phone calls already covered with premium a...

    I have got a premium account as well a World minutes for Office 365 suscription. My minutes for the Office 365 suscripton are over and then I made two phone calls, one to a land line in Mexico and the other one toland line in Bogota, Colombia. Both p

  • Windows 7 BSOD Bootcamp crash

    I have a mac pro 2.66 GHz Quad Intel Xeon 3GB 1066 MHz DDR3 So i installed boot camp with windows 7 and have been using it all the time.  When i turn on my computer i hold the alt key to select windows 7 while i boot up my computer... Just a few hour