Custom program to save partners.. not saving Partners.

Saving Partners.
Hi Guys,
I am working on Solution Manager - and I am trying to save Business Partners in Solution Manager.
I am using the function module - CRM_ORDER_MAINTAIN and then CRM_ORDER_SAVE to confirm the changes. This gives no errors - but does not save the Partners.
I also tried the program (se38 program) CRM_ORDER_MAINTAIN but even that is not able to save the partners.
I check CRMD_ORDER - no partners are updated.
As far as I remember, this function module used to work and I was able to save the partners, but after upgrade it stopped saving partners - but I may be wrong over here.
Has anyone seen code to save partners ?? Can you help me with what all parameters I need to pass to the function module to save the partners?
I also tried - BAPI_LEAD_CREATEMULTI, that saves everything except the partners - and this is only for creation - I also need to change. (actually this FM also first creates and then calls - CRM_ORDER_MAINTAIN).
I also tried - CRMXIF_ORDER_SAVE and failed.
Please help.
Navdeep

Hi,
i think you have to call function module CRM_ORDER_SAVE after this.
CRM_ORDER_SAVE only works if an change event has been raised, and i think here could be the problem.
Please try the following:
After your CRM_ORDER_MAINTAIN call the following modules and COMMIT afterwards:
  include: crm_mode_con,
           crm_object_kinds_con,
           crm_events_con,
           crm_object_names_con.
    call function 'CRM_EVENT_PUBLISH_OW'
      exporting
        iv_obj_name = gc_object_name-action
        iv_guid_hi  = lv_guid
        iv_kind_hi  = gc_object_kind-orderadm_h
        iv_event    = gc_event-save.
  call function 'CRM_ORDER_SAVE'
    exporting
      it_objects_to_save   = lt_guids
      iv_no_bdoc_send      = abap_true
    importing
      et_saved_objects     = lt_saved_objects
      et_exception         = lt_exception
      et_objects_not_saved = lt_not_saved
    changing
      cv_log_handle        = l_loghndl
    exceptions
      document_not_saved   = 1
      others               = 2.
COMMIT WORK.
Hope this helps,
Christoph

Similar Messages

  • "Desktop & Screen Saver" settings not saving upon reboot.

    "Desktop & Screen Saver" settings not saving upon reboot. Settings are always set back to factory default upon computer startup. Need help! Please!

    Back up all data.
    This procedure will unlock all your user files (not system files) and reset their ownership and access-control lists to the default. If you've set special values for those attributes on any of your files, they will be reverted. In that case, either stop here, or be prepared to recreate the settings if necessary. Do so only after verifying that those settings didn't cause the problem. If none of this is meaningful to you, you don't need to worry about it.
    Step 1
    If you have more than one user account, and the one in question is not an administrator account, then temporarily promote it to administrator status in the Users & Groups preference pane. You can demote it back to standard status when this step has been completed.
    Triple-click the following line to select it. Copy the selected text to the Clipboard (command-C):
    sudo chflags -R nouchg,nouappnd ~ $TMPDIR.. ; sudo chown -R $UID:20 ~ $_ ; chmod -R -N ~ $_ 2> /dev/null
    Launch the Terminal application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid.
    Paste into the Terminal window (command-V). You'll be prompted for your login password, which won't be displayed when you type it. You may get a one-time warning not to screw up. If you don’t have a login password, you’ll need to set one before you can run the command. If you see a message that your username "is not in the sudoers file," then you're not logged in as an administrator.
    The command will take a noticeable amount of time to run. Wait for a new line ending in a dollar sign (“$”) to appear, then quit Terminal.
    Step 2
    Boot into Recovery by holding down the key combination command-R at startup. Release the keys when you see a gray screen with a spinning dial.
    When the OS X Utilities screen appears, select
    Utilities ▹ Terminal
    from the menu bar. A Terminal window will open.
    In the Terminal window, type this:
    resetpassword
    That's one word, all lower case, with no spaces. Then press return. A Reset Password window will open. You’renot going to reset a password.
    Select your boot volume ("Macintosh HD," unless you gave it a different name) if not already selected.
    Select your username from the menu labeled Select the user account if not already selected.
    Under Reset Home Directory Permissions and ACLs, click the Reset button.
    Select
     ▹ Restart
    from the menu bar.

  • Custom 2-week timecard layout not saving hours on 2nd Monday on 2nd row

    We have a custom timecard layout, based on the projects and payroll layout, that moves the comments from the details page to the front page after each day's hours field.
    It is working fine when used with a one-week timespan, but for 2 weeks, there is a strange problem. If you enter row 1 with no hours on the second Monday, then try to enter row 2 with hours on the second Monday, it will not save those hours. Instead, the hours are erased and the field blanked out.  It will save hours on other days, but not the second Monday.  Also, if you hit Continue, the hours are blanked out on the second Monday.
    Anyone else experienced this?

    Yes, thanks, I have found it.
    Independently, I discovered the problem with the timecard. In the two week format, the second Monday hours input element had an ID of B2822, which was the same ID of the comments for the second Tuesday.
    The sequencing for the ids for the hours input fields is B2210 .. B2227, B2228, B2229 etc.
    The sequencing for the ids for the comments input fields is B2810, .. B2821, B2822, B2823, etc.
    It would appear in our case that when the timecard layout is generated, the second Monday on the second row gets an ID of B2822 when it should be B2228, which seems to be a typo somewhere.
    Once I understood the problem, following Ramu's suggestion that it was a known bug, I was able to search metalink using the search term 'OTL hours not saved' and found patch 6368806, which addresses a similar problem with a different layout. I will post an update if that patch resolves the problem.
    Note:467906.1 and Note:467483.1 have more information.

  • Customer & Material Master data is not saved in SAP 4.7

    Hi All,
    We created a customer in T code XD01 and saved it. system threw a message that "customer 500001 has been saved" but when I tried to check the customer ID 500001 in XD02 and XD03, it says custoemr 500001 has not been created.
    I have checked in table KNA1, KNB1 & KNVV. No data is available in these tables.
    Same case with material master data even.
    Can anyone please tell me what could be the reason for this problem & how to fix it.
    Thanks in advance.
    JM

    Dear JM,
    Goto SNRO- Enter the number range object & click on "Change " icon.
    NR Object: DEBITOR
    Check whether any value maintained in "No. of numbers in buffer",  make it blank & re-create customer.
    It may not be exact route cause of the problem, but could be the reason .
    Test & update the forum.
    Regards,
    Reazuddin MD

  • Energy Saver Preferences not saving

    Hello!
    The title of the question says it all.  No matter what I select in "energy saver" preferences, the settings are *not* being saved, and revert to putting the computer to sleep after 10 minutes (?!) and the display to sleep after 5 minutes. (These settings are useless for my usage.)
    I have Googled the problem, and even searched this forum. I have tried everything people have suggested, and still the settings don't save.
    I've moved the .plist file out of the folder.
    I've deleted the .plist file
    I've even changed the file permissions to "read-only" for System, Wheel and Everyone.
    Still the settings revert.. What could possibly be interfering with my settings? I only install software from the AppStore and an occasional game from "BigFish Games" game manager, I have never installed anything like "CleanMyMac" or anything like that.
    Any help would be *greatly* appreciated!
    Thanks!

    OK!
    I upgraded to Yosemite today, and am enjoying the update so far.
    However, with regards to this thread, the problem persists. Every single time I restart, the energy settings revert to putting the computer to sleep after 10 minutes and the display to sleep after 5 minutes..
    Ridiculous!! A whole version upgrade and this simple little problem remains unfixed. Sigh.  Maybe on my next day off I'll take the time to totally erase & reinstall Yosemite -- maybe then it'll finally work as it's supposed to.

  • "Save As" not saving

    Windows 7, I-920 processor, 12GB ddr3 memory, ATI 5770 video, multiple, 1 TB, 7200 rpm drives for images and backups.  CS6 13.0.1 X64
    I've had this periodically ever since going to CS6, but it's rare and seemingly random.  I'm editing, I open a Nikon D300 .dng from Lightroom as a Smart object.  Add layers, do fiddling, do a Save As.  Works fine...  Repeat several times.  Works fine every time...
    EXCEPT when it doesn't.......  Open the file exactly the way every other one gets opened.  Create layers, make changes, etc.  Do a "Save As"....  And it never gets off "0% saved". 
    No error, no popup, no nothing.  It just sits there.
    Nothing in the event log for application or system.  No controller problems, no disk problems, no nothing problems.
    I let the thing sit for 10 minutes in the HOPE that everything would get written to the recovery by the auto-save, then finally crashed Photoshop.
    Re-opened.  No recovery.
    I can redo what I did, but if this is intermittently going to happen, does anyone have a way to either force Photoshop to stop trying to save so I can try again, force it to write everything with the auto-save, or force it to spit out some kind of error so I have a clue what's going on?

    Does the silence mean nobody's ever seen this, or that there's no workaround?

  • Password save option not saving

    I have Win 7 and am still getting used to stuff, I have tried run as administrator, run as user, disable master password, enable master password but nothing allows me to save my passwords into the password manager!
    Help, this is getting frustrating

    * Make sure that you not run Firefox in [[Private Browsing]] mode
    * In Private Browsing mode some menu items are disabled (grayed) and features like visited links are disabled and not showing
    * You are in Private Browsing mode if you see "Tools > Stop Private Browsing", possibly grayed
    Start Firefox in [[Safe Mode]] to check if one of your add-ons is causing your problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).<br />
    See [[Troubleshooting extensions and themes]] and [[Troubleshooting plugins]]<br />
    <br />
    If it does work in Safe-mode then disable all your extensions and then try to find which is causing it by enabling one at a time until the problem reappears.<br />
    You can use "Disable all add-ons" on the [[Safe mode]] start window to disable all extensions.<br />
    You have to close and restart Firefox after each change via "File > Exit" (Mac: "Firefox > Quit"; Linux: "File > Quit")

  • P.O change if i change only screen exit field the data is not saving

    Hi ,
    In the purchase order header custom tab i am added a screen exit field .In the purchase order creation mode the screen exit field is saving.But in the change mode if i am changing only the screen exit field then it is showing as 'no data to save' and not saving .But at the same time if i am changing some standard field with the screen exit field then both the field is saving.
    I have to activate any field to save the screen exit field.Please let me know any exit to be activated for saving the data.
    With Regards,
    Ambrose

    Hi
    Pls keep a break-point in the PAI of Screen exit and check, whether it stops in change mode
    Regards
    Madhan D

  • Old partners not determined if VA02 is not saved

    Hi,
    In VA02, i change the shipto and determine the partners (from user exit USEREXIT_MOVE_FIELD_TO_VBKD).
    Partners are determined correctly but the problem is if the user doesnt want to save at this time, partners are not coming as of old shipto. This is because I have written code to delete the partners (in VBPA) and get the new partners for new shipto. So for this requirement, do i need to add code in this user exit or need to look for a other user exit/ BADI and check if  transaction is not saved then  get the old partners.
    Please advise.
    Can anyone  advise on this problem.
    Thanks
    Ashok
    Edited by: Ashu on Jan 12, 2010 11:45 PM

    Hi,
    I have written the code in "userexit_save_document" but if i dont save the debug cursor is not coming upto this exit.
    Please advise.
    Ashok

  • GOS on custom program not saving links

    Hi all, I've just implemented GOS to a Z program following the instructions of a SDN contribution document called "How to attach documents to any custom program using GOS". I simply want to add GOS to the selection screen of the program in order to locat and store documentation regarding this Z program.
    I run the program and the GOS button is displayed, I add some link or document and then I display the list of attachments and everything seems to be working ok. So when I leave the program and run it again no list of attachments is available as this is greyed out. Anyone could help please.
    Steps I performed:
    I created the Business object saved and released to implemented with the following:
    Key -> programName (TRDIR-NAME)
    and redefined the GOSAddObjects method like this:
    BEGIN_METHOD GOSADDOBJECTS CHANGING CONTAINER.
    DATA:
          SERVICE(255),
          BUSIDENTIFS LIKE BORIDENT OCCURS 0,
          LS_BORIDENT Type BORIDENT.
        CLEAR LS_BORIDENT.
        LS_BORIDENT-LOGSYS = SPACE.
        LS_BORIDENT-OBJTYPE = 'ZGOS'.
        LS_BORIDENT-OBJKEY  = OBJECT-KEY.
        APPEND LS_BORIDENT TO BUSIDENTIFS.
      SWC_GET_ELEMENT CONTAINER 'Service' SERVICE.
      SWC_SET_TABLE CONTAINER 'BusIdentifs' BUSIDENTIFS.
    END_METHOD.
    Z program:
    REPORT  Z_RUBS_TEST_GOS.
    CONSTANTS: OBJTYPE TYPE BORIDENT-OBJTYPE VALUE 'ZGOS'.
    DATA: MANAGER TYPE REF TO CL_GOS_MANAGER,
    OBJ TYPE BORIDENT.
    PARAMETERS: MATNR TYPE MARA-MATNR.
    AT SELECTION-SCREEN OUTPUT.
    CLEAR OBJ.
    * SET OBJECT TYPE TO 'ZGOS'
    OBJ-OBJTYPE = OBJTYPE.
    OBJ-LOGSYS  = 'OP1CLNT200'.
    * SET OBJECT KEY = REPORT NAME
    SELECT SINGLE NAME FROM TRDIR INTO OBJ-OBJKEY
    WHERE NAME = SY-REPID.
    * CALL GOS MANAGER WITHOUT CONTAINER (WILL BE DISPLAYED IN THE TOOLBAR)
    CREATE OBJECT MANAGER EXPORTING
    IS_OBJECT = OBJ EXCEPTIONS
    OTHERS = 1.

    You must add COMMIT WORK (AND WAIT or not) somewhere in your application (add a button that the user), or use CREATE OBJECT manager EXPORTING ... IP_NO_COMMIT = space or 'R' ... so that the COMMIT WORK will be done automatically by the GOS manager. Note: IP_NO_COMMIT = 'R' means that the service will start in its own LUW (using synchronous RFC).
    For more information, read the [SAP Library - GOS - Publishing unique object|http://help.sap.com/saphelp_nw2004s/helpdata/EN/7e/4dbeb62c8e11d4a39e00a0c943858e/frameset.htm] (well, it doesn't talk about 'R'...)

  • Enhancement spot is not triggered in Custom Program.

    Dear Experts,
    After saving the sales order i would like to view the print preview.
    For this I found one implicit enhancement spot and i called the print Program for sales order. Then i am able to view the Sales order print preview in VA01 Transaction code. I wrote my logic in the Below mentioned Enhancement implementation.
    Main Program : SAPMV45A
    Include : MV45AF0B_BELEG_SICHERN
    Form : beleg_sichern
    At the endform I am calling the Print program of Sales order so that after saving the sales order i am able to view the print preview of the Sales order.
    The requirement is i have created the Custom program in that i am using the "CALL TRANSACTION 'VA01'". In the custom program i am not able to view the Sales order print preview. The Enhancement spot is not getting triggered.
    Could you please help me to solve this issue.
    Thanks & Regards,
    Ashok.

    Like I said, you must use the parameter RA_COMMIT from BDC_OPTIONS. Like this:
    DATA: bdc_options TYPE ctu_params.
    bdc_options-ra_commit = ' X' .
    bdc_options-dismode = ' N'.
    CALL TRANSACTION 'VA01' OPTIONS FROM bdc_options.
    Everytime you use a CALL TRANSACTION, the called transaction will stop when a COMMIT WORK is found, and you have to pass the parameter RA_COMMIT with 'X' to make the transaction execute any code after COMMIT WORK. This only happens when you call a transaction via CALL TRANSACTION, it will not happen if the user access a transaction directly.
    For further explanation you can use the link from documentation that I posted on my first reply.
    Regards,
    Mauricio

  • Pop Up blocker exceptions are not saved in the browser for use, the next time the PC reboots. How do you save these exceptions for long term use?

    Pop Up blocker exceptions are not saved in the browser for use, the next time the PC reboots. How do you save these exceptions for long term use?

    In case you are using "Clear history when Firefox closes":
    *do not clear the Site Preferences
    *Tools > Options > Privacy > Firefox will: "Use custom settings for history": [X] "Clear history when Firefox closes" > Settings
    *https://support.mozilla.org/kb/remove-browsing-search-and-download-history
    Note that clearing "Site Preferences" clears all exceptions for cookies, images, pop-up windows, software installation, passwords, and other website specific data.
    If you have software like Advanced SystemCare (Surfing Protection feature) that might reset some files to older versions to protect these files against changes then check the settings or uninstall this software.

  • Data not saving in Custom Infotype

    Dear Experts,
    I have created a custom infotype, 9003, for this I creates a structure ps9003.
    And I have to create a primary key field in my infotype, so I added a field in PA9003 as key field.
    Now this key field was not coming in the infotype screen, so I added it using screen painter.
    But now when I save the data the data is not saved in this key filed.
    Please Suggest.
    Warm Regards,
    Upendra Agrawal

    Hi
    As of my knowledge the primary key for the PA infotypes will be MANDT+PAKEY structure.  What is the need of adding the primary key.
    - While creating the custom infotype using PM01 screen will be automatically generated for the fields declared in PS structure
    - Screen Generation will wipe out the custom written on the fields so this is to be carefully handled.
    - if you added the field check logic in PAI & PBO
    - Check are you passing the data back to the infotye structure

  • Save Query As - Variant not saved

    We are in 3.0B and moving to 3.5
    In 3.0B, when we save a query as a new one, the Variant does not get copied over. Is there a way this can be handled?
    Does 3.5 have this covered?
    Thanks,
    Bharath

    Hi Bharath,
    I think there is no way other than a custom program for this or do it manually.
    Please let us know if any one knows the standard functionality.
    Thanks and Regards,
    Suneel Patil

  • In an eMail message, when I attempt to save two photos by clicking the 'Save 2 Images' link, not the 'Save Image' link, the images are not saved. (I use I I apologize for the late notice, butOS7 on IPhone5). Is this feature broken?

    In an eMail message, when I attempt to save two photos by clicking the 'Save 2 Images' link, not the 'Save Image' link, the images are not saved. (I use I I apologize for the late notice, butOS7 on IPhone5). Is this feature broken?

    Please don't post the same question multiple times!

Maybe you are looking for

  • Mobileme calendar not working with iphone 3.1.3

    I recently updated ical on my mac to 4.0.4 on my Mac running 10.6.7.  My iphone running 3.1.3 can no longer receive the mobile me calendar updates.  All the mail works fine.  I am not sure if the contacts are being kept up either.  I also have an iph

  • Problems loggin in Oracle Enterpirse Manager Console

    Hi. I installe oracle 9i and managed to setup a development and OEMREP databases and successfully logged into the Enterprise Manager Console. But after a few days, out of the blue, I can't login anymore. I'm getting the following error msg: "The exce

  • I can only connect to my guest account

    For some reason I can only connect to my guest account. I need to get into the web interface to fix this but it doesn't seem possible from the guest ssid? or is it?

  • Cannot update local cache 0

    After upgrading to Netweaver7.0 SP15 we started getting these errors messages in the portal defaultTrace logs. [EXCEPTION] #1#com.sap.bc.proj.jstartup.sadm.ShmException: Cannot update local cache 0.         at com.sap.bc.proj.jstartup.sadm.ShmCache.n

  • TM Creates Partition When Restoring onto a Larger HD

    My 120gb drive crashed some weeks ago. I replaced it with a 250gb drive shortly thereafter and used Time Machine to restore my data. After the restore, I discovered that it had actually partitioned the 250gb drive into a 120gb partition (Mac OS Exten