ALE BOM. Updates ALL! items with validity date & change no.

Hi All,
We are having problems where ALE-BOM sent with change in validity date (with change no) to a particular item. What happens is that ALE-BOM will instead update ALL! items with the same validity date and change number.
Next,when we process ALE again for the same BOM with a different validity date(with change no), then only that
particular item is updated with validity date and change no.
Would anyone know what could be the problem that when changes are sent for the first time all items are updated?
[Version: SAP 4.6C/ SAPKH46C48]
Regards,
Neeth

Dear:
               The error itself telling you the correction. You profit center which is assigned to your cost center has a validity date less than the one you are now assigning.You can check in KE52 against the profit center assigned to your cost center master data. However the best thing is to go to KS01 and create this cost center with desired validity date.
This will resolve your issue.
Regards

Similar Messages

  • Runtime error when updating service item with BAPI PO CHANGE

    Hi,
    I get rutime error TABLE_INVALID_INDEX after calls:
    BAPI_PO_CHANGE-> PROCESS_NON_INTEGRATED_COMP-> CHANGE_PO_SRV_ITEM -> MS_CHANGE_SERVICE_PACKAGE_PO -> ROW_IN_PO -> CHECK_ACC_PO -> MS_CHANGE_ACCASS_PO -> ESKL_UPDATE.
    the reason is, that ESKL internal table is empty, so the function retrieves last entry index, there is no entry , so  sy-tabix = 0 , and function updates with index 0, which causes the runtime error. I dont know why it is empty, maybe I should copy this table gt_srvaccess from BAPI_PO_GETDETAIL  to BAPI_PO_CHANGE.
    This error appears only in mode KNTIMOD=2 (Multikontierung), not in KNTIMOD=1(Einfachkontierung), so just when ESKL contains more lines for one PACKAGE_NUMBER.
    I am just updating the value ordered to be equal value delivered to close the PO, or delete the item in case ordered >0 and deliveded = 0.
    Here is my part of code:
    *close existing PO's by changing the value ordered to the value receipted
                move 'X' to w_change_flag.
                w_hdrx-po_number = 'X'.
                if w_total-val_gr_for is not initial.
                  w_itemx-delete_ind = 'X'.
                  append w_itemx to gt_itemx.
                  clear: w_itemx.
                  read table gt_services into w_service2 with key pckg_no = w_item-pckg_no.
                  if sy-subrc eq 0.                                                                               
    read table gt_services into w_service with key pckg_no = w_service2-subpckg_no.
                    if sy-subrc eq 0.                                                                               
    move: w_total-val_gr_for to w_service-quantity,
                            '1'                to w_service-gr_price.
                      modify gt_services index sy-tabix from w_service transporting quantity gr_price.
                    endif.
                  endif.
                else. "nothing delivered yet, set deletion flag
                  w_itemx-po_item = w_item-po_item.
                  w_itemx-delete_ind = 'X'.
                  append w_itemx to gt_itemx.
                  clear: w_itemx.
                  w_item-delete_ind = 'L'.
                  modify gt_item index w_count from w_item transporting delete_ind.
                endif.
        call function 'BAPI_PO_CHANGE'
          exporting
            purchaseorder = w_ekko-ebeln
            poheader      = w_header
            poheaderx     = w_hdrx
            testrun       = w_testrun_flag
            no_messaging  = 'X'
          importing
            expheader     = w_exphdr
          tables
            return        = gt_return1
            poitem        = gt_item
            poitemx       = gt_itemx
            poservices    = gt_services.
    Thanks, please help.
    regards Rob
    Edited by: xsmid4 on Nov 2, 2011 11:49 AM
    Edited by: xsmid4 on Nov 2, 2011 12:08 PM

    Hi,
    Take a look at OSS Note 827731. It might be helpful to you.
    [ Link for Note 827731|https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=827731]
    Regards,
    koolspy.

  • G/L A/C OUTSTANDING SHOWING CLEARED IN ALL ITEMS ON SAME DATE

    Dear Expert
    G/L A/C outstanding documents are showing cleared transactions in all items category
    using the same date in FBL1N.
    To illustrate in detail when we click on the radio button with
    open item with date 17.11.2009 i  m getting certain uncleared
    documents, now when I am using the radio button with all items with
    same date i m getting all those docs which were uncleared showing
    cleared.While in the database documents are showing in BSAK table only.
    What are the causes for the same .
    Thanks - Viral

    The items that you are questioning most likely were cleared after 17.11.2009.  When you run FBL1N for open items with key date 17.11.2009, SAP will show you all items that were open as of that date - even if the items have since been cleared.  When you run FBL1N for all items, their clearing status is displayed as of the current date.  For example, if an item was cleared on 18.11.2009, then it was open as of 17.11.2009, but is cleared as of today.
    Regards,
    Shannon

  • Update new field with existing data programmatically

    I have a requirement to write a code that update an existing lookup field.
    We are running sharepoint 2010. We have a content type, which is used throughout all the sites. The content type has a field called Product, which is a lookup field for all the products we have. The field also contains subproducts. For example, a product
    by name PR1000 has a subproduct PR1010 all in the same drop down menu.
    Now we want to change this grouping and separate them based on product and subproduct. I have created new field called Parent Product (PP) and Child Product(CP).
    I would like to programmatically update the Parent Product field with Product and Child PRoduct field with child product if any. So here is how it works; if an existing item or document has product PR1010, I would to update PP with PR1000 and CP with 1010.
    The problem I am having in order to start this project is the product field is part of every document library and lists and there are 1000s of items with data for product.
    Please help with ideas or suggestions. I am thinking of a feature event receiver, which when activated will automatically update every item with product field not empty.
    Thanks for your help in advance.

    As Bruno suggested ,if its on time activity and on the all site then so go with Powershell 
    script. use feature event receiver when it require on the selected site and if this require to extend
    other sites so that contol will be at your end,else you need to again modified the powershell script.
    Regards,
    Rajendra Singh
    If a post answers your question, please click Mark As Answer on that post and Vote as Helpful
    http://sharepointundefind.wordpress.com/

  • Show all Columns with datatype = date

    Is it possible to select all columns with datatype = date in the Repository.
    We like to cast it like dd.mm.yyyy.
    Regards,
    Stefan

    Wouldn't it be easier to do it in the presentation services rather than the .rpd?
    Update: anyways, if you wanna be nasty, use something like this:
    CONCAT( CAST ( DAYOFMONTH("Siebel Data Warehouse"."Catalog"."dbo"."Dim_Incident (W_INCIDENT_D)"."CLOSED_DATE") AS VARCHAR ( 2 )), CONCAT('.', CONCAT( CAST ( EXTRACT( MONTH FROM "Siebel Data Warehouse"."Catalog"."dbo"."Dim_Incident (W_INCIDENT_D)"."CLOSED_DATE") AS VARCHAR ( 2 )), CONCAT('.', CAST ( EXTRACT( YEAR FROM "Siebel Data Warehouse"."Catalog"."dbo"."Dim_Incident (W_INCIDENT_D)"."CLOSED_DATE") AS VARCHAR ( 4 ))))))
    Message was edited by:
    ChrisBerg

  • "To Do" items with deadline dates as an input to iCal

    I like the list of To Do's on the left hand side of the iCal window, but it would be more useful if the To Do items with specific due dates would show up in the calendar on the date the To Do is due to be completed.
    Is there a way for the To Do items with due dates to automatically be posted directly into the calendar on the dates the items are due for completion? If so, how do I do that?
    Appreciate any help or guidance on the organizing of To Do items in general.

    AllegroMac wrote:
    I like the list of To Do's on the left hand side of the iCal window, but it would be more useful if the To Do items with specific due dates would show up in the calendar on the date the To Do is due to be completed.
    Is there a way for the To Do items with due dates to automatically be posted directly into the calendar on the dates the items are due for completion?
    no, there is no way to do that. what you can do is set up alarms for your to dos that send you an email or display a popup around the time they are due.

  • Connected webpart - add item with selected data

    Hi!
    I have a page with connected web parts.
    Example:
    List one: Companies
    a address List with companies
    List two: Employees
    A list with employees and a relation to companies (Company name).
    On the view item on companies i have list Employees connected. When i add an item i would like to have the Company name selected in the drop down.
    I have seen examples on using JavaScript but this doesn´t work in SharePoint 2013. Anyone with a solution for this, Jslink perhaps?

    Hi,
    According to your post, my understanding is that you wanted to add item with selected data in connected webpart.
    I recommend to use lookup column in the Employees to add a relation to companies.
    You can check “Yes” under “Require that this column contains information”. Then you need to select an company when you add a item.
    The result is as below:
    If you want to set the defult value for the lookup column, you can use InfoPath and no code.
    For more information, please refer to:
    SharePoint 2010 - Set default value for a lookup column using InfoPath and no code
    In addition, a simple add-on(SharePoint Default Value Add-On) which inject a "default value" section into "Create Column" dialog, seems to be a solution.
    Thanks,
    Linda Li
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Linda Li
    TechNet Community Support

  • Update all podcasts with one click

    How do I update all podcasts with the new iTunes?

    That's 3 clicks.  Alternatively you can left click on list then click the refresh button in the bottom right hand corner of the screen, but that is also not one click.  It seems the goal of the geniuses behind iTunes 11's interface was to make every action go from 1 mouse click to 2, thus making the software slower and more cumbersome to use.
    Is it really too much to ask to have a global refresh button in the podcast view in addition to the list view?  Apparently so.  Oh, and why did they disable the sidebar by default?  Without it, you'll never guess what happens.  Oh you did?  Yup it takes 2 clicks to switch from music to podcasts instead of one.

  • Problem with updating oracle DB with java date thru resultset.updateDate()

    URGENT Please
    I am facing problem in updating oracle database with java date through resultset.updateDate() method. Can anybody help me please
    following code is saving wrong date value (dec 4, 2006 instead of java date jul 4, 2007) in database:
    ResultSet rs = stmt.executeQuery("SELECT myDate FROM myTable");
    rs.first();
    SimpleDateFormat sqlFormat = new SimpleDateFormat("yyyy-mm-dd");
    java.util.Date myDate = new Date();
    rs.updateDate("myDate", java.sql.Date.valueOf(sqlFormat.format(myDate)));
    rs.updateRow();

    I believe you should use yyyy-MM-dd instead of yyyy-mm-dd. I think MM stands for month while mm stands for minute as per
    http://java.sun.com/j2se/1.4.2/docs/api/java/text/SimpleDateFormat.html
    (If this works, after spending so much of your time trying to solve it, don't hit yourself in the head too hard. I find running out of the room laughing hysterically feels better).
    Here is a more standard(?) way of updating:
    String sqlStatement=
    "update myTable set myDate=? where personID=?"
    PreparedStatement p1= connection.prepareStatement(sqlStatement);
    p1.setDate(1,new java.sqlDate());
    p1.setInt(2, personID);
    p1.executeUpdate();

  • Let all channels(with same data structure)run one program

    Hello,
    I want to let all channels with same data structure run one program,how can i program it?
    Thanks!

    Hi charleen,
    You're going to need to provide more details for us to help you.  In general "channels" do not "run" programs.  You can, however, run a program which loops over channels, checks their properties, and decides whether to include them in the overall analysis.  What do you mean by "data structure"?
    What do you want to actually happen in the "program"?
    Brad Turpin
    DIAdem Product Support Engineer
    National Instruments

  • PDF file size grows each time form is saved (with no data changes). Why?

    I have an SAP Adobe form (PDF) and we are seeing a difference in the Save behavior between when it is viewed in Adobe Reader vs. the adobe plug-in(?) for Internet Explorer.
    When the form is viewed in Internet Explorer, every time the user saves the form the file size grows (even with no data changes in the form - i.e., open the form, hit save).  This is not true if the form is opened in Adobe Reader.
    The form in question has multiple pages but the only fields directly bound to the SAP source are a handful of identifiers (e.g., order number) and a dynamic table.  It appears from our testing that the more entries in the table when the form is created, the greater the size increase each time the file is saved.  The table length is not changed after the form is first generated.
    Is there a known difference in the behavior of Adobe Reader vs. the browser plug-in which would account for this difference?  Our users have Adobe Reader X installed on their machines.

    If this is an XFA form, as opposed to an Acroform, you should ask in the LiveCycle Desiger forum or a more relevant LiveCycle forum.

  • Function module for BOM Update all line items at a time

    Hi,
    Please enlightenn us, which FM is do the update for BOM item datas. ( current FM is updated line item one item then come out and log in again updating another line item , thus cause more error are facing.)
    we want a FM to update one time all the line time and come out from the screen.
    Thx
    Sathiya

    HI,
    As suggested above use CEWB or if you want to manage it via a Z program then use:
    CSAP_MAT_BOM_MAINTAIN
    or
    CSAP_MAT_BOM_OPEN
    CSAP_BOM_ITEM_MAINTAIN (Use these 3 in sequence, refer to the help file on the FM)
    CSAP_MAT_BOM_CLOSE
    Hope it answers your query.
    Regards,
    Vivek

  • Update list item with managed metadata field returns The security validation for this page is invalid

    Using SharePoint 2010 Server
    I'm attempting to programtically update a managed metadata field in a document library. I'm able to do it without issue on all other non-managed metadata fields. When I attempt it on a MM field I get the error message
    "The security validation for this page is invalid. Click Back in your Web browser, refresh the page, and try your operation again."
    After some digging I realised that this error was being caused because SharePoint was trying to write to the TaxonomyHiddenList list (../sites/mysite/Lists/TaxonomyHiddenList/AllItems.aspx)
    When I update a document through the browser with a term (Term01), it shows up in this TaxonomyHiddenList . I can then run my application, apply Term01 to my new document and it works fine. But if I apply Term02 to my new document it gives me the error above.
    Summary
    My app can read the TaxonomyHiddenList fine but it can not perform an operation that would write to it, resulting in not being able to update the MM field.
    Question
    Is there any advice on how I can further debug this issue?

    Hi,
    According to your post, my understanding is that you want to update managed metadata field in document library programmatically.
    I have made a simple code demo below to updata managed metadata field in document library, it works like a charm, you can refer to it.
    public static void UpdateMSField()
    using (SPSite site = new SPSite("http://YourSiteURL"))
    using (SPWeb web = site.OpenWeb())
    //SPList list = web.Lists.TryGetList("Libs_1");
    SPDocumentLibrary lib = (SPDocumentLibrary)web.Lists["Libs_1"];
    // No point in proceeding if we can't find the list
    if (lib != null)
    // add a new item
    // SPListItem item = list.AddItem();
    SPListItem item = lib.GetItemById(1);
    //Console.WriteLine(item.Name);
    // get the current taxonomy session, which wraps up all of the
    // associated TermStore objects for this SPSite object
    TaxonomySession metadataService = new TaxonomySession(site);
    // get the taxonomy field
    TaxonomyField taxField = item.Fields["MMS_1"] as TaxonomyField;
    // get the term store associated with the taxonomy field
    TermStore termStore = metadataService.TermStores[taxField.SspId];
    // get the actual term set associated with the taxonomy field
    TermSet termSet = termStore.GetTermSet(taxField.TermSetId);
    // search for the terms we wish to set the field to
    var terms = termSet.GetTerms("term_1", true, StringMatchOption.ExactMatch, 1, false);
    // if we have found a term populate the field
    if (terms.Count > 0)
    // set the field to the term(s) we have found
    taxField.SetFieldValue(item, terms.First());
    // Update the item
    item.Update();
    Console.WriteLine("success...");
    More reference:
    http://www.3guysonsharepoint.com/?p=1052
    http://vineet-winit.blogspot.com/2013/04/how-to-update-managed-metadata-field-in.html
    Thanks & Regards,
    Jason
    Jason Guo
    TechNet Community Support

  • CAML Query returning all items with date condition

    HI,
    I have a problem doing a query with CAML over the elements of a calendar in SharePoint 2013
    I just want to retrieve all items, which have been modified on a particular date. But below query returns all items from the Calendar.
    Any suggestion how to get specific items from the calendar. The same issue exists for start date  and end date.
      var oWebsite = clientContext.get_web();
        this.collList = oWebsite.get_lists();
        var camlQuery1 = new SP.CamlQuery();
       camlQuery1.set_viewXml(
       '<query><Where>'+
          '<Eq>'+
             '<FieldRef Name=\'Modified\'  IncludeTimeValue=\'TRUE\'/>' +
             '<Value Type=\'DateTime\'>2014-02-24T12:00:00Z</Value>'+
          '</Eq>'+
       '</Where></query>');
        this.collListItem1 = oList.getItems(camlQuery1);
        clientContext.load(collListItem1);

    Firstly try to make this change in your query and see if that helps
    camlQuery1.set_viewXml(
    '<View><Query><Where>'+
    '<Eq>'+
    '<FieldRef Name=\'Modified\' IncludeTimeValue=\'TRUE\'/>' +
    '<Value Type=\'DateTime\'>2014-02-24T12:00:00Z</Value>'+
    '</Eq>'+
    '</Where></Query></View>');
    Geetanjali Arora | My blogs |

  • Updating all items of HTML itembox to Oracle table

    Hi friends,
    In my assignment,I need your help. I'm wondering how can I update all the items of my HTML itembox ,defined in one of the jsp page, to Oracle table.
    Thanks in advance.

    hsperhar wrote:
    Thanks ,in that I can deal with the servlet programming and collecting and updating the data in my oracle tables. But how would I collect the names/values of all the items of HTML itembox in my servlet/JSP, so that later I can update my oracle table with those string values.Method request.getParameter(String) will catch the selected items only of the itembox. How can I force the form to pass all the names of items of itembox to servlet. You need to pass them separately. But why do you need to do this? You already know at the server side which options are all in the dropdown. Simply because you couldn't have printed it to the response otherwise.
    Plus: how can we substract two arrays. I mean if A[]={1,2,3} & B[]={2,3} then how can I get C[]=A-B={1}Just write an utility method for that. Or use the Collections framework, the List API for example provides you a removeAll() method.

Maybe you are looking for