DTW Material Revaluation

Has anyone used DTW Material Revaluation?  What columns are required and how do they work?

Hello Bill,
I used only code for material revaluation (addon). Same is the DTW (DTW uses DI API).
Mandaroty fields are:
- DocDate,
- RevalType  (P like price change)
in lines
- ItemCode
- Price
- RevaluationIncrementAccount
- RevaluationDecrementAccount
The revelant G/L Accounts may come from the system, depending from the G/L Account method of the Item
If it not works in DTW (I  know there is no  interface under 2007), you may write a small excel code in vb6.
Regards
János

Similar Messages

  • Importing of material revaluation using DTW problem

    Hello,
    I tried to import a material revaluation using DTW because i want to make amendment in cost price so i use the 2 templates (material revaluation & material Revaluation_lines). Uploading was successful because i received this message "75oMaterialRevaluation" however i've checked in TEST database but still the original cost price didnt change. Please can you advise me on this? See the details below
    RecordKey   DocEntry Comment                       DocDate      JournalMemo
           1                      1     Correction of price      20100518     20100518
    Details
    RecordKey   LineNum  ItemCode      New Price   RevaluationDecrementAccount  RevaluationIncrementAccount
         1                    1        S0039N232     10.5                  7-01000000                                       4-90100000
    Please let me know if the above details are correct?
    Thank you.
    Jeff
    Edited by: zhay_jeff on May 18, 2010 5:43 AM

    Try two changes:
    DocEntry should be blank.  Linenum should be 0 to start.
    Thanks,
    Gordon

  • Material revaluation DTW

    I have  a question regarding Moving average price and DTW
    I use Materail revaluation.
    Header and detail. It works sometimes and sometimes not I get an error message. I am lost I do not understand why I get error message. I wonder it is about the line number...
    Please see the FILES I am using
    Header
    RecordKey     DocEntry     Comments     DocDate     JournalMemo     RevalType     TaxDate
    RecordKey     DocEntry     Comments     DocDate     JournalMemo     RevalType     TaxDate
    1     550000006     20080428     Import démarrage     P     20080428
    Details
    RecordKey     LineNum     DebitCredit     ItemCode     Price     Quantity     RevaluationDecrementAccount     RevaluationIncrementAccount     WarehouseCode
    RecordKey     LineNum     DebitCredit     ItemCode     Price     Quantity     RevaluationDecrementAccount     RevaluationIncrementAccount     WarehouseCode
    1     01          FCM000097     6385          60933314     60933314     CM01
    1     02          FCM000113     1942          60933244     60933244     CM01
    1     03          FCM000114     33622          60933244     60933244     CM01
    1     04          FCM000115     2282          60933244     60933244     CM01
    1     05          T00216041     2902          60933114     60933114     CM01
    1     06          PHQ000088     567          60931034     60931034     CM01
    1     07          PHQ000086     528          60931024     60931024     CM01
    1     08          PHQ000033     455          60931024     60931024     CM01
    1     09          PHQ000032     369          60931024     60931024     CM01
    1     10          PHQ000095     316          60931014     60931014     CM01
    1     11          PCM000030     7          60931014     60931014     CM01
    1     12          PHQ000056     353          60931014     60931014     CM01
    1     13          PHQ000085     429          60931024     60931024     CM01
    1     14          PHQ000080     791          60931034     60931034     CM01
    1     15          PHQ000079     1172          60931034     60931034     CM01
    1     16          PHQ000078     942          60931034     60931034     CM01
    1     17          PHQ000075     1346          60931034     60931034     CM01
    1     18          PHQ000062     405          60931014     60931014     CM01
    1     19          PHQ000034     422          60931024     60931024     CM01
    1     20          PHQ000057     389          60931014     60931014     CM01
    Edited by: Philip Eller on May 14, 2008 9:13 AM

    When you're importing new objects rather than updating, as you are here, you need to leave LineNum empty as B1 will assign them - although the column must be present.
    With Material Revaluations, I've found it works better if you import them as a series of single-row transactions. It's a bit untidy and unfortunate that you have to do this, but the error information is so poor - at least in patch 39 - that it's the only way to find out which lines are a problem, from the csv error file.
    When I got 'Overlapping IO' errors it was because I had a few non-inventory Items mixed in.
    Regards,
    Mike Burmeister

  • Material revalution for Multiple FIFO Items in 8.8

    Hi Experts,
    Good Morning.
    I have tried to create the Mateiral revaliation Document for FIFO Items in SAP business one 8.8 with the following example and it's working fine for one item row.
    If i used the more than one Item details, then i am gettting "Internal Error (-5002) arrise.
    I will appriciate if any one give me some solutions for this please.
    Dim invitemcode, invwhscode As String
            Dim m_MaterialRev As SAPbobsCOM.MaterialRevaluation
            Dim m_MaterialRevLines As SAPbobsCOM.MaterialRevaluation_lines
            Dim m_FIFOLayers As SAPbobsCOM.FIFOLayers
            Dim m_MRVFIFOService As SAPbobsCOM.MaterialRevaluationFIFOService
            Dim m_MRVFIFOParam As SAPbobsCOM.MaterialRevaluationFIFOParams
            Dim m_MRVFIFO As SAPbobsCOM.MaterialRevaluationFIFO
            invdocEntry = CInt(aDocEntry)
            oTemprs1 = oApplication.Company.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset)
            oTemprs1.DoQuery("select itemcode,whscode,quantity from WTR1 where  docentry ='" & invdocEntry & "' ")
            Try
                Dim j As Integer
                m_MaterialRev = oApplication.Company.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oMaterialRevaluation)
                m_MaterialRev.RevalType = "M"
                m_MaterialRev.DocDate = Now
                Dim intcount As Integer = 0
                Dim m_companyService As SAPbobsCOM.CompanyService
                ' Get Material Revaluation FIFO Service
                m_MaterialRevLines = m_MaterialRev.Lines
                For j = 0 To oTemprs1.RecordCount - 1
                    invitemcode = oTemprs1.Fields.Item(0).Value.ToString
                    invwhscode = oTemprs1.Fields.Item(1).Value.ToString
                    If j > 0 Then
                        m_MaterialRevLines.Add()
                        m_MaterialRevLines.SetCurrentLine(j)
                    End If
                    m_MaterialRevLines.ItemCode = invitemcode
                    m_MaterialRevLines.RevaluationDecrementAccount = "_SYS00000000094"
                    m_MaterialRevLines.RevaluationIncrementAccount = "_SYS00000000094"
                    m_MaterialRevLines.WarehouseCode = invwhscode
                    m_FIFOLayers = m_MaterialRevLines.FIFOLayers
                    ' Get Company Service
                    m_companyService = oApplication.Company.GetCompanyService()
                    m_MRVFIFOService = oApplication.Company.GetCompanyService.GetBusinessService(SAPbobsCOM.ServiceTypes.MaterialRevaluationFIFOService)
                    ' Create Material Revaluation FIFO Service parameters
                    m_MRVFIFOParam = m_MRVFIFOService.GetDataInterface(SAPbobsCOM.MaterialRevaluationFIFOServiceDataInterfaces.mrfifosMaterialRevaluationFIFOParams)
                    m_MRVFIFOParam.ItemCode = invitemcode         
          m_MRVFIFOParam.LocationCode = invwhscode
                    m_MRVFIFOParam.LocationType = "64"
                    m_MRVFIFOParam.ShowIssuedLayers = SAPbobsCOM.BoYesNoEnum.tNO
                    ' Process FIFO layers
                    m_MRVFIFO = m_MRVFIFOService.GetMaterialRevaluationFIFO(m_MRVFIFOParam)
                    Dim LayerNum As Integer = m_MRVFIFO.Layers.Count
                    intcount = 0
                    For i As Integer = 0 To LayerNum - 1
                        If m_MRVFIFO.Layers.Item(i).DocType = SAPbobsCOM.TransTypesEnum.ttTransferBetweenWarehouses And m_MRVFIFO.Layers.Item(i).OpenQty > 0 Then
                            If intcount > 0 Then
                                m_FIFOLayers.Add()
                            End If
                            m_FIFOLayers.SetCurrentLine(intcount)
                            m_FIFOLayers.LayerID = m_MRVFIFO.Layers.Item(i).LayerID
                            m_FIFOLayers.TransactionSequenceNum = m_MRVFIFO.Layers.Item(i).TransactionSequenceNum
                            m_FIFOLayers.LineTotal = 104
                            intcount = intcount + 1
                        End If
                    Next
                    oTemprs1.MoveNext()
                Next
                If m_MaterialRev.Add() <> 0 Then
                    MsgBox(oApplication.Company.GetLastErrorDescription)
                Else
                    Dim stcode As String
                    oApplication.Company.GetNewObjectCode(stcode)
                    MsgBox(stcode)
                End If
            Catch ex As Exception
                oApplication.Utilities.Message("itemcode" + ex.Message, SAPbouiCOM.BoStatusBarMessageType.smt_Error)
            End Try

    Version: 881 PL04
    I am gettting "
    [MRV2.LineNum][line: 4] ,
    '[Microsoft][SQL Server Native Client 10.0]
    Invalid character value for cast specification'
    " arrise.
    Please let me know, because I'm starting to think that this is a bug in the SDK?

  • Data object of Material Revaluation

    Dear All,
        I have tried to add Inventory Revaluation Through DIAPI.Since my Item Is FIFO based Item and i cant find any provision to select the Dataobject code which is normally available in the Rest of the object.
    could any body tell me is it possible to add FIFO Based Item In Material Revaluation(Inventory Revaluation) through DIAPI.i would really Appreciate, if any body can send me some more details regarding this. Thanks in Advance.
    Sap Business One Version : 2007B Patch 05
    With Regards,
    G.Shankar Ganesh.
    Edited by: shankar ganesh on Apr 27, 2009 8:49 AM

    hello nancy,
    their is no need of getting seperate reacording for both header and item. it will be enough if with only one in th lsmw in the first step u select the direct input method
    and at source structure level create two strucutres such that one can be for header and the other would be for item
    then in the same way while specifying file give first the header file and then the item file.
    at the same step check whether the convert data is getting the logical path and file name or not if u dont then double click at that possition and create it. then ur recording will be done perfectly.
    if u want the entire steps with screen shot i can send u

  • Material Revaluation

    Hi,
    Material revaluation arising from releasing standard cost estimate, whether should be considered as a revenue account or a balance sheet account. Your view are appreciated.

    Hi Swapvik,
    Check this link out
    http://www.sap-img.com/financial/inventory-accounting-entries.htm
    When the stocks are revalued, the following transactions takes place:
                     Stock A/c - Dr/Cr         (Balance sheet account)
                     Inventory Revaluation A/c - Cr / Dr (Profit and loss account)
    Regards
    SAP student

  • Posting of Material Revaluation documents

    Hey All
    We marked and released cost on Jan 1, 2011 and all the material revaluation docs i.e. docs for inventory revaluation were posted on Jan 1 of 2011 but it should have been posted dated as of 12/31/2010 )Dec 31 2010). Can you advise me if this is correct and if so how to correct this?

    Hi Ankur
    If you release cost on Jan 1st, then revaluation docs will be posted on the same date
    If you want it on 31/12, then you should have released the cost on 31/12...
    now, what you need to do is manually pass a JV and shift the impact to 31/12... i.e. Pass a JV (F-02) on 31/12 and reverse it on 01/01
    You should not touch the inventory accounts specified in OBYC for this manual posting... Use some other GL accounts (One B/s and another P&L account)
    Regards
    Ajay M

  • Material revaluation without valuation type

    Hi Experts,
    In material master, materials are extended to valuation types. and we have materials assigned to valuation types as well as not assigned (means valuation type is blank)
    Example as below...
    1000000000     2000     
    1000000000     2000     LSB
    1000000000     2000     N-REC
    1000000000     2000     NORMAL
    1000000000     2000     REC
    Now I want to do a revaluation (MR21) for the material without (1st line of my example) valuation type. How can I do it?
    Thanks

    if your material is split valuated, then  you can do price changes with MR21 only at valuation type level.
    the account data level without valuation type is the so-called header level which is the aggregation of all valuation type levels.
    you cannot change a price information at header level.
    The price at header level  will calculate based on price and quantity at the valuation type levels.
    if there is no stock in any of your valuation types, then you have no chance to manipulate the price at header level with MR21 or MM02.

  • MM-Material Revaluation

    Dear all,
    I have to do back dated revaluation of material.
    What will happen to the transactions which are partially complete?
    For Ex PO Is created GR pending etc,,,
    any thoughts on it?
    Regards
    Shrinivas

    HI
    Revaluation of the material  shall be active only for the existing stock and the difference will be posted as per your process transaction. Open POs there will not be any changes as the prices are user defined which are generally condition based or manually entered or a flow from info-record.
    Now after revaluation, if you make Goods receipt, the stock value will change differently based upon the price indicator which have been set for the material.
    Standard price- No change in material price but stock updation will be as per the standard price existing in material master, the difference posted to PRD G/L account.
    Moving Average Price- Change in material price  and as well as stock value at Moving average i.e Total value/ total stock.
    Regs
    Sam

  • Material Revaluation with negative stock

    Good Afternoon,
    Iu2019m working with negative stock, standard valuation method and item cost by warehouse in SAP B1 2007 SP01 PL08.
    I need to update the standard cost of all items and I'm trying to do that using the Stock Revaluation Transaction but I have the error message: u201CItem XXXXX has been selected with a negative stock quantity and cannot be revaluedu201D and u201CSelected items cannot have a negative quantityu201D. There is any option to work around these messages and update the standard cost?
    Thank you,
    Susana Cunha

    Hi Senthil,
    I don't know how could you so sure about Negative inventory management is a bug in SBO.  You know, there is not much you can do once the inventory become negative.  SAP allows it happen simply because some one may not or may not have a way to care about the accuracy of the inventory.   The best way is setting to not allow it.  The negative inventory is never logical for any applications to MANAGE them.
    Thanks,
    Gordon

  • Inventory Revaluation

    I need detail information about inventory revaluation, like Tutorial process , import data from DWT , and also how we can do it, and also solution for following matter :Now we have some problem in balance of inventory account, some of them has negative value (Credit) because we register opening voucher by zero for inventory accounts however they have Items and when they issued the item, the account became credit , and now we are going to fix them , so I think the best way is Inventory revaluation but I donu2019t know how can I do this process,
    Thanks

    hello Farhadn,
    The first place where to start looking for documentation is the SAP Business One Customer Portal:
    https://websmp105.sap-ag.de/smb/sbocustomer
    Here please
    - search for the Release 2004 and
    - then for How to guide 2004 A & 2004.2 B.
    Last, open the docuement:
    Continuous Stock System in Release 2004 A and search for material revaluation.
    For information regarding the DTW, I would suggest to use the SDK helpfile.
    Also, can you please explain the issue you have come across again. I am  sorry but I do not understand it. Are you trying to carry out a stock revaluation and it is not working?
    Thank you for your update.
    Marcella Rivi
    SAP Business One Forums Team

  • Mass inventory revaluation with standard cost

    My client uses standard cost and has one primary supplier. The supplier issues a new cost list the first of the year. The client receives a massive spreadsheet with 10000+ item changes.
    Is there a way to import a batch of changes to Inventory Valuation as one does with the StockTaking destination for opening balances?

    Cindy,
    For changing the cost of an item you would use the DTW templates inside oMaterialRevaluation folder in DTW.
    You have to remember couple of things before you do this. 
    If you already have inventory in stock for an item and their cost gets changed then, the Material Revaluation would post the difference to the Variance Account.
    Is this what you would do?    I am giving below the sample for the DTW.
    MaterialRevaluation (Header template)
    RecordKey....DocDate
    1..................20071210
    MaterialRevaluation_lines (Lines template)
    RecordKey....ItemCode.....Price......Quantity....WarehouseCode
    1......................PCB1........11.00............................01
    1......................PCB1........11.00............................02
    1......................ATG1........10.50............................01
    NOTE: If you have the same item in mutiple warehouses then you will have to add a line for each warehouse
    Please let me know
    Suda

  • You cannot add "WarehouseCode" value... dreaded DTW error65171

    Trying to import Inventory Revaluation for a large number of items and get the dreaded error message 65171.  The full message is You cannot add "WarehouseCode" value when SAP Business One manages item cost per companyApplication-defined or object defined error65171.
    OMRV
    DocEntry     DocDate     Reference2     Comments     JournalMemo     Series     TaxDate     RevalType     RevaluationIncomeAccount     RevaluationExpenseAccount
    DocEntry     DocDate     Ref2     Comments     JrnlMemo     Series     TaxDate     RevalType     RIncmAcct     RExpnAcct
    1     20110117          Revalue for Negative     Inventory Revaluation               P     _SYS00000000172     _SYS00000000172
    MRV1
    ParentKey     LineNum     ItemCode     Quantity     Price     WarehouseCode     DebitCredit     RevaluationDecrementAccount     RevaluationIncrementAccount
    DocNum     LineNum     ItemCode     Quantity     Price     WhsCode     RActPrice     RDcrmAcct     RIncmAcct
    1     0     DE-D1000-X          11.386               _SYS00000000172     _SYS00000000172
    1     1     DE-D1005-X          11.41               _SYS00000000172     _SYS00000000172
    There is no value under Quantoty, WhseCode or RActPrice
    Any thoughts???
    Edited by: Gary Feldman on Feb 8, 2011 9:13 PM
    Edited by: Gary Feldman on Feb 8, 2011 9:23 PM

    I did have the same problem of incompatibility between SDK 2007 and SDK 8.8 at Material Revaluation cost.
    I use only ID-API in my Addon.
    I tried to insert a material revaluation, debit/credit, in SBO, in one company isn't administrated cost by warehouse (the cost is equal everywhere), I filled field "warehouse" and SBO returned error message:
    "10001465 - You cannot add "WareHouseCode" value when SAP Business One manages item cost per company"
    Apparently, in SDK 8.8, what it was permitted in SDK 2007 was changed, ie, not permitting fill field u201Cwarehouseu201D in SDK 8.8.
    Then, now, in SDK 8.81, for my surprise, it is re-changed.
    I installed version SBO 8.81 in my PC, and to continue to use SDK8.8 at the Addon (ie, compile AddOn with DIAPI 8.8), and the prohibition to inform field u201Cwarehouseu201D disappeared.
    Apparently, in SDK 8.81 or the last version of DIAPI SDK 8.8, in a material revaluation using DI-API, if you inform warehouse, ok, SBO will insert in this warehouse, whether don't inform warehouse, SBO, assume the system default warehouse (01) ou default warehouse defined by user.

  • Error using DI API on Item Revaluation

    Dear All
    While on Revaluation of Item using DI API System gives error meaasage as "Internal Error 5002" ans displaya 'Material Revaluation failed'.
    Can any one help me to find the reason for this error and how to overcome the situation?
    With regards
    Aloke

    Dear Siva
    Following is the code I am using for revaluation of items which is giveing "Internal Error 5002':
    Dim lMaterialRevaluation As SAPbobsCOM.MaterialRevaluation
            lMaterialRevaluation = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oMaterialRevaluation)
            For li As Integer = 0 To ls_Lines.Length - 1
                If ls_Lines(li).Split(vbTab).Length <> 5 Then
                    My.Computer.FileSystem.WriteAllText(ls_OutFileName, lnl_SrlNo & "--> Can't Read in the data in Line " & li + 1, True)
                    My.Computer.FileSystem.WriteAllText(ls_OutFileName, vbNewLine, True)
                    lnl_SrlNo += 1
                    Continue For
                End If
                ls_ItemCode = ls_Lines(li).Split(vbTab)(0).Trim
                ls_WareHouseCode = ls_Lines(li).Split(vbTab)(1).Trim
                ld_Price = ls_Lines(li).Split(vbTab)(2).Trim
                li_IncAccount = ls_Lines(li).Split(vbTab)(3).Trim
                li_DecAccount = ls_Lines(li).Split(vbTab)(4).Trim
                lMaterialRevaluation.Lines.SetCurrentLine(li)
                lMaterialRevaluation.Lines.ItemCode = ls_ItemCode
                lMaterialRevaluation.Lines.WarehouseCode = ls_WareHouseCode
                lMaterialRevaluation.Lines.Price = ld_Price
                lMaterialRevaluation.Lines.RevaluationIncrementAccount = li_IncAccount
                lMaterialRevaluation.Lines.RevaluationDecrementAccount = li_DecAccount
                lMaterialRevaluation.Lines.Add()
            Next
            Dim li_Ret As Integer
            li_Ret = lMaterialRevaluation.Add
            If li_Ret = 0 Then
                MsgBox("Material Revaluation Completed")
                System.Runtime.InteropServices.Marshal.ReleaseComObject(lMaterialRevaluation)
            Else
                oCompany.GetLastError(lErrCode, sErrMsg)
                MsgBox(sErrMsg & ", Material Revaluation failed")
            End If
    Can you or any one else suggest where the error lies.
    Thanks & with regards
    Aloke
    Edited by: ALOKE BANDYOPADHYAY on Jul 5, 2011 3:01 PM

  • FIFO Stock Revaluation in 2007A

    Can you change all stock layers for a FIFO part to have the same price in a single step?
    Stock Revaluation allows you to change the price for each FIFO layer individually, but is there any way to do all at once?
    I am not aware of any way, but I would be grateful if anyone could confirm this one way or the other.
    2007A SP00 PL45
    Thanks.
    Douglas

    Hi,
    There is no automatic functionality in the system for a material revaluation based on FIFO. This functionality is only available in C-Cluster versions.
    If a user wants to change the values, it is possible to reverse the open layers and to post it with the new value again. A reverse transaction is, for instance, after creating an invoice to draw this document to the credit memo transaction (based on the original invoice). After adding the credit memo the complete process is balanced to zero.
    This situation will be solved/corrected in the next versions. We plan to enhance/include the material revaluation functionality valid for FIFO for all localizations.
    Also refer these notes:794693,917624

Maybe you are looking for