How to create an activity in CRM automaticly

Hi
I'm working in CRM 4.0 and try create an activity automatically when a BUPA_MAIN objects come from FI-CA.
In the BDOC-flow I start an own developed FM to check if a new activity will be created, that's no problem but which FM/BAPI will I use to create the new activity and how to fill them?
Thank for help//

Hello Jan,
To create a new Activity Document use BAPI BAPI_SLSTRANSACT_CREATEMULTI.
To find out how to fill the parameters, create a documento directly in CRM and debug function module CRM_ORDER_MAINTAIN to see how you have to fill the parameters.
Maybe there is an OSS note that explains how to use this BAPI.
Regards,
Mauricio

Similar Messages

  • How to create an activity when system finds duplicate record!!

    Hi CRM Experts,
    I am working on CRM 5.0. We are uploading contact details to CRM through ELM.
    Here My queries are:
    1) How to create An Activity when system finds duplicate record?
    2) By using ELM we can create BP with Activities and BP with Leads. But Here, my scenario is we have to Create BP with leads and Acivities. can any one help me on these areas?
    Thank in Advance.
    Sree

    Hi Sree,
    I can help you with your first query.
    When the system finds a duplicate record then either the system stops working further or proceeds with the error free record.
    So once the duplicate entry is found only the first record will be considered and not the second or the duplicate record.
    Regards,
    Rekha Dadwal
    Kindly reward with points if usefull !!!!

  • How to create a project in PS automatically wen it is created in cProjects.

    Hai experts,
        How to create a project in PS automatically wen it is created in cProjects.
        After creating project in cProjects wen i flagged to transfer it is not transferring to PS...
    How to achieve this...
    Thanx in advance...

    hi
    Try with following settings if you have not done:
    1) In define project type, for for accounting integration , select scenario as: Accounting integration in my SAPERP and type of transfer as : Always Automatic when saving
    2) For Define object link for object type , define proxy class for WBS element and Project definition(PS)
    Also define RFC for Single object Controlling on WBS element in Object types for object links.
    3) For Accounting integration in Make general settings, for your project type select frame09 for your object type single object controlling on Internal order
    4) Define CO scenario CPR2 with Strategy sequence as SAP040 in period end closing, costing sheet as standard and Costing variant as PC02(Internal Order)
    5) In CO scanrio maintenance view, for your project type select contolling method as Internal Order( Project Definition, Automatic)
    With these settings I am able to create a PS project from cProject when I save a cProject.
    Regards,
    Niraj

  • How to create an appointment in crm webui?

    hello experts!
    i'm verymuch new to crm webui. would anybody please let me know how to create an appointment in crm web ui. even though i established a account and contact relationship in t-code BP in GUI. The error still pops up asking me to enter Sales organization,distribution channel and division.
    regards
    sanguine

    You can follow chapter "3.1 Maintaining Organizational Data Profile" from best practices' building block ['C23: CRM Basic Sales'|http://help.sap.com/bp_crm70/BBLibrary/HTML/C23_EN_DE.htm]. For "Organizational Model Determin. Rule" instead of a rule 10000166 enter 10000194. It will determine org. data from current user.
    Also take a look in near settings. There you can define your own rule.
    Or check this thread Org Unit determination based on Emp Resp in Task which describes how to create profile for employee responsible.

  • How to create an activity using business partner of document flow

    hi guys,
    Can anybody help me how to create an activity by using the business partner of document flow.
    i am using the function module BAPI_ACTIVITYCRM_CREATEMULTI but it was giving some sort of error in level based.
    so if anybody used above type of scenario can help me out. if you have an sample code please post it which is very much usefull..
    thnaks
    viswam

    Hi Viswa,
    I used this function module to create activity with the doc flow in my case successfully.
    CALL FUNCTION 'CRMXIF_ORDER_SAVE'
        EXPORTING
          data   = lt_contract
        IMPORTING
          return = lt_return.
    Regards
    Andy

  • How to create Campaign ID in CRM.

    Hi Experts,
    How to create Campaign ID in CRM.
    :Please provide me any documents for the same.
    Thanks & advance
    Prajith P

    Accorring to your question, you want to create campaign in CRM?
    you need to assign a MKT_PRO or other Marketing related role to your WEB UI user, then login the WEB UI, from the menu you will find marketing plan, and campaign is a kind of marketing object under it.

  • How to create / Insert Leads in CRM On Demand using WSDL in Bpel

    Could any one suggest how to create/insert leads in CRM On Demand through Bpel.
    Getting following Error
    <remoteFault xmlns="http://schemas.oracle.com/bpel/extension"><part name="code"><code>Server</code>
    </part><part name="summary"><summary>Cannot perform NewRecord on the business component 'Lead'(SBL-EAI-04421)</summary>
    </part><part name="detail"><detail>&lt;detail>
    &lt;siebelf:siebdetail xmlns:siebelf="http://www.siebel.com/ws/fault" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
    &lt;siebelf:logfilename xmlns:siebelf="http://www.siebel.com/ws/fault" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">siebel.log&lt;/siebelf:logfilename>
    &lt;siebelf:errorstack xmlns:siebelf="http://www.siebel.com/ws/fault" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
    &lt;siebelf:error xmlns:siebelf="http://www.siebel.com/ws/fault" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
    &lt;siebelf:errorcode xmlns:siebelf="http://www.siebel.com/ws/fault" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">(SBL-EAI-04421)&lt;/siebelf:errorcode>
    &lt;siebelf:errorsymbol xmlns:siebelf="http://www.siebel.com/ws/fault" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"/>
    &lt;siebelf:errormsg xmlns:siebelf="http://www.siebel.com/ws/fault" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">Cannot perform NewRecord on the business component 'Lead'(SBL-EAI-04421)&lt;/siebelf:errormsg>
    &lt;/siebelf:error>
    &lt;/siebelf:errorstack>
    &lt;/siebelf:siebdetail>
    &lt;/detail>
    </detail>
    </part></remoteFault>

    Could any one suggest how to create/insert leads in CRM On Demand through Bpel.
    Getting following Error
    <remoteFault xmlns="http://schemas.oracle.com/bpel/extension"><part name="code"><code>Server</code>
    </part><part name="summary"><summary>Cannot perform NewRecord on the business component 'Lead'(SBL-EAI-04421)</summary>
    </part><part name="detail"><detail>&lt;detail>
    &lt;siebelf:siebdetail xmlns:siebelf="http://www.siebel.com/ws/fault" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
    &lt;siebelf:logfilename xmlns:siebelf="http://www.siebel.com/ws/fault" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">siebel.log&lt;/siebelf:logfilename>
    &lt;siebelf:errorstack xmlns:siebelf="http://www.siebel.com/ws/fault" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
    &lt;siebelf:error xmlns:siebelf="http://www.siebel.com/ws/fault" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
    &lt;siebelf:errorcode xmlns:siebelf="http://www.siebel.com/ws/fault" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">(SBL-EAI-04421)&lt;/siebelf:errorcode>
    &lt;siebelf:errorsymbol xmlns:siebelf="http://www.siebel.com/ws/fault" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"/>
    &lt;siebelf:errormsg xmlns:siebelf="http://www.siebel.com/ws/fault" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">Cannot perform NewRecord on the business component 'Lead'(SBL-EAI-04421)&lt;/siebelf:errormsg>
    &lt;/siebelf:error>
    &lt;/siebelf:errorstack>
    &lt;/siebelf:siebdetail>
    &lt;/detail>
    </detail>
    </part></remoteFault>

  • How to create network activity

    how to create network activity using bapi_network_maintain bapi
    i am getting the error as incorrect object key for activity
    reagrds

    ok

  • How to create SLD after Netweaver/CRM installation

    Hi guru,
    I installed CRM that's on top of Netweaver without having SLD created. Now I need to configure TREX that requires SLD on the CRM side. How To create SLD after Netweaver/CRM has been installed?
    Many Thanks!

    Thank you Sergo! The document is very helpful.
    System Landscape Directory (SLD)
    Readers, if you click on the url, you may get access error. To solve the problem, copy and paste the url in a new browser window.
    The according Netweaver "Post-Installation Guide - SLD of SAP NetWeaver" is the one containing the answers. Pick the version that matches your NW installation.

  • How to creat Action Profiles in CRM

    Hello Experts,
    Can any one guide me how to create Action Profiles in CRM for attaching the smartform ????
    Regards,
    Amol Tambe.
    SAP CRM Technical Consultant.

    TR: SPRO --> IMG -->Customer Relationship Management -->Basic Functions -->Actions -->Actions in Transaction >Change Actions and Conditions>Define Action Profiles and Actions
    Best Regards,
    Vishant

  • How to create custom component in CRM 2007

    Hi.
    I am new for the CRM 2007 Web UI.
    Here we have CRM_UI_FRAME.
    Like this so many Components are there.
    I want how to create our own component.
    I created it as follows.
    Open the Transaction code bsp_wd_cmpwb.
    Provide Z Name in the Component.
    Zcomponent
    Press Create button.
    Go to Run Time Repository.
    Press Change Mode.
    Create a MODEL as ALL.
    GO to Browser Component Structre.
    Select View.
    Provide View name.
    Create the View.
    Go to view Layout.
    Provide the code like this.
    <%@page language="abap"%>
    <%@ extension name="htmlb" prefix="htmlb"%>
    <%@ extension name="xhtmlb" prefix="xhtmlb"%>
    <%@ extension name="crm_bsp_ic" prefix="crmic"%>
    <%@ extension name="bsp" prefix="bsp"%>
    <cthmlb:overviewFormConfig/>
    Create the context under the context.
    Go to Configuration tab.
    Assigne the Attributes to the Screen.
    GO to the Run Time Repository.
    press change mode.
    Assigne the view name to the Window.
    Save it.
    Test the Componet. But it is not diaply anything on the screen.
    How i will get the data into the web UI.
    Can anybody expalin about this one to me with screen shorts if possible.
    I want add some fields into the web UI. Provide some values into that. Capture the values.
    Navigate the data from one screen to another screen. How it is possible. I did not understand. 
    If i am changing any screens in the pre define component it shows dump.
    So, now i need Custom component with adding of the fields.
    Please give me proper information regarding this one.
    Thank You.
    Krishna. B.

    Hi,
    Try put the htmlb to show a field:
    <thtmlb:label design="LABEL" for="//<context>/<field>" text="<field>"/>
    <thtmlb:inputField  id="<field>" maxlength="31" size="20" value="//<context>/<field>"/>
    In order to get value, you can write a simple code in the event_handler:
    LR_BOL                      type ref to IF_BOL_BO_PROPERTY_ACCESS
    LR_BOL = ME->TYPED_CONTEXT-><context>->COLLECTION_WRAPPER->get_current()
    var1 = LR_BOL->GET_PROPERTY_AS_STRING('FIELD').
    take a look at lr_bol methods so that you can see the set and get methods.
    Regards,
    Renato.

  • How to create custom report in crm 2013

    Hi,
    I want to create custom report in crm 2013. I want to show Contact information in report. My scenario is that when I select multiple record and run report then contact information show in different pages. I want to show record in textbox in report. Here
    is an example of display record

    Hi Aamir,
    Have a look at below link it shows step by step how to create custom SSRS report.
    http://www.njevity.com/blog/creating-dynamics-crm-2011-reports-sql-reporting-services-pre-filtering-and-default-filters
    It tells using fetchxml, you can use SQL query as well. You need to use pre filtering to run report on selected record.
    Thanks,
    Prasad
    Make sure to "Vote as Helpful" and "Mark As Answer",if you get answer of your question.

  • How to create Lease Contract in CRM using CRMXIF_ORDER_SAVE

    Hi All,
    I need to upload CRM Lease contract from Legacy data in a flat file. I have created a test program where I call function module "CRMXIF_ORDER_SAVE".
    When I run this FM, it is creating a BDoc of type BUS_TRANS_MSG and I can see them in Txn SMW01
    Couls anyone please tell me:
    1. What next steps I need to follow to create a Lease Contract. Do I need to do some setting for BDoc consumoption.
    2. Is there any other alternative way like BAPI etc to create lease contract in CRM.
    <b>Reward point is gurranted for REAL HELPFUL answers.</b>
    -Regards
    Ashim
    I am also attching the code of my test program
    *& Report  YTESTCRMXIF_ORDER_SAVE
    REPORT  YTESTCRMXIF_ORDER_SAVE.
    DATA WA_CRMXIF_BUSTRANS_T TYPE CRMXIF_BUSTRANS_T.
    DATA WA_CRMXIF_BUSTRANS TYPE CRMXIF_BUSTRANS.
    DATA WA_CRMXIF_ORGMAN   TYPE CRMXIF_ORGMAN.
    DATA: WA_CRMXIF_STATUS   TYPE CRMXIF_STATUS,
          ITAB_STATUS LIKE TABLE OF WA_CRMXIF_STATUS.
    DATA:  WA_BAPIRETM TYPE BAPIRETM,
           WA_BAPIRETI TYPE BAPIRETI .
    DATA: WA_BAPIRETC TYPE BAPIRETC.
    DATA: WA_PARTNER TYPE CRMXIF_PARTNER,
          ITAB_PARTNER LIKE TABLE OF WA_PARTNER.
    DATA: BEGIN OF WA_TEMP_PARTNER,
          PARTNER_NO(10) TYPE C,
          PARTNER_FCT(8) TYPE C,
          PARTNER_PFT(4)    TYPE C,
          PFT_SUBTYPE(4) TYPE C,
          END OF WA_TEMP_PARTNER,
          ITAB LIKE TABLE OF WA_TEMP_PARTNER.
                  FILLING THE STRUCTURE OF THE PARTNER                    *
               WA_TEMP_PARTNER-PARTNER_NO = '0010000002'. WA_TEMP_PARTNER-PARTNER_FCT = '00000035'.
          WA_TEMP_PARTNER-PARTNER_PFT = '0012'.       WA_TEMP_PARTNER-PFT_SUBTYPE = 'CRM '.
          APPEND WA_TEMP_PARTNER TO ITAB.
          WA_TEMP_PARTNER-PARTNER_NO = '0010000002'. WA_TEMP_PARTNER-PARTNER_FCT = 'Z0000002'.
          WA_TEMP_PARTNER-PARTNER_PFT = '0029'.       WA_TEMP_PARTNER-PFT_SUBTYPE = 'CRM '.
          APPEND WA_TEMP_PARTNER TO ITAB.
          LOOP AT ITAB INTO WA_TEMP_PARTNER.
          MOVE-CORRESPONDING WA_TEMP_PARTNER TO  WA_PARTNER.
          APPEND WA_PARTNER TO ITAB_PARTNER.
          ENDLOOP.
           END    FILLING THE STRUCTURE OF THE PARTNER                    *
                  FILLING THE STRUCTURE OF THE ORDER HEADER               *
    WA_CRMXIF_BUSTRANS-OBJECT_TASK    = 'I'.
    WA_CRMXIF_BUSTRANS-PROCESS_TYPE   = 'LEAS'.
    WA_CRMXIF_BUSTRANS-OBJECT_TYPE    = 'BUS2000114'.
    WA_CRMXIF_BUSTRANS-POSTING_DATE   =  20061026.
    WA_CRMXIF_BUSTRANS-DESCR_LANGUAGE = 'E'.
    WA_CRMXIF_BUSTRANS-CREATED_AT     = 20061026203200.
    WA_CRMXIF_BUSTRANS-CREATED_BY     = 'DUTTAK'.
    WA_CRMXIF_BUSTRANS-CALC_SCHEMA    = 'Z00050'.
    WA_CRMXIF_BUSTRANS-SCENARIO       = 'A'.
    WA_CRMXIF_BUSTRANS-LOGICAL_SYSTEM = 'CDTCLN400'.
    WA_CRMXIF_BUSTRANS-CRM_RELEASE    = 'BBPCRM 500'.
    WA_CRMXIF_BUSTRANS-CLIENT         =  400.
           END FILLING THE STRUCTURE OF THE ORDER HEADER                  *
                  FILLING THE STRUCTURE OF THE ORGMAN                     *
    WA_CRMXIF_ORGMAN-SALES_ORG      = 'O 50000000'.
    WA_CRMXIF_ORGMAN-SALES_ORG_RESP = 'O 50000000'.
    WA_CRMXIF_ORGMAN-DIS_CHANNEL    = '10'.
    WA_CRMXIF_ORGMAN-DIVISION       = '20'.
           END FILLING THE STRUCTURE OF THE ORGMAN                        *
                  FILLING THE STRUCTURE OF STATUS                         *
    WA_CRMXIF_STATUS-STATUS = 'I1282'.
    WA_CRMXIF_STATUS-ACTIVE = 'X'.
    WA_CRMXIF_STATUS-TXT04  = 'CONH'.
    WA_CRMXIF_STATUS-TXT30  = 'Contract Header'.
    APPEND WA_CRMXIF_STATUS TO ITAB_STATUS.
           END FILLING THE STRUCTURE OF THE STATUS                        *
    MOVE WA_CRMXIF_ORGMAN TO WA_CRMXIF_BUSTRANS-ORGDATA-DATA.
    MOVE ITAB_STATUS TO WA_CRMXIF_BUSTRANS-STATUS-DATA.
    MOVE ITAB_PARTNER TO WA_CRMXIF_BUSTRANS-PARTNER-DATA.
    APPEND WA_CRMXIF_BUSTRANS TO WA_CRMXIF_BUSTRANS_T.
    *LOOP AT WA_CRMXIF_BUSTRANS_T INTO WA_CRMXIF_BUSTRANS.
    *LOOP AT WA_CRMXIF_BUSTRANS-PARTNER-DATA INTO WA_PARTNER.
    WRITE: / WA_PARTNER-PARTNER_NO,WA_PARTNER-PARTNER_PFT,WA_PARTNER-PARTNER_FCT.
    ENDLOOP.
    *ENDLOOP.
    CALL FUNCTION 'CRMXIF_ORDER_SAVE'
    EXPORTING DATA = WA_CRMXIF_BUSTRANS_T
    IMPORTING RETURN = WA_BAPIRETM.
    IF SY-SUBRC = 0.
    WRITE 'CONTRACT CREATED SUCCESSFULLY'.
    ELSE.
    WRITE: 'SY-SUBRC =', SY-SUBRC.
    ENDIF.
    LOOP AT WA_BAPIRETM INTO WA_BAPIRETI.
    LOOP AT WA_BAPIRETI-OBJECT_MSG INTO WA_BAPIRETC.
    WRITE: / WA_BAPIRETC-MESSAGE , WA_BAPIRETC-TYPE,WA_BAPIRETC-NUMBER.
    WRITE: / WA_BAPIRETC-MESSAGE_V1,WA_BAPIRETC-MESSAGE_V2.
    ENDLOOP.
    ENDLOOP.

    hi, it looks the crm pricing configuration doesn't suitable to the order data you inbounding.
    You can try to input a order according to your inbound data in SAP GUI or WEB UI order screen,  to check if the same error will also appear like IDOC inbound.  If so, then the configuration is in problem.  
    You can check the pricing related configure,  like pricing procedure,  procedure assign,  pricing condition record ,types,  and IPC if it is activated or not.
    If not,  you can check the data your filled in idoc,  maybe it is a data problem.

  • How to create an IOBJECT in CRM

    Hi CRM gurus,
    I want to create an IOBJECT from the following data:
    OBJECT FAMILY
    EXTERNAL ID,
    REFERENCE PRODUCT
    PRODUCT DESC
    STATUS is 'At customer site'
    Counter Template
    Please suggest me is there any suitable BAPI/FM available in SAP CRM?
    Thanks in Advance.
    Regards,
    Deep

    You can follow chapter "3.1 Maintaining Organizational Data Profile" from best practices' building block ['C23: CRM Basic Sales'|http://help.sap.com/bp_crm70/BBLibrary/HTML/C23_EN_DE.htm]. For "Organizational Model Determin. Rule" instead of a rule 10000166 enter 10000194. It will determine org. data from current user.
    Also take a look in near settings. There you can define your own rule.
    Or check this thread Org Unit determination based on Emp Resp in Task which describes how to create profile for employee responsible.

  • How to create service order in CRM

    Hi All,
    Now I can create a service plan. I want to know how to create a service order in CRM. Then I can get service plan from solution manager side for testing. Could anyone tell me how to do that on system ICT/ICP?
    Thanks a lot.

    Hi Vincent,
    If you are only talking about creating of service orders in SAP CRM, you can follow this path: [Create Service Orders|http://help.sap.com/saphelp_crm60/helpdata/en/1a/c697d376f24869a755dcf83bbbc9d2/frameset.htm]. This will tell you the overall process along with the items which are necessary to create service orders.
    [Service Orders|http://help.sap.com/saphelp_crm60/helpdata/en/1a/023d63b8387c4a8dfea6592f3a23a7/frameset.htm] will also give you a very comprehensive overview on Service Orders and its creation.
    But I'm still not clear with the system details that you mentioned here. What is ICT/ICP? And what kind of Service Plan data are you expecting from Solution Manager? Is this a SAP CRM Setup for a Demo or are you show casing this solution for some mid-sized clients or customers?
    Hope this helps.
    Thanks,
    Samantak.

Maybe you are looking for