[原创]周末赶工SAP DI实现库存重估

......................................................
MaterialRevaluation Object

Description

MaterialRevaluation is a business object that enables you to update the items' price (average price or standard price only), revaluate the stock, and create journal entries accordingly.

This object applies only to companies that manage their stock using Continuous Stock system.

This object enables you to:

  • Add a material revaluation.
  • Retrieve a material revaluation by its key.
  • Update a material revaluation.
  • Save the object in XML format.

Source table: OMRV.

Object Model



Public Methods

Public Method Add Adds a record to the object table in SAP Business One company database.
Public Method Cancel Not supported.
Public Method Close Not supported.
Public Method GetAsXML Returns the object from XML data, which is stored as string in a buffer.
Public Method GetByKey Retrieves and sets the values of the object's properties by the object's absolute key from the Company database.
Public Method Remove Not supported.
Public Method SaveToFile Save the object to a file as XML data.
Public Method SaveXML Save object as XML document
Public Method Update Updates the object data in the company database.

Public Properties

Public Property Browser Returns the DataBrowser object.
Public Property Comments Sets or returns comments for the document.

(field name: Comments).

Length: 254 characters.

Public Property CreationDate Returns the creation date of the document.

(field name: CreateDate).

Public Property DataSource Not used.

(field name: DataSource).

Public Property DocDate Sets or returns the document posting date.

(field name: DocDate).

Public Property DocEntry Returns the document entry key that uniquely identifies the document.

(field name: DocEntry).

Public Property DocNum Sets or returns the number of the document.

(field name: DocNum).

Public Property DocTime Sets or returns the document creation time.

(field name: DocTime).

Public Property JournalMemo Sets or returns the journal entry remarks that is copied later to the accounting document.

(field name: JrnlMemo).

Length: 50 characters.

Public Property Lines Returns the MaterialRevaluation_lines child object.
Public Property Reference1 P>Sets or returns the first reference code of the document. (field name: Ref1).

Length: 11 characters.

Public Property Reference2 Sets or returns the second reference code of the document.

(field name: Ref2).

Length: 11 characters.

Public Property RevalType Sets or returns the revaluation type: price change or material debit/credit.

(field name: RevalType).

Length: 1 character.

Public Property RevaluationExpenseAccount Sets or returns the revaluation expense account code.

(field name: RExpnAcct).

Length: 15 characters.

Public Property RevaluationIncomeAccount Sets or returns the revaluation income account code.

(field name: RIncmAcct).

Length: 15 characters.

Public Property Series Sets or returns the auto-number series that generated the document number.

(field name: Series).

This is a foreign key to the Series object.

Public Property TaxDate Sets or returns the date for the tax calculation or payment.

(field name: TaxDate).

Public Property TransNum Returns the transaction number that SAP Business One creates for the document.

(field name: TransId).

This is a foreign key to the JournalEntries object.

Public Property UpdateDate Returns the date when the material revaluation was last updated.

(field name: UpdateDate).

Public Property UserFields Returns the UserFields object.
Public Property UserSignature Returns the ID of the user who created the document.

(field name: UserSign).

Remarks

Country-specific object for Poland.

posted @ 2008-05-04 09:38  E.L.---黑者如斯夫,不舍昼夜......  阅读(820)  评论(1编辑  收藏  举报