Oracle Assets Additions API.docx

上传人:b****6 文档编号:8261075 上传时间:2023-01-30 格式:DOCX 页数:25 大小:23.88KB
下载 相关 举报
Oracle Assets Additions API.docx_第1页
第1页 / 共25页
Oracle Assets Additions API.docx_第2页
第2页 / 共25页
Oracle Assets Additions API.docx_第3页
第3页 / 共25页
Oracle Assets Additions API.docx_第4页
第4页 / 共25页
Oracle Assets Additions API.docx_第5页
第5页 / 共25页
点击查看更多>>
下载资源
资源描述

Oracle Assets Additions API.docx

《Oracle Assets Additions API.docx》由会员分享,可在线阅读,更多相关《Oracle Assets Additions API.docx(25页珍藏版)》请在冰豆网上搜索。

Oracle Assets Additions API.docx

OracleAssetsAdditionsAPI

OracleAssetsAdditionsAPI

Subject:

OracleAssetsAdditionsAPIDocumentationSupplement,Jan2003

 

DocID:

206473.1

Type:

REFERENCE

 

ModifiedDate:

21-APR-2005

Status:

PUBLISHED

YoucanusetheAdditionsAPItoaddassetsdirectlyviaPL/SQLratherthanthroughthenormalOracleAssetsinterfaces.TheAdditionsAPIusestheFA_ADDITION_PUB.DO_ADDITIONprocedure.YoucanusethisAPIifyouhaveacustominterfacethatmakesitdifficulttousewiththeexistingassetadditionsinterfacesinOracleAssets.

OracleAssetsalsoallowsyoutoaddassetsusinganyofthefollowingmethods:

o    QuickAdditions:

YouusetheQuickAdditionsprocesstoquicklyenterordinaryassetswhenyoumustenterthemmanually.YoucanenterminimalinformationintheQuickAdditionswindow,andtheremainingassetinformationdefaultsfromtheassetcategory,book,andthedateplacedinservice.

o    DetailAdditions:

YouusetheDetailAdditionsprocesstomanuallyaddcomplexassetswhichtheQuickAdditionsprocessdoesnothandle,forexample,assetsthathaveasalvagevalueorassetswithmorethanoneassignments.

o    MassAdditions:

YouusetheMassAdditionsprocesstoaddassetsautomaticallyfromanexternalsource.CreateassetsfromoneormoreinvoicedistributionlinesinOraclePayables,CIPassetlinesinOracleProjects,assetinformationfromanotherassetssystem,orinformationfromanyotherfeedersystemusingtheinterface.

CIPAssets

IfyouhavecheckedtheAllowCIPAssetscheckboxontheBookControlswindowofataxbook,whenyouaddCIPassetsusingtheAdditionsAPI,theAPIautomaticallyaddsthoseCIPassetstothattaxbookatthesametimethattheyareaddedtothecorporatebook.

MRC

IfyouhavesetupMultipleReportingCurrencies(MRC),whenyouaddassetsusingtheAdditionsAPI,theAPIautomaticallycopiestheassetstothereportingbooks.

PassingNullValues

YoumustpassspecialvaluesinordertonullthevaluesofBONUS_RULE,CEILING_NAME,orGROUP_ASSET_ID.IfyoupassaNULLvaluedirectlyforthesevalues,theAPIwillautomaticallydefaulttothevaluesetupforthecategory.ThetablebelowshowsthevaluethatmustbepassedforthefieldvaluetobeNULL.

Field

ValuetoPassforNULLField

BONUS_RULE

FND_API.G_MISS_CHAR

CEILING_NAME

FND_API.G_MISS_CHAR

GROUP_ASSET_ID

FND_API.G_MISS_NUM

 

SeeAlso

AdditionsAPIDescription

SampleScript:

UsingtheAdditionsAPIviaInvoices

SampleScript:

UsingtheAdditionsAPIwithNoInvoices

AdditionsAPIDescription

TheAdditionsAPIprocedureiscalled:

FA_ADDITION_PUB.DO_ADDITION().

Thefollowingtableprovidesthearguments,types,value,anddescriptionsoftheelementsoftheFA_ADDITION_PUB.DO_ADDITIONprocedure.

EachargumenthasaprefixofP,X,orPX.Theseprefixesmeanthefollowing:

o    P-indicatesanInargument

o    X-indicatesanOutargument

o    PX-indicatesanargumentthatisbothInandOut

Argument

Type

Value

Description

P_API_VERSION

NUMBER

Internaluseonly

VersionoftheAPIinuse.

P_INIT_MSG_LIST

VARCHAR2

(1)

FND_API.G_TRUE-Initializethemessagestack

FND_API.G_FALSE-Donotinitializethemessagestack(Default)

Determineswhetherthemessagesstackshouldbeinitializedandcleared.

P_COMMIT

VARCHAR2

(1)

FND_API.G_TRUE-Commitautomatically

FND_API.G_FALSE-Donotcommitautomatically(Default)

Flagonwhethertocommitassetafterprocessed.

P_VALIDATION_LEVEL

NUMBER

FND_API.G_VALID_

LEVEL_NONE-Lowestlevelofvalidationpossibleforatransaction

FND_API.G_VALID_

LEVEL_FULL-Highestlevelofvalidationpossibleforatransaction(Default)

CheckonwhethertheAPIshoulddothevalidationfortheasset.

X_RETURN_STATUS

VARCHAR2

(1)

FND_API.G_RET_STS_SUCCESS-Additionwasasuccess

FND_API.G_RET_STS_ERROR-AdditionfailedFND_API.G_RET_STS_UNEXP_ERROR-Unexpectederror

DetermineswhetherornottheAPIcompletedsuccessfully.

X_MSG_COUNT

NUMBER

 

Numberofmessagesonthemessagestack.

X_MSG_DATA

VARCHAR2(1024)

 

Messagestack.

P_CALLING_FN

VARCHAR2(30)

 

FunctioncallingtheAPI

PX_TRANS_REC

FA_API_TYPES.

TRANS_REC_TYPE

 

Describesthetransactiontakingplace.

PX_DIST_TRANS_REC

FA_API_TYPES.

DIST_TRANS_REC_TYPE

 

Describesthedistributionofthetransaction.

PX_ASSET_HDR_REC

FA_API_TYPES.

ASSET_HDR_REC_TYPE

 

Uniqueidentifiersoftheassetbeingadded.

PX_ASSET_DESC_REC

FA_API_TYPES.

ASSET_DESC_REC_TYPE

 

Descriptionoftheasset.

PX_ASSET_TYPE_REC

FA_API_TYPES.

ASSET_TYPE_REC_TYPE

 

Assettypeoftheasset.

PX_ASSET_CAT_REC

FA_API_TYPES.

ASSET_CAT_REC_TYPE

 

Categoryinformationoftheasset.

PX_ASSET_HIERARCHY_REC

FA_API_TYPES.

ASSET_HIERARCHY_REC_TYPE

 

Hierarchyinformationoftheasset.

PX_ASSET_FIN_REC

FA_API_TYPES.

ASSET_FIN_REC_TYPE

 

Financialinformationoftheasset.

PX_ASSET_DEPRN_REC

FA_API_TYPES.

ASSET_DEPRN_

REC_TYPE

 

Depreciationinformationoftheasset.

PX_ASSET_DIST_TBL

FA_API_TYPES.

ASSET_DIST_TBL_

TYPE

 

Distributioninformationoftheasset.

PX_INV_TBL

FA_API_TYPES.

INV_TBL_TYPE

 

Invoicesfortheasset.

PX_INV_RATE_TBL

FA_API_TYPES.

INV_RATE_TBL_

TYPE

 

TableofratesfortheinvoicesfortheassetforMRC.

Table1-1.(Page2of2)

 

TRANS_REC_TYPETransactionStructure

TheTRANS_REC_TYPEtransactionstructurecontainsinformationaboutthetransaction,suchasthetransactionheaderIDandthetransactiontypecode.Thefollowingtableshowstypeandvalueinformationforeachargument.

Argument

Required/Optional

Type

Value

TRANSACTION_HEADER_

ID

Internaluseonly

NUMBER(15)

OptionalOUTparameter

TRANSACTION_DATE_

ENTERED

Optional

DATE

Mustbethesameasthedateplacedinservice,whichitdefaultsto.

TRANSACTION_NAME

Optional

VARCHAR2(20)

Descriptionofthetransaction.

MASS_REFERENCE_ID

Optional

NUMBER(15)

Identifiesconcurrentrequestthatinvokedthemasstransaction.

TRANSACTION_SUBTYPE

Optional

 

VARCHAR2(9)

AMORTIZED-AmortizeNBVaddition

NULL-Regularaddition

AMORTIZATION_START_

DATE

Optional

DATE

Amortizationstartdate

CALLING_INTERFACE

Optional

VARCHAR2(30)

DefaultstoCUSTOM

DESC_FLEX

Optional

DESC_FLEX_

REC

Descriptiveflexfieldsegment

WHO_INFO

Required

STANDARD_

WHO_REC

StandardWhocolumns

 

 

ASSET_HDR_REC_TYPEAssetStructure

TheASSET_HDR_REC_TYPEassetstructurecontainsuniqueidentificationinformationforagivenasset,suchastheassetIDandbooktypecode.Thefollowingtableshowstypeandvalueinformationforeachargument.

Argument

Required/Optional

Type

Value

ASSET_ID

InternaluseonlyforadditiontoCorporatebook.RequiredforadditiontotaxbookforassetalreadyexistinginCorporatebook.

Forataxaddition,onlytheTRANS_REC_TYPEandtheASSET_HDR_REC_TYPEattributesareneeded.ThevaluesintheotherstructuressuchasASSET_DESC_REC_TYPE,ASSET_FIN_REC_TYPE,ASSET_TYPE_REC_TYPE,ASSET_CAT_REC_TYPE,etc,willdefaultformthevaluesoftheCorporatebook,

NUMBER(15)

OptionalOUTparameter

BOOK_TYPE_CODE

Required

VARCHAR2(15)

Bookname

 

 

ASSET_DESC_REC_TYPEAssetStructure

TheASSET_DESC_REC_TYPEassetstructurecontainsdescriptiveinformationabouttheasset,suchasthetagnumber,serialnumber,andmanufacturername.Thefollowingtableshowstypeandvalueinformationforeachargument.

Argument

Required/Optional

Type

Value

ASSET_NUMBER

Optional

VARCHAR2(15)

Defaultstoasset_id.OptionalOUTparameter.

DESCRIPTION

Required

VARCHAR2(80)

Descriptionoftheasset.

TAG_NUMBER

Optional

VARCHAR2(15)

Tagnumberoftheasset.

SERIAL_NUMBER

Optional

VARCHAR2(35)

Serialnumberoftheasset.

ASSET_KEY_CCID

Optional

NUMBER(15)

Identifiesanassetkey 

flexfieldcombinationfortheasset.

PARENT_ASSET_ID

Optional

NUMBER(15)

Identifiesaparentassetforsubcomponents.

STATUS

Optional

VARCHAR2(150)

Describesthestatusoftheasset.(CRLAssetsonly)

MANUFACTURER_NAME

Optional

VARCHAR2(30)

Nameofthemanufacturer.

MODEL_NUMBER

Optional

VARCHAR2(40)

Modelnumberoftheasset.

WARRANTY_ID

Optional

NUMBER(15)

Warrantyidentificationnumber.

LEASE_ID

Optional

NUMBER(15)

Leaseidentificationnumber.

IN_USE_FLAG

Optional

VARCHAR2(3)

Indicateswhethertheassetisinuse. 

YES-Inuse(default)

NO-Notinuse

INVENTORIAL

Optional

VARCHAR2(3)

YES-Includeinphysicalinventory

NO-Donotincludeinphysicalinventory

Defaultstovalueincategory

PROPERTY_TYPE_CODE

Optional

VARCHAR2(10)

Indicatesthepropertytype.Defaultstovalueincategory

PROPERTY_1245_1250_

CODE

Optional

VARCHAR2(4)

1245-Personal

1250-Real

Defaultstovalueincategory

OWNED_LEASED

Optional

VARCHAR2(15)

OWNED-Owned(Default)

LEASED-Leased

Defaultstovalueincategory

NEW_USED

Optional

VARCHAR2(4)

NEW-New(Default)

USED-Used

CURRENT_UNITS

Required

NUMBER

Currentnumberofunitsfortheasset.

LEASE_DESC_FLEX

Optional

DESC_FLEX_

REC_TYPE

Leasedescriptiveflexfieldsegments.

GLOBAL_DESC_FLEX

Optional

DESC_FLEX_

REC_TYPE

Globaldescriptiveflexfieldsegments.

Table1-2.(Page2of2)

 

ASSET_TYPE_REC_TYPEAssetStructure

TheASSET_TYPE_REC_TYPEassetstructurecontainsinformationabouttheassettype:

CIP,capitalized,orexpensed.Thefollowingtableshowstypeandvalueinformationforeachargument.

Argument

Required/Optional

Type

Value

ASSET_TYPE

Required

VARCHAR2(15)

CAPITALIZED-Capitalizedasset(default)

CIP-CIPasset

EXPENSED-Expensedasset

 

 

ASSET_CAT_REC_TYPEAssetStructure

TheASSET_CAT_REC_TYPEassetstructurecontainsinformationabouttheassetcategory,suchasthecategoryIDandthecategorydescriptiveflexfield.Thefollowingtableshowstypeandvalue

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 考试认证 > 交规考试

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1