Update Price in table ITM1

hi,
i want to update price in table ITM1 (items price), in my application i use business object Items_Prices but this object have not method update...
What can i do it?
thanks
Best regards

Hi Valentina,
You need to use the Items object of DI API and update the prices through item. Code example:
Dim oItem As SAPbobsCOM.Items
        oItem = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oItems)
        oItem.GetByKey("A1000")
        oItem.PriceList.SetCurrentLine(0)
        oItem.PriceList.Price = 200
        If oItem.Update <> 0 Then
            MessageBox.Show(oCompany.GetLastErrorDescription)
        End If
Hope it helps.
Adele.

Similar Messages

  • Using DTW to update price lists with ITM1 template

    I'm trying to update prices in a price list using the ITM1 DTW template, but I continue to get an error:  This entry already exists in the following tables (ODBC - 2035) Application-defined or object-defined eror65171.
    Any suggestions?
    Thank you,
    Avraham

    Hi Caroline,
    AtcEntry is correct for the document, this relates to the AbsEntry in OATC, which then in turn links to AbsEntry in ATC1.
    There are a few fields that need to be populated in ATC1:
    AbsEntry
    Line - To be used if more than 1 Attachment
    SrcPath - for the file path
    Filename - for the file name
    FileExt - for file type - i.e. .pdf
    You may be able to configure DTW to import these as a manually created DTW but I suspect that OATC and ATC1 are not open to the Di which will stop it. Coincidently I have been looking at Task Centre to update these but have encountered the same problem
    Regards
    Sean Martin

  • Updating Price and Supplier at Requisition interface table after Min/Max

    Hello,
    We have requirement of updatig requisition data at interface table once Min/Max planning is completed.
    We need input here like what would be the behaviour of Standard Requisition import program if we update price and supplier details at interface table after Min.Max planning and before running the Requisiton import.
    Quick reponse will help us to move forward on this requirement.
    Thanks
    Devaraj.K

    Hi,
    Yes, we are using sourcing rules, so whenever i update the interface table with Price and Supplier detials after Min/Max then the Req.Import should not consider the Sourcing rules, it should create requisiton based on the values (Price and Supplier)provided at interface tanle.
    Quick reponse would helpful us to move further on this,
    Thanks in advance,
    Devaraj.K

  • How to Update prices in VA01

    Hi!
    We are having the following problem, and do not know how to solve it. When I created an order(request / PO) using VA01, we need validate/check the MANUAL PRICE charged in the lapel of CONDITIONS ( This one must not overcome +/-% charged in a Z table)... Then inside the user: USEREXIT_MOVE_FIELD_TO_VBAK we create the validation. So, if the user charge a manual price that overcomes or low than the established on this %, we show an popup error. The user can accept the message and automatically the order(request / PO) is generated blocked. Or To push the manual entered price back. There we need to refresh the scheme of calculation, because in this moment The taxes are calculated with the entered MANUAL PRICE previously, and this should not be happen.
    I need to know if I can do something to update, before going out from the EXIT, the scheme of calculation that in this moment is in the XKOMV table simulating the action of "update prices" button.
    Thank you very much!

    Hi,
    Thanks, but ...
    At that point I haven't in memory the manual price in komv.
    Now I'm trying: USEREXIT_PRICING_CHECK
    Kisses

  • Loading custom price condition table

    We have a custom price condition table for intercompany price.
    This table needs to be updated monthly from a file generated from another system not on SAP.
    BDC is one way of doing it, but that takes too much time.
    Is there any other simpler way of achieving the same ?

    Hi
    Have your tried LSMW.  You can upload conditions using LSMW.
    Regads
    Yatin Thakkar

  • Tax code not updated in EKKN table after PO update manually

    Hi,
    my scenario is we had created some PO  for service and tax code for MWST  was V1 .now it has been changed and we manually changed to v2  through ME22n by clicking on the update price button on the condition screen for each service item.now on the PO its showing  correct. but in the EKKN table showing the previous tax code i.e. V1. also when posting MIRO system fetching old tax code instead of new one.please help me
    Regards,
    Sandip

    Hi ,
    Please check the attached screenshot for ur reference.
    Thanks,
    Sandip

  • VE 108 or How can I update prices automatically

    Good day to everyone!
    I've got some problem with a tax determination in MM.
    Condition type - MWST.
    I created a personal condition table (501) with only field - Tax code.
    Also I changed access sequence for MWST with that table.
    I entered condition records for a new table via MEK31.
    Problem!
    When I create purchase order (ME21N) I enter a tax code on the "Invoice" tab. But, tax in the calculation schema doesn't determined. In pricing analysis there is an error message VE 108. After updating prices (G - Copy pricing elements unchanged and redetermine taxes) - tax succesfully determines.
    Can I customize updating process automatically? Where? In schema?
    Thanks a lot!
    Message was edited by:
            Timur Baimuldin

    Hey!
    Thanks Vijay
    I dont know why but changing the cost center does not trigger the user exit EXIT_SAPLMEKO_002, needed for the correct price determination. I think this is the cause of the message VE108.
    Does anybody know if it is normal that that user exit is not called when changing the cost center?
    some other ideas?
    Regards!

  • Problems updating a linked table

    Hi,
    I am running a win 7 with Excel 2013, 64 bit, Swedish version. I try to update a linked table in the data modell and get an error message saying:
    ============================
    Exception from HRESULT: 0x800A03EC
    ============================
    Call Stack:
    ============================
       at System.Windows.Forms.Control.MarshaledInvoke(Control caller, Delegate method, Object[] args, Boolean synchronous)
       at System.Windows.Forms.Control.Invoke(Delegate method, Object[] args)
       at Microsoft.Office.PowerPivot.ExcelAddIn.ExcelInterOpUtil.GetLinkedTableExcelTableName(String modelTableName, Workbook workbook)
       at Microsoft.AnalysisServices.XLHost.Modeler.ClientWindow.FixLinkedTableExcelTableName(LinkedTableInfo tableInfo)
       at Microsoft.AnalysisServices.XLHost.Modeler.ClientWindow.UpdateAllLinkedTablesClick()
    ============================
    The file is saved as .xlsx so there shouldn't be a compatibility problem. I have also tried removing the added rows to make sure the added data didn't contain any bad data and running the file on a different computer but the problem keeps showing up.
    Anyone having any ideas on how to solve this?
    //Caj
    Csten

    Does anyone have a suggestion for Csten?
    Thanks!
    Ed Price, Azure & Power BI Customer Program Manager (Blog,
    Small Basic,
    Wiki Ninjas,
    Wiki)
    Answer an interesting question?
    Create a wiki article about it!

  • How to Query and Update/Insert Large Tables ...

    I have the following 2 tables:
    Table 1: Pricing
    This table holds pricing details of all Items (roughly 150,000 items). One Item has three types of prices Standard, Promotion, and Discounted. Therefore the table contains roughly 150,000 * 3 records. Also the prices may get updated frequently every day.
    Item#---Type------------FromDate---ToDate-----Price
    ===================================
    AAA-----Standard------01/01/05---31/12/05---1.50
    AAA-----Promotion----16/12/05---20/12/05---1.40     
    AAA-----Discounted---10/12/05---15/12/05---1.20
    BBB-----Standard------01/01/05---31/12/05---1.60
    BBB-----Promotion----17/12/05---18/12/05---1.30
    BBB-----Discounted---10/12/05---15/12/05---1.50
    Table 2: BestPrice
    At a given date, this table contains the best price (lowest price) of each item for the following 21 days (including the current date). The POS system is accessing this table to get the daily best price for billing customers.
    Item#----Date--------BestPrice
    =====================
    AAA------17/12/05----1.40
    AAA------18/12/05----1.40     
    AAA------19/12/05----1.40
    AAA------20/12/05----1.40
    AAA------21/12/05----1.50
    BBB------17/12/05----1.30
    BBB------18/12/05----1.30
    BBB------19/12/05----1.60
    BBB------20/12/05----1.60
    BBB------21/12/05----1.60
    Problem Statement:
    Table 2 (BestPrice) needs to get updated from Table 1 (Pricing) at least once every day with the best price for each item for the next 21 days (including the current day). What’s the most efficient method to perform this job?

    I don't know really why your application needs to use BestPrice table!
    It is not clear what it does for it because querying will not be better than querying the pricing table. This will be very fast with an index on intem#
    On the other hand, why do you use three rows per item in Pricing table? it could be one row per item.
    Any way, to populate the table for the first time :
    insert into bestprice
    select item#
         , dte
         , min(price) bestprice
    from pricing, (select trunc(sysdate) + rownum - 1 dte from dual connect by rownum <= 21) t
    where  dte  between fromdate and todate
    group by dte, item#Now, you can have a row trigger (update) on Pricing table which can change BestPrice table according to a change in Pricing tabe.
    Then you have to use a daily job that can be based on the following statement:
    update BestPrice B
    set dte = trunc(sysdate) + 20
      , BestPrice =
             select min(price)
             from Pricing P
             where P.item# = B.item#
                and B.dte between P.FromDate and P.ToDate
    where dte = trunc (sysdate) - 1Message was edited by:
    Michel SALAIS
    I forgot to say that that if your periods in the pricing table don't covere a desired date in the BestPrice table then my insert statement will not treat it and my update will put it to NULL

  • Updating price agreements

    Hi,
    My requirement is to update price agreemengts based on condition types for customer contracts. i tried with crm_order_maintain passing table price_agreements_crm with the modified data but its not updating. Is there any other function module for doing the same?
    kindly reply its urgent.
    Thank you,
    Vinay Sah

    hello,
    " I also need to create new condition records (KONP, KONH) " -
    Please use FM BAPI_PRICES_CONDITIONS to create condition records
    Thanks
    Krish

  • Updating prices in VA02

    Hi experts,
    I need to update prices in transaction VA02.   Is there any function module is available to update prices...? I need to update prices for many sales orders...
    is it possible with BDC..?
    Pls. help me to do...
    Thank u.
    With regards,
    Murugan Arumugam.

    Hi!
    I think it is possible with BDC. There's a button for the price actualization, in VA02 transaction, conditions tab (at header data), and under the conditions table.
    Just create a recording for it in SM35 transaction.
    Regards
    Tamá

  • Jython error while updating a oracle table based on file count

    Hi,
    i have jython procedure for counting counting records in a flat file
    Here is the code(took from odiexperts) modified and am getting errors, somebody take a look and let me know what is the sql exception in this code
    COMMAND on target: Jython
    Command on source : Oracle --and specified the logical schema
    Without connecting to the database using the jdbc connection i can see the output successfully, but i want to update the oracle table with count. any help is greatly appreciated
    ---------------------------------Error-----------------------------
    org.apache.bsf.BSFException: exception from Jython:
    Traceback (innermost last):
    File "<string>", line 45, in ?
    java.sql.SQLException: ORA-00936: missing expression
    ---------------------------------------Code--------------------------------------------------
    import java.sql.Connection
    import java.sql.Statement
    import java.sql.DriverManager
    import java.sql.ResultSet
    import java.sql.ResultSetMetaData
    import os
    import string
    import java.sql as sql
    import java.lang as lang
    import re
    filesrc = open('c:\mm\xyz.csv','r')
    first=filesrc.readline()
    lines = 0
    while first:
    #get the no of lines in the file
    lines += 1
    first=filesrc.readline()
    #print lines
    ## THE ABOVE PART OF THE PROGRAM IS TO COUNT THE NUMBER OF LINES
    ## AND STORE IT INTO THE VARIABLE `LINES `
    def intWithCommas(x):
    if type(x) not in [type(0), type(0L)]:
    raise TypeError("Parameter must be an integer.")
    if x < 0:
    return '-' + intWithCommas(-x)
    result = ''
    while x >= 1000:
    x, r = divmod(x, 1000)
    result = ",%03d%s" % (r, result)
    return "%d%s" % (x, result)
    ## THE ABOVE PROGRAM IS TO DISPLAY THE NUMBERS
    sourceConnection = odiRef.getJDBCConnection("SRC")
    sqlstring = sourceConnection.createStatement()
    sqlstmt="update tab1 set tot_coll_amt = to_number( "#lines ") where load_audit_key=418507"
    sqlstring.executeQuery(sqlstmt)
    sourceConnection.close()
    s0=' \n\nThe Number of Lines in the File are ->> '
    s1=str(intWithCommas(lines))
    s2=' \n\nand the First Line of the File is ->> '
    filesrc.seek(0)
    s3=str(filesrc.readline())
    final=s0 + s1 + s2 + s3
    filesrc.close()
    raise final

    i changed as you adviced ankit
    am getting the following error now
    org.apache.bsf.BSFException: exception from Jython:
    Traceback (innermost last):
    File "<string>", line 37, in ?
    java.sql.SQLException: ORA-00911: invalid character
    here is the modified code
    sourceConnection = odiRef.getJDBCConnection("SRC")
    sqlstring = sourceConnection.createStatement()
    sqlstmt="update tab1 set tot_coll_amt = to_number('#lines') where load_audit_key=418507;"
    result=sqlstring.executeUpdate(sqlstmt)
    sourceConnection.close()
    Any ideas
    Edited by: Sunny on Dec 3, 2010 1:04 PM

  • The currency is not getting updated in the table VBAP

    Hi ,
    The currency is not getting updated in the table VBAP. The currency was suppossed to be copied from the header table VBAK for a Sales Order. When the user creating a Sales Order the currency WAERK is not shown in VBAP table. VBAK-WAERk is in EUR . Does anyone know why is this happenning?
    Currency is maintained in the Customer Master, Material Master and Sales Org. Any suggestions?.
    Also it is happened for only one line item in a set of line items , Other line items did display the currency field.
    The net Value has data in it .
    The system is ECC 5.0
    Regards,
    Senthil

    Dear Senthil,
    Please apply the following notes (if they apply to your support pack level) and retest:
    1460621 VBAP-WAERK is deleted after the sold-to party is changed
    1426441 VBAP-WAERK deleted for subitems
    1493998 VBAP-WAERK deleted for subitems
    This should resolve the issue. I hope this helps.
    Best regards,
    Ian Kehoe

  • Data is not getting updated in DB table

    hi all
    i am doing IDOC to jdbc scenario
    i am triggering idoc from R/3 and the data is going into DB table
    sender side:       ZVendorIdoc
    receiver side:
    DT_testVendor
      Table
        tblVendor
          action       UPDATE_INSERT
          access      1:unbounded
            cVendorName 1
            cVendorCode 1
         fromdate    1
         todate      1
          Key
            cVendorName  1
    if i trigger idoc for example vendor 2005,2006 and 2010 data is getting updated in the table
    but again if i trigger idoc for same vendor nos data does not get updated in DB table while message is successfull in moni and RWB both
    plz suggest if any change need to be done to update the data
    Regards
    sandeep sharma

    Hi Ravi
    you are right, vendor no is my key field . problem is when i send data again then it should Update the data but it's not updating the data again
    i did on exp with this : i deleted all the record from the table and then  triggered idoc for vendor 2005 , 2006,2010 after this data is updated in the table i deleted the rows for vendor no 2006 and 2010 and kept the row for vendor 2005
    then i again trigered the idoc for vendor no 2005,2006 and 2010 now this should update and it should insert rows for vendor no 2006 and 2010 but i am surprised its not updating the data
    Thanks
    sandeep

  • TDS amount not getting updated in the table under the field QBSHB

    Dear Friends,
    The TDS amount entered while booking the vendor invoices through MIRO T-cde, is not getting updated in the table BSEG under the field QBSHB. 
    Kindly let me know the reason for the same and guide me to correct it
    TIA.
    Regards,
    Vincent

    HI Vincent,
    Bseg-QBSHB field is relavent for classic WT.
    I hope you are using the EWT.
    Hence if you post a document through MIRO it will not update
    (but if you post document FB60 it will update but wrongly).
    Reason is Miro document is posted through interface.
    Hence SAP is suggested to not refer the Bseg-QBSHB and etc., fields.
    refer only with_item table.
    Please refer the below replay from SAP
       Please refer the below note .363309
    Please review attached note 363309 for detailed explanation
    BSEG-QBSHB is designed to fill for the classic withholding tax. And
    extended withholding tax information is stored exclusive in table
    WITH_ITEM.
    You can check in table BSEG for the fields and will find that system
    do NOT update field BSEG-QBSHB.
    In your line layout,you define a field BSEG-QBSHB. But actully the field
    of vendor/customer line item is filled with zero from FI. Thus,it shows
    zero in line item display.
    And as note 363309 says,
    "Remove the field which contains the withholding tax information
    from your display variant.
    If you want to display the withholding tax information, double-click on
    the document number and subsequently choose 'Withholding tax' button."
    (BSEG-QSSKZ, BSEG-QSSHB, BSEG-QBSHB) field is not relavent for
    Extended withholding tax and not suppose to use in report FBL1N.
    It basically does not make any sense to use the withholding tax fields
    of the document line items (BSEG-QSSKZ, BSEG-QSSHB, BSEG-QBSHB) with the
    activated extended withholding tax.
    regards
    Madhu M
    Edited by: M Madhu on Jan 31, 2011 1:19 PM

Maybe you are looking for

  • Problem with threads, program always crash

    new to threads, may be doing something COMPLETELY wrong. When I run the program I get a couple of NullPointerExceptions in Thread-0 and Thread-1. I'm confused because it screws up when I call size() for arrayList, and in the API size doesn't throw an

  • I can't print my e-mail

    I can't print my e-mails.

  • Wipe for resale - have no install or repair disks

    I am ready to sell my old iBook on eBay, but of course I need to wipe it first. I bought it used, and it did not come with ANY install or repair disks. How can I wipe it without those?

  • Purchase Orders for special/controlled items

    Hello everyone: I'm trying to create an aproval process for Purchase Orders that include special items that: - we only buy when one of our customers needs them (non-stock items), - have had no activity for 60 days or more, - and/or items that don't h

  • MIGO TRANSACTION AUTHORISATION

    Sir, PLease let me know how i can resolve this requirement There is one user ID in which i dont want to give "PART 1& PART 2" Access to user. He should only have access to PART1 Regards Amey