Changing Appointments in CRM

Has anyone successfully updated dates on a CRM transaction using function BAPI_BUSPROCESSND_CHANGEMULTI?
If so, would you mind posting some code, please?

I am posting the code of my program, so maybe you can see what I am doing wrong:
tables: crmd_orderadm_h.
DATA: RETURN TYPE TABLE OF BAPIRET2 WITH HEADER LINE.
DATA: GUID TYPE TABLE OF BAPIBUS20001_GUID_DIS WITH HEADER LINE.
DATA: APPOINTMENT TYPE TABLE OF BAPIBUS20001_APPOINTMENT_INS WITH HEADER LINE.
DATA: INPUT_FIELDS TYPE TABLE OF BAPIBUS20001_INPUT_FIELDS WITH HEADER LINE.
data: saved type TABLE OF BAPIBUS20001_OBJECT_ID with header line.
Select header using doc number to get guid
select single * from crmd_orderadm_h
where object_id = '0050000172'.
Guid from selected record
guid-guid = crmd_orderadm_h-GUID.
APPEND GUID.
Update input fields
INPUT_FIELDS-ref_guid = crmd_orderadm_h-guid.
INPUT_FIELDS-ref_kind = 'A'.
INPUT_FIELDS-objectname = 'APPOINTMENT'.
Add individual fields
INPUT_FIELDS-fieldname = 'REF_GUID'.
APPEND INPUT_FIELDS .
INPUT_FIELDS-fieldname = 'REF_KIND'.
APPEND INPUT_FIELDS .
INPUT_FIELDS-fieldname = 'REF_HANDLE'.
append INPUT_FIELDS .
INPUT_FIELDS-fieldname = 'APPT_TYPE'.
APPEND INPUT_FIELDS .
INPUT_FIELDS-fieldname = 'DATE_FROM'.
APPEND INPUT_FIELDS .
INPUT_FIELDS-fieldname = 'DATE_TO'.
APPEND INPUT_FIELDS .
INPUT_FIELDS-fieldname = 'MODE'.
APPEND INPUT_FIELDS .
INPUT_FIELDS-fieldname = 'TIMEZONE_FROM'.
APPEND INPUT_FIELDS .
INPUT_FIELDS-fieldname = 'TIMEZONE_TO'.
APPEND INPUT_FIELDS .
Update appointment - change to an exising record
APPOINTMENT-ref_guid = crmd_orderadm_h-guid.
APPOINTMENT-appt_type = 'CONTSIGNON'.
APPOINTMENT-timezone_from = 'CET'.
APPOINTMENT-timezone_to = 'CET'.
APPOINTMENT-date_from = sy-datum.
APPOINTMENT-time_from = sy-uzeit.
APPOINTMENT-date_to = sy-datum.
APPOINTMENT-time_to = sy-uzeit.
APPOINTMENT-mode = 'B'. "<-- Appointment type already exists, so change
APPEND APPOINTMENT.
Update Document
CALL FUNCTION 'BAPI_BUSPROCESSND_CHANGEMULTI'
  TABLES
    APPOINTMENT             = APPOINTMENT
    INPUT_FIELDS            = INPUT_FIELDS
    RETURN                  = return.
Persist Changes
CALL FUNCTION 'BAPI_BUSPROCESSND_SAVE'
  EXPORTING
    UPDATE_TASK_LOCAL = 'X'
  TABLES
    OBJECTS_TO_SAVE         = GUID
    SAVED_OBJECTS           = saved
    RETURN                  = RETURN.

Similar Messages

  • To create the follow up transaction automatically on status change in sap crm?

    To create the follow up transaction automatically on status change in sap crm? If yes, how to make the setting for this?

    Hi vishal,
    As per the requirement transaction type is activity(ACTI) & sales order(TA). when the take order objective is complete system automaticaly craete a new activity of tele sales call or metting with wholesaler.
    this is requirement of client.
    now i am already create all type of transaction types of activity & sales order & create follow up transaction also. i have doam already create action profile also but when i am assign this action profile to transaction & try to create an sales order no follow up transaction could be create automatically. i think the condition is not right so please help me out in this. what should be the start & schedulec condition for this scenerio

  • How to restrict the change access in CRM for OLTP orders

    Hi Guru's,
    Please let me know  how to restrict the change access in CRM for the orders that are created in ECC. The ECC orders will only for display in CRM but not for change,
    We have  the orders that are  created in ECC, it will flows to CRM and should restrict the access to get in to the change mode in CRM but as of now CRM  system is allowing change mode for ECC orders and ending up with errors.
    Is there any additional middleware parameter that needs to be added to SMOFPARSFA table to get this functionality! Please advice! Thank your for your help.
    Regards
    Suneel

    Hi.
    You can use the PFCG role to control if the user is able to create, change, delete or only display a business transaction type.
    Regards.

  • Sort of Change Pointer on CRM

    Hi all,
    I want to send difference value of master and transaction data like ALE Change pointer from CRM to Customer system.
    Can you tell us available function ?
    The IDoc sending mechanism of CRM is different from ALE of R/3. CRM creates Change document. I activated the Change pointer using BD61 and BD50 for message type of CRM(BP). But CRM doesn't create Change pointer record after creating Change document.
    And CRM doesn't have any selective IDoc creating function like BD10. IDoc is created after BDoc process on CRM.
    Is SMD(ALE Change pointer) not available on CRM ?
    Thanks,
    Keiko

    Hi Keiko!
    I don't have access to a CRM system, but you can test your customizing yourself:
    Go to transaction SE37, test function CHANGE_POINTERS_CREATE_DIRECT. Here you fill in your message type and some (random) values for the pointer in table T_CP_DATA.
    There are no syntax checks, just change pointer activation is checked in the function module. See, if an (artificial) CP is created.
    If this is working, go on to function CHANGE_POINTERS_CREATE. Fill in existing change document data, run a test.
    In case no change pointers are created, you can debug these rather small (compared to the 'real' transactions) functions to identify missing / wrong customizing.
    If change pointers can be created, but your transaction still does not create change pointers, then your problem might be the CRM system.
    Regards,
    Christian

  • Change pointers in CRM for Product Data Extraction using MDM_CLNT_EXTR

    Hi All,
    We want to extract Product data in Delta mode using MDM_CLNT_EXTR.
    I think change pointers are activated in CRM system in a different way. Please let me know steps to activate change pointers in CRM system for Product Data.
    Thanks in advance for your help.
    Regards,
    Shiv

    Hi,
       Please follow the below steps fro change pointers.
    1.      In the Implementation Guide (IMG, transaction SALE), choose Modeling and Implementing ® Master Data Distribution ®Replication of Modified Data ® Activate Change Pointers ‑ Generally.
    2.      Set the activation status Activate Change Pointers ‑ Generally, and save your entry (i.e BD61 Activate Change Pointers ).
    3.      Choose the activity Activate Change Pointers for Message Types like ORDERS.
    4.      Set the active indicator for the message type .
    5.      Save your entries.
    warm regards
    Mahesh.

  • Outlook Calendar does not Sync Changed Appointments

       I have noticed that when synching my BB calendar to Outlook 2003, all new/deleted appointments are propertly synched, but an old appointment that was changed (ie date change) is not updated so they continue to appear in the original date/time in Outlook while the BB shows it at the new amended date/time.  Any thoughts on what is wrong or how to remedy this problem? 
    thanks
    patrick

    Hi kcpalmer,
    Welcome to the BlackBerry Support Community.
    Have you already tried doing a clean uninstall of the BlackBerry® Desktop Software and reinstaling it? If not, I would recommend trying that first. "How to perform a clean uninstall of the BlackBerry Desktop Software" http://bbry.lv/HVraPb
    Is Microsoft® Outlook® configured to use a .pst file or Microsoft® Exchange?
    Thanks.
    -FS
    Come follow your BlackBerry Technical Team on Twitter! @BlackBerryHelp
    Be sure to click Kudos! for those who have helped you.
    Click Solution? for posts that have solved your issue(s)!

  • Error Contract change update in CRM from R/3

    We have the following scenario:
    1) Create quantity contract in R/3
    2) Replicate contract to CRM
    3) Create call-off order in CRM
    4) Order updates contract in CRM and R/3
    When we now change the contract in R/3 (change target  quantity) the inbound queue R3AD_SALESCONTRACT instatus running for a long time. At some point we get message "Time limit Exceeded".
    Does anyone have a clue on this error?
    Thanks in advance.
    Pascal.

    Hi,
    After entering EXIT, from command prompt you  would need to go to "ua" foler and the execute the following command.
    java -cp ua.jar.UaServer
    then it will ask for administrator password.
    And then the Ua server will be started.
    Leave this window as it is.
    Open another window in command prompt.
    then execute the command
    java -cp uagui.jar.UaGui.
    This will open the upgrade assistant. Enter the Host name and then the User name as Administrator and the password.
    This should help you in resolving the issue.
    Regards,
    Imran

  • Change log for CRM service order

    Dear Experts,
      I've created log profile in CRM under IMG path Customer Relationship Management->Basic Functions-> Change log with protocolo " Changed document "  & segment " PRICING_I ". This log profile is attached to transaction type service order.
    Basic idea is to capture the changes made on the pricing in service order. Now with this setup where can i see the trace of changes done in service order. Is there any table that fills with the log  ? 
    Basically i'm trying to find log DB table for pricing with this setup.Can anyone pls suggest me to resolve the issue.
    Regards
    Devika.S

    Hi,
    there are no change logs for CUMULAT_H object because this is only a temporary object in CRM Order buffer. Check for example the function module CRM_CUMULAT_H_READ_OB. You will find out the this module does not read the CUMULATE_H from the DB cumulates the values by reading the item values.  Because of that you will also see that in view CRMV_OBJECTS the change document relevance is not maintained for this object.
    So you will not a change entry for CUMULAT_H in CDHDR/CDPOS. As a workaround for your requirement you can read the changes of CRMD_PRICING_I-NET_VALUE from the change document tables or write a change entry on save into a customer field and/or table.
    Regards
    Nicolai

  • Function to change status in CRM.

    Hi..
    Let me introduce myself, my name is Daniel.
    I'm developing an application based on .Net & ABAP (CRM) & i'm getting problems.
    Do you know the function to change status, where that function can be called out from program?
    This time i've tried 2 functions :
    ZISA_STATUS_CHANGE_N_SAVEDOC
    CRM_STATUS_CHANGE_INTERN_OW'
    Those functions works if i run inside program, but if i build another program for calling that program (run those functions), the functions will not be worked.
    Is there any somebody help me to find out the functions?
    Thx so much..

    IF NOT gt_obj_guids[] IS initial.
        CALL FUNCTION 'CRM_ORDER_SAVE'
          EXPORTING
            it_objects_to_save = gt_obj_guids
          IMPORTING
            et_saved_objects   = gt_saved_objects.
        read table gt_saved_objects into saved_object index 1.
        OBJECT_ID = saved_object-object_id.
        COMMIT WORK.
    Like a line a code above, i have put a commit work. But it still can't work well.
    But, btw.. Is BAPI Commit that you mention before same with i mention in my code?
    I need your suggestion.. _.

  • Don't allow changing documents in CRM after replication to R3

    Hello,
    We have applied the scenario A for the replication of sales orders in our client. So, this means that the orders can be replicated in both R3 and CRM system and all the changes are replicated. SO, the orders are always consistent in both systems.
    Nevertheless we would need to apply a different scenario for the replication of complaints as Return orders. We would need to implement the following scenario:
    1.- Creation of complaint in CRM
    2.- Replication to R3 if the complaint is free of errors
    3.- Leave the Complaint in CRM  unchangeable for all the users.
    4.- The return order should be modifiable in R3 and all the changes made FROM R3 should be seen in CRM. (Changes/Delivery number/Invoice number... , etc.)
    Could any one let me know how could we apply this scenario? We are working with CRM7.0.
    Thanks in advance,
    Regards.
    Edited by: yoli_vd on Nov 24, 2011 3:16 PM

    Hello ,
      normally the User status behaviour (as recommended in the previous msg) will work. In case you do not want to add any user status then you can do a little ABAP in the AUTH_CHECK Badi and put control on the System status which is in any case maintained automatically.
    after the document is distributed to ECC, there is a specific status set. you can refer tables CRM_LINK, CRM_JEST, CRM_JCDS to understand the behaviour and then put little condition in the AUTH CHECK badi.
    hope this helps.
    rgds

  • View change log for crm : opportunity management, activity management

    hello
    can anyone help me, i have been tracking down someone who changed an opportunity in crm but i cannot find in scu3. thanks.

    Hi,
    You can try your luck, by checking the requests filtered by dates if you know, and analyze it. If the person is not smart enough, you can get your hands on if the request is not deleted.
    Not sure but you can try SLG1.
    Regards,
    Madde

  • Product change problem dates CRM-ISU

    Hello experts,
    We have a problem here with the producto change functionality. I will try to explain the problem
    As many of you already know, when you execute a product change from CRM, the old position date get expired and the new position start date begins the next day. The data is replicated to ISU and the EVERH is updated (old position date e.g expired 13.08.2009 ). After that, in ISU the information is sent to the distribution company to accept the modification. Once the information is back from the distribution company, the new position is created in the EVERH (e.g start date 23.08.2009) and replicated to CRM.
    The problem is that the distribution company takes, for instace, 10 days to give the information back to ISU and therefore a gap date comes up between the end date of the old position (e.g 13.08.2009)and the date that the new position is activated (e.g 23.08.2009). Many errors occurs in ISU due to this gap date
    We would like to avoid the date update in ISU when the data comes from CRM, to keep the old position date open in ISU until the activation is accepted. Somebody knows how could I manage not to send the old date to ISU in CRM?
    Thanks all in advance. Hope not to be so boring.
    Regards

    How do you do this change in CRM? Do you do a move-out? When the distribution company confirms do you create a move-in?
    Here I´m talking about a product change in CRM. The contract is the same for both positions, only the product is chaged. So there is no move-out for the contract. The flow is as follows:
    CRM Product change - ISU EVERH table update (only old position with expired date) - Distribution company confirs modification - ISU EVERH table update (new position for the same contract) - CRM new position activation update
    Hope this helps
    Thanks in advance

  • Product change date gap CRM-ISU

    Hello experts,
    We have a problem here with the producto change functionality. I will try to explain the problem
    As many of you already know, when you execute a product change from CRM, the old position date get expired and the new position start date begins the next day. The data is replicated to ISU and the EVERH is updated (old position date e.g expired 13.08.2009 ). After that, in ISU the information is sent to the distribution company to accept the modification. Once the information is back from the distribution company, the new position is created in the EVERH (e.g start date 23.08.2009) and replicated to CRM.
    The problem is that the distribution company takes, for instace, 10 days to give the information back to ISU and therefore a gap date comes up between the end date of the old position (e.g 13.08.2009)and the date that the new position is activated (e.g 23.08.2009). Many errors occurs in ISU due to this gap date
    We would like to avoid the date update in ISU when the data comes from CRM, to keep the old position date open in ISU until the activation is accepted. Somebody knows how could I manage not to send the old date to ISU in CRM?
    Thanks all in advance. Hope not to be so boring.
    Regards

    How do you do this change in CRM? Do you do a move-out? When the distribution company confirms do you create a move-in?
    Here I´m talking about a product change in CRM. The contract is the same for both positions, only the product is chaged. So there is no move-out for the contract. The flow is as follows:
    CRM Product change - ISU EVERH table update (only old position with expired date) - Distribution company confirs modification - ISU EVERH table update (new position for the same contract) - CRM new position activation update
    Hope this helps
    Thanks in advance

  • Sales order change error in CRM

    Hi All,
    We are replicating sales orders from SAP to CRM.
    but when I try to change the order in CRM (using CRMD_ORDER transaction)
    it says "Original document is in OLTP and therefore cannot be changed in CRM"
    Why Can't I change the sales order in CRM
    is it because of transaction type configuration in CRM side
    In configuration for transaction type "Inactive field is marked as "Y Blocked for Online Maintenance""
    Is that the reason why I cannot change the order in CRM?
    Should I make it blank so that I could change orders?
    Thanks
    Ken

    HI,
    Yes, you have keep that Inactive field as Blank in the transaction type.
    Also maintain the following entries in the table SMOFPARSFA in crm as
    PARSFAKEY = R3A_SALES
    PARNAME = INT_CHANGE_ORDER
    PARNAME2 = "Transaction type"
    PARVAL1 = A
    And in ECC maintain the following entries in table CRMPAROLTP
    PARNAME = CRM_SCENARIO
    PARNAME2 = INT_CHANGE_ORDER
    PARNAME3 = "Transaction type"
    PARVAL1 = A
    After doin all this you can try editing the transaction in CRM.
    Regards,
    PP

  • No delta when changing Opportunity in CRM - 0CRM_OPPT_H

    Hi,
    I have discovered that when I create a new Opportunity in CRM the delta queue updates but not when I make a change in an old one.
    The DataSource is 0CRM-OPPT-H and I have checked i SMQ1 and in RSA7 but not updates.
    The DataSource is active in BWA5 and I have created and run an InfoPackage i BW where I used Initialize Delta Process and checked Initialize without Data Transfer. After that the queue appears in BWA7.
    Is there anyone who can give me a clue whats wrong?
    Regards,
    Kerstin

    Just try to create New opprtunity in CRM - and extraction again/ Everything should be fine after that.
    Of cause - its not a solution for the source of this probleb< but it lets you  to work with extraction from 0CRM_OPPT_H correctly.

Maybe you are looking for

  • Cannot send email from my iphone

    Cannot send email from my iphone 4s with the bell mobility network.

  • Adobe Exchange Panel Extension does not install

    As titled, after download the extension for CS6 and double click, the extension manager is opened. But nothing is happed nor any notification or sign of installation. And open PS, Illustrator, there is no "Adobe Exchange" in exchange menu. Our system

  • VMWare Workstation not able to compile modules

    I have an installation of vmware workstation that I don't use very often, and recently it hasn't been able to start due to an error with the module compiling process. The specific error is: 2014-02-26T14:39:15.967-06:00| appLoader| W110: Unable to lo

  • Insert + Delete in JDBC Reciever/ SOAP Reciever..

    Hi, I have a requirement where I need to send date from SAP to multiple recivers ( DB+ Webservice). Now based on a field, it will be decided whether it is going to be FULL or Delta update. In case of 1. Full: All the Db entries should be deleted and

  • BO XI Enterprise config prep info

    I'm trying to nail down some answers for a client, but running out of time to find this info in the documentation, and would greatly appreciate any full or partial responses to the following. My client would like to install BO XI Enterprise Professio