Minimum parameters for BAPI_LEAD_CHANGEMULTI

Team,
I want to load over 10,000 leads with status CLOSED (E0004).
I am doing this in two steps:
1) Create lead
2) Change lead
My question #1 is what are the minimum parameters I need to pass to fm BAPI_LEAD_CHANGEMULTI:
REF_GUID
REF_HANDLE
REF_KIND
STATUS       =  'E0004'
USER_STAT_PROC
ACTIVATE
PROCESS
CALL FUNCTION 'BAPI_LEAD_CHANGEMULTI'
EXPORTING
  TESTRUN             =
TABLES
  HEADERX             = tt_lead_bapiX
  ORGANISATIONX       =
  PARTNERX            = tt_partnerX
  DATEX               =
  TEXTX               =
  ITEMX               =
  PRODUCTX            =
   STATUSX             = TT_statusX
  SERVICE_OSX         =
  SCHED_LINX          =
  HEADER              = tt_lead_bapi
  ORGANISATION        =
  PARTNER             = tt_partner
  DATE                =
  TEXT                =
  ITEM                =
  PRODUCT             =
   STATUS              = TT_status
  SERVICE_OS          =
  INPUT_FIELDS        =
  RETURN              =
  SCHED_LIN           =
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
Question #2. Do I need to create separate pgm for Change Leads or one pprogram can contain both codes, i.e. 'Create Lead' and then 'Change Lead' in the same program.
Any sample code and/or ideas will be helpful.
Thanks

Team,
I want to load over 10,000 leads with status CLOSED (E0004).
I am doing this in two steps:
1) Create lead
2) Change lead
My question #1 is what are the minimum parameters I need to pass to fm BAPI_LEAD_CHANGEMULTI:
REF_GUID
REF_HANDLE
REF_KIND
STATUS       =  'E0004'
USER_STAT_PROC
ACTIVATE
PROCESS
CALL FUNCTION 'BAPI_LEAD_CHANGEMULTI'
EXPORTING
  TESTRUN             =
TABLES
  HEADERX             = tt_lead_bapiX
  ORGANISATIONX       =
  PARTNERX            = tt_partnerX
  DATEX               =
  TEXTX               =
  ITEMX               =
  PRODUCTX            =
   STATUSX             = TT_statusX
  SERVICE_OSX         =
  SCHED_LINX          =
  HEADER              = tt_lead_bapi
  ORGANISATION        =
  PARTNER             = tt_partner
  DATE                =
  TEXT                =
  ITEM                =
  PRODUCT             =
   STATUS              = TT_status
  SERVICE_OS          =
  INPUT_FIELDS        =
  RETURN              =
  SCHED_LIN           =
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
Question #2. Do I need to create separate pgm for Change Leads or one pprogram can contain both codes, i.e. 'Create Lead' and then 'Change Lead' in the same program.
Any sample code and/or ideas will be helpful.
Thanks

Similar Messages

  • V Urg. - parameters for BAPI_LEAD_CHANGEMULTI

    does anyone know what parameters to send for the BAPI BAPI_LEAD_CHANGEMULTI.
    I want to add the foll. product data related to Lead:-
      product name, quantity and units.
    I dont know which tables and table fields to pass to the BAPI.

    hey Jaswanth first of all thanks for the reply.
    I have done that already, but that adds only a single product. I want to add multiple products. And I am using the foll. tables :-
    item table - product name
    schedln    - quantity
    product    - unit
    but, somewhere in schedln I guess there is an error.
    I want the parameters and some sample values to be passed to schedln table(for multiple products).

  • How to log input parameters for Function Modules?

    Hi,
    I need to create a Logging system to trace input parameters for function modules.
    The log functionality could be done by developing a class method or a function module (For example 'write_log'), and calling it within each function module that I want to log. The 'write_log' code should be independent from the interface of the Function Module that I want to log.
    For example, I'd like to write a function/class method that can log both these functions modules:
    Function DummyA
       Input parameters: A1 type char10, A2 type char10.
    Function DummyB
       Input parameters: B1 type char20, B2 type char20, B3 type char20, B4 type Z_MYSTRUCTURE
    Now the questions...
    - Is there a "standard SAP" function that provide this functionality?
    - If not, is there a system variable in which I can access runtime all parameters name, type and value for a particular function module?
    - If not, how can I loop at Input parameters in a way that is independent from the function module interface?
    Thank you in advance for helping!

    check this sample code. here i am capturing only parameters (import) values. you can extend this to capture tables, changin, etc.
    FUNCTION y_test_fm.
    *"*"Local Interface:
    *"  IMPORTING
    *"     REFERENCE(PARAM1) TYPE  CHAR10
    *"     REFERENCE(PARAM2) TYPE  CHAR10
    *"     REFERENCE(PARAM3) TYPE  CHAR10
      DATA: ep TYPE STANDARD TABLE OF rsexp ,
            ip TYPE STANDARD TABLE OF rsimp ,
            tp TYPE STANDARD TABLE OF rstbl ,
            el TYPE STANDARD TABLE OF rsexc ,
            vals TYPE tihttpnvp ,
            wa_vals TYPE ihttpnvp ,
            wa_ip TYPE rsimp .
      FIELD-SYMBOLS: <temp> TYPE ANY .
      CALL FUNCTION 'FUNCTION_IMPORT_INTERFACE'
        EXPORTING
          funcname                 = 'Y_TEST_FM'
    *   INACTIVE_VERSION         = ' '
    *   WITH_ENHANCEMENTS        = 'X'
    *   IGNORE_SWITCHES          = ' '
    * IMPORTING
    *   GLOBAL_FLAG              =
    *   REMOTE_CALL              =
    *   UPDATE_TASK              =
    *   EXCEPTION_CLASSES        =
        TABLES
          exception_list           = el
          export_parameter         = ep
          import_parameter         = ip
    *   CHANGING_PARAMETER       =
          tables_parameter         = tp
    *   P_DOCU                   =
    *   ENHA_EXP_PARAMETER       =
    *   ENHA_IMP_PARAMETER       =
    *   ENHA_CHA_PARAMETER       =
    *   ENHA_TBL_PARAMETER       =
    *   ENHA_DOCU                =
       EXCEPTIONS
         error_message            = 1
         function_not_found       = 2
         invalid_name             = 3
         OTHERS                   = 4
      IF sy-subrc = 0.
        LOOP AT ip INTO wa_ip .
          MOVE: wa_ip-parameter TO wa_vals-name .
          ASSIGN (wa_vals-name) TO <temp> .
          IF <temp> IS ASSIGNED .
            wa_vals-value = <temp> .
          ENDIF .
          APPEND wa_vals TO vals .
        ENDLOOP .
      ENDIF.
    ENDFUNCTION.

  • How to set minimum size for the 'location' box in toolbars?

    I reorganized my toolbars by merging the location and tabs bar. I have the location on the left hand side and the tabs *next* to it, like this:
    [ (<)(>) [LOCATION] /tab\/tab\/tab\ ]
    Unfortunately when the number of tabs increases, the location box becomes so small that I cannot even see the url of the site I'm in...
    Is there a way to force a minimum width for the location box? I couldn't find a setting in about:config for it (I imagine that this would be a browser.urlbar setting)

    You rock! The combination of fixed width tabs with the stylish Add-on, and the single line of script below just made my day!
    #main-window[sizemode="maximized"] #TabsToolbar, #TabsToolbar > #urlbar-container { min-width: 350px; }
    Many thanks!

  • Error in scheduling parameters for production orders

    Hi Guys,
    Greeting for the day u2026u2026u2026.
    I am trying to create production orders creation for own order  type ex MM01, but I am getting error message as u201C scheduling parameters are not defined for the order type u201C even though I have maintained following parameters as below,
    Production scheduler      -
    xxxxx,
    Detailed scheduling -
    check box of scheduling ticked,
    Rough cut scheduling    --- scheduling id u201301, scheduling and generate capa requi,, boxes     ticked,
    Adjust scheduling  -- requi to operation  date,
    Scheduling control for detailed scheduling ---backwards and check box of auto scheduling ticked
    Operation segment ---setup,
    All operation in order will be reduce
    Do not reduce,
    Could any one light on this issue,
    Thanks in advance,
    Mohan

    Hi,
      This error will come if you have not maintained Define scheduling parameters for production orders.
    Check this order type whether linked with respective plant in OPU3.*And give production scheduler * mark ie, all.*
    And in Define production scheduling profile - OPKP, link your order type in the page below.
    In material master work scheduling view, input production sch profile or prod scheduler.
    Regards,
    Dharma

  • What are the real minimum requirements for Mountain Lion?

    What are the real minimum requirements for Mountain Lion. Currently running Snow Leopard. I have a late 2006 Model: iMac6,1. Specs: 2.33 GHz Core 2 Duo, 3 GB 667 MHz DDR2, and the optional nVidia GeForce 7600GT c/w 256MB GDDR2. The advertisement is stating a 2007 model as the minumum, however the fastest 2006 Gen Plastic iMac should be faster then the slowest 2007 Gen Aluminum iMac7,1?

    From a previous posting from some else, I saw it was the 32bit versus 64bit video card driver being the issue. I was wondering if the optional video card I have installed also was limited to the 32bit issue. 64bit drivers exist for the 7600 GT GPU.

  • What are the default parameters for PER_EVENTS api

    Dear Experts,
    Can you tell us what are the default parameters for PER_EVENTS API.Here below I have pasted the API.
    procedure create_event
    (p_validate in BOOLEAN default FALSE
    ,p_date_start in DATE
    ,p_type in VARCHAR2
    ,p_business_group_id in NUMBER default NULL -- HR/TCA merge
    ,p_location_id in NUMBER default NULL
    ,p_internal_contact_person_id in NUMBER default NULL
    ,p_organization_run_by_id in NUMBER default NULL
    ,p_assignment_id in NUMBER default NULL
    ,p_contact_telephone_number in VARCHAR2 default NULL
    ,p_date_end in DATE default NULL
    ,p_emp_or_apl in VARCHAR2 default NULL
    ,p_event_or_interview in VARCHAR2 default NULL
    ,p_external_contact in VARCHAR2 default NULL
    ,p_time_end in VARCHAR2 default NULL
    ,p_time_start in VARCHAR2 default NULL
    ,p_attribute_category in VARCHAR2 default NULL
    ,p_attribute1 in VARCHAR2 default NULL
    ,p_attribute2 in VARCHAR2 default NULL
    ,p_attribute3 in VARCHAR2 default NULL
    ,p_attribute4 in VARCHAR2 default NULL
    ,p_attribute5 in VARCHAR2 default NULL
    ,p_attribute6 in VARCHAR2 default NULL
    ,p_attribute7 in VARCHAR2 default NULL
    ,p_attribute8 in VARCHAR2 default NULL
    ,p_attribute9 in VARCHAR2 default NULL
    ,p_attribute10 in VARCHAR2 default NULL
    ,p_attribute11 in VARCHAR2 default NULL
    ,p_attribute12 in VARCHAR2 default NULL
    ,p_attribute13 in VARCHAR2 default NULL
    ,p_attribute14 in VARCHAR2 default NULL
    ,p_attribute15 in VARCHAR2 default NULL
    ,p_attribute16 in VARCHAR2 default NULL
    ,p_attribute17 in VARCHAR2 default NULL
    ,p_attribute18 in VARCHAR2 default NULL
    ,p_attribute19 in VARCHAR2 default NULL
    ,p_attribute20 in VARCHAR2 default NULL
    ,p_party_id in NUMBER default NULL -- HR/TCA merge
    ,p_event_id out nocopy NUMBER
    ,p_object_version_number out nocopy NUMBER
    );

    From the menu bar, select
     ▹ System Preferences... ▹ Network
    Click the Assist me button and select Assistant. Follow the prompts.

  • What are  the input parameters for Function Module

    Dear Experts,
    I want to generate a Sales Tax returns report,those fields are not available in my existing Datasources.
    For that i want to write a Generic Datasource with Function Module.
    audat
    bukrs
    vkorg
    vtweg
    spart
    aurat
    auart
    netwr
    mwsbp
    kschl zedp(consition type)
    kschl zvat(condition type)
    ksch   zcst(condition type)
    matkl     material group
    Here what are the Input parameters for Function Module.
    Thanks in Advance.
    Srinivasan.

    Srinivasan-
    For creating a Generic extractor based on a FM, you first of all need to know what is going to be your structure.. i.e. what all fields you need to pull from what all tables. A functional consultant may help you identify the exact DB tables.
    Once you know them, hand over the requirement and the pdf mentioned by Krishna to the ABAP guy, he would be able to take this up further.
    Also decide 1st whether you would be using a full load or delta. There is a slight difference in the way they are built.
    Let me know how it goes.
    -Bhushan.

  • Parameters for opening PDF files in a browser

    I read some of the posts about making a text link from an html page to a specific location in a pdf document in the browser.  I set up the parameters, as I understand it, according to the document "Parameters for Opening PDF Files." The result from my test took me to the top of page 1, not to the bookmark on page 3 that I specified. See the link below. What is wrong with the parameters?
    http://www.tabardtheatre.org/YPASCfolder/2012/SummerYouthProgram2012.pdff#page=3&bookmark= anniejr
    You can also go to the website: http://www.tabardtheatre.org/audition.html and click on the text link (in blue).

    The PDF Open Parameters do not contain the option to link directly to a bookmark, as was mentioned, but I've developed a script that can add this functionality to your files. Have a look here, if you're interested: http://try67.blogspot.com/2011/06/acrobat-link-to-specific-bookmark-in.html

  • Best practice tunning parameters for tunning ADF apps?

    Hi all,
    I am tuning our 11g ADF app for around 3 billions (can be up to 10 billions records) and the concurrent connections up to 100. The app is running on a 16 core Intel chip and 8GB of RAM. The Weblogic used Rockit JDK. Any one have this experience please share and help me! I am considering what is the top ten crucial parameters for this tuning. Up to now I just have tunned some parameters from OS layer to app layers:
    - indexing for queries
    - open cursors, processes and pga memory
    - share pool for app module and jdbc pooling.
    - heap size of JVM memory only max value 1024 because of 32 bit Windows (Perhaps I must upgrade to 64 bit OSs to use more memory)
    The app was tested with Jmeter with only 10 concurrent connection and the test case is logging in and query and logging out. It ran very slow. I found out that the weblogic server did not use CPUs equally (only 1-2 CPus were used)
    Thank you and best regards.
    Elton Son.

    Hi,
    maybe this of interest:
    http://download.oracle.com/docs/cd/E12839_01/web.1111/e13814/toc.htm
    http://download.oracle.com/docs/cd/E15523_01/core.1111/e10108/adf.htm#CIHHGADG
    http://www.oracle.com/technetwork/articles/systems-hardware-architecture/tuning-adf-t-series-168445.pdf
    http://andrejusb.blogspot.com/2009/08/oracle-adf-tuning-preventing-sql-query.html
    Frank

  • I'm trying to download the trial version of Adobe Illustrator. An error message says that the OS does not meet the minimum system requirements for the installer. 10.6.0 is the minimum required for installation. How do I get my mac to be a 10.6.0 ?

    I'm trying to download the trial version of Adobe Illustrator. An error message says that the OS does not meet the minimum system requirements for the installer. 10.6.0 is the minimum required for installation. How do I get my mac to be a 10.6.0 ? Right now I have a 10.5.8 is there a way to upgrade or something?

    Buy the Snow Leopard retail installer (http://store.apple.com/us/product/MC573Z/A?fnode=MTY1NDAzOA).
    That will take you to 10.6.3.
    If required you can then use the combo updater to get to the latest version, 10.6.8 (http://support.apple.com/kb/DL1399)
    SL system reqmts;

  • Minimum Spec for FCE4: cheapest Mac Mini?

    I'm looking to get a Mac Mini primarily to record endoscopic video (s-video) via a Canopus ADVC 55 using Final Cut Express. Looking at the minimum requirements for FCE4 it seems the cheapest model with 2GB RAM should be way more than adequate. The specs don't even mention hard drive speed.
    However, by todays standards 2GB is fairly minimal, and the 5400 rpm 2.5" hard drives are quite slow. I have used FCE4 on an original white MacBook and frequently got dropped frames when recording (which lost the entire recording each time), a problem that disappeared when I upgraded to a MacBook Pro.
    If used purely for recording, and if the hard drive is regularly cleared (video files moved to a Mac Pro for processing) will there be any problems with only 2GB of RAM, or the speed of the hard drive?
    Because this is to go into an operating theatre where space is limited, I would prefer that I don't have the hassle or expense of an external Firewire hard drive (and I'm guessing the single Firewire port may be an issue).
    Looking at the spec for the Mac Mini Server it looks much more suitable, 2 7400 rpm hard drives, 4GB RAM - but cost wise I think will be harder to persuade my employer!

    I'm afraid I cannot really answer your question as I don't need / use the features of the snow leopard server software. Hardware wise the differences add more ram, 2 hard drives (and they're faster) but no optical drive (with the option of connecting one externally). Other than that it comes with snow leopard server which allows you to use it as a normal mac, but additionally can be set up as mail server, file server, and a bunch of utilities to help manage this (not sure how accurate my understanding of the differences between the software).
    Incidentally the normal version of snow leopard has a certain amount of server functionality anyway, eg filesharing, web hosting etc. I think the server edition mainly provides lots of tools to take this further.
    It definitely would require configuring, and you would need other stuff like a router to connect the computers together which would also need configuring. But not much different to linking a bunch of normal macs together (if you're usinng it as a file server). I might be wrong but I don't think the connected computers can run on it's OS like some of these dumb terminal systems can.
    Message was edited by: bilbo_baggins

  • I'm looking for a list of parameters for qt media player?

    I'm looking for a list of parameters for qt media player?

    I was looking for Apple's list of quicktime parameter embed tags attributes. Fruitless search through Apple Support, however I Googled and found the information I was looking for. Thanks for contacting me.

  • Parameters for substr and dbms_lob.substr

    The syntax for substr in SQL functions and for the function in dbms_lob package is not matching and hence confusing for programmers. It will be less confusing if parameters for both functions are of the same order.
    In Sql functions the the syntax for substr is substr(string, offset, amount)
    In dbms_lob package the syntax for the substr function is dbms_lob.substr(lob_loc, amount, offset)
    Mohan

    I think he wants to send a suggestion to Oracle via this forum.

  • Time out parameters for ABAP and JAVA instance

    Hello All,
    We are looking for Time out parameters for our ABAP and JAVA instances.
    As users are complaining that they are getting time out error
    while they are trying to access Cprojects from Portal.
    I was able to check/collect the ABAP instance parameters from SMICM Tcode.
    Can anybody tell me which parameters we need to look for JAVA instance.
    Thanks in advance.
    Regards,
    Amber S

    jstart/shutdownTimeout
    (jstartup/shutdown_timeout)
    Specifies the shutdown timeout, i.e. the grace period for the AS Java instance to shut down before the Java process terminates itself.  Unt is in Seconds. Default is 120
    j2ee/ms/connectTimeout
    (jstartup/wait_for_scs)
    Specifies the timeout for the first connection to the message server. The AS Java instance fails to start if this timeout expires.Unt is in Seconds.Default is  60
    j2ee/ms/reconnectTimeout
    (jstartup/wait_for_reconnect)
    Specifies the timeout for the reconnecting to the message server.The AS Java instance shuts down when this timeout expires.Unt is inSeconds.Default is  3600 (one hour)
    Thanks

Maybe you are looking for

  • Import statement throws exception

    Hey, I just added the code into my program to have a tray icon as is now supported in Java 1.6.0 "Mustang". Really easy and straight forward to do. Trouble is that the program will throw an exception if run on 1.4.2 or 1.5.0. The icon is a convenienc

  • Set Video out

    HI , Just bought the apple composite AV cable so I can watch movies from my ipod touch on TV. But I'm having trouble actually getting it to work. In the manual I got with the composite AV cable its says 'set your ipod to send a video signal out' I ha

  • Help - deploying JSPs to Apache

    I have deployed a jsp from jdeveloper but when i try to run it, apache and explorer, i get the following error JSP Error: Request URI:/Hierarchy.jsp Exception: java.lang.NoClassDefFoundError: oracle/jbo/common/ampool/PoolMgr if I then refresh it I th

  • Tfr photos from computer to Ipad2

    Is there a way to transfer photos from a windows7 pc to my Ipad 2?  I've tried many ways but no luck so far.

  • Safari Continually Quitting

    Hello, Safari continually quits every time that I go and attempt to trade stocks online. Can someone help me...? Date/Time: 2007-07-14 20:18:18.973 -0500 OS Version: 10.4.6 (Build 8I127) Report Version: 4 Command: Safari Path: /Applications/Safari.ap