Approved Supplier List - Item list update in SRM 7.0

Hello,
I have a custom screen from where supplier adds the product category themself. Now my question is - If the supplier adds any product category, it should be added in the approved supplier list. If he deletes any product category it should be deleted. We have FM BBP_PD_AVL_UPDATE to do this job. but it not working fine. Even I am not sure whether i am using it properly or not. I have initially added the Del indicator and if I remove the Active indicator it gives an error message -"Status and active flag in one item do not match" . Can any one give some sample code or any other option to do this functionality.
Thanks
Abhi
Edited by: Abhishek Bansiwala on Oct 6, 2010 1:27 PM

Hi All,
Below is the sample code to update the item list of Approved Supplier list number.
Call Function module -  'BBP_PD_AVL_STATUS_CHANGE' before the FM 'BBP_PD_AVL_UPDATE'.
Code -
      CALL FUNCTION 'BBP_PD_AVL_RESET_BUFFER'.
****Change Item status
****Get Item details based on Object Id
  CALL FUNCTION 'BBP_PD_AVL_GETDETAIL'
    EXPORTING
      i_guid          = wa_sup_list-guid
      i_object_id     = wa_sup_list-object_id "object id or supplier list number whose item list need to be updated
      i_with_itemdata = 'X'
    IMPORTING
      e_header        = ls_avl_header
    TABLES
      e_item          = it_avl_item
      e_partner       = it_avl_partner
      e_orgdata       = it_avl_orgdata.
****Update the partner list
      MOVE-CORRESPONDING ls_avl_header TO ls_avl_header1.
****Fill item list
      APPEND LINES OF it_avl_item TO it_avl_item1.
      READ TABLE it_avl_item1 INTO wa_avl_item1 WITH KEY guid = wa_avl_partner-p_guid.
      wa_avl_item1-del_ind = 'X'.
      wa_avl_item1-itm_released = ' '.
      MODIFY it_avl_item1 FROM wa_avl_item1 TRANSPORTING del_ind itm_released WHERE guid = wa_avl_partner-p_guid.
****Fill partner list
      APPEND LINES OF it_avl_partner TO it_avl_partner1.
      CALL FUNCTION 'BBP_PD_AVL_STATUS_CHANGE'
        EXPORTING
          iv_item_guid = wa_avl_item1-guid  " Item guid for which we are updating
          iv_activity  = 'ITIN'     " ITIN for Delete line item, ITAC for Adding line item
        TABLES
          et_messages  = it_mess  "message returned
        CHANGING
          ev_changed   = it_xfeld.  "updated if the status is changed
        CALL FUNCTION 'BBP_PD_AVL_UPDATE'
          EXPORTING
            i_header   = ls_avl_header1  "header detail
            i_save     = 'X'
          IMPORTING
            e_changed  = v_field " set if the avl is updated
          TABLES
            i_item     = it_avl_item1 "pass all existing line item and change the line item which needs to be updated
            i_partner  = it_avl_partner1 " pass all partners as it is
            i_orgdata  = it_avl_orgdata " pass org data as it is
            e_messages = it_message1.  "returning message
        IF v_field IS NOT INITIAL.
          CALL FUNCTION 'BBP_PD_AVL_SAVE'
            EXPORTING
              iv_header_guid = ls_avl_header1-guid.
          COMMIT WORK AND WAIT.
        Endif.
Let me now if you have any issues.
Thanks
Abhi

Similar Messages

  • Wrong numbering of elements styled with "display: list-item; list-style-type: decimal;"

    Following code :
    <!DOCTYPE html>
    <style type="text/css">
    div {
    display: block;
    margin-left: 2em;
    span {
    display: list-item;
    list-style-type: decimal;
    </style>
    &lt;div>
    &lt;span>first&lt;/span>
    &lt;span>second&lt;/span>
    &lt;span>third&lt;/span>
    &lt;/div>
    Displays as :
    0. first
    0. second
    0. third
    while looking fine in other browsers (checked IE7, chrome, opera, safari...)

    updated code snap...

  • Displaying Multiple XML Data on List Item List

    Hi there..
    Is it possible to display multiple XML Data on List Item List. I mean like the example below.
    and how to programatically load image that depends on the XML data value (0=down arrow, 1=up arrow) and also how to refresh data every 1 second.
    Thank you very much...

    Hi Ann,
    Write a Forms procedure and in that open a cursor fetching all data you want to show in the list element and populate the list within the loop using Add-List-Element built-in. Call this procedure in When-New-Form-Instance trigger. Whenver form will be opened the your list element will be populated automatically.
    Hope that helps you.

  • Sum child list items and update parent total using javascript

    I have a SharePoint 2010 Parent/Child list setup using a lookup field to join both the lists, this is working well.
    The Parent list contains requisition requests and the child list contains related item details. Each of the related child list items has a 'Line Item Total' field. I need to aggregate the Line Item Totals in the child list and place the result in a 'Requisition
    Total' in the parent. So for any given parent record the sum of it's related child 'Line Item Totals' is reflected in the 'Requisition' total in the parent row.
    I am struggling with the JavaScript code below. I am trying to aggregate Line Item Totals for a given Requisition#? Could someone please review and advise?
    <script language="javascript" src="/Purchasing/Documents/jquery-1.8.2.js" type="text/javascript"></script>
    <script language="javascript" src="/Purchasing/Documents/jquery.SPServices-2014.01.min.js" type="text/javascript"></script>
    <script>
    $(document).ready(function()
     $('select[title=Requisition#]').children().attr('disabled',true);
     $("input[title='Old Amount']").attr("readonly","true").css('background-color','#F6F6F6');
       // Retrieve the name of the selected parent item.
       var strParent=$("select[title$='Requisition#'] :selected").text(); 
     splist li = web.lists["ReqDetails"]; // This is the child list
        spquery q = new spquery();
        q.Query= "<Where>" +
         "<And>" +
          "<Neq>" +
           "<FieldRef Name='ID'/><Value Type='Number'>0</Value>" +
          "</Neq>" +
          "<eq>" +
           "<FieldRef Name='LinkID'/><Value Type='Number'>ReqID</Value>" +
          "</eq>" +
         "<And>" +
        "</Where>" +
        "<OrderBy>" +
         "<FieldRef Name='LineItemTotal'/>" +
        "</OrderBy>"
        q.ViewFields = string.Concat("<FieldRef Name='LineItemTotal' />");
        q.ViewFieldsOnly = true; // Fetch only the data that we need
        splistitemcollection items = li.getitems(q);
        foreach(SPListItem item in items)
        sum += parseInt(item["LineItemTotal"], 10);
      alert(sum)
     </script>
    Rick Rofe

    I do something similar for a PO Header/PO Detail set of lists. I use SPServices to pull the data.
    I put this code in the child edit page - so any time any child is edited, the parent is updated. I get all children records and total them up (except for the item I'm displaying at the current time. I add that value in directly from the form itself.
    <script type="text/javascript" src="/Javascript/JQuery/JQueryMin-1.11.1.js"></script>
    <script src="/Javascript/JQuery/jquery.SPServices-2014.01.min.js"></script>
    <script>var poNumber = '';
    var poDetailID = '';
    $(document).ready(function() { var queryStringVals = $().SPServices.SPGetQueryString();
    poNumber = queryStringVals["PO"];
    poDetailID = queryStringVals["ID"];
    function PreSaveAction() {
    // update the PO header with the total of all items + shipping + adjustments
    var query = "<Query><Where><And><Eq><FieldRef Name='Title' /><Value Type='Text'>" + poNumber + "</Value></Eq><Neq><FieldRef Name='ID' /><Value Type='Counter'>" + poDetailID + "</Value></Neq></And></Where></Query>";
    var viewFields = '<ViewFields><FieldRef Name="Total" />';
    viewFields += '</ViewFields>';
    var poTotal = 0.00;
    $().SPServices({
    operation: "GetListItems",
    async: false,
    listName: "PO Details",
    webURL: "/po",
    CAMLViewFields: viewFields,
    CAMLQuery: query,
    completefunc: function (xData, Status) {
    //alert(xData.responseText);
    $(xData.responseXML).SPFilterNode('z:row').each(function() {
    if($(this).attr("ows_Total")) {
    //alert($(this).attr("ows_Total"));
    poTotal += Number(parseFloat($(this).attr("ows_Total").split(";#")[1],2).toFixed(2));
    // add in this changed line (we skipped it above)
    var qty = $('input[title="Quantity Ordered"]').val();
    var price = $('input[title="Price"]').val().replace(',','');
    var extend = Number(qty)*Number(price);
    poTotal += extend;
    //alert(poTotal);
    // update the PO Header
    $().SPServices({
    operation: "UpdateListItems",
    async: false,
    listName: "Purchase Orders",
    webURL: "/po",
    ID: poID,
    valuepairs: [["Total", poTotal]],
    completefunc: function (xData, Status) {
    //alert(xData.responseText);
    $(xData.responseXML).SPFilterNode('z:row').each(function() {
    return true;
    Robin

  • How to update the table when change list item in classic report

    hi ,
    i worked with apex 4.2 and i create normal classic report with one select list(named loved)Column ,now i want to update table when user change the list with new value ,i can't create dynamic action to do this,i create check box with primary key and loop for check item to update the table but i can't get the value of list item. and for more speed the user want to do this when change the list value.
    my question
    1- how to do this by javascript and get the value from list item and update the table with new value
    2- is i must use API to create list item so i can get the value of item in report or what.
    Thanks
    Ahmed

    I coded the following to give you direction:
    1. In the "Element Attributes" section of the DEPTNO column, I call a javascript function as:
    onchange = "javascript:updateTable(this);"2. I wrote a simple javascript function that shows an alert when the user changes the select list as:
    <script language="JavaScript" type="text/javascript">
    function updateTable(pThis)
        var vRow = pThis.id.substr(pThis.id.indexOf('_')+1);
        alert('Row# - '+ vRow + ' has the value - ' + pThis.value);
    </script>Now, you can call a AJAX on-demand process inside the javascript function to update the database value.

  • Is it possible for a 3rd party program to create a list item in sharepoint online 2013?

    I have limited experience with the online version of sp. I've been asked if it's possible for a 3rd party app that our company is beginning to use, to programmatically add items to a list.    I don't have any details about the program yet,
    but I've been told that a batch would run at night and they would like it to create items in a SP list and pass along several fields of metadata.   
    Is this possible in the online version?   I know that Power Shell can do this, but is it possible for an app to get access to run a PS command?   
    thanks,

    Yes.
    There is something known as the Client Side (?) Object Model or CSOM. This allows you to create list items, lists and even sites with .Net code from a non server machine.
    You could run 'classic' Server Object Model  C#/VB.NET or PowerShell to do the same job and it might be easier as there's alot more material out there on how to do it. On the other hand it's probably going to make your solution more complicated and
    harder to maintain over the long run.
    This article introduces you to the CSOM and how to use it and is applicable to O365 as well as on-premise:
    http://msdn.microsoft.com/en-us/library/office/fp179912%28v=office.15%29.aspx
    As an alternative you can look at the REST API which allows you to use web services to interact with SharePoint.
    http://msdn.microsoft.com/en-us/library/office/fp179912%28v=office.15%29.aspx

  • Unable to select the value from a list item in forms 6i

    Hi ,
    I'am using forms 6i. I have created a list item in my form as below.
    Item_type = list item
    list style - popup list
    elements in list - A, B, C,D
    When I open the form all the above values are displayed for the list item. But I'am unable to select the item( either A,B,C,D).
    Please let me know if I need to add any thing else programatically to acheive this. The block on whixh these values are diplayed is a datablock.
    This is very urgent. Any suggestions would be of great help.
    Thanks
    Deepthi

    If you have a list item where you have:
    Display A value 1
    Display B value 2
    Display C value 3
    Display D value 4
    If want to initial the value of the item to be A, you can set the initial value of the item to 1 in the property pane.
    Otherwise in an initialisation triger have
    :block.list_item := 1;
    HTH
    Tony

  • How to avoid the Blank elemts in the List Item

    Dear All,
    I am using a List Item
    List Elements List Item Value
    Yes 1
    No 2
    Only two elements in this List Item.But at Run time there is one Blank element.
    I need to display only two elements from the List Item .How to avoid the Blank.
    Thanks and Regards,
    Fazil

    Fazil,
    I am using a List ItemList Elements List Item Value
    Yes 1
    No 2
    Only two elements in this List Item.But at Run time there is one Blank element.
    I need to display only two elements from the List Item .How to avoid the Blank.>
    Maybe you actually have null entries in your list. You can clean it up using keys as discussed here http://paranoid-engineering.blogspot.in/2008/05/wonderland-of-oracle-forms-builder.html (Ignore the personal opinions of the author if you will ;) ).
    Cheers,

  • Reg List Item

    Hi All,
    I have programmed a "list item" in such a way that it is populated by a record group that is created programatically and after population the record group is destroyed, This is my code that has been placed in "When-New-Form-Instance" trigger at Form Level.
    DECLARE
         RG_NAME VARCHAR2(30) := 'RG_LIST';
         RG_ID RECORDGROUP;
         RET_CODE NUMBER(10);
         V_QUERY VARCHAR2(300);
    BEGIN
         V_QUERY := 'SELECT CUSTOMER_ID,CUSTOMER_ID FROM CUSTOMERS';
         RG_ID := FIND_GROUP(RG_NAME);
         IF NOT ID_NULL(RG_ID) THEN
              DELETE_GROUP(RG_ID);
         END IF;
         RG_ID := CREATE_GROUP_FROM_QUERY(RG_NAME,V_QUERY);
         RET_CODE := POPULATE_GROUP(RG_ID);
         POPULATE_LIST('CUSTOMER_ID_LIST_ITEM',RG_NAME);
         DELETE_GROUP(RG_ID);
    END;
    When i compiled the Form, i am getting the error that says: FRM-30351: No list elements defined for list item.List CUSTOMER_ID_LIST_ITEM
    Regards,
    Sreekanth.

    FRM-41335:
    This is from the on-line helpp "POPULATE_LIST built-in"
    Removes the contents of the current list and populates the list with the values from a record group. The record group must be created at runtime and it must have the following two column (VARCHAR2) structure:
    Column 1: Column 2:
    the list label the list value
    sarah

  • How to Update Approved Supplier List with API..

    I am working on an interface and need to be able to update the PRIMARY_VENDOR_ITEM in the PO_APPROVED_SUPPLIER_LIST table.
    Can this be done with the Puchasing Document Open Interface ? I have been looking through the notes on this and cannot find it mentioned.

    Hi Shaowei;
    Please follow below and see its helpful:
    [Link 1|http://www.oracleappshub.com/oracle-purchasing/approved-supplier-lists-asl/]
    [link 2|http://forums.oracle.com/forums/thread.jspa?threadID=936670&tstart=15]
    Regard
    Helios

  • Effect of Approved Supplier List

    Hi,
    i wonder if there is not any effect after I entered supplier-item combination into Approved Supplier List. I expected to - at least - see all approved suppliers in the Supplier Item Catalog. But this seems not to happen.
    Can please somebody clarify if entering a supplier in ASL should lead to a result in the Supplier Item Catalog.
    If not: Does it work if I additional to the ASL enter Sourcing Rules? Is this enough to find the supplier in the Supplier Item Catalog?
    I also tried it with quotations: This works. Quotation entries are shown in the catalog. But here I have the problem that - e.g. for price updates - I do not know how to find all quotations with a specific item on it. Does there exist a search form?
    Thanks for any help!

    Purchasing > RFQ & Quotations > Quote Analysis
    Enter the item number and you can find all quotes for that item.
    Hope this answers your question
    Sandeep Gandhi
    Independent Techno-functional Consultant
    Omkar Technologies Inc
    513-325-9026

  • Invalid data has been used to update the list item. The field you are trying to update may be read only.

    Trying to follow Serge Luca's Step by Step Tutorial. Creating Workflows for Windows Sharepoint Services and MOSS2007.  http://sergeluca.spaces.live.com/blog/cns!E8A06D5F2F585013!859.entry
    I have an onWorkflowActivated, followed by an ifElse condition and a log to history.
    In the IfElse, each branch has a code segment, that trys to update the status column in the list that the workflow is attached to.
    private void Authorize_ExecuteCode(object sender, EventArgs e)
    // tried serveral methods
    WorkflowProperties.Item["Status"] = "Automatically Approved";
    // tried all of the following (one at a time)
    item.update();
    WorkflowProperties.Item.Update();
    WorkflowProperties.Item.SystemUpdate();
    //tried this as well.
    Microsoft.SharePoint.SPListItem item = WorkflowProperties.Item;
    item["Status"] = "Automatically Approved";
    item.Update() ;
    On the update call I keep getting "Invalid data has been used to update the list item. The field you are trying to update may be read only."
    Could someone explain how to update "Status" column of the list item that the workflow is working on?
    Thank you very much.
    Bill
     

    Hi:
    you can do the following:
    add the following code to the workflow.xml file (under the MetaData section)
    Code Snippet
    <ExtendedStatusColumnValues>
    <StatusColumnValue>Branch1</StatusColumnValue>
    <StatusColumnValue>Branch2</StatusColumnValue>
    </ExtendedStatusColumnValues>
    then add 2 SetState activities one in each branch of the IfElse.
    for the code behind of setState1 (branch1) write the following code:
    Code Snippet
    state = Convert.ToInt32(SPWorkflowStatus.Max);
    for setState2 (branch2) write the following:
    Code Snippet
    state = Convert.ToInt32(SPWorkflowStatus.Max) + 1;
    where state is the variable assigned to the field State in the properties of the SetState(design lever), or instead of state u can use the following code:
    Code Snippet
    ((SetState)sender).State
    where sender is the object sent through the function parameter.
    hope this answered your question
    Best Regards

  • OOTB Approval Workflow on Custom List does not Update Approval Status

    I have a custom list on which I've required content approval.  I then created a workflow instance from the "Approval - SharePoint 2010" template.  For this workflow I have selected "Update the approval status after the workflow
    is completed (use this workflow to control content approval".  When I approve the list item via the workflow task item the status of the item is not updated but stays at pending even though the
    workflow shows "Completed" with the Outcome of "approved".  Is this the expected behavior, i.e. does "Update the approval status after the workflow is completed (use this workflow to control content approval"
    not work for custom lists?  Does it work on any of the lists?

    Hi Kalos1840,
    If you check "Require Content Approval" setting, only the way above can update the approval status due to the approval status is for this approval workflow. As this approval workflow cannot achieve your demand, I recommend you un-check "Require Content Approval"
    setting and create a custom workflow such as the OOTB Approval Workflow or SharePoint Designer workflow.
    Here is the steps of a SharePoint Designer workflow:
    1.Go to your custom list , click Create a Workflow in SharePoint Designer.
    2.Add a “Start a task process” action in your workflow.
    3.Click “these users” and Start a Task Process edit page will pop up.
    4.In the Participants field, input your  approvers based on the order of approval.
    5.In the right of Participants field, select “Serial (one at a time)”.
    Best  Regards,
    Eric
    Eric Tao
    TechNet Community Support

  • Operating unit in the Approved Supplier list

    Hi Gurus,
    I am looking for a query to find the Operating Unit in the Approved Supplier list. I can only see the owning_organization_id column in the po_approved_supplier_list table not the org_id.
    Please help.
    Thanks in advance !!
    KM

    Have you checked the HP support website to see if there is a Firmware upgrade for your new printer?  In most instances, a Firmware upgrade is needed before you can use Airprint.
    On the product control panel, touch the ePrint icon ( ).
    Touch Settings , and then touch Product Update .
    Touch Check Product Update to apply the available update

  • Tutorial on how to update list items using ListData.svc

    Can you please point me to a tutorial which shows how to update a list item using listdata.svc and C#?
    Sorry if this is FAQ.
    I have found articles on read list... but I haven't found anything on update a list item.
    val it: unit=()

    when i try this I get an error 500
    I created an ASP.NET web application that allows the user to modify data that is stored in SharePoint I rather not go into the reasons why this application was created but focus more on why doesn't the listdata.svc allow me to update a task item that was
    created by a workflow collect data from user action.
    1. The workflow creates the item.
    I collect the item and update the item using the below code. This is not an OOTB approval workflow that is just the name I used. When I get to save changes I received the following error code.
    Dim getApprovalItem As ExpenseApprovalRuleBasedTasksItem = spContext.ExpenseApprovalRuleBasedTasks.Where(Function(i) i.Id = Pam.ApprovalItemID).FirstOrDefault
    If String.IsNullOrEmpty(getApprovalItem.AuditorApprovalValue) Then
    getApprovalItem.AuditingComments = approvalComments
    Select Case approvalDecision
    Case "Approved"
    getApprovalItem.AuditorApproval = ExpenseApprovalRuleBasedTasksAuditorApprovalValue.CreateExpenseApprovalRuleBasedTasksAuditorApprovalValue("Approved")
    getApprovalItem.AuditorApprovalValue = "Approved"
    Case "Rejected"
    getApprovalItem.AuditorApproval = ExpenseApprovalRuleBasedTasksAuditorApprovalValue.CreateExpenseApprovalRuleBasedTasksAuditorApprovalValue("Rejected")
    getApprovalItem.AuditorApprovalValue = "Rejected"
    End Select
    getApprovalItem.Outcome = "Completed"
    getApprovalItem.Status = ExpenseApprovalRuleBasedTasksStatusValue.CreateExpenseApprovalRuleBasedTasksStatusValue("Completed")
    getApprovalItem.StatusValue = "Completed"
    getApprovalItem.Complete = True
    spContext.UpdateObject(getApprovalItem)
    spContext.SaveChanges()
    End If

Maybe you are looking for

  • Msi tv in tv out

    I have an Msi 440 with video-in  and video-out function , when i finish loading the  capture drivers . the msi information window shows that the driver is not loaded, saying "Vdd Drivers ... None"   i have tried changing for detonator driver but  it

  • "PC less" and an iPhoto library

    I no longer have my MacBook Pro as it was my old work computer. I took my iPhoto library and put it on an external. (about 20gb). I am looking for a solution to import and store my iPhoto library and new photos that would NOT require me to purchase a

  • Ot - removing duplicates in lists

    hi sorry for the ot question. i created a very long list of keywords (for seo). anyone knows of a tool to remove duplicates? it's really a very long list thanks lenny

  • Displaying assigned retention tag/policy in Outlook 2013 Inbox default vies

    Hi, I don't know if this is the right place to post this questions. If it is not please forgive me and direct me to the right forum. I know that I can check if the email message has a retention tag/policy applied if I open it in Inspector window. It

  • 4k Playback in 1080p Sequence - Zoom out in 1/2 resolution

    Hi guys, I'm trying to edit some GH4 4k files in Premiere CC 2014 on a 1080p sequence. But I'm having problem when setting the playback resolution to 1/2. What happens is that whenever I add some effect, the image in playback will zoom out 50%. This