Creating activity and populate activity journals from ext. data

We are looking to create activities and corresponding journal entries from an external database application.
The external database is SQL, and there are 30,000 data records.
What is the best approach for mass load of external data into a CRM activity.
Thanks

I don't know of a tool to use to load them.  We wrote a load program that calls function module BAPI_ACTIVITYCRM_CREATEMULTI to create the activities
Hope this helps;
Brant

Similar Messages

  • Err in creating Activit under tab Ext. Process using BAPI_NETWORK_MAINTAIN

    Hi Gurus,
    I need to create activity under tab Ext. Processing for a network and i am planning to use BAPI "BAPI_NETWORK_MAINTAIN" for this purpose. I am able to create activity under "Int. Processing" using this BAPI but got error for "Ext. Processing" tab.
    Below is the code i am doing for ext. processing tab.
    ****to move 3rd activity number for external processing
    itemsg-internal_object_id = '000004000873'.
    activity = '0030'.
    CONCATENATE itemsg-internal_object_id activity INTO v_str.
          MOVE  itemsg-internal_object_id+0(12) TO itactivity-network.
        MOVE '0030' TO itactivity-activity.
        MOVE 'Activity2' TO itactivity-description.
        MOVE 'PS02' TO itactivity-control_key.
        MOVE '5001-KOS-0061' TO itactivity-project_definition.
        MOVE '5001-KOS-0061-BA' TO itactivity-wbs_element.
       MOVE 'AA' TO itactivity-factory_calendar.
       move '2000' to itactivity-DURATION_NORMAL.
       MOVE 'DAY' to itactivity-DURATION_NORMAL_UNIT.
       MOVE '2000' to itactivity-WORK_ACTIVITY.
       MOVE 'Z0004' to itactivity-MILESTONE.
       MOVE 'M3'    to itactivity-UN_WORK.
        MOVE '099' to itactivity-MATL_GROUP.
        MOVE 'PGL' to itactivity-PUR_GROUP.
        APPEND itactivity.
        MOVE '000003' TO itnetmethod-refnumber.
        MOVE 'NETWORKACTIVITY' TO itnetmethod-objecttype.
        MOVE 'CREATE' TO itnetmethod-method.
        MOVE  v_str TO itnetmethod-objectkey.
        APPEND itnetmethod.
        CLEAR  itnetmethod.
    Below is the error message i got when i load this code.
    Enter a time unit, since you have entered either work or actual work
    Termination: Too many errors (more than 10% of methods)
    The order or network could not be saved
    Please help me to resolve this issue.
    Thanks in advance
    Ajay

    Hi,
    1)
    I would suggest declaring a structure of type BAPE_VBAP & BAPE_VBEP...Then move the values instead of using offset..
    Example
    DATA: S_BAPE_VBAP TYPE BAPE_VBAP.
    Populate the Extension structure WITH Order commited flag
    LW_EXT_STRUCTURE-STRUCTURE = C_BAPE_VBAP.
    S_BAPE_VBAP-VBELN = W_VBAP-VBELN.
    S_BAPE_VBAP-POSNR = W_VBAP-POSNR.
    S_BAPE_VBAP-ZZORDCOFL = W_VBAP-ZZ_ORDCOFL.
    LW_EXT_STRUCTURE-VALUEPART1 = S_BAPE_VBAP.
    This will make sure the BAPE_VBAP is extended with the Z fields..
    2)
    You are checking only for abort messages...You are not checking for error messages..
    Instead of this..
    READ TO CHECK THE ERROR AND ABORT MESSAGES DURING BAPI CALL
    READ TABLE LT_RETURN_TAB INTO LW_RETURN_TAB
    WITH KEY TYPE = C_MSGTYP_A
    BINARY SEARCH.
    Have this code..
    LOOP AT LT_RETURN_TAB WHERE TYPE = 'E' OR TYPE = 'A'.
      EXIT.
    ENDLOOP.
    IF SY-SUBRC = 0.
      WRITE: / 'ERROR'.
    ELSE.
      WRITE: / 'SUCCESS'.
    ENDIF.
    This will make sure there are no error messages..Also check the return table for error messages in the debugging mode..
    Thanks,
    Naren

  • BAPI for Creating Activity Journal

    Dear Experts,
                 i am able to create the Activity through standard function module BAPI_ACTIVITYCRM_CREATEMULTI, now i want to create the Activity Journal, how can i create Activity Journal, BAPI_ACTIVITYCRM_CREATEMULTI is the right bapi for that or is there any other bapi to create Journal. Actually i have seen in the Create bapi, but i dont know how to create the journal, plz help me how to create the journal for an Activity, what r the necessary fields for creating the journal.
                       Regards
                         eswar

    hi prasad,
            i have gone through this interface program, but i m unable to create the activity journal, plz tell me the process while using this interface, and wht are the necessary fields to give for the bapi because i need standard interface, plz help me how to create the journal for an activity.
                      Regards
                        eswar

  • Authorization for creating activity journal template

    I have log on with salespro role in CRM 7.0.When I try to click the link in UI for creating activity journal template.
    It said that I don't have authorization.
    Could I ask where to control this authorization?
    I thought this should include in the authorization for salespro.
    Thanks

    Hi Jiao,
    Just Check the PFCG role assigned to Salespro role is having authorization for object CRM_ACTJNL
    Regards,
    Dipesh.

  • How to create a .mdf SQL Server database from a Data-Tier Application file that has data?

    This is a noob question, though I do use SQL Server databases all the time with Entity Framework when I code in C# using Visual Studio 2013.  The development environment is found below at [A].  I am trying to make a clone of a SQL Server 2008 R2
    database (.mdf)  that exists online.  I can read, connect and work with this database in Visual Studio 2013, but I wish to make a local copy of the database, as an .MDF file.  Somewhere in my notes I have a way of creating a local copy from
    an online database when using Visual Studio but I forgot how (it seems, reviewing my notes, that it deals with ADO.NET which is deprecated in Visual Studio 2013 these days, or so it seems).  So I'm looking for another way.  What I did was create
    (or export) a "Data-Tier Application File" from the online SQL Server database, with data, and it seems to have worked in that this Data-Tier Application file exists on my hard drive and seems to have data in it ("SQL Server Replication Snapshot"
    is the format it seems).  It contains skeleton code to create a database, but when I tried to execute it with SQL Server 2014 Management Studio, I got a bunch of errors.
    So my question is:
    1) Can I somehow create a .MDF SQL Server Database from an Data-Tier Application file that has data?  What tool do I use?  I saw this link, http://social.technet.microsoft.com/wiki/contents/articles/2639.how-to-use-data-tier-application-import-and-export-with-a-windows-azure-sql-database.aspx 
    and it relates to Azure, but is there a tool for C#Visual Studio 2013, standalone?
    2) If there's an easy way to create a .mdf SQL Server Database file from an online file, within SQL Server Management Studio?  I don't think so, since it would require Administrator permissions on the online server, which I don't have. I have permission
    to read, update, delete the online database file, but strangely not to download it (the service I use has a tool for backup, but not for download).
    3) same question as 2), but for Visual Studio 2013?  I don't think so, since I notice none of the templates even mentions ADO.NET anymore, but instead they go with Entity Framework.  Using EF I can of course do anything I want with the online database
    (CRUD), but it remains online.  Maybe there's a switch to make a local copy?  I guess I could write a short program to suck all the data out of the online database and put it into a new, duplicate database having the same tables, that I create on
    my localhost, but my question here is if there's an easier way than this, maybe a tool or command I can run from inside Visual Studio?
    Any advice on any of the above questions is appreciated.
    Thank you,
    Paul
    [A] Microsoft Visual Studio Professional 2013
    Version 12.0.21005.1 REL
    Microsoft .NET Framework
    Version 4.5.51641
    Microsoft Web Developer Tools 2013   2.0.40926.0
    SQL Server Data Tools   12.0.30919.1
    Microsoft SQL Server Data Tools
    Windows Azure Mobile Services Tools   1.0
    Windows Azure Mobile Services Tools

    Thanks but these links are too general to help.
    "2. what do you mean by online file?" - I mean the SQL Server database file is on a remote web server that I rent from, but I am not the administrator of.  I can access my database using SQL Server Authentication, but nothing more.
    Paul
    What do you mean by too general? It explains on how you can use data tier application to create and deploy databases
    May be this will help you to understand better
    http://www.databasejournal.com/features/mssql/article.php/3911041/Creating-Data-Tier-Applications--in-SQL-Server-2008-R2.htm
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • NEED HELP!! creating a method to search records from a data.dat file

    i am having a lot of trouble trying to create a method for searching records from a data.dat file as a contacts application i am using (for) and (if) together and getting the same error messages saying a ")" is needed when it doesn't and illegal start of expression can anyone help! on letting me know how you create search methods! thanks

    public static void search_records()
              System.out.println("Please Enter a Surname (* for all):");
              user_surname = data_input.next();
              System.out.println("Please Enter a firstname (* for all):");
              user_firstname = data_input.next();
              for (int i = 0; i < number_of_records; i++)
                   if(user_surname.compareTo(lastName) || user_surname.compareTo(*));
                             if(user_firstname.compareTo(firstName[i]) || user_firstname.compareTo(*));
                                  system.out.print("Result:",number_of_records);

  • Help needed to create active links from a database

    I want to create active links to web addresses stored in my
    Access database and returned on the detail page of a Master/Detail
    set. The code below returns the correct entry from the database
    field - but I can't seem to make it an active link.
    <%=(rsNameMasterDetail.Fields.Item("Link").Value)%>
    any help would be appreciated!
    thanks,
    emyers

    >
    <%=(rsNameMasterDetail.Fields.Item("Link").Value)%>
    >
    > any help would be appreciated!
    <a
    href='<%=(rsNameMasterDetail.Fields.Item("Link").Value)%>'><%=(rsNameMasterDetail.Fields. Item("Link").Value)%></a>
    -Darrel

  • Creating Activity Diagram from existing code in 11g

    Hi,
    How can I create activity diagram for an existing application in 11.1.2.2.0 version?
    -Infy

    Do you mean you select activity diagram in wizard but you see classes (not invocations/partitions etc) on created diagram?
    If so.. it's a design, you just see activity diagram with inappropriate elemnts.
    We support to create any diagram from any elemnts but may be it's better to block diagram creation from not appliable elemnts.

  • Create excel file in document library from the data in datatable

    Hi ,
    I want to generate files dynamically and have then saved to my documetn library instead of  some location on the  harddisk.
    I want to generate and excel file  which will read data from the sharepoint list.
    Form that data excel will be genereated in the code ,and i want the generated excel directly available in the  document library.
    I could use open xml of excel itneroperablity for the excel file generation.
    How can i do that.

    Hi,
    According to your description, you might want to gather data from a SharePoint list as an excel file and upload it to a Document Library.
    As you said, you can generate an Excel file using the Open XML SDK, I will provide some information about how to get data from SharePoint list and how to upload files
    to a Document Library.
    About the retrieving data from a SharePoint list, we can use SharePoint Object Model:
    SharePoint Object Model -
    SPListItem class
    http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.splistitem.aspx 
    Add, Update and Delete List Items Programmatically in SharePoint
    http://www.mindfiresolutions.com/Add-Update-and-Delete-List-Items-Programmatically-in-Sharepoint-372.php 
    About
    How to: Upload a File to a SharePoint Site from a Local Folder:
    https://msdn.microsoft.com/en-us/library/office/ms454491(v=office.14).aspx
    Thanks
    Patrick Liang
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support,
    contact [email protected]
    Patrick Liang
    TechNet Community Support

  • Create and populate pdf forms from a xml file for follow up information

    Forgive my amateurishness, I have a simple .xml that was created with excel with name, address, date of service, age, dob, account #, unit, and business name.  I need a form to be pre-populated with the .xml data but have other fields (mainly Yes/No check boxes) that need to be populated by other users.  This users would then finish filling out the form and return it to me via email.  I have created the form in LC Designer ES2 and created it with Acrobat Pro X.  However when I attempt to import data I can only see the first .xml record.  So my question is, how do I create multiple .pdf forms for each .xml record?  Do I need to use Java within LC Designer?  Or use Adobe Pro?  I am not afraid to attempt to code, (I have many excel programs that batch print to .pdf using vb).
    Thank you in advance

    Try the forum for LiveCycle Designer.

  • Use of PL/SQL to populate table columns from XML data file

    I'm trying to find the easiest way to transfer data from a flat file that is in XML format into a traditional Oracle table. Not retaining the XML but actually map an XML element to a column so standard SQL, Forms, Reports, etc can access like it was created using a Form.
    Example: Table A has column names Tom, Dick and Harry and the XML file has elements Tom, Dick and Harry and I just want a function that maps and inserts/loads the data into Table As individual columns.
    The process needs to be easily initiated by an end user. The user gets the XML data file via an email attachment and needs to do something like a Concurrent Request to pull in the file and load it. Using PL/SQL would be great.
    I appreciate any help that can be provided.

    Hi,
    HELP!!!!!
    We are having the same problem and we are using oracle 10ir2.
    We create an object type (sql type globally not in a package):
    CREATE OR REPLACE TYPE G_EX AS OBJECT
    ( EX_ID NUMBER ,
    EX_CON VARCHAR2 ( 100 ) ,
    EX_L VARCHAR2 ( 30 ) ,
    EX_T VARCHAR2 ( 4000 ) );
    CREATE OR REPLACE TYPE G_EX LIST AS TABLE OF  GEX AS ;
    then we insert data through a bulk collect within the package with the table declared of this array of object types:
    v_table G_EX _LIST:= NULL;
    SELECT G_EX (ex_id
    ,ex_con
    ,ex_l
    ,ex_t )
    BULK COLLECT INTO v_table
    FROM exs_lookup;
    I am using the syntax (below) but it gives PL/SQL: ORA-00902: invalid datatype
    sometimes not always:
    SELECT G_EX ( ex_id
    ,ex_con
    ,ex_l
    ,ex_t )
    BULK INTO v_data_record
    FROM TABLE (v_table)
    WHERE ex_id = p_key;
    where p_key - is a number type
    and v_data_record is a G_EX object type.
    I was wondering if anyone else encountered a similar problem, and knows what we may have done wrong. Since we dont understand why this piece of code is throwing this ora-00902 errors occasionally not always.
    Also, if we restart the database up once this errors occurs it appears to stop throwing this ora_00902 error for a lenght of time. Then it comes up with the ora-00902 error again (why?)
    thanks

  • Master data and impact of loads from transaction data

    If I have the following scenario:
    1. Load to cube which contains a dimension which has an info object 0CUSTOMER
    2. The transaction data is being loaded from a non SAP system and 0CUSTOMER is loaded on a daily basis from SAP system
    3. As part of the transaction load some Customers have a value which is not existing in the 0CUSTOMER info object
    Do these new customers also get loaded to the 0CUSTOMER master data i.e. the SIDs are added to the SID table for 0CUSTOMER or is it just loaded as part of the cube and stored in the specific dimension
    Thanks

    Hi,
    they are also automatically loaded to 0customer, as the sid of that record is needed in the cube. Possibly, if there is no relation to your R/3 customers, you have some initial records in your customer master (means all attributes as well as the texts are initial).
    regards
    Siggi

  • HT1349 hi good day im Mark Alino from the philippines i purchase iphone 5s 32g gold from the istore here in ayala cebu city philippines last december 13th friday. And its been 2days from the date i purchase that phone i returned it from store due to a big

    Good day,   i have concerns and problems, questions that i want an answer hope you can help me guys.. im Mark Alino from the philippines i purchase iphone 5s 32g gold color here at ayala istore cebu, city philippines since the date i purchase the phone i returned it due to a big hairline scratch in the middle of the screen and on the left side and i was so dissapointed. Afterwards the store tell me that i have to wait 15working days just to replace the unit and its been 2 weeks from now and i diddnt hear any feedback from them knowing the fact that i paid for thatb phone and its very expensive 40,000 pesos. please help me guys.. to solve my problems i think i have the right to complain or refund if they cannot gave the unit as soon as possible this is the contact no. from istore... please if someone read this pls help me im so down and please apple help me.
    <Phone Number Edited by Host>

    There is no one from Apple here. We are users like you.
    The only legitimate iphone sellers in the Phil are the carriers. You probably bought a gray market phone that was imported from another country. Thus the warranty is not valid in the Phil. The store is probably trying to replace the phone by sending it back to the country they bought it from.
    There is nothing Apple or anyone can do here. You will have to wait until the store solves your problem. If they do not, demand a refund. Good luck.

  • FF15 is preventing pages in out of focus tabs from autorefreshing. All Javascript/Java and plugins are prevented from refreshing data when tab is not displayed

    FF15 is preventing pages that contain auto refreshing html commands, Javascripts, Java applettes, and other plugins, from auto reloading or refreshing information on web pages, when the tabs than contain them go out-of-focus.
    While tab has focus (page is fully displayed) all auto refreshing/reload embedded commands/programs work correctly.
    I work with web sites, were information needs to be auto updated constantly, whether the tab is hidden or not, such as stock prices, web server monitoring, biding sites, customer support chat, etc.
    This behavior can cause severe loads in web servers with web pages that contain many data items, when all server side programs that pertain to the data being displayed have to run from scratch at the same time, when the tab is brought back in focus, since the browser issues a full reload.
    This behavior also interferes with "reloading" FireFox addons
    One should be able to stop, and/or disable this behavior, and pretty sure this problem is affecting many users, and or web sites that rely on these commands to work according to html protocols.
    Is not the function of a web browser to interfere in any way with html embedded commands or programs, by stoping functionality, or preventing connection to the internet

    No need to remove Adblock Plus, disabling it should help you discover whether ABP is causing that problem or not.
    I saw a mention of that problem at MozillaZine fora a few days ago, but don't recall the details. But IIRC it has to do with toggling a setting to off.
    Adblock Plus has its own support forum.They should be able to help you get ABP adjusted to avoid that issue. <br />
    http://adblockplus.org/forum/

  • SQL Query find month/year and then calculate difference from start date

    Hi All,
    Assume I have a table with a column Start_Date. I like to know how we can build a query to so we can find the end of the month date based on the start_ date and then calculate the difference
    For example lets say we have a date 12/06/2014 and now based on this we should get the end of the month date which is 30/06/2014. Now we can get the difference which is 18 days.
    Thanks

    Hi Jaggy99,
    According to your description, you need to get the date difference between a given date and the last day of that month, right?
    In this case, please try the query below.
    SELECT GETDATE() AS [CURRENTDAY], DATEADD(DAY,-1,DATEADD(MONTH, DATEDIFF(MONTH, 0, GETDATE()) + 1, 0)) AS [LASTDAY],
    DATEDIFF(DAY, GETDATE (), DATEADD(DAY,-1,DATEADD(MONTH, DATEDIFF(MONTH, 0, GETDATE()) + 1, 0))) AS [DIFFERENCE]
    Regards,
    Charlie Liao
    TechNet Community Support

Maybe you are looking for