Add item using BAPI_OPPORTUNITY_CHANGEMULTI.

hi,
i want to add line item using BAPI - 'BAPI_OPPORTUNITY_CHANGEMULTI' . i have created opportunity using bapi 'CRM_WAP_OPP_CREATE' .
i dont know wat to add in input field table of bapi 'BAPI_OPPORTUNITY_CHANGEMULTI'.
example i have created opportunity its opportunity id is 1206226
guid - 5330467C091405C1E1000000C0A80046
process_type is ZTEN.
thanks.

Hi Amisha,
Please refer to function module CRM_WAP_OPP_SAVE for the sample code.
Thanks,
Faisal

Similar Messages

  • Error Add Item using DI API 2007  B

    Sirs,
         I gettin a error on add a item using a follow code:
                       If m_Item.GetByKey('100') = True Then
                            m_Item.ItemType = ItemTypeEnum.itItems
                            m_Item.ItemsGroupCode = 1
                            m_Item.ItemClass = ItemClassEnum.itcMaterial 
    'This line ocorred a error 'oToBP.ItemClass = {"Property 'ItemClass' of 'Item' is invalid"}
                            lErrorCode = m_Item.Update()
                        Else
                            lErrorCode = 1
                        End If
    Please,
    I'm waiting a urgent response .
    Great.
    Fábio Nascimento

    Fabio,
    In 2007 A the ItemsgroupCode start at 100 and not 1.
    Perhaps this is your problem.
    Christophe

  • Add Item using REST and populate People field (SharePoint 2010)

    I am trying to add an item to a list that has a People type field using REST API.  For some reason, I am getting 400 (Bad Request) error.  Can anyone show me how to add a list item and populate the user field?
    Here's the code snippet I am using -
    var url = 'https://mytestsite/_vti_bin/listdata.svc/mylist';
    var item = {};
    item.Title = 'my REST item';
    item.User = 'contoso\user1';
    var jsonObj = Sys.Serialization.JavaScriptSerializer.serialize(item);
    $.ajax({
             type: 'POST',
             url: url,
             contentType: 'application/json',
             processData: false,
             data: jsonObj,
             success: function ()
               console.log('item updated');
    Thanks!

    Hi,
    To update the People field, we will need to make a reference to the user information list.
    Here are two links will provide more information:
    http://sharepoint.stackexchange.com/questions/65650/rest-api-update-a-muli-value-user-field
    http://charliedigital.com/2011/04/23/updating-user-fields-via-listdata-svc/
    You can view the User Information list in this way:
    http://zimmergren.net/technical/sharepoints-hidden-user-list-user-information-list
    Best regards
    Patrick Liang
    TechNet Community Support

  • Add Item Link on Shop Transaction

    Hi! Is it possible to remove some of the links such as Service Request when we Add Item using the Shop using Full Functionality transaction?
    Regards
    SF

    You can use the BADI BBP_SC_MODIFY_UI.
    For removing or adding items, use the following structure.
    Changing Structure -  IS_SCR_ITMCHOICE
    Filed                           Corresponding Menu Item
    SPECIAL_REQUEST             With Free Description
    PRODUCT                            Internal Goods/Services
    LIMIT                           Limit Item
    OLD_PO_AND_TEMP       Old Shopping Carts and Templates
    TEMP_LAB                        As Service Order
    TEMP_LAB_REQUEST         As Service Request
    CATALOGS                        Corporate Express, SRM MDM Catalog

  • Add Multiple Detail Items Using the Same Query String Parameter

    I am using InfoPath 2010 and SharePoint 2010. 
    I have 2 forms libraries - Expense and Expense Details. 
    The 2 libraries are linked via a custom site column Expense ID. 
    The Expense form contains the main header type info you would typically find on an expense report; e.g., name, purpose, department, etc. 
    The Expense Details form contains multiple detail expenses related to the main expense report such as airfare, rental car, etc. 
    I have created a page that displays an expense report with all of the related expense detail items. 
    The page contains a link to add a new expense detail and passes the Expense ID of the Expense form to the Expense Detail form. 
    This all works fine.  The problem comes in after the first expense detail form is submitted. 
    I can successfully submit the first detail item.  However, the expense detail form loses the Expense ID that was passed to it after the first expense detail form has been submitted. 
    The parameter still shows in the URL but the detail form no longer shows the value of the parameter. 
    What do I need to do in order to be able to add multiple expense detail items using the same Expense ID that was passed to the form? 
    I have tried using a Submit Behavior of Open a new form, Close the form, and Leave the form open. 
    None of these options give me what I need.  Thanks for your help.
    pam

    Laura Rogers Blog
    In case anyone stumbles upon this looking for an answer. Laura Rogers has the answer found in the comments section of her blog above.  It’s not the best but it
    does work. You have to add an extra Info Path Web Form for it to work. I know, you can roll your eyes.<o:p></o:p>
    Steps.<o:p></o:p>
    1. Add Query String<o:p></o:p>
    2. Add the extra Info Path form to the page. This form will be a hidden on the page and will receive the value from the query string.<o:p></o:p>
    3. Add your original Info Path form and have it receive a parameter from the hidden Info Path form.<o:p></o:p>
    Now, when you hit save and it opens a new form the 3 Info Path form will function properly. <o:p></o:p>

  • How to add new line item using BAPI BAPI_CONTRACT_CHANGE for contract-ME32K

    HI Experts,
    how to add new line item using BAPI: BAPI_CONTRACT_CHANGE for existing contract.
    Requirement:
    Already the contract having two line items using ME31K.
    Custom program has to add new line items in existing contract.
    Thanks,
    Sendil

    I got the solution:
    We can do like this:
    1. Get all details using details, BAPI_CONTRACT_GETDETAIL.
    2. After getting results, append new line item. Then use your BAPI.
    Check this posting program.. where this bapi is used, use the same coding technique.
    IDOC_INPUT_PURCONTRACT_CHANGE

  • How to used BAPI_SALESORDER_CHANGE to add items

    Hi, I am trying to use the above bapi to add items to a sales order, but I can't get the qty to map across.  I had the same problem using the create bapi whcih I resolved by populating the schedule tables, but in change this just causes an "unhandled exception" to occur, so i can;t even step into the FM to see the problem.  Has anyone got any ideas.
    s_header_inx-updateflag  = 'U'.
    *   set item data
        s_items-itm_number     = s_stock-item_no.
        s_items-material       = s_stock-material_no.
        s_items-target_qty     = s_stock-quantity.
        s_items-target_qu      = s_stock-uom.
        s_items-ref_doc        = s_stock-agreement.
        s_items-ref_doc_it     = s_stock-agreement_item.
        s_items-batch          = s_stock-batch.
        s_items-plant          = s_stock-plant.
        s_items-store_loc      = s_stock-storage_location_no.
        append s_items to it_items.
    *   set flag to add items (I)
        s_itemsx-updateflag    = insert.
        s_itemsx-itm_number    = s_items-itm_number.
        s_itemsx-material      = abap_true.
        s_itemsx-target_qty    = abap_true.
        s_itemsx-ref_doc       = abap_true.
        s_itemsx-ref_doc_it    = abap_true.
        s_itemsx-batch         = abap_true.
        s_itemsx-plant         = abap_true.
        s_itemsx-store_loc     = abap_true.
        append s_itemsx to it_itemsx.
        s_sched-itm_number    = s_items-itm_number.
        s_sched-sched_line    = '0001'.
        s_sched-REQ_DATE      = sy-datum + 30.
        s_sched-req_qty       = s_items-target_qty.
        append s_sched to it_sched.
    *   set flag to add items (I)
    *    s_schedx-updateflag    = 'I'
        s_schedx-itm_number    =  s_items-itm_number.
        s_schedx-sched_line    = '0001'.
        s_schedx-REQ_DATE      = 'X'.
        s_schedx-req_qty       = abap_true.
        append s_schedx to it_schedx.
    * Now call the BAPI to add the items
      call function 'BAPI_SALESORDER_CHANGE'
        exporting
          salesdocument             = me->number
    *   ORDER_HEADER_IN             =
        order_header_inx            = s_header_inx
        SIMULATION                  = ' '
    *    BEHAVE_WHEN_ERROR           = 'P'
    *   INT_NUMBER_ASSIGNMENT       = ' '
    *   LOGIC_SWITCH                =
    *   NO_STATUS_BUF_INIT          = ' '
       tables
        return                      = it_return
        order_item_in               = it_items
        order_item_inx              = it_itemsx
    *   PARTNERS                    =
    *   PARTNERCHANGES              =
    *   PARTNERADDRESSES            =
    *   ORDER_CFGS_REF              =
    *   ORDER_CFGS_INST             =
    *   ORDER_CFGS_PART_OF          =
    *   ORDER_CFGS_VALUE            =
    *   ORDER_CFGS_BLOB             =
    *   ORDER_CFGS_VK               =
    *   ORDER_CFGS_REFINST          =
        order_schedules_in          = it_sched
        order_schedules_inx         = it_schedx
    *   ORDER_TEXT                  =
    *   ORDER_KEYS                  =
    *   CONDITIONS_IN               =
    *   CONDITIONS_INX              =
    *   EXTENSIONIN                 =

    hi,
    BAPI_SALESORDER_CHANGE didn't work for me either though i'm 100% sure the bapi works
    See SAP note 366265 which tells you how to fill the structures but
    you can use your program which you used to create the sales order to change the order and all you need to
    do is change a few parameters
    CALL FUNCTION 'BAPI_SALESORDER_CREATEFROMDAT2'
      EXPORTING
       SALESDOCUMENTIN               =  P_VBELN
        ORDER_HEADER_IN               = ORDER_HEADER_IN
        ORDER_HEADER_INX              = 'U'
    (make sure your partners are blank, otherwise you'll get a duprec on VBPA)
    -( PS , yes, i;m saying , see if BAPI_SALESORDER_CREATEFROMDAT2 works for you)
    I hope this helps
    Paul Q
    Edited by: Paul Quinn on Jun 2, 2011 11:10 PM

  • Using AddItem from A repeater Component item to Add Items to a 'Shopping Cart'

    In my app I previously used a product choice tilelist to display all my products and then as each product is clicked a product details screen popped up showing all of that product's details but my client decided he wants all of the items to be displayed at once so I had to simply use a repeater component around the original product details screen so that it repeats the screen for every product one below the other and I've scrapped the product choice tilelist.
    Previously I used to be able to add item's to a cart/array collection dataprovider by clicking the add item to cart button within the product details screen using the additem method but this needs to be done by assigning text properties to variables as far as I know because you can't put text values into a array collection but it doesn't seem possible to do this from within a repeater item.
    In each of my repeater items I have the values productPrice, productImage, productAddon1 and productAddon2 which are all text components which obviously all vary depending on the repeater item. What I need is when I click on the add item to cart buttons inside each item in the repeater for these details (text component text properties) of that particular item to be added to an array collection. How can I go about doing this?
    Basically the objective is to get dynamic text values from within items of a repeater component into an array collection. Is this possible?

    If any of you guys were to go about doing this how would you do it?
    Basically I have a repeater component display a list of items each of which contains a product. I want it so that when the add to cart button is clicked within the each item it can be added to an array collection but it doesn't seem possible.
    Can anyone help me out or give me a hint on this?

  • Add list item using anonymous user in public website of shareopint 2013 office 365

    Can any body know the solution to over come of following error while add list item using anonymous user using CSOM in shareopint 2013 office 365 public website.
    I have tried following solution to narrow down the error from "Access permission"
    http://sharepointtaproom.com/2014/08/28/anonymous-api-access-for-office-365-public-sites/#comment-2304

    Try below:
    http://www.codeproject.com/Articles/785099/Publish-a-Form-for-Anonymous-Users-on-a-Public-Sit
    http://blogs.technet.com/b/sharepointdevelopersupport/archive/2013/06/13/how-to-allow-anonymous-users-to-add-items-to-sharepoint-list-using-client-object-model.aspx
    // Allows AddItem operation using anonymous access
    private
    static voidAllowAnonAccess(){
    Console.WriteLine("Enabling Anonymous access....");
    SPWebApplication webApp =
    SPWebApplication.Lookup(new
    Uri(webAppUrl));
                webApp.ClientCallableSettings.AnonymousRestrictedTypes.Remove(typeof(Microsoft.SharePoint.SPList),
    "GetItems");
                webApp.ClientCallableSettings.AnonymousRestrictedTypes.Remove(typeof(Microsoft.SharePoint.SPList),
    "AddItem");
                webApp.Update();
    Console.WriteLine("Enabled Anonymous access!");  
    // Revokes Add/Get Item operation using anonymous access
    private static
    voidRemoveAnonAccess(){
    Console.WriteLine("Disabling Anonymous access....");
    SPWebApplication webApp =
    SPWebApplication.Lookup(new
    Uri(webAppUrl));
                webApp.ClientCallableSettings.AnonymousRestrictedTypes.Add(typeof(Microsoft.SharePoint.SPList),
    "GetItems");
                webApp.ClientCallableSettings.AnonymousRestrictedTypes.Add(typeof(Microsoft.SharePoint.SPList),
    "AddItem");
                webApp.Update();
    Console.WriteLine("Disabled Anonymous access!"); 
    http://www.fiechter.eu/Blog/Post/12/Create-a-survey-for-anonymous-users-on-Office-365
    If this helped you resolve your issue, please mark it Answered

  • How do I read txt file and add items to dropdownlist or checkbox

    I want to add items to a dropdown or check box by reading from a text file(and select one of them). (I donot use any table or database). The list of items is sometimes upto 20MB and hence cannot populate using session bean.I want items to be added to either checkbox or listbox during a button action. I have done this for textarea but unable so far to acheive for checkbox or listbox. I use following code which does not work:
    public String button3_action() {       
    try{           
    FileReader fr = new FileReader "F:/CreatorProjects/checkboxtst.prs");
    BufferedReader br = new BufferedReader(fr);
    String s;
    while((s=br.readLine())!=null) {
    dropdown1.setValue(s);
    br.close();
    fr.close();
    }catch(Exception e) {
    e.printStackTrace();
    return null;
    I know I cant just transplant textarea code for dropdownlist or checkbox.
    Any help is greatly appreciated.
    Thanks.
    Dr.AM.Mohan Rao

    I am able to read from txt file to a listbox if i write in sessionsbean1:
    try{
    FileReader fr = new FileReader("F:/CreatorProjects/checkboxtst.prs");
    BufferedReader br = new BufferedReader(fr);
    String s1="";
    String s="";
    while((s=br.readLine())!=null) {
    s1 = s1+s;
    s1= s1+"\n";
    disOptions = new com.sun.rave.web.ui.model.Option[] {              
    new Option(s1,s1)};
    diseases = new String[] {};
    fr.close();
    br.close();
    catch(Exception e) {
    e.printStackTrace();
    But I get all data in one line!! if I click submit button text area gets all. How to display items in each line????Please help...
    Dr.AM. Mohan Rao

  • Get previous items unique value in new add item form

    Hi
    I have on list having items related to multiple locations.
    Every location is related to one user.
    When user logs in it filters the list with that users location.
    Now when user click on add new item I want to get the data related to his location using item event listener.
    But in new item form there is no way to get the location of that user in event listener as its new item.
    So I passed the qury string parameter form list and changed the add item form link and form to get the query string paramter as default value in Add new Item form.
    But again when user clicks on save button it redirects to original url without paramter. 
    How to redirect user to url with parameter on click on Save/Cancel.
    Is there any other way to get the previous item unique value in add new item from before executing the event listener?

    Hi,
    According to your post, my understanding is that you wanted to redirect user to url with parameter on click on Save/Cancel.
    You need to modify the onclick event need to as below:
    javascript: {{ddwrt:GenFireServerEvent('__redirect={{Home.aspx?Participant={@Participant}&amp;@Activity={@Activity}}}')}}
    Here is a similar thread for your reference:
    http://social.technet.microsoft.com/Forums/en-US/b506cfe5-650e-4017-b470-9ca0a75cd390/sharepoint-2010-list-how-to-pass-parameters-in-a-url-to-another-page?forum=sharepointcustomizationprevious
    In addition, you can creating an intermediate page which just finds the filed value with a DVWP and then redirect to RedirectURL with the filed value on the Query String.
    For more information, you can refer to:
    Redirect to Another Page from NewForm.aspx with the New Item’s ID
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • How can I scan multiple items using my HP photosmart 2610 and them be able to be in one attachment​?

    I have an HP photosmart 2610 4 in1. How can I scan multiple items and put them in the same attachment using e-mail? Using my laptop.

    Hi @needyrhelp,
    Welcome to the HP Forums!
    I see that you are wondering how to scan multiple items using your HP photosmart 2610 and for them to be able to be in one attachment in your e-mail. I am happy to look into this for you!
    Please see the how to scan guide for the Operating System you are using. Here is the list of how to scan guides, Scan. Select your Operating System from the list, then select How to scan with HP software, then How to scan a multi-page original text document into a single file. You will need to scan each page one at a time, and add it to the same document. The how to scan guide will show you how. After done scanning to the file, then see the link for How to attach a scan to an email.
    If you do not know the Operating System you are using, please visit this website. Whatsmyos.
    Hope this information is helpful, and thank you for posting!
    RnRMusicMan
    I work on behalf of HP
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos Thumbs Up" to say “Thanks” for helping!

  • Configured Sales Order Items using BAPI_SALESORDER_CREATE

    Hello
    I am trying to use the BAPI_SALESORDER_CREATEFROMDAT2 to create a Sales Order for a Configured Item .
    I get my item on the Sales Order but no Configuration Data behind it .
    I am populating the the order_items_in & order_items_inx tables and linking using po_itm_no fields .
    I am also populating the order_cfgs_ref , order_cfgs_inst , order_cfgs_value fields with the relevant Characteristics data .
    I have looked at the SAP Note 549563 and can see no differences between the info on that and what I am doing .
    Does anyone have any advice or experience of doing this ?
    Regards
    Paul

    Hi all,
    I managed to create a dummy sales order in SAP R/3 using the DCOM Connector and Borland Delphi 7.0 Professional.
    Hoping the below listed example will help, here we go:
        ctrlBAPI: TSAPBAPIControl;
    var
      order, header, items, partners, ret: Variant;
         try
               order := ctrlBAPI.GetSAPObject('SalesOrder');
               header := ctrlBAPI.DimAs(order, 'CreateFromDat1', 'OrderHeaderIn');
               items := ctrlBAPI.DimAs(order, 'CreateFromDat1', 'OrderItemsIn');
               partners := ctrlBAPI.DimAs(order, 'CreateFromDat1', 'OrderPartners');
               ret := ctrlBAPI.DimAs(order, 'CreateFromDat1', 'Return');
               // The values....
               header.Value('DOC_TYPE') := 'TA';  
    { the order type is as you see it when you log in with language 'DE' }
               header.Value('SALES_ORG') := '2000';
               header.Value('DISTR_CHAN') := '10';
               header.Value('DIVISION') := '10';
               header.Value('REQ_DATE_H') := now;
               header.Value('PURCH_NO') := 'Test BAPI Delphi';
               partners.Rows.Add;
               partners.Value(1, 'PARTN_ROLE') := 'AG';
    { The partner function is as you see it when you log in with language 'DE' }
               partners.Value(1, 'PARTN_NUMB') := 'M9531057';
               // Line 1...
               items.Rows.Add;
               items.Value(1, 'MATERIAL') := '000000000000000354';
               items.Value(1, 'REQ_QTY') := '00000003';
               // Line 2
               items.Rows.Add;
               items.Value(2, 'MATERIAL') := '000000000000003595';
               items.Value(2, 'REQ_QTY') := '00000005';   
               // Insert this order in R/3...
               order.CreateFromDat1( OrderHeaderIn := header,
                       OrderItemsIn := items,
                       OrderPartners := partners,
                       Return := ret);
               ShowMessage('Return type: ' + ret.Value('TYPE') + #13 + 'Message: ' + ret.Value('MESSAGE'));
            except
                    on E:Exception do
                            ShowMessage(E.Message)
            end;
    If you need more help, do not hesitate to ask,
    Bogdan CIOC

  • How to populate an application item using ONCHANGE.

    I am trying to populate an application item, TAB_INSTATE using an onchange command. I cannot figure out how to do it. Does anyone know the syntax, or can you point me in the right direction. I am unfamiliar with javascript and have been relying on previous examples, posts. thanks
    apex_item.select_list_from_query
    (20,
    c020,
    'select partner_name, partner_abbrev
    from partners
    where state_code is not null order by partner_name ',
    'style="width:100px"'
    || 'onchange="'
    || CASE
    WHEN :p300_authorization1 = 1
    THEN 'f_set_casc_area(this,f21_'
    || LPAD (seq_id, 4, '0')
    || ');'
    ELSE
    <THIS IS WHERE I WOULD LIKE A THE VALUE OF c020 TO BE PLACED INTO :TAB_INSTATE>
    END
    || 'f_set_casc_subarea(this,f22_'
    || LPAD (seq_id, 4, '0')
    || ')"',
    'YES',
    '0',
    '- Select State -',
    'f20_' || LPAD (seq_id, 4, '0'),
    NULL,
    'NO'
    ) in_state,

    Hello Karen,
    >> I am trying to populate an application item, TAB_INSTATE using an onchange command.
    I believe I answered you in here - Re: once more...4 cascading LOVs, 3rd is hidden 4th no longer works However, for future reference…
    You don’t have a direct access to an application item, using JavaScript, because application items don’t render on page. You can, however, using the AJAX framework to do that, using the add() method. The generic code I’m using is the following:
    <script type=”text/JavaScript”>
    function setSessionValue(pItem, pValue) {
      var get = new htmldb_Get(null,html_GetElement('pFlowId').value,null,0);
      get.add(pItem, pValue);
      get.get();
      get = null;
    </script>This code can set any page or application item value.
    Regards,
    Arie.

  • Error message when trying to add item in change BOM goup

    Hi I went to transaction cs05,and trying to add item to specific material with BOM group,an error message popped up and saying assign the item to an alternative,what does it mean? How to solve?

    Hi,
    A finished material can have multiple alternative BOMS which can be stored in a common BOM group number. CS05 is used to change these multiple boms.
    When you add a new item in CS05, system will ask - to which alternative bom the new item should be assigned and that's how you are getting this message. For example, if in a bom group you have 3 differnet alternatvie boms for a FG material, when you add new item in CS05, you will see 3 checkbox at the right hand side of the screen. If you want to assign new item to all the three alternative BOMs , than select all the three check box and save.
    Regards,
    Ravi Thakkar.

Maybe you are looking for

  • How to exclude open items by credit exposure calculation

    Dear all, as anybody idea about how to exclude by the credit exposure calculation some old items (in our case all items having document date lower than 01.10.2005). These are the basic assumptions: i cannot use a special G/L indicator because some of

  • How to give different value to a static variable???

    Hi all: Is there any solution to set different values to a static variable???I had try two ways but all have errors! 1.Way_1 protected String tmp=null; protected void initSituation(int sayorpress) if (sayorpress==0) tmp = "string1"; else if (sayorpre

  • Adding a double line border to a table

    Hi i am creating a PDF form which contains a table, is there a way to set a double line border to to the table in the form ( like the option in EXCLE - i mean border like this: || )  Thanks, Ami

  • ASM configureation while installing oracle 11gR2 db

    hi all, I want to install oracle 11gr2 with ASM on windows 7. can any one tell me how to install step by step? Thanks and Regards, Vikash (junior DBA)

  • h1 The Use Of Header Tags

    I'm becoming more aware of the importance of using header tags to help the visually impaired navigate your site.  Obviously the main header should be wrapped in an <h1> tag, however after that does it flow from <h1> all the way to <h6>, and what if y