CRM_ORDER_MAINTAIN Save Function problem

Hi
We are trying to create Grantor applications in SAPM CRM 6.0 using Function Module CRM_ORDER_MAINTAIN.      
From an ABAP program we are passing the parameters in order to recreate the same scenario that is used in the Standard SAP CRM Web to create this type of applications.
When the CRM_ORDER_MAINTAIN function is called the returned code is 0 (zero), we think that is no problem. Then, the CRM_ORDER_SAVE function needs to be call passing the u201CGUID of a CRM Order Objectu201D as parameter that is generated with the last order. But in this case the returned code is 1 which means u201Cdocument_not_saveu201D.
We also tried calling the CRM_ORDER_MAINTAIN function passing as parameters only the u201Cct_orderadm_hu201D table with the value u201CGAPu201D in the field u201Cprocess_typeu201D, and the table u201Cct_input_fieldsu201D with the value u201Corderadm_hu201D in the field u201Cobjectnameu201D; all this in order to create the u201CGUID of a CRM Order Objectu201D. And then use that GUID again in the CRM_ORDER_MAINTAIN function.
When calling the CRM_ORDER_MAINTAIN function a DUMP is generated because of the data contained in the table CT_DOC_FLOW. This dump has the type of message u201CCRM_DOC_FLOW No. 010u201D u201CDocument flow record could not be generatedu201D. The table result is:
4ABA4D7B372E0194E1008000AC137072 (Grantor ID in which the application will remain)
BUS2100010 (Business Transaction Type of Grantor application)
4AEA377815A301E6E1008000AC137072 (ID generated for the application)
BUS2000270 (Business Transaction Type)
If the ID is not sent, no error message is generated but also the record is not created.
We also test the CRM_TEST_ORDER_MAINTAIN function with the standard program passing the operation type u201CGAPu201D as parameter. But the execution of the program generates a DUMP. If the function is test with another type of operation as parameter, the program executes correctly generating the corresponding records.
If the u201CGUID of a CRM Order Objectu201D is generated calling the GUID_CREATE function, when calling the CRM_ORDER_SAVE function a DUMP is generated with type message X of class CRM_ORDER Nol 009  u201CIncorrect values in interface parametersu201D.
Please any idea to solve it.
Thanks in advanced,
Osmany

Hi,
concerning first part of your post - "document_not_save" is usually posted if some validations were not passed by new document.
it could be for example implementation of badi order_save.
You should debug function module crm_order_save and look for message with reason for not saving.
Regards
Radek

Similar Messages

  • Save function problem: HELP

    I installed the latest update for LR.
    Now when I save to the hard drive I get this window:
           Unable to Export:
            An internal error has occurred: Win32 API error 2
            ("The system cannot find the file specified.") when
            calling ShellExecuteExW from AgWorkspace.shellExecute  
    I don't even know what that means or what to do about it.
    Help, please. I'm trying to get a project done.
    Thanks!

    See Re: Unable to Export Error Message for how to fix this.

  • Problem with SaveAs function using random paths.

    The Setup:
    Part 1) I have a folder-level script that allows me to perform a SaveAs function from within forms. I do this as a way to save the document quietly in the background. The effect is that the file is overwritten by a copy of itself. The script is:
    var mySaveAs = app.trustedFunction( function(oDoc,cPath,cFlName)
        app.beginPriv();
        cPath = cPath.replace(/([^\/])$/, "$1/");
        try{
            oDoc.saveAs(cPath + cFlName);
        }catch(e){
            app.alert("Error During Save");
        app.endPriv();
    Part 2) From within my documents, I perform the save by calling the function below:
    function runSave()
    {if(typeof(mySaveAs) == "function") {
        var pathArray = this.path.split("/");
        var myFileName = pathArray[pathArray.length-1];
        var cPath = this.path.slice(0,myFileName);
        mySaveAs(this, cPath, myFileName);
    } else {
        app.alert("Missing Save Function\n" + "Please contact forms administrator");
    Part 3) I have several large forms that utilize an autosave to call the save function according to a time interval of 5 minutes, using:
    app.setInterval(runSave(), 300000);
    The Problem:
    Part 1) The autosave feature works fine and it works silently in the background. However, I start to experience problems when I have two forms open at the same time. If, for example, I have a form from one folder open, and open a form from a second folder, the save feature will sometimes save the active document to it's original folder (as intended, overwriting itself and creating an autosave) or sometimes save to the second document's original folder. This leaves me with an updated (autosaved) copy of the document in the wrong folder, and a non-updated copy in the original folder. This seems to vary depending on which document I opened last and/or which document is currently active. Though I can't seem to find the right combination.
    It's as thought the "this.path" is getting confused.
    Part 2) Worse still, if the two documents have the same name, as is often the case with these forms, any incorrect filing when saving causes an overwrite of the second document and loss of data.
    Part 3) To makes things maddening, this also happens at times when no second folder or second document is open. Instead, the misfiling saves the single, active document to a recently accessed folder. For example, I'll open a local folder and open a Word doc, close the doc and the folder, go to a different folder in a different root (a networked folder), open the form, and it autosaves to the local machine in the folder with the Word doc. So now not only do I have a non-updated copy in my correct folder, I have no idea where the updated copy was actually saved to until I come across it some time later.
    Part 4) Again, worse still, the previously accessed folder might happen to be one that contains a document with the same name, and that document gets overwritten by the autosave. I'll have no idea that the form has been overwritten until I happen to open it some time later and see that it contains data from a totally different form.
    What is going on and how do I stop it?
    Adobe Acrobat X Pro on a PC.

    Thank you, that is helpful to understand. I'd like to keep it as 3 parameters, as all my documents currently output 3 to the trusted function. And I'd still like to keep the error catch, but I'm not sure why the previous trusted function from the tutorial is no longer working, so I just want to run this by you:
    safeSaveAs = app.trustPropagatorFunction(function(theDoc,thePath,theFileName){
        app.beginPriv();
        var fullPath = (thePath + theFileName);  
        try {
            theDoc.saveAs({cPath:fullPath});
        } catch(e) {
            app.alert("Error During Save");
        app.endPriv();
    myTrustedSaveAs = app.trustedFunction(function(theDoc,thePath,theFileName){
            app.beginPriv();
            safeSaveAs(theDoc,thePath,theFileName);
            app.endPriv();

  • I have a site I do business with. They do not authorize passwords unless a dealer. I do no have on an auto save function, as I want to type my passwords in ea

    I have a site I do business with. They do not authorize passwords unless you are a dealer. I do not have passwords on an auto save function, as I want to type my passwords in each time for security. My password for this site will only work a short WHILE, AND THEN it will not be recognized by the site and I cannot get in.
    Then I must contact the company to reset or clear it manually on their end so it can be reset. They always give me the SAME SETUP PASSWORD to use. I use it, then I RESET PASSWORD on my end. The computer seems to remember my user NAME AT least on my computer as it comes up once I start typing the username in. They SAY IT is a settings issue on my end. I do not have this problem on any other site even THOSE WITH higher SECURITY. I need to FIX the issue OR may LOSE ACCESS To the site as is very aggravating for them and they say other have had the problem but usually with chrome but never constantly.I am not that computer literate ,but my husband is an IT Security professor and textbook writer but says doesn't really know Firefox. I do not really want to store passwords on computer as have been hacked several times. He and I do not understand some of the terms mentioned. since it is not a problem with other sites it should be fixable. Please me help using terms I or my husband can understand without having to give Firefox all my passwords. I would be happy to set up something different just for this one site if I need to but need easy instructions. Have cleared the cookies before but it still happens. What setting do I need to change or set to fix this? the other questions that come up seem very different and do not apply. FF 22 now but happened w other FF versions.

    I'm having a little trouble understanding the part about your password having to be reset. Why is that happening??
    Let's start with Firefox's settings:
    (1) You can configure the password manager feature on this tab:
    orange Firefox button (or Tools menu) > Options > Security
    There is a checkbox to enable/disable the feature.
    There also is a "Saved Passwords" button to review and remove any passwords you do not want Firefox to keep.
    That tab also has a feature to set a Master Password so that no one can use your saved passwords without knowing the Master Password. You may need to exit Firefox in order for Firefox to ask for that again.
    Related articles:
    * [[Password manager - Remember, delete and change saved passwords in Firefox]]
    * [[Use a Master Password to protect stored logins and passwords]]
    (2) Site-specific permissions
    If you want to use the password manager for other sites but NOT a particular site, you can configure that in the Permissions Manager.
    In a new tab, type or paste '''about:permissions''' in the address bar and press Enter.
    After the page loads, use the search box in the upper left corner to narrow down the list to the site you want to configure. Highlight the site on the left side, and on the right side, choose Block under Store Passwords.
    (3) Form autocomplete suggestions
    Separate from passwords, Firefox remembers entries you've made into forms (in most cases) and lists the matching ones below the form field in a drop-down.
    To clear a suggestion, press the down arrow key to highlight it and press the Delete key.
    To turn off this feature, see this article: [[Control whether Firefox automatically fills in forms with your information]].
    To review and selectively edit or delete form history entries, you need an add-on. For example, you could try this one: https://addons.mozilla.org/firefox/addon/form-history-control/

  • I can edit on Premiere Pro 6 files, but after a dozen keystrokes, the space bar and cursor keys stop working while the save function works

    I can edit on Premiere Pro 6 files, but after a dozen keystrokes, the space bar and cursor keys stop working while the save function, render workspace function, export file are still operational. How can I fix it so I may complete my assignment?
    Besides DaVinci Resolve, Adobe Creative Suite 6 is the only software on the machine. I am using Windows 7 Professional 64-bit Operating System on AMD FX 6100 six-Core Processor at 3.31gHz and 32 GB RAM memory. There are two SLI-bridged GTX680 NVidia cards.
    The software was very stable for the last six months, working with 720P proxy files from 2.5K masters (Blackmagic Design Camera). I am working on a feature-length project that exceeds 1000 edits. I have broken the file into 2 one hour segments.
    I have deactivated the software before reinstalling the entire OS from scratch. PP6 was very stable for 48 hours. Then the freezing space bar returns. After a dozen strokes into the project, same problem.  I have made cache files store next to originals, I have deleted preview files if they were corrupted and causing instability. Am I missing something?
    I have Microsoft Security Essentials for virus protection. I double checked the memory for damage/defect. Nothing says that the motherboard or other components are damaged.
    I am in film competition overseas and need to have deliverables in less than a month's time.  I lost the last two weeks troubleshooting and this crisis came at an inopportune moment of the project.
    Any assistance would be greatly appreciated.

    Still getting software freezes but found a way to mitigate for the mean time.
    Upon launching Adobe Premiere Pro, hit CTRL-ALT-DEL to launch TaskManager as well.
    You will want to highlight Adobe QT32 Server.exe
    Right click and select "End Process Tree"
    You will get considerable stability in the program, long enough to get timing of cuts done. Be sure to save often.
    If the program freezes, do not hit Save. You definitely want to avoid saving the corruption into your TimeLine
    CTRL-ALT-DEL to relaunch the TaskManager and highlight Adobe Premiere Pro.exe
    Right-click to "End Process"
    No need to reboot the whole system; just launch Premiere Pro again and continue with the session. Note that your work reverted to Last Save.
    Hope this helps until the bug is fixed.

  • Acrobat Reader Versions and saveAs, exportXFAdata Problems

    We use generate Forms with Reader Extension Save enabled.
    The forms are then opened within Acrobat Reader. In the onClose Event a Script called "saveXMLData" is called. This script is install in the javascript folder of the reader installation.
    The script :
    var saveXMLData = app.trustedFunction(function(doc)
         app.beginPriv();
         doc.saveAs({cPath:"/c/windows/temp/savedForm.pdf",
              bCopy: true,
              bPromptToOverwrite: false });
         doc.exportXFAData({
              cPath:"/c/windows/temp/savedForm.xml",
              bXDP:false
         app.endPriv();
         return;
    Using Acrobat Reader 7, eveything worked fine.
    Using Acrobat Reader 9 "saveAs" crashes the Application after the document is saved and the filled in Data is not saved.
    Without the saveAs function, at least the export File is generate but the data that where filled in are missing.
    Using Acrobat Reader X "saveAs" crashes the Application as well. Leavin out the saveAs function, the export File is generated as expected. Thus the filled in data values are saved.
    Using Acrobat X Pro everything works as with Acrobat Reader 7.
    Our Problem is that the customer uses Acrobat Reader 9. Are there expected incompatibilities with the different versions. Does anybody know any workarounds, settings?
    By the way disabling extended security does not help.
    Thanks
    Max

    It cannot be a problem of the installation, because at least Windows 7
    was a fresh install with nothing but Reader additionally installed.
    By the way, what do you mean by "risky", I followed straight the
    documentation from Adobe, where one is allowed to place function calls
    requiring a privileged context.
    Have you any better idea where to place the call to save? It must be
    called automatically, when the User closes the window, no additional
    interaction is possible.
    One other thing is the call to exportXFAData, have you any idea why
    there is a difference in behavior between reader version 7 / 10 and 9?
    I wrote that in version 9 the user entered data is missing.
    Am Donnerstag, den 21.07.2011, 05:53 -0600 schrieb try67:
    No, it doesn't work.
    Sorry, I don't have any ideas except for trying to repair the installation
    of Reader.
    However, placing code in the WillClose event is considered risky and should
    be avoided if there are alternatives available.
    >

  • Interactive Gantt chart & save functionality

    I've been trying to develop an interactive Gantt chart within Web Dynpro ABAP. Things have been going fine and altough there doesn't seem to be much documentation available, I've managed to get a simple Gantt chart WD application up and running.
    The following is said in the documentation:
    "It is possible to store changes made within the displayed Gantt chart as data structures again in the back end."
    I understand this that if I do changes to the Gantt chart, I should be able to "track" these changes in my code (and for example save the changes to database or whatever). Anyhow, I am not able to get this done. I've put break points to the event handler methods, and read the XML from the context node, but the XML has not changed.
    I also enabled the SAVE functionality for the Gantt (in the XML), which made the Save-button visible. If I click the save-button, I would assume that at this point the XML is updated with the refreshed chart data. Anyhow, this does not seem to happen. The XML seem to have lost the relevant part of it (=basically everything under the <graph> tag, which would include the changes (this same problems was addressed also before: Interactive Gantt chart - how to receive updated XML after user changes)).
    Any hints are welcome. I guess that this should not be impossible. I assume that for example in cProjects (which uses Gantt chart a lot) is using this functionality - unfortunately I don't have an access to a cProjects system.
    Kind regards,
    Karri

    Long time, hah..
    Anyways thanks to behave like a responsible person on SCN and taking care of your threads..
    Liked.

  • Recording midlet with save function

    Im making a midlet that records audio and saves it to phone's file system. I get the application to run in emulator but when in phone (Sony Ericsson V800) i immediately get error Cannot create a DataSource for: null. Here is the code i'm trying to get to work: (i tried to change the file:///test.wav to file:///e:/test.wav but it didn't help. Also i got a version of this code without the save function but it doesn't work in phone either, it just says error.
    import javax.microedition.midlet.*;
    import javax.microedition.lcdui.*;
    import javax.microedition.media.*;
    import javax.microedition.media.control.RecordControl;
    public class SaveCapturedAudioMIDlet extends MIDlet
    implements CommandListener {
    // the display items
    private Display display = null;
    private Alert alert = null;
    private Command exitCommand = null;
    // players and controls
    private Player capturePlayer = null;
    private Player playbackPlayer = null;
    private RecordControl rControl = null;
    private boolean error = false;
    public SaveCapturedAudioMIDlet() {
    // create the display
    display = Display.getDisplay(this);
    alert = new Alert("Message");
    alert.setTimeout(Alert.FOREVER);
    alert.setString("Capturing for 10 seconds. Say something intelligent!");
    exitCommand = new Command("Exit", Command.EXIT, 1);
    alert.addCommand(exitCommand);
    alert.setCommandListener(this);
    try {
    // create the capture player
    capturePlayer = Manager.createPlayer("capture://audio");
    if (capturePlayer != null) {
    // if created, realize it
    capturePlayer.realize();
    // and grab the RecordControl
    rControl = (RecordControl)capturePlayer.getControl(
    "javax.microedition.media.control.RecordControl");
    // set the alert as the current item
    display.setCurrent(alert);
    // if it is null throw exception
    if(rControl == null) throw new Exception("No RecordControl available");
    // and set the destination for this captured data
    rControl.setRecordLocation("file:///test.wav");
    } else {
    throw new Exception("Capture Audio Player is not available");
    } catch(Exception e) {
    error(e);
    public void startApp() {
    if(error) return;
    try {
    // first start the corresponding recording player
    capturePlayer.start();
    // and then start the RecordControl
    rControl.startRecord();
    // now record for 10 seconds
    Thread.sleep(10000);
    // stop recording after time is up
    rControl.stopRecord();
    // commit the recording
    rControl.commit();
    // stop the Player instance
    capturePlayer.stop();
    // and close it to release the microphone
    capturePlayer.close();
    // finally, create a Player instance to playback
    // check your device documentation to find out the root.
    // The following will work on devices that have the root
    // specified as shown
    playbackPlayer = Manager.createPlayer("file:///test.wav");
    // and start it
    playbackPlayer.start();
    } catch(Exception e) {
    error(e);
    public void pauseApp() {
    public void destroyApp(boolean unconditional) {
    if(capturePlayer != null) capturePlayer.close();
    if(playbackPlayer != null) playbackPlayer.close();
    public void commandAction(Command cmd, Displayable disp) {
    if(cmd == exitCommand) {
    destroyApp(true);
    notifyDestroyed();
    // general purpose error method, displays on screen as well to output
    private void error(Exception e) {
    alert.setString(e.getMessage());
    alert.setTitle("Error");
    display.setCurrent(alert);
    e.printStackTrace();
    error = true;
    }

    see this:
    http://www.hcilab.org/documents/tutorials/AudioTest/index.html
    I think the problem is the url passed to player "file:///test.wav"
    I think you must read the file from the filesystem with jsr 75 api (Fileconnection etc.) and then make a byte stream in order to pass it to the Manager.createPlayer().

  • Paint program with save function

    Anyone know a way to make a paint program in flash 8 with
    save function?
    The paint area should be quite large so the current jpg
    saving methods don't seem to work.
    Any solutions for this?

    You probably have to specify what exactly is the problem. Are
    you referring to the data size that has to be transfered to a
    server?

  • Pages '08 will not complete save function. I must force quit to save.

    Pages '08 will not complete save function. I must force quit to save.

    When saving, try "Save As" but make sure "Include preview in document" is NOT selected.

  • Is there a save function for online forms?

    Hi, I've created an online form which requests quite a lot of information from those who it is sent to.  Because of its size, I have made use of the skip logic rules to so that users can quickly skip sections that don't apply to them.  Notwithstanding this, the form asks questions which users may need to reseach and come back to so it wouldbe really useful if the form had a save function.  Does anyone know if such a function exists and if not, whether there are there imminent plans to develope one?
    If not, regreattably I will have to try and find another solution for online information gather that has a save and return function.

    hi randy
    I wholely support the request for a save feature for online forms, any idea of an ETA for this?
    Also to expand on this- the ability to print the  web form would be brillant.
    a few options for the  web forms submit to print, save.
    Web forms after/before  submission maybe to save as a pdf locally -  which then could be printed out.

  • Has anyone had a problem with TapMedia File Manage on iPhone 5. I reported a WIFI functionality problem to the developer and asked for support. Instead they have been very unprofessional by name calling me instead of logically evaluate and troubleshoot th

    Has anyone had a problem with TapMedia File Manage installed on iPhone 5? I reported a WIFI functionality problem to the developer and asked for support. Instead the company has been very unprofessional by name calling me instead of logically evaluate and troubleshoot the problem

    Hi AKE1919,
    Welcome to the Support Communities!
    The following information should help you with this:
    How to report an issue with your iTunes Store, App Store, Mac App Store, or iBookstore purchase
    http://support.apple.com/kb/HT1933?viewlocale=en_US
    Cheers,
    Judy

  • Save functionality is not working in adobe reader

    hello,
    i am designing layout for offline adobe forms in Adobe Live Cycle Designer ES version 8.1 and having adobe reader version 8.
    i save form on PC. When i open  it shows me save button after doing changes in form m not able to save it as save functionality is not working.....Kindly suggest me any solution..
    Edited by: Gopal Khandelwal on Nov 22, 2011 12:21 PM

    Moved to LiveCycle Designer

  • Save function grayed out

    Hi.
    I am using Acrobat Pro 9 and the save function via file menu is grayed out for All documents.
    The toolbar save button is also grayed out for All documents.
    However, I can use the Save As function via the file menu.
    It is annoying that I cannot just "save."
    I'd appreciate it if can someone explain this? And help me please?
    Thanks.

    I do have both; however, I am sure I have Adobe Acrobat 9 Pro open because
    it says
    that in the window and in the help tab.
    I checked the security manager, nothing is apparent.
    In addition, I am able to use the Save As function, just not the Save
    function or the Save button in the toolbar.
    It is annoying that I have to go to File>Save As> then press ok.

  • Code for SAVE functionality in FPM_OIF_COMPONENT

    Hi Experts,
    I have enhanced the component DPR_DET_DATA_PROJECT_O. The SAVE functionality for this component exists in FPM_OIF_COMPONENT.
    I have to raise error message depending on the custom fields added in  DPR_DET_DATA_PROJECT_O when I click on 'SAVE' button.
    Please share if any ideas where to write the code for SAVE functionality for the custom fields added on DPR_DET_DATA_PROJECT_O.
    Regards,
    Rafi

    Hi Rafi,
    These similar discussions might provide some assistance:
    BAdI or enhancement on SAVE of Cproject
    which badi triggers while saving cproject
    Code to call for saving the data in WDC - DPR_PROJECT_VIEW
    Cheers,
    Amy

Maybe you are looking for