Adding and removing partner's w/ BAPI_ACTIVITYCRM_CHANGEMULTI

I have a requirement to programatically update activities, leads and opportunities with with new partners of various partner functions based on an input file I will recieve. I am trying to use function module BAPI_ACTIVITYCRM_CHANGEMULTI in a custom ABAP program to accomplish this task. I am passing to it the tables partner, partnerx and input_fields. I am putting the delete records before the insert records in the internal tables. I have debuged transaction CRMD_BUS2000126 -Maintain activities and looked at how the data is passed into CRM_ORDER_MAINTAIN as my point of reference. I am finding that the deletes of the existing partners is not working but, the insert of the new partners is. For the deletes I am populating the internal tables as shown below. Whereever you see field symbol usage I've either obtained the data via the input file or database table reads which I have rechecked many times. Am I missing entries or making incorrect entries? Is there another way to delete the entries from the business transactions programatically? Thoroughly confused here. Thanks in advance. Tony Dagnillo
partner-REF_GUID = <fs_delete_partners>-ref_guid.
partner-ref_handle = 0.
partner-ref_kind = 'A'.
partner-ref_partner_handle = 0.
partner-partner_no = <fs_delete_partners>-partner_number.
partner-display_type = 'BP'.
partner-no_type = 'BP'.
partner-ref_partner_fct = <fs_delete_partners>-partner_fct.
partner-ref_partner_no = <fs_delete_partners>-partner_number.
partner-ref_display_type = 'BP'.
partner-ref_no_type = 'BP'.
partner-businesspartnerguid = <fs_delete_partners>-partner_guid.
partner-mainpartner = <fs_delete_partners>-mainpartner.
partner-relation_partner = <fs_delete_partners>-relation_partner.
partnerx-REF_GUID = 'X'.
partnerx-ref_handle = 'X'.
partnerx-ref_kind = 'X'.
partnerx-ref_partner_handle = 'X'.
partnerx-partner_no = 'X'.
partnerx-display_type = 'X'.
partnerx-no_type = 'X'.
partnerx-ref_partner_fct = 'X'.
partnerx-ref_partner_no = 'X'.
partnerx-ref_display_type = 'X'.
partnerx-ref_no_type = 'X'.
partnerx-businesspartnerguid = 'X'.
partnerx-mainpartner = 'X'.
partnerx-relation_partner = 'X'.
input_fields-ref_handle = <fs_partner>-ref_partner_handle.
input_fields-ref_guid = <fs_partner>-ref_guid.
input_fields-ref_kind = 'A'.
input_fields-objectname = 'PARTNER'.
input_fields-logical_key(8) = <fs_partner>-ref_partner_fct.
input_fields-logical_key+8(16) = <fs_partner>-ref_partner_no.
input_fields-logical_key+24(2) = <fs_partner>-display_type.
input_fields-logical_key+26(2) = <fs_partner>-no_type.
input_fields-fieldname = 'PARTNER_FCT'.

Take a look at  Issue while changing activity partner in BAPI BAPI_ACTIVITYCRM_CHANGEMULTI
Similar sort of problem.
Note the reference to header mode in this message.

Similar Messages

  • Best practice for adding and removing eventListeners?

    Hi,
    What is the best practice in regards to CPU usage and performance for dealing with eventListeners when adding and removing movieclips to the stage?
    1. Add the eventListeners when the mc is instantiated and leave them be until exiting the app
    or
    2. Add and remove the eventListeners as the mc is added or removed from the stage (via an addedToStage and removedFromStage listener method)
    I would appreciate any thoughts you could share with me. Thanks!
    JP

    Thanks neh and Applauz78.
    As I understand it, the main concern with removing listeners is to conserve memory. However, I've tested memory use and this is not really an issue for my app, so I'm more concerned if there will be any effect on CPU (app response) if I'm constantly adding and removing a list of listeners every time a user loads an mc to the stage, as compared to just leaving them active and "ready to go" when needed.
    Is there any way to measure CPU use for an AIR app on iOS?
    (It may help to know my app is small - I'm talking well under 100 active listeners total for all movieclips combined.)

  • Adding and removing plug-in - Gets dirty Catalog?

    Trying many plug-in, adding and removing it, could be a problem with the file Catalog?
    The removed plug-in leaves traces on catalog? E.g.: a bites growed catalog....
    Thanks

    Rob,
    What about your ExifMeta plug-in?
    How it works with the catalog?
    Is there a catalog working difference between ExifMeta and DevMeta plug-in?
    Thanks

  • Dynamically adding and removing managed servers

    Hi,
              I'm experimenting with adding and removing managed servers while applications are running on the cluster. I've written some scripts using weblogic.Admin to do the tasks. It seems that it's working. However, I'd like to confirm that this is supported. I also have the following questions:
              1. Applications running on a cluster are automatically deployed to the newly configured managed server once it is started using startManagedWebLogic.sh. Are there any non-error situations that applications are not started automatically?
              2. To remove a managed server from the cluster, I first shutdown the server gracefully and then delete the server from the domain using weblogic.Admin. Is this the recommended way to do it?
              3. Anything else I need to pay attention to before adding and removing servers?
              Thanks for any information and pointers.
              Ming

    1. only if the staging mode is external.
              2. yes, if the server should be permanently removed. If the server is down for short maintenance, you do not need to remove it from the cluster.
              3. yes, try to avoid doing this during deployment tasks. That can be nasty.
              - Anders M.

  • Adding and removing tabs dynamically as in explorer

    adding and removing tabs dynamically as in explorer or firefox

    Think about how many translations are required to move your avatar, then think how many translations are required to move everything else in the entire world. Depending on whether there is more to translate in your avatar or in the rest of the world, you have your solution.
    Not knowing how your system works I can't really suggest anything further but could the collision avoidance be interacting with everything in the world as well? That would increase the workload somewhat.

  • Adding and removing listeners help please...

    hi guys i have a pop up box that adds a listener depedent on a variable.
    like such
         if(upload_typ != 'O' && upload_typ != 'E')
        {RPanel.DSUB.addEventListener(MouseEvent.CLICK, DatabaseSend)};
       if(upload_typ == 'O')
        {RPanel.DSUB.addEventListener(MouseEvent.CLICK, DataSendOntme)};
        if (upload_typ == 'E')
        {RPanel.DSUB.addEventListener(MouseEvent.CLICK, EncumSendVal)}
    how do i remove the listeners? i continue to see examples of removing listeners but yet i dont see what the remove listener functions should do.
      any help would be greatly appreciated.
    Miguel

    In your case, because you can't be sure what listener was added, you can remove them all, and if they have not been added, no harm:
    RPanel.DSUB.removeEventListener(MouseEvent.CLICK, DatabaseSend);
    RPanel.DSUB.removeEventListener(MouseEvent.CLICK, DataSendOntme);
    RPanel.DSUB.removeEventListener(MouseEvent.CLICK, EncumSendVal);
    Alternatively, you could register the ones that actually get added to an object (associative array) and remove only those when necessary.
    If this post answers your question or helps, please mark it as such. Thanks!
    http://www.chikaradev.com
    Adobe Flex Development and Support Services

  • Adding and removing children with buttons

    So I've been following this tutorial (http://www.danfergusdesign.com/classfiles/oldClasses/VCB331-richMedia1/exercises/addingChi ldren.php) on how to add and remove children with buttons in order to create a popup box on the stage.
    The part I'm having trouble with is how I add the close button to the stage on top of the popup box.
    This is basically what I'm trying to do:
    Here's my code right now:
    var OrderPrepOnlineMenuInstance:OrderPrepOnlineMenu = new OrderPrepOnlineMenu();
    var mcOnStage:Boolean=false;
    loadOrderPrepOnlineBtn.addEventListener(MouseEvent.CLICK, loadMC);
    OrderPrepOnlineClose.addEventListener(MouseEvent.CLICK, removeMC);
    function loadMC(MouseEvent):void {
    addChild(OrderPrepOnlineMenuInstance);
    OrderPrepOnlineMenuInstance.x = 465;
    OrderPrepOnlineMenuInstance.y =230;
    mcOnStage=true;
    function removeMC(MouseEvent):void {
    if (mcOnStage ) {
    removeChild(OrderPrepOnlineMenuInstance);
    mcOnStage=false;

    Why not just make the close button part of the object you are adding.  You can assign it an event listener thru that object after it is created.

  • Adding and Removing an Instance in LiveCycle Designer 8.2

    Good Morning,
    I am just beginning to use LiveCycle Designer 8.2 which was packaged with Adobe Acrobat 9.0 and I was just given a short timelined project for a form to be created for which I would like to include a + and - button to add and remove instances (it would add and remove student information as needed .... maybe only a list of data involving 5 students or for other teachers they may have 10 students, etc.) so I want them to be able to add and remove "instances" as needed.  I have been working on this and looking at forums and clips and have not been able to successfully accomplish this task yet.  I am wondering if anyone can give me some help?  Thanks.
    L Gardner

    The best reference I've found is at
    http://forms.stefcameron.com/2006/11/11/instance-manager-object-reference/
    Let me know if you need a sample

  • Adding and Removing Photo Albums

    All of my albums don't show up on Apple TV menu. How can I add and remove picture albums?

    How are you accessing the photos? If using home-sharing you should be able to access your library, make sure you have given access (iTunes - file - home sharing - choose photos to share)

  • Adding and removing current user from one SharePoint group to another with event receiver

    hi friends
    i need to change current user from one SharePoint group to another with list item adding event receiver.
    please help me

    Hi Malli,
    Greetings. Its nt possible
    http://sharepoint.stackexchange.com/questions/42286/event-receivers-on-add-remove-users
    Please remember to click 'Mark as Answer' on the answer if it helps you

  • Adding And Removing in a text file

    Hi
    I'm trying to make a VI that generates a textfile which saves some data each second and give it some timeframe so that it can maintain only the data that has been generated last 10 seconds or so
    First I have made 2 different files, one is for saving some data each second into a text file, and the other one is for removing the data
    but when i combined those two it doesn't seem to work.
    Could anyone have a look at the file and comment on that?
    thanks
    Attachments:
    test2.vi ‏17 KB
    Time(Sub).vi ‏8 KB

    A couple comments on what you are trying to do. First, doing this with a text file is going to be inherently difficult as you are going to be doing a lot of rewriting of the file. Second, having two VIs (1 to write the data and 1 to remove the old data) is a bad approach - why not design the algorithm so the file is only written to one time for each update cycle? Stop trying to make a poor design work and spend a little time thinking outside the box.
    Hint: think about how you calculate a running average in LV, and what if the indicator out wasn't just an indicator but a file write?
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • Problems adding and removing dual monitor

    using FCE to do some light editing at work. continually need to flip between a single and dual monitor setup due to other things i need to do on a different computer. having problem with FCE not moving all windows back to the main monitor after removal of additional monitor. 'display' settings will not let me setup as being unattached since (and this is what the error says) that the other monitor is no longer attached. only happens w/ FCE. other programs seem to recognize that the monitor is no longer there, and moves all the windows back to the main monitor. what am I missing?

    Have you tried closing the dual display option in *View>Video Out* before shutting down FCE?
    Al.

  • Adding and Removing Components to/from a jPanel

    Hello,
    I am searching for a way to have a jButton create a remove and create some jComboBoxes, jLabels, and jButtons. I don't know how I could do this. I have some screenshots from NetBeans IDE to help illustrate my problem.
    I want the Add Shift button in here...
    [IMG]http://i271.photobucket.com/albums/jj132/Dunkmaster1992/javahelp1.jpg[/IMG]To do this...
    <a href="http://s271.photobucket.com/albums/jj132/Dunkmaster1992/?action=view&current=javahelp2.jpg" target="_blank"><img src="http://i271.photobucket.com/albums/jj132/Dunkmaster1992/javahelp2.jpg" border="0" alt="Photobucket"></a>And obviously I would like the remove buttons to remove a shift when clicked.
    Well, thanks for any help. I think this is pretty advanced if it's possible. I'm pretty sure I could manage doing this a slightly different way, but it would not look as pretty and I would have to limit the amount of shifts possible. I would otherwise approach this by doing this:
    <a href="http://s271.photobucket.com/albums/jj132/Dunkmaster1992/?action=view&current=javahelp3.jpg" target="_blank"><img src="http://i271.photobucket.com/albums/jj132/Dunkmaster1992/javahelp3.jpg" border="0" alt="Photobucket"></a>It just isn't as professional. I would do it by just making the components visible and not visible with the button clicks. And changing the attributes of the components is easy. But I would also be limited to however many shifts I placed originally on the jPanel.
    Duncan Calvert
    [email protected]
    Please, if it's not too much trouble, give me an e-mail when you respond.
    Edited by: dw.calvert on Jul 22, 2010 2:36 AM
    Edited by: dw.calvert on Jul 22, 2010 2:37 AM
    Edited by: dw.calvert on Jul 22, 2010 2:39 AM

    dw.calvert wrote:
    I'm not sure why it's a bad thing to post a question on two different forums. It only means more views on the question.Yes, and many people wasting their time answering your question. There is nothing wrong with it as long as you mention that you have done so and provide reference to the other thread.
    >
    And I included my e-mail so that someone could ensure that I read their response. So, if someone replies a month from now, I will know about it, and won't have to check this forum everyday for the rest of my life.So set a watch on this thread and you will get an email from the forums. The spam search engines are happy for your posted email address, however.
    And nowadays it would take less time to send a quick e-mail notification than to respond to this question.Thereby excluding everyone else that may have the same problem. Keeping the conversation here allows them to also get helped (if they bother to search, although most people don't seem to realise what Google and forum search functions are for).
    >
    I'm sorry if I'm not used to this forum, or it's traditions, but a picture is worth 1000 words and I always try to be efficient.As long as it is only "efficient" from your point of view. As it is more "effecient" for others to both keep the conversation here and to notify others of the cross-post.

  • Adding and Removing from Toolbar

    Ok. So heres' the deal:
    When I am using Safari, I have found that many times I accidentally remove and item from the Toolbar (example: Back/Forward buttons, Refresh Button, Address Bar, etc.)
    Is there a way that I can lock this so I don't accidentally remove things?
    Thanks for your help! I appreciate it!

    You're welcome. Glad I could help.
    Thanks for the and Aloha from Big Island.
    iMac G5 Rev C 20" 2.5gb RAM 250 gb HD/iBook G4 1.33 ghz 1.5gb RAM 40 gb HD   Mac OS X (10.4.8)   LaCie 160gb d2 HD Canon i960 printer

  • Adding and Removing Tunes from iPod nano

    I am a 68 year old man who has loved music for many years and has an extensive music collection so my kids gave me an iPodnano for Christmas 2007. I hardly touched it for over a year because of fear of and unfamiliarity with new technologies but recently decided to give it a try.
    My fears were well-founded. I don't know how it happened but lots of things are on my iPod that I don't know how they got there and that I want to remove and I also have lots of songs that I want to add to the iPod but I can do neither.
    I read the manual for the 3d generation iPod I have and it did not bhelp. To remove songs the manual states, " In iTunes, select iPod nano in the source list." When I turn on iTunes there is no "source list" taht I can find. The same thing happens when the manual refers to a "Devices" icon which I cannot find either. And although I can see what tunes I have on my iPod by looking at it, I don't know how to make what I have on my iPod appear on my computer scrteen when I'm in iTunes.
    Any assistance will be greatly appreciated or else my iPod nano is pretty much useless to me.
    Thanks.

    the source list on itunes is the grey blue section on the left hand side of itunes, where it lists your libraries and the store.
    When the ipod is connected to the computer you will see devices on the left hand side of itunes between itunes store and playlists.
    if the ipod is not showing there I would try another USB port on the computer (if on a desk top use the back of the tower).
    If still not showing at that point I would make sure you are running the proper system for the unit.
    Try those steps first and if still having the issure of the ipod not showing there are other steps on the support pages or you can call apple but if the ipod is over a year old they will have to charge you to walk you through steps on the phone but they can email you for free the articles that will solve the issue at that point.

Maybe you are looking for

  • I tunes has stopped working

    Having purchased an I pod almost a year ago I have had a problem free time with both my i pod and i tunes. However, a couple of wheels ago i tunes stopped working. This may have been because I purchased the Sony Ericsson w800i mobile phone and instal

  • Is it possible to migrate WebCenter Portal data from a SQL database to an Oracle database?

    We have our WebCenter Portal applications set up using a SQL database. Now we're wanting to migrate to an Oracle database and I'm wondering if that is possible.

  • Change Language on IP Communicator

    Hi, I got an issue with the language of ip comm, I  download the spanish locale and install it. I set to all my devices User  Locale = Español, Republica de Colombia. But when I open my  ipcommunicator, it shows the downloading language locale and "f

  • Any Web Apps for Contact List (by company)

    *Does anyone know of any Web Apps that let you access contacts by company name?* Hopefully, they will sync with either Outlook or the iPhone database, at least initially. I have been looking for Web Apps that backup and display contacts on teh web th

  • InDesign app will not install on iPad 1

    Now I have created an app through InDesign. I've got the ipa-file and have installed the test-app-file on my iPad 3. Works fine on iPad 3, but then I wanted to test it on my old iPad (1), and I get this message (translated from danish, I do not know