BADI CRM_ISA_BASKET_ITEMS adding a new item

In B2C Webshop, we are trying to use badi CRM_ISA_BASKET_ITEMS to, depending on what is in the customer's shopping basket, add an additional item to the basket.  We are trying to do this on the ABAP side.  I have started by adding the item in method CHANGEITEMS_BEFORE_IL , but it doesn't seem to work.  Does anyone know if this can be done in ABAP, or does some or all of the customization have to happen on the Java side.
Thanks in advance for any help.

Lee,
There are two types of basket java basket and crm basket, if you are using java basket you have to do that in the java side.
But if you are using the crm basket this method should work.
Please check your XCM settings and confirm which basket you are using.
Thanks and Regards
shanto aloor

Similar Messages

  • ADDING A NEW ITEM IN THE CREDIT REQUEST DETAILS PAGE.

    Dear friends,
    Please help me with this scenario.Thanks so much for your help.
    Task: ADDING A NEW ITEM IN THE CREDIT REQUEST DETAILS PAGE.
    Need to create a new item on this page called "approver notes" (column notes).
    Can this be achieved by personalization?
    Scenario:
    On credit request details page disputed invoice number, request date, status, bill to, ship to, etc are displayed.
    When the status is "not approved”, item should be displayed along the "rejected" comment.
    If the status is other than "not approved" then the item should not be displayed.

    what page is this ? are you sure it is a OAF page ?
    If it is a OAF page, you would need to extend the controller to fire a partial action for the item and then control the display property of the comments field
    Tapash

  • Adding a new item to an already existing BOM

    Hi,
        I am having a problem adding a new item to an already existing parent BOM.I excute the following code (as per the SDK).
        Dim vProdTree As SAPbobsCOM.ProductTrees
        Set vProdTree = vCmp.GetBusinessObject(oProductTrees)
        'Set Values to the fields
        vProdTree.TreeCode = "Item1"
        vProdTree.TreeType = iProductionTree
        'Set Values to the Assembly parts of the
        'First Assembly
        vProdTree.Items.ItemCode = Excel.Row(Cell1)
        vProdTree.Items.Price = 20
        vProdTree.Items.Quantity = 1
        vProdTree.Items.Currency = "Eur"
        'Adding the Product Tree
        RetVal = vProdTree.Add
        If (RetVal <> 0) Then
            vCmp.GetLastError ErrCode, ErrMsg
            MsgBox ErrCode & " " & ErrMsg
        End If
    If there is no parent BOM production tree with keycode Item1, then when the above code is run for the first time, it works.The issue occurs when I run change my excel, Cell1 to a different value and run the program again. The error states that the code already exists, which is correct, but does not  append the item to the existing BOM.
    I have tried vProdTree.Update, but this line overwrites the original child item in the BOM, rather than appending a new item, which is what I want it to do.
    Any  help is appreciated.
    - Adrian.V

    Your issue here is how the "Items" (which is actually pointing to ProductTree_Lines object) works. It is a List of items, and when you get the object is always pointing at the first item in the list.
    So for example, to add a BOM with two items you would need to set the details of the first Item and then add a line using vProdTree.Items.Add() before setting the values for that item.
    e.g.:
    Dim vProdTree As SAPbobsCOM.ProductTrees
    Set vProdTree = vCmp.GetBusinessObject(oProductTrees)
    'Set Values to the fields
    vProdTree.TreeCode = "Item1"
    vProdTree.TreeType = iProductionTree
    'Set Values to the Assembly parts of the
    'First Assembly
    vProdTree.Items.ItemCode = Excel.Row(Cell1)
    vProdTree.Items.Price = 20
    vProdTree.Items.Quantity = 1
    vProdTree.Items.Currency = "Eur"
    'Add a second item to the BOM
    vProdTree.Items.Add
    vProdTree.Items.ItemCode = Excel.Row(Cell2)
    vProdTree.Items.Price = 50
    vProdTree.Items.Quantity = 1
    vProdTree.Items.Currency = "Eur"
    'Adding the Product Tree
    RetVal = vProdTree.Add
    If (RetVal 0) Then
    vCmp.GetLastError ErrCode, ErrMsg
    MsgBox ErrCode & " " & ErrMsg
    End If
    To do what you want to do, which is get the BOM and add a new item to it, you will need to do this:
    Dim vProdTree As SAPbobsCOM.ProductTrees
    Set vProdTree = vCmp.GetBusinessObject(oProductTrees)
    'Get your BOM by key
    vProdTree.GetByKey("Item1")
    'Add a second item to the BOM
    'First Item exists so you need to add a new row
    vProdTree.Items.Add
    vProdTree.Items.ItemCode = Excel.Row(Cell1)
    vProdTree.Items.Price = 50
    vProdTree.Items.Quantity = 1
    vProdTree.Items.Currency = "Eur"
    'Update the Product Tree
    RetVal = vProdTree.Update
    If (RetVal 0) Then
    vCmp.GetLastError ErrCode, ErrMsg
    MsgBox ErrCode & " " & ErrMsg
    End If
    Method one allows you to add multiple lines as you add the object (which makes more sense), method 2 allows you to get the object after it has been added and add multiple lines to it. This is similar to how the Document_Lines object works.

  • Custom SharePoint 2010 designer page throws "The data source control failed to execute the insert command" exception while adding the new item after the August 13, 2013 CU has installed

    We have the SharePoint Server 2010 with SP1 environment on which the custom SP2010 designer pages were working as expected before the
    August 13, 2013 CU has installed. But, getting the below exception while trying to add the new item after the CU has installed.
    Error while executing web part: System.NullReferenceException: Object reference not set to an instance of an object.     at Microsoft.SharePoint.WebControls.SPDataSourceView.ExecuteInsert(IDictionary values)     at
    System.Web.UI.DataSourceView.Insert(IDictionary values, DataSourceViewOperationCallback callback) 3b64c3a0-48f3-4d4a-af54-d0a2fc4553cc
    06/19/2014 16:49:37.65  w3wp.exe (0x1240)                        0x1300 SharePoint Foundation        
     Runtime                        tkau Unexpected Microsoft.SharePoint.WebPartPages.DataFormWebPartException: The data source control
    failed to execute the insert command. 3b64c3a0-48f3-4d4a-af54-d0a2fc4553cc    at Microsoft.SharePoint.WebPartPages.DataFormWebPart.InsertCallback(Int32 affectedRecords, Exception ex)     at System.Web.UI.DataSourceView.Insert(IDictionary
    values, DataSourceViewOperationCallback callback)     at Microsoft.SharePoint.WebPartPages.DataFormWebPart.FlatCommit()     at Microsoft.SharePoint.WebPartPages.DataFormWebPart.HandleOnSave(Object sender, EventArgs e)    
    at Microsoft.SharePoint.WebPartPages.DataFormWebPart.RaisePostBackEvent(String eventArgument)     at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)     at System.Web.UI.Page.ProcessRequestMain(Boolean
    inclu... 3b64c3a0-48f3-4d4a-af54-d0a2fc4553cc
    06/19/2014 16:49:37.65* w3wp.exe (0x1240)                        0x1300 SharePoint Foundation        
     Runtime                        tkau Unexpected ...deStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) 3b64c3a0-48f3-4d4a-af54-d0a2fc4553cc
    I have tried changing the "DataSourceMode" as below, now the insert command is working, but update command is not working.
    <SharePoint:SPDataSource runat="server" DataSourceMode="ListItem" />
    Also, the lookup dropdown fields are displaying the value as "<a href="Daughterhttp://cpsp10/sites/Employees/_layouts/listform.aspx?PageType=4&ListId={8F62F444-FB6A-4F03-9522-C4696B45DCD1}&ID=10&RootFolder=*">Daughter</a>"
    instead of only "Daughter".
    Please provide the solution to get rid of this issue.
    Thanks
    Ramasubbu

    Try below:
    http://social.technet.microsoft.com/Forums/en-US/ae910269-3a0c-4506-844b-e8bc89d95b71/data-source-control-failed-to-execute-the-insert-command
    http://blog.jussipalo.com/2012/01/sharepoint-2010-data-source-control.html
    While there can be many causes for this generic error message, in my case the first parameter or ddwrt:DataBind function inside the SharePoint:FormFields element was
    'i' and I was working with an Edit Form. Changing it to
    'u' as it was with every other FormField fixed the issue.
    <SharePoint:FormField runat="server" id="ff1{$Pos}" ControlMode="Edit" FieldName="Esittaja" __designer:bind="{ddwrt:DataBind('u',concat('ff1',$Pos),'Value','ValueChanged','ID',ddwrt:EscapeDelims(string(@ID)),'@Esittaja')}"
    />
    Explanation:
    DataBind operation type parameters (the first parameter) are listed below:
    'i' stands for INSERT,
    'u' stands for UPDATE,
    'd' stands for DELETE.
    http://webcache.googleusercontent.com/search?q=cache:d9HHY4I7omgJ:thearkfloats.blogspot.com/2014/03/sharepoint-2010-data-source-control.html+&cd=4&hl=en&ct=clnk&gl=in
    If this helped you resolve your issue, please mark it Answered

  • I have bought 25gb of storage, added no new items and when I try to play a video it tells me my storage is full

    I have bought 25gb of extra storage, today without adding any further apps it is now telling me my storage is full

    You purchased iCloud /BACKUP/ and storage space, it's saying the storage of your device itself is filled. You cannot increase the iPad's internal memory
    SEttings > General > USage
    Time to do some spring cleaning my friend

  • Adding new item in SAP logon

    Hi,
    when adding a new item in SAP GUI, we get an option for the connection type------
    Custom application server
    Group/Server selection
    On selection the Group/Server selection
    we need to add the System ID, Message server, SAP Router and Group/Server.
    Here on adding the first two and then when i go on adding the Group/Server, I get the Error message as
    Hostname <message server name> not found.
    Is there anything i need to do in the HOST file or the Service file present at the Drivers folder of my local PC.

    Hi Subhram
    Firstly you need to check if connections to the specified servers are allowed through your network. Check if access is permitted on those group servers from your network.Check your VPN settings.
    Secondly check the Saplogon.ini file in the C:\WINDOWS folder. Check if the entries are correctly maintained in there as well.
    I hope this helps
    Regards
    Chen

  • Problem while creating new item in the sale order  in case of  Thirdparty

    Dear Gurus
    The following error is coming
    while adding the new item with quantity  in the sale order in case of third party  .
    Error Info...   00 671: ABAP/4 processor: SAPSQL_ARRAY_INSERT_DUPREC
    Update key...   482ACBD89C7D0067E10080000A8C681C
    Can give any idea abt this.
    Rgds
    Surya

    Hi
    This error comes up due to number range problem in the
    tables.
    As you have said this is a third party Sales order, just check if this is relevant to the PR being generated or the Sales order getting created.
    Check the Current number of the PR document type in the EBAN table & check if it is the same for the Number ranges in customizingin OMH7.
    If they are not the same... & the current number in OMH7 is smaller than the Number in the table EBAN , you need to change the current number  equal to the EBAN table.
    If this is the case fior sales orders similarly check for Sales order table & sales order number range object.
    reward points if useful
    Thanks & Regards
    Kishore

  • Sharepoint 2010 - Cannot make field Required in Add New Item form.

    I made a fleld Required by making the proper selection in List Settings > Editing the column.  It now shows as required when I edit an existing record in the list, but is not required when adding a new item.  Why does the setting not apply
    to the Add New Item form?  How can I make it apply/required?
    btw, there are no content types associated with the list.

    Hi  ,
    According to your description, my understanding is that you cannot make field required in the list new form.
    For my test, I created a custom list , added a non-required field and added some records. Then I made the field required. But it worked fine as expected both in existing records and  in Add New Item
    form.
    Do you have some customization in your list new form?
    You can go to your list -> Customize Form under  list tab, then the new form will be opened in the InfoPath. In the InfoPath, right click the field and select Text Box Properties, make sure “Cannot
    be blank”  has been checked.
    Best Regards,
    Eric
    Eric Tao
    TechNet Community Support

  • Newly added af:table items are not sorted? Bug?

    I have written a simple adf faces 10.1.3.0.4 screen with an af:table and made it sortable calling SortableModel.setWrappedData() with an ArrayList of VOs. When the user clicks a header, the rows are sorted as expected. So far, so good.
    Now I do a PPR on the table and add some additional VOs to the ArrayList. Next the af:table re-renders itself and these new rows show up at the bottom of the af:table, IGNORING the user's chosen sort order. Is this a bug or am I missing a step/setting?
    Or maybe the question is when adding these new items to the underlying ArrayList, is there a way to force the SortableModel to re-sort its contents?
    I can post the sample code if the explanation is not clear. Thanks.

    After additional investigation what I found was that the item most recently added to the table is not sorted, but it gets sorted once another item is added, etc, etc. So there is always one item not in the correct order. This simple example below (which demonstrates polling, PPR and height limited table scrolling) will show the behavior. Click on the header to sort the column, then watch the bottom of the list...after the table refreshes (5 seconds), the bottom row will not be sorted.
    So my question is, "Can anyone think of a way to get the bottom item to participate in the sorting"?
    AlertPage.jsp
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <%@ page contentType="text/html;charset=windows-1252"%>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
    <%@ taglib uri="http://xmlns.oracle.com/adf/faces" prefix="af"%>
    <%@ taglib uri="http://xmlns.oracle.com/adf/faces/html" prefix="afh"%>
    <f:view>
      <af:document>
        <af:form id="alertForm">
          <af:table id="alertTable" value="#{backing_app_AlertPage.alerts}"
            var="alert" emptyText="No Alerts were found"
            partialTriggers="pollingId" width="100%" banding="row">
            <f:attribute name="height" value="150px"/>
            <af:column headerText="Deal" sortProperty="dealId" sortable="true">
              <af:outputText value="#{alert.dealId}"/>
            </af:column>
          </af:table>
          <af:poll id="pollingId"
            pollListener="#{backing_app_AlertPage.processPoll}"/>
        </af:form>
      </af:document>
    </f:view>MainGrid.java
    package alertapp;
    import java.util.ArrayList;
    import javax.faces.component.*;
    import javax.faces.context.FacesContext;
    import javax.faces.event.*;
    import javax.faces.model.ListDataModel;
    import com.bofa.dealcal.model.alert.AlertVO;
    import oracle.adf.view.faces.component.core.CorePoll;
    import oracle.adf.view.faces.component.core.data.CoreTable;
    import oracle.adf.view.faces.context.AdfFacesContext;
    import oracle.adf.view.faces.event.*;
    public class MainGrid implements PollListener {
        private ArrayList alertVOs;
        private CoreTable alertTable;
        public synchronized ArrayList getAlerts() {
            if (alertVOs == null) {
                alertVOs = new ArrayList(10);
            return alertVOs;
        public void setAlerts(ArrayList alerts) {
            this.alertVOs = alerts;
        public CoreTable getAlertTable() {
            return alertTable;
        public void setAlertTable(CoreTable alertTable) {
            this.alertTable = alertTable;
        public void processPoll(PollEvent pe) {
            Long newAlertId = Long.valueOf(Math.round(Math.random() * 1000000));
            alertVOs.add(new MainGrid.AlertVO(newAlertId));
        public class AlertVO {
            private Long dealId;
            public AlertVO(Long dealId) {
                super();
                this.dealId = dealId;
            public Long getDealId() {
                return dealId;
            public void setDealId(Long dealId) {
                this.dealId = dealId;
    }faces-config.xml
         <managed-bean>
              <managed-bean-name>backing_app_AlertPage</managed-bean-name>
              <managed-bean-class>
                   alertapp.MainGrid
              </managed-bean-class>
              <managed-bean-scope>session</managed-bean-scope>
         </managed-bean>...

  • Copy configuration to new item, Variant Configurator

    Hi,
    I would like to take the configuration from an existing line item and "publish" to a new CUOBJ, so that I can call CE_C_PROCESSING to do some changes before adding the new item to a sales order. Does anyone know the steps to do that? If I create a new instance 99...001 and put my configuration to it using CUCB_SET_CONFIGURATION or similar function, then when I call CE_C_PROCESSING it won't recognize my instance.
    Any input appreciated.
    Best regards,
    Henrik

    do you have correct permissions for this file? make sure that you have read+write permissions to it.
    I just tested it by giving a file exactly the same name and the script works correctly. what the script does is first set the view option for this file not to show the extension, then reads off the display name (which is the name without the extension if the extension is hidden), then creates a folder by that name and then moves the file. It would seem that the first step of hiding the extension didn't succeed which would produce an error you are seeing. this should not happen unless you do not have correct permissions for the file.
    Also, make sure that the file is not locked.
    Here is a slightly modified version which preserves the view option for the extensions. It's otherwise the same as the old version.
    <pre style="
    font-family: Monaco, 'Courier New', Courier, monospace;
    font-size: 10px;
    margin: 0px;
    padding: 5px;
    border: 1px solid #000000;
    width: 720px;
    color: #000000;
    background-color: #ADD8E6;
    overflow: auto;"
    title="this text can be pasted into the Script Editor">
    set the_folder to choose folder
    tell application "Finder"
    set flist to files of the_folder
    repeat with the_file in flist
    set x to extension hidden of the_file
    set extension hidden of the_file to true
    --this hides the extension so that only the filename is displayed, can be undone if necessary
    set fname to displayed name of the_file
    set cur_folder to make new folder at the_folder with properties {name:fname}
    move the_file to cur_folder
    set extension hidden of item 1 of cur_folder to x
    end repeat
    end tell</pre>
    Message was edited by: V.K.

  • New item-descriptor and ATG needed changes

    Hello there,
    I was facing the same problem that related on this thread (Catalog Maintanance Service and I solved it adding my custom sku on CMS.
    My question is, Is there other components that I must edit adding my custom sku item-descriptor?
    Or, is there a doc that shows what components must be updated when creating a new item-descriptor?
    Thanks.

    I don't think you will found consolidated configuration required when adding a new item. It's scattered in different Oracle manuals, like Repository configurations can be found in Repository guide, CMS configurations can be found in Commerce programming guide, Search related configuration can be found in Search Admin guide, if you wan to customize how your new item will be displayed in BCC the information can be found in BCC admin guide.

  • Adding new item at POD

    Hi all,
    We have a requirement from business, basically:
    1) we receive sales order with item A,B and C (any qty).
    2) We deliver them in one delivery note and good issue.
    3) We receive a POD wich confirm A, and c item, but item B was really item X (change of code, or new item at delivery)
    asuming inventory has to be solved, but we need to invoice (bill) right qties and items, adding to delivery or pod the new item.
    Any clue about how best to solve it ?

    Hi Goverdhan,
    try with this BADI: CJ_DOCUMENT
    Reddy

  • How to create new subsite while adding new item to the list by using javascript?

    hi,
    I hav a task ie, when I add item to the list then subsite will create with that list item title and description . So By using javascript, I have to create subsite while adding new item to the list.
    Help me to solve this.
    Thank you, 

    Is your item getting added through Javascript client object model ? If yes, you can write in the success delegate of your list creation method the logic to create the subsite.
    function CreateListItem()
    var clientContext = new SP.ClientContext.get_current();
    var oList = clientContext.get_web().get_lists().getByTitle('List Name');
    var itemCreateInfo = new SP.ListItemCreationInformation();
    this.oListItem = oList.addItem(itemCreateInfo);
    oListItem.set_item('Title', 'My New Item!');
    oListItem.set_item('Body', 'Hello World!');
    oListItem.update();
    clientContext.load(oListItem);
    clientContext.executeQueryAsync(Function.createDelegate(this, this.CreateListItemOnSuccess), Function.createDelegate(this, this.onQueryFailed));
    function CreateListItemOnSuccess() {
    var subsiteTitle = oListItem.get_item('Title');
    //Logic to create a subsite
    function onQueryFailed(sender, args) {
    I have added a sample flow for the above scenario. Have a look at the following lnk for how you can craete a subsite using ecmascript.
    http://ravisoftltd.wordpress.com/2013/03/06/sharepoint-2010-create-site-with-ecma-script-with/
    Geetanjali Arora | My blogs |

  • Adding a new tab on item level in me21n tcode

    Hi all.
    i am adding a new tab on item level in me21n tcode.
    i want to make this tab to be shown on the screen when the order type is UB is stock purchase order.i dont know how to make this condition and where should i place it so that this tab can come in effect only when the stock purchase order appears.
    please help.thanks

    hi
    chk this
    Re: New tabs in the header tab-sheet of ME21N/ME22N/ME23N
    hope this helps
    regards
    Aakash Banga

  • New Material to be added for Original Item

    Hi,
    We are trying to make the system add new material when certain item is added in the order.
    Actually we are breaking a kit component and trying to sell the component as a separate item. So when the above Kit is added without this item, sap should add the material as next line item.
    I don't want to create BOM. I don't want to give it for free. The above one has kit item category. And the new subitem should be TAN.
    I tried material determination (changing the reason). Did not work. The item cat is chaning.
    I checked cross selling, product proposal,etc. They look extra features which I don't want.
    I just want SAP to add new item when one particular item is added.
    Any thoughts???
    Thanks,
    Rak

    Actually for TAN to TAN is working. Thanks for the message.
    But I have a Kit (it has parent and components). We have item cat ZPRC for header and ZPRK for components.
    We initially put 10 components together and creating for Parent with item cat ZPRC (header)
    So when we put parent material number, all the ten compnents with ZPRK item cat will default.
    But now we are removing one compnents from the 10 compnents and want to give as a separate TAN item.
    So when Parent ZPRC material number is put in the Order, 9 components will default with ZPRK and the last item should default as TAN
    So I am using Material determination for this. But it is not working
    I used Order, ZKIT (item cat for Kit header), PSA1 (usage), ZPRC (header kit)
    Order, Norm, PSA2 (usage), ZPRC (higher level item cat), TAN.
    But when I create Order, only 9 compnenets are coming. Its not recognizing my Material determination. I checked the records and ZPRC and TAN record exists.
    I feel like as there is already higher level and lower level items exists in the system, ZRPC and ZPRK, its not defaulting another higher level and lower level Material det logic.
    Please help

Maybe you are looking for

  • How can I use my Apple ID for my iCloud ID?

    I can't set up iCloud as Apple will not accept my Apple ID which I have been using since the beginning of time. I keep getting sent in a loop.  Every time I so to set up the account it rejects my password. I have Windows 7

  • Print dialog window does not go away

    Hi, This is an issue I've experienced many times. When I try to print a web page from Safari, the print dialog opens, I select the printer and/or orientation, then I click on the "OK" button. But, the window does not respond, Safari seems to be worki

  • applet tag regarding JAR file

    Is there something wrong with the following applet declaration? <applet code = "Sheep2.class" archive="Sheep2.jar" width = 500 height = 300 ALT="If you could run this applet, you'd see a sky, a field, and a moon."> Your browser is completely ignoring

  • Counter Output/Counter Input PXI Signals Behaving Erratically

    Question for all your LabVIEW guru's out there, I am running a frequency loopback test using the NI PXI 6229 MIO DAQ card.  I am generating a "Counter Output" pulse train signal which feeds through my device under test and then back out of my device

  • Nav buttons pixelated in IE-6/7/8?

    Frustration... I got my simple little site where I want it - publish a test to Business Catalyst - it all looks great ... ON A MAC. Then a client calls and asks why all the javascript states below top level are pixelated (he means aliased) - and he's