How to make processing of BAPI_ACTIVITYCRM_CREATEMULTI time efficient

hello
    We want to upload the CRM Business activity (Interaction Record) using 'BAPI_ACTIVITYCRM_CREATEMULTI ' .It is taking 30 min to upload 5000 records, but the actual file will contain more than 1 million records.Is there any way to upload it efficiently.

HI,
Use the "Parallel Processing" to reduce the time taken to execute more records..
Just search "Parallel processing in SAP" in GOOGLE for teh methods...

Similar Messages

  • How to make program faster and high efficiency?

    Dear consultant:
    Our ABAP reports seem to be very low efficiency.  Users should waste a lot of time to wait.
    How can I do some improvement.
    Here is an example:
    Hope anyone of you kindly give some advice on how to improve it. thanks in advance.
    pls look at the program below:
    [http://blog.csdn.net/elin_yi/archive/2009/07/21/4366236.aspx]

    thanks.
    but our test system's SE30 shows the following error:
    CONVT_NO_NUMBER
    Runtime errors         CONVT_NO_NUMBER
           出现在          2009-07-22 在   09:38:22
    Unable to interpret "? as a number.
    发生了什么?
    Error in ABAP application program.
    The current ABAP program "SAPMS38T " had to be terminated becaus
    statements could not be executed.
    This is probably due to an error in the ABAP program.
    你能做什么?
    Print out the error message (using the "Print" function)
    and make a note of the actions and input that caused the
    error.
    To resolve the problem, contact your SAP system administrator.
    You can use transaction ST22 (ABAP Dump Analysis) to view and ad
    termination messages, especially those beyond their normal dele

  • How to make PPPoE work with Time Capsule?

    I'm trying to connect a Time Capsule to an ADSL broadband connection using a Thompson Speedtouch 510v6 modem in bridged mode.
    After selecting PPPoE, setting the userid and password in the Time Capsule and restarting, the Time Capsule shows a yellow light and says that it cannot find a PPPoE server.
    If I connect the modem directly to my Mac, I am able to successfully establish the PPPoE connection, so I know that the modem, ADSL link, userid and password work. The Time Capsule also works fine if it is configured to use an IP connection to a router, as opposed to a PPPoE connection to a bridge.
    Any hints about what the problem may be? I have no idea how to even begin debugging this.
    A related question: Is there a way to get IP connectivity to the bridge device when it is connected to the Time Capsule in PPPoE mode? You would think that in PPPoE mode, the Time Capsule should treat the WAN port as just another hub port for the purpose of IP connectivity, but that does not seem to happen. With IP connectivity I could check the status of the bridge from any computer connected to the Time Capsule, which could possibly help me diagnose the problem.

    There should only be one device setup to provide the PPPoE service for your network. If you have the Time Capsule setup to do this, you must make sure that your computer is no longer trying to do the same thing at the same time. In other words,,you need to delete or at least make the PPPoE connection not active on your computer.
    If you are using Leopard or Snow Leopard on your computer, click the System Preferences icon and then click Network. Look for a PPPoE connection that displays your user name and password. Makes sure that this is not active. You would only want the PPPoE connection on your computer active when your computer is connected directly to the modem. If the Time Capsule is connected to the modem, you must turn off PPPoE on your computer.
    Then power off your network. Start the modem first, then the Time Capsule and then your computers.

  • How to shedule process chain Multiple time in a month

    Hi to all,
    I have a question.
    suppose we required to shedule the process chain,
    for first 10 days, we need to extract data 8 time a day
    and for remaing days in months, we need to extratc data 1 time a day.
    How can we achive that in process chain.
    Please can any one tell me the solution.
    I shall be thankful to you for this.
    Regards
    Pavneet rana

    Hi,
    Another option would be using the InfoPackage settings. Create 2 infoPackages.
    1st one for first 10 days
    ====================
    In the "Schedue" tab, define the Scheduling options to Hourly and save it. Now, you will see "Periodic Processing" section with two options,
    1. Do Not Cancel Job
    2. Cancel Job After X Runs
    For 2, provide 8.
    2nd for From 11th day
    ==================
    Create another InfoPackage for Daily load.
    In process Chain, you may use the previous "Decision Between Multiple Alternatives" process type (in the command formula, write a simple formula as below:
    RIGHT( 2, Current Date ) <= 10
    Then include 2 ABAP Program for each option (using "BAPI_IPAK_START" with the InfoPackage name) in decision options. (use the InfoPackages as variants).
    This will solve your requirement,
    "for first 10 days, we need to extract data 8 time a day
    and for remaining days in months, we need to extract data 1 time a day."
    Now, further update using DTP, for remaining days in months (i.e. 1 time a day) you can directly include the DTP in the chain. However, for the 1st 10 days you have to dig more.
    Good Luck!
    Sankar Kumar

  • How to make a date and time

    Hi all
    Would you mind tell me about that how to add
    date and time in to GridBagLayout?
    Thank you.

    Hi,
    For Date and Time, look into java.util.Date or java.util.calender.
    For displaying use a label, set text with the Date and time , add into the GridBagLayout.
    Thats it..
    Rajesh

  • How to make processing faster in GUI application?

    Hello!
    We have a client /server application that processes data fed to it and displays them on the GUI. The problem is when the data becomes large in amount. The processing becomes very very slow. It takes more than 1 hour to process about 5000 data.
    What we currently do is that when the client receives data from the server, it is put in a List. The List is processed every 1 second. The function that process the List is called by the TimerTask class which is scheduled by the java.util.Timer.
    The GUI uses a JTable to display the data sent. Users can opt to sort the data using any column by clicking the column header. Users can also delete data and perform other processing to the data displayed on the gui by selecting rows and clicking on the function on the toolbar or menu. Each of these user initiated processing is processed in a separate thread.
    When data is few, processing is ok. all works well. But when data is large in amount. Processing becomes too slow.
    I wonder if anyone has encountered this before? Please help. We badly need it.
    Thank you very much!

    Actually, the way you are suppoed to answer this question is get the OP to profile their code to find out where the bottle neck is. It is absolutely useless to change a bunch of LinkedLists to ArrayLists, if it buys you 1 millisecond performance gain. When in reality the code may be spending 80% of the time in one single method waiting for a lock on an object to be free before it enters a synchronized block.
    We could suggest things all day, but unless the OP actually uses a real profiler and finds out what is slow, it's no use. Also, one thing to note, it may not be an application issue at all.
    This type of scenario is common when you have a malfunctioning network card, or your router/switch is set up incorrectly, since those things can cause lots of packet loss. So it's not even clear if this is an applicaiton issue, or if things become slow because the network is slow.

  • How to make more room on Time Machine drive?

    I'm starting to get messages that my backup failed because there's not enough space on my drive... how can I increase space? I know I can't delete individual Time Machine files but I also tried deleting several files on my actual drive so hopefully TM would delete them from the back drive but that didn't work either.
    How can I get files OFF my TM drive?

    See the pink box in #C4 of [Time Machine - Troubleshooting|http://web.me.com/pondini/Time_Machine/Troubleshooting.html] (or use the link in *User Tips* at the top of this forum).

  • How to make sorting in hash table efficient

    Hi guys,
    I am relatively new to collections.
    I have a HashTable which has 100000 records in it, when I sort it, it takes a lot of time to get it done.
    As the Hashtable methods are synchronised so even I can't use threads to perform this quickely for me.
    Can any one provide any solution using multi threading or any other method to achieve the optimization in
    sorting the hashtable.
    Thanks,
    Atul

    As already suggested, use TreeMap if you want to build your table in sorted key order. Otherwise, if you want to sort after the fact, you could do one of the following:
    SortedSet sortedKeys = new TreeSet(map.keySet());
    // or
    List sortedKeys = new TreeSet(map.keySet());
    Collections.sort(sortedKeys);Note that this will NOT affect that order in the map. It only affects the order of the extracted keys.
    Also not that if sorting 100,000 items is taking "a long time," then you probably wrote your own sort algorithm and it's probably O(n^2) or something.

  • HOW TO MAKE AN UPDATE COMMAND MORE EFFICIENT

    hI Everyone,
    if we have round (10000000) records in a table and we want to update an attribute in this table. it takes sometime round 60 mins or even more, while both tables are indexed. Do anyone knows any magic to improve the efficiency.
    Best Regards,

    If you are using IN clause, try using exists.
    AdinathWhy?
    look at this
    1) NOT IN vs NOT EXISTS:
    /*$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$*/
    /*$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$*/
      select *
        from dept
       where deptno not in (
                             select deptno
                               from emp
                              where deptno is not null
      Statement Id=12200   Type=
      Cost=2,64022111505165E-308  TimeStamp=03-05-07::13::40:08
           (1)  SELECT STATEMENT  ALL_ROWS
         Est. Rows: 1  Cost: 6
           (6)  MERGE JOIN ANTI
         Est. Rows: 1  Cost: 6
               (3)  TABLE TABLE ACCESS BY INDEX ROWID SCOTT.DEPT  [Analyzed]
               (3)   Blocks: 5 Est. Rows: 4 of 4  Cost: 2
                    Tablespace: USERS
                   (2)  INDEX (UNIQUE) INDEX FULL SCAN SCOTT.PK_DEPT  [Analyzed]
                        Est. Rows: 4  Cost: 1
               (5)  SORT UNIQUE
                    Est. Rows: 14  Cost: 4
                   (4)  TABLE TABLE ACCESS FULL SCOTT.EMP  [Analyzed]
                   (4)   Blocks: 5 Est. Rows: 14 of 14  Cost: 3
                        Tablespace: USERS
    /*$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$*/
    /*$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$*/
      select *
        from dept
       where not exists (
                          select null
                            from emp
                           where emp.deptno is not null
                             and emp.deptno = dept.deptno
      Statement Id=100   Type=
      Cost=1,95696055847079E-307  TimeStamp=03-05-07::13::42:35
           (1)  SELECT STATEMENT  ALL_ROWS
         Est. Rows: 1  Cost: 6
           (6)  MERGE JOIN ANTI
         Est. Rows: 1  Cost: 6
               (3)  TABLE TABLE ACCESS BY INDEX ROWID SCOTT.DEPT  [Analyzed]
               (3)   Blocks: 5 Est. Rows: 4 of 4  Cost: 2
                    Tablespace: USERS
                   (2)  INDEX (UNIQUE) INDEX FULL SCAN SCOTT.PK_DEPT  [Analyzed]
                        Est. Rows: 4  Cost: 1
               (5)  SORT UNIQUE
                    Est. Rows: 14  Cost: 4
                   (4)  TABLE TABLE ACCESS FULL SCOTT.EMP  [Analyzed]
                   (4)   Blocks: 5 Est. Rows: 14 of 14  Cost: 3
                        Tablespace: USERS
    /*$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$*/
    /*$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$*/2) IN vs EXISTS
    /*$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$*/
    /*$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$*/
      select *
        from dept
       where exists (
                      select null
                        from emp
                       where emp.deptno is not null
                         and emp.deptno = dept.deptno
      Statement Id=100   Type=
      Cost=1,9569605606389E-307  TimeStamp=03-05-07::13::43:15
           (1)  SELECT STATEMENT  ALL_ROWS
         Est. Rows: 3  Cost: 7
           (4)  HASH JOIN SEMI
         Est. Rows: 3  Cost: 7
               (2)  TABLE TABLE ACCESS FULL SCOTT.DEPT  [Analyzed]
               (2)   Blocks: 5 Est. Rows: 4 of 4  Cost: 3
                    Tablespace: USERS
               (3)  TABLE TABLE ACCESS FULL SCOTT.EMP  [Analyzed]
               (3)   Blocks: 5 Est. Rows: 14 of 14  Cost: 3
                    Tablespace: USERS
    /*$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$*/
    /*$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$*/
      select *
        from dept
       where deptno in (
                         select emp.deptno
                           from emp
                          where emp.deptno is not null
      Statement Id=4203132   Type=
      Cost=2,64022111505165E-308  TimeStamp=03-05-07::13::44:16
           (1)  SELECT STATEMENT  ALL_ROWS
         Est. Rows: 3  Cost: 7
           (4)  HASH JOIN SEMI
         Est. Rows: 3  Cost: 7
               (2)  TABLE TABLE ACCESS FULL SCOTT.DEPT  [Analyzed]
               (2)   Blocks: 5 Est. Rows: 4 of 4  Cost: 3
                    Tablespace: USERS
               (3)  TABLE TABLE ACCESS FULL SCOTT.EMP  [Analyzed]
               (3)   Blocks: 5 Est. Rows: 14 of 14  Cost: 3
                    Tablespace: USERS

  • How to make processing button

    I need to have to show a busy button will clicking submit.
    1.I have attached the code,if u give values to the grid and
    click submit,left hand side values will be displayed.
    2. while clicking submit , till the vlaues display on left
    side some busy symbol should appear, so that busy symbol can
    indicate the user it is in process..
    can any one help..
    Thanks in Advance...

    Hi,
    I couldn't find the code attached. I would have disabled the Submit button before invoking the service and enable it when the response is received. Also have a look at the showBusyCursor property of the HTTPService class.
    Hope this helps.

  • Please Suggest, How to make this view efficient ?

    Hi there,
    Could you please suggest me,how to make the following VIEW (QUERY) efficient regarding performance point of view.
    CREATE OR REPLACE VIEW XXX_TRX_TO_NUM_V
    (ROW_NUM, ORIG_TRX_NUM, TRX_NUMBER, TRX_DATE, PURCHASE_ORDER,INTERFACE_HEADER_ATTRIBUTE6, INTERFACE_HEADER_ATTRIBUTE1, INTERFACE_HEADER_ATTRIBUTE5, BILL_TO_CONTACT_ID, REMIT_TO_ADDRESS_ID, BILL_TO_CUSTOMER_ID, BILL_TO_SITE_USE_ID, ORG_ID)
    AS
    Select rownum row_num,trx_number orig_trx_num,to_number(a.trx_number) trx_number,a.trx_date,a.purchase_order,a.interface_header_attribute1
    ,a.interface_header_attribute6,a.interface_header_attribute5,a.bill_to_contact_id
    ,a.remit_to_address_id,a.bill_to_customer_id,a.bill_to_site_use_id,a.org_id
    from ra_customer_trx_all a
    where a.trx_number is not null
    and a.trx_number not in
    (select trx_number
    from
    (select rownum,/*+ ALL_ROWS ,16 */ r.trx_number,ltrim(rtrim(translate(/*+ ALL_ROWS ,16 */ r.TRX_number,'0123456789',' '), ' ' ), ' ' ) tx
    from ra_customer_trx_all r)
    where tx is not null)
    order by trx_number
    Thanks in Advance !
    Shahzad

    I think you have the hints in the wrong place - as far as I was aware, the hint had to come straight after the SELECT/UPDATE/INSERT/DELETE key word - but I could be wrong as I've never really tried it elsewhere. Also, unless the optimiser mode for your database is set to FIRST_ROWS or RULE (god help you!:), ALL_ROWS is the default behaviour.
    Basically what you are trying to say is bring me back all ra_customer_trx_all rows that have purely numeric trx_numbers right?
    Why, if you need to be able to represent trx_number as a number, do you have non-numeric data in there???? That's a bit dodgy isn't it?
    Anyway, what about:
    CREATE TABLE dt_test_num (id varchar2(10))
    insert
    into
         dt_test_num
    select
         chr(47 + rownum)
    from
         all_tables
    where
         rownum <= 20
    select
         to_number(id),
         id
    from
         dt_test_num
    where
         translate(id,'0123456789',' ') IS NULL
    update
         dt_test_num
    set
         id=id||chr(67-rownum)
    select
    FROM
         dt_test_num
    select
         to_number(id),
         id
    from
         dt_test_num
    where
         translate(id,'0123456789',' ') IS NULL
    /Also, you are selecting rownum and aliasing it. Why? rownum will be assigned before the sort.
    HTH
    David
    Message was edited by:
    david_tyler
    Hello
    Slight correction to the where clause. Art first I thought you didn't need the trim on there, but that was just down to the number sequence in translate...
    SQL> select nvl(translate('1A','1234567890',''),'NULL') from dual
      2  /
    NVL(
    NULL
    SQL> select nvl(translate('1A','1234567890',' '),'NULL') from dual
      2  /
    NV
    A
    SQL> select nvl(translate('1','1234567890',' '),'NULL') from dual
      2  /
    N
    SQL> select nvl(translate('2','1234567890',' '),'NULL') from dual
      2  /
    NVL(
    NULL
    SQL> select nvl(translate('2','0123456789',' '),'NULL') from dual
      2  /
    NVL(
    NULL
    SQL> select nvl(translate('1','0123456789',' '),'NULL') from dual
      2  /
    NVL(
    NULL
    SQL> select nvl(translate('0','0123456789',' '),'NULL') from dual
      2  /
    N
    SQL> select nvl(TRIM(translate('0','0123456789',' ')),'NULL') from dual
      2  /
    NVL(
    NULL
    SQL> select nvl(TRIM(translate('1','0123456789',' ')),'NULL') from dual
      2  /
    NVL(
    NULLTranslate still confuses me :-(

  • How to do a backup with time machine?

    Hi Communitieee,
    I dont know how to make a backup with time machine. Can anybody help me?
    And i have another question.. whats wrong with library? when i start my mac the message is popping up but i dont know what it means..
    Thanks
    KR

    Ok thanks mende1.
    Whats with time machine? I already take a look to the link but i could not find the answer of my problem. Can you please take a look of this screenshot?!
    I dont have an extern hard drive. i just want to save my pics and the other data of my mac.

  • How to make it more efficient

    Hi,
    I am working on AQ where I am just sending and receiving simple messages. But the performance is very poor. It takes around 35 seconds to send (enqueue) just 100 messages which is not acceptable for our project. Can someone help me how to make it more efficient. I am using JMS for sending and receiving messages.
    Thanks,
    Sateesh

    Bhagath,
    Thanks for your help.
    Oracle server we are using is 8.1.7. We are using JDBC client that ships with Oracle client (classes12.zip).
    Right now we are working on point to point messages.
    I am just wondering whether I need to do any tuning on server.
    Your help is greately appreciated.
    Here I am pasting sample code that I wrote which may help in finding the problem.
    Thank you so much once again for your help.
    -Sateesh
    import java.sql.*;
    import javax.jms.*;
    import java.io.*;
    import java.util.Properties;
    import oracle.AQ.*;
    import oracle.jms.*;
    public class CDRQueueSender {
    private final String DB_CONNECTION = "jdbc:oracle:thin:@dev1:1521:dev";
    protected final String DB_AQ_ADMIN_NAME = "dev78";
    private final String DB_AQ_ADMIN_PASSWORD = "dev78";
    /** DB AQ user agent name and password */
    private final String DB_AQ_USER_NAME = "dev78";
    private final String DB_AQ_USER_PASSWORD = "dev78";
    private QueueConnectionFactory queueConnectionFactory = null;
    private QueueConnection connection = null;
    private QueueSession session = null;
    private Queue sendQueue;
    private QueueSender qSender;
    public CDRQueueSender() {
    try {
    Properties info = new Properties();
    info.put(DB_AQ_USER_NAME, DB_AQ_USER_PASSWORD);
    queueConnectionFactory = AQjmsFactory
    .getQueueConnectionFactory(DB_CONNECTION, info);
    connection = queueConnectionFactory.
    createQueueConnection(DB_AQ_USER_NAME,
    DB_AQ_USER_PASSWORD);
    session = connection.createQueueSession(
    true, Session.AUTO_ACKNOWLEDGE);
    connection.start();
    sendQueue = ((AQjmsSession) session).getQueue (DB_AQ_ADMIN_NAME,"CDR_QUEUE");
    qSender = session.createSender(sendQueue);
    catch (Exception ex) {
    ex.printStackTrace();
    public boolean sendCDRMessage(CDRMessage messageData)
    throws JMSException, SQLException {
    ObjectMessage objectMessage = session.createObjectMessage(messageData);
    try {
    qSender.send(objectMessage);
    session.commit();
    catch (Exception e) {
    System.out.println(e.getMessage());
    e.printStackTrace();
    return true;
    public void close() throws JMSException {
    session.close();
    connection.close();
    public static void main(String[] args) throws SQLException, JMSException {
    int count = 0;
    CDRQueueSender qSender = new CDRQueueSender();
    long startTime = System.currentTimeMillis();
    long endTime;
    CDRMessage message;
    while(count < 100) {
    message = new CDRMessage("filename", 20, "This is testing", count);
    qSender.sendCDRMessage(message);
    count++;
    //qSender.sessionCommit();
    endTime = System.currentTimeMillis();
    System.out.println("time taken to process 100 records is " +
    ((endTime - startTime)/1000) + " seconds");
    qSender.close();

  • How can we process the CRM Order again for second time in debugging mode

    Hi,
    Can anybody please tell me how can we process the CRM ORDER for second time.  that I want to process in debugging mode.
    Thanks,
    bsv

    Hi bsv,
    Are you trying to reprocess a BDOC for debugging purpose?
    If the BDOC is not with a final status, you will be able to reprocess it using the reprocess button in the smw01 search result list.
    And you may put /h on the popup when you click on the 'reprocess' button.
    If it is allowed to make some changes in the CRM ORDER for testin purpose, it would be easier to perform debugging.
    A more 'careless' way is to deactivate the outbound or inbound queue in transaction smqs or smqr, then in smq1 or smq2 to locate the interested queue, and click on button 'debug LUW'.
    Hongyan

  • How to update the HTML file so that we can Control our process in real time

    After installing following three steps as per the lookout 4 online help I am unable to Monitor and control the Process in HTML format, which was exported manually in lookout server.
    1) Creating a Web Client Page in Lookout
    2) Download a Lookout Web Client
    3) Setting Up Own Web Server
    My browser shows only the instance, which I have uploaded manually without any update
    Problem: How to automatically update/refresh the HTML file so that we can Monitor/Control our process in real time/bi-directional mode.

    Hi,
    It seems like your process is not updating. When you create a Web Client, it uses ActiveX which lets you control the Lookout process fully. Make sure that you run the process. You can do this by pressing CTRL+Spacebar which puts it in Run-mode. Perhaps then you may see your graphs, etc updating.
    Also, please refer to page 11-1 of the Users Manual linked below:
    http://www.ni.com/pdf/manuals/322390a.pdf
    What kind of Web Server are you using? Make sure all the settings in it are done properly. If you have LabVIEW, you can use the LabVIEW Web Server.
    Hope this information is helpful. Please let us know if you have any further questions.
    Regards,
    A Saha
    Applications Engineer
    National Instruments
    Anu Saha
    Academic Product Marketing Engineer
    National Instruments

Maybe you are looking for