SAP Business One Object Type

Modified on Tue, 17 Jun at 7:22 PM

What is ObjectType?


In SAP Business One, every business object—such as a Sales Order, Business Partner, or Inventory Transfer—has a unique ObjectType, represented as a string (not integer), even if it looks like a number (e.g., '17' for Sales Order).

It is essentially an internal ID used to:

  • Distinguish between different types of documents or records

  • Trigger validations in stored procedures (like SBO_SP_TransactionNotification)

  • Retrieve metadata (e.g., table structure or permissions)

  • Work with the DI API or Service Layer to create, update, or delete objects


Common Use Cases for ObjectType

Use CaseHow ObjectType Is Used
Stored ProceduresObjectType determines which logic to apply. For example, only run a validation if @object_type = '13' (A/R Invoice).
DI API / Service LayerYou pass the ObjectType to instantiate the correct business object (e.g., oBusinessPartners, oOrders).
Formatted SearchesUsed in user-defined values to control behavior based on the current document type.
Approval ProceduresTied to specific document types using ObjectType.
Queries & ReportsFilters or joins may rely on ObjectType to distinguish types of transactions, especially when working with OACT (chart of accounts), OJDT (journal entries), or user tables.


Example: Transaction Notification Procedure


IF @object_type = '17' AND @transaction_type = 'A' -- Sales Order Add
BEGIN IF EXISTS ( SELECT 1 FROM ORDR WHERE DocEntry = @list_of_cols_val_tab_del AND DocTotal > 100000 ) BEGIN SET @error = 1 SET @error_message = 'Sales Orders over 100,000 require management approval.' END
END


Note: Object types for UDFs, UDOs, and service documents may be more complex or require metadata lookup.


Where to Find the ObjectType List

You can find the full list of object types:

  • In SAP B1 SDK: Under the SAPbobsCOM.BoObjectTypes enumeration

  • In the SBO_SP_TransactionNotification template


Best Practices

  • Always treat ObjectType as a string, even if it looks numeric.

  • When writing queries or procedures, comment the document name next to the ObjectType to improve readability.

  • Be aware that some modules (like Service Layer or Approval Templates) may use the object name or table name instead.

Advanced Notes

  • ObjectType is especially helpful in multi-document procedures, like transaction notifications, where logic varies depending on the object.

  • In SAP HANA, you’ll still use ObjectType in string format, and it behaves similarly to MS SQL in this regard.

  • System Objects vs. User Defined Objects (UDO): UDOs also have their own ObjectType, which can be found in OUSR, OUSG, or OUSR linked tables depending on the configuration.


Here is a list of all the SAP Business One Object Type by document and the Primary Key for each object: 

TableTable description German designationPrimary KeyObject Type
OACTG/L AccountsGeneral ledger accountsAcctCode1
OCRDBusiness PartnerBusiness partnercard code2
ODSCBank codesrouting numbersAbsEntry3
OITMItem Master DataarticleItem Code4
OVTGTax definitiontax definitioncode5
OPLNPrice Listsprice listsListNum6
OSPPSpecial Pricesspecial pricesCardCode, ItemCode7
OITGItem PropertiesItem PropertiesItemsTypCod8
ORTMRate Differencesprice differencesLineNum, IsSysCurr9
OCRGCard Groupscards groupsgroup code10
OCPRContact Personscontact personsCntctCode11
OUSRUsersuserUSERID12
OINVA/R InvoiceA/R InvoiceDocEntry13
ORINA/R Credit Memoexit creditDocEntry14
ODLNDeliverydeliveryDocEntry15
ORDERReturnsReturnsDocEntry16
ORDRSales Ordercustomer orderDocEntry17
OPCHA/P Invoiceincoming invoiceDocEntry18
ORPCA/P Credit Memoincoming creditDocEntry19
OPDNGoods Receipt POGoods Receipt PODocEntry20
ORPDGoods ReturnReturn of goodsDocEntry21
OPORPurchase Orderpurchase orderDocEntry22
OQUTSales Quotationsales offerDocEntry23
ORCTincoming paymentsIncoming paymentDocEntry24
ODPSdepositdepositDepositId25
OMTHReconciliation Historyvoting historyMthAcctCod, IsInternal, MatchNum26
OHHCheck RegisterCheckbookCheckKey27
OBTFJournal Voucher EntryEvidence presentedBatchNum, TransId28
OBTDJournal Vouchers ListList of parked documentsBatchNum29
OJDTJournal Entryjournal entryTransId30
OITWItems - WarehouseItem - StockItemCode, WhsCode31
OADPPrint Preferencesprint settingsPrintId32
OCLGactivitiesActivitiesclgcode33
ORCRrecurring postingsRecurring BookingsRcurCode, Instance34
ONNMDocument Numberingdocument numberingObjectCode, DocSubType35
OCRCCredit Cardscredit cardscredit card36
OCRNCurrency CodesCurrency codesCurrCode37
OIDXCPI codesCPI codesIDEX code38
OADMadministrationadministrationcode39
OCTGPayment Termsterms of paymentGroupNum40
OPRFPreferencesPreferencesFormNumber, UserSign41
OBNKExternal Bank Statement ReceivedExternal account statement receivedAcctCode, Sequence42
OMRCmanufacturersManufacturerFirmCode43
OCQGCard Propertiescard propertiesgroup code44
OTRCJournal Entry CodeJournal Entry CodesTrnsCode45
OVPMoutgoing paymentsOutgoing PaymentsDocEntry46
OSRLSerial NumbersSerial NumbersItemCode, SerialNum47
OALCLoading expensesCosts for loadingAlcCode48
OSHPDelivery Typestypes of deliveryTrnspCode49
OLGTlength unitsUnits of lengthunit code50
OWGTWeight Unitsweight unitsunit code51
OITBItem GroupsItem GroupsItemsGrpCod52
OSLPSalesEmployeesales staffSlpCode53
OFLTReport - Selection CriteriaReport - Selection CriteriaFormNum, UserSign, FilterName54
OTRTPost templatesbooking templatesTrtCode55
OARGCustoms Groupscustoms groupsCstGrpCode56
OCHOChecks for Paymentchecks for paymentCheckKey57
OINMWhse Journalwhse journalTransNum, Instance58
OIGNGoods ReceiptGoods ReceiptDocEntry59
OIGEGoods IssueGoods issueDocEntry60
OPRCcost centersCost centrePrcCode61
OOCRcost ratecost rateOcrCode62
OPRJProject Codeproject codesPrjCode63
OWHSwarehouseswarehouseWhsCode64
OCOGCommission Groupscommission groupsgroup code65
OITTProduct Treeproduct treecode66
OWTRinventory transferStock transferDocEntry67
OWKOProductionInstructionsproduction instructionsOrderNum68
OIPFLanded costsLanded CostDocEntry69
OCRPPayment MethodsPayment MethodsCrTypeCode70
OCDTCredit card paymentsPayment with credit cardcode71
OCRHCredit card managementManagement of credit cardsAbsId, Instance72
OSCNCustomer/Vendor Cat. No.Customer/Supplier Cat. No.ItemCode, CardCode, Substitutes73
OCRVCredit PaymentsCredit PaymentsAbsId, PayId, Instance74
ORTTCPI and FC RatesCPI and FC ratesRateDate, Currency75
ODPTPost dated depositPost-dated depositDepositId76
OBGTbudgethouseholdAbsId77
OBGDBudget cost assessment. MthdBudget Estimate. MthdBgdCode78
ORCNretail chainsretail chainschain code79
OALTAlert TemplateAlerts templatecode80
OALRAlertsTenderscode81
OAIBReceived AlertsReceived AlertsAlertCode, UserSign82
OAOBmessage sentsent messageAlertCode, UserSign83
OCLSActivity SubjectsActivity topicscode84
OSPGSpecial prices for groupsSpecial prices for groupsCardCode, ObjType, ObjKey85
SPRGApplication StartRegistration startLineNum, UserCode86
OMLSdistributionlistdistribution listcode87
OENTShipping Typesshipping methodsDocEntry88
OSALoutgoingoutgoingDocEntry89
OTRAtransitTransitionDocEntry90
OBGSbudget scenariohousehold scenarioAbsId91
OIRTInterest Pricesinterest ratesnumerator92
OUDGuser defaultsUser Preferencescode93
OSRISerial numbers for itemsSerial numbers for itemsItemCode, SysSerial94
OFRTFinancial report templatesTemplates for financial reportsAbsId95
OFRCFinancial Report CategoriesFinancial Report CategoriesTemplateId, CatId96
OOPRopportunityOpportunityOpprId97
OOINinterestsInterest chargesnumber98
OOIRinterest levelinterest levelnumber99
OOSRinformation sourcesource of informationnumber100
OOSTOpportunity StageOpportunity levelnumber101
OOFRDefect causedefect causenumber102
OCLTActivity TypesActivity typescode103
OCLOMeeting locationMeeting placecode104
OISRservice callsservice callsRequestNum105
OIBTBatch No. for itemBatch no. for articleItemCode, BatchNum, WhsCode106
OALIAlternate items 2Alternative items 2OrigItem, AltItem107
OPRTpartnerspartnerPrtId108
OCMTcompetitorscompetitorCompetId109
OUVVUser ValidationUser ValidationsIndexID, LineNum110
OFPRposting periodbooking periodAbsEntry111
ODRFdraftsDraftsDocEntry112
OSRDBatches and Serial NumbersLots and serial numbersItemCode, DocType, DocEntry, DocLineNum113
OUDCUser Display Cat.User display cat.CodeID114
OPVLLender-PelecardLender - Pelecardcode115
ODDTWithholding Tax Deduction HierarchyWithholding tax hierarchynumerator116
ODDGWithholding Tax Deduction GroupsWithholding tax deduction groupsnumerator117
OUBRbranchesbranchescode118
OUDPdepartmentsdepartmentscode119
OWSTconfirmation levelConfirmation levelWstCode120
OWTMApproval Templatesapproval templatesWtmCode121
OWDDdocs for confirmationSupporting documents for the confirmationWddCode122
OCHDChecks for Payment DraftsCheques for payment draftsCheckKey123
CINFCompany InfoInformation about the companyversion124
OEXDFreight setupcargo settingExpnsCode125
OSTASales Tax AuthoritiesVAT authoritiescode, type126
OSTSales Tax Authorities TypeType of VAT authorityAbsId127
OSTCSales Tax CodesSales Tax Codescode128
OCRYcountriesCountriescode129
OCSTStatesstatescountry code130
OADFAddress Formataddress formatscode131
OCINA/R Correction InvoiceOutput Correction InvoiceDocEntry132
OCDCcash discountdiscountcode133
OQCNQuery CategoriesQuery of categoriesCategoryId134
OINDtriangular dealTriangular transactioncode135
ODMWdata migrationdata migrationcode136
OCSTNWorkstation IDWorkstation IDcode137
OIDCindicatorsMarkcode138
OGSPGoods shipmentshipment of goodscode139
OPDFpayment draftdraft paymentDocEntry140
OQWZQuery WizardQuery Wizardcode141
OASGAccount segmentationAccount SegmentationAbsId142
OSCAccount Segmentation CategoriesAccount segmentation categoriesSegmentId, Code143
OLCTLocationLocationcode144
OTNN1099 forms1099 formsFormCode145
OCYCcyclescyclecode146
OPYMPayment Methods for Payment WizardPayment methods for the payment assistantPayMethCod147
OTOB1099 opening balance1099 Opening balanceVendCode, Form1099, Box1099148
ORITDunning Interest Ratereminder interest ratecode149
OBPPBP PrioritiesBP prioritiespriority code150
ODUNDunning Lettersdunning lettersLineNum151
CUFDUser Fields - DescriptionUser Fields - DescriptionTableID, FieldID152
OUTBuser tablesuser tablesTableName153
OCUMIMy Menu ItemsMy menu itemsUserSign , Id_154
OPYDpayment runpayment runcode155
OPKLPicklistpick listAbsEntry156
OPWZPayment Wizardpayment assistantIDNumber157
OPEXPayment Results TableTable of payment resultsAbsEntry158
OPYBPayment blockpayment blockAbsEntry159
OUQRqueriesInterrogateInternalKey, Qcategory160
OCBICentral Bank Ind.Central Bank Ind.indicators161
OMRVInventory evaluationInventory revaluationDocEntry162
OCPIA/P Correction InvoiceReceipt correction invoiceDocEntry163
OCPVA/P Correction Invoice ReversalGoods receipt correction invoice cancellationDocEntry164
OCSIA/R Correction InvoiceOutput correction invoiceDocEntry165
OCSVA/R Correction Invoice ReversalOutgoing correction invoice cancellationDocEntry166
OSCSService call statusesService Call StatusstatusID167
OSCTService call typesService Call TypescallTypeID168
OSCPService call problem typesService Call Problem TypesprblmTypID169
OCTTContract templatecontract templateTmpltName170
OHEMEmployeesemployeesempID171
OHTYEmployee Typesemployee typestypeID172
OHSTEmployee StatusStatus of the employeestatusID173
OHTRtermination reasonreason for terminationreasonID174
OHEDEducation Typestraining typesedType175
OINSCustomer equipment cardCustomer device cardinsID176
OAGPagent nameRepresentative's nameagent code177
OWHTWith-holding taxwithholding taxWT code178
ORFLAlready Displayed 347, 349 and WTax ReportsAlready viewed reports 347, 349 and WtaxDocEntry, ReportType, DocType, LineNum, TaxCode, OrdinalNum179
OVTRtax reporttax reportAbsEntry180
OBOEBill of Exchange for PaymentChange to paymentBoeKey181
OBOTBill Of Exchange Transactionbill of exchange transactionAbsEntry182
OFRMfile formatfile formatAbsEntry183
OPIDPeriod indicatorPeriod indicatorindicators184
ODORDoubtful DebtsDoubtful DebtsAbsEntry185
OHLDHoliday tableholiday tableHldCode186
OCRBBP - bank accountBP - bank accountCountry, BankCode, Account, CardCode187
OSSTService call solution statusesStatus of the service call solutionsNumber188
OSLTService call solutionsService call solutionsSltCode189
OCTRservice contractsService contractsContractID190
OSCLservice callsservice callscallID191
OSCOService call originsService call originsoriginID192
OUKDUser Key DescriptionUser key DescriptionTableName, KeyId193
OQUEqueuequeuequeueID194
OIWZInflation WizardAssistant for inflationAbsEntry195
ODUTDunning termsadmonishing termsTerm Code196
ODWZDunningWizardreminder assistantWizardId197
OFCTsales forecastsales forecastAbsID198
OMSNMRP scenariosMRP scenariosAbsEntry199
OTERterritoriesterritoriesterritoryID200
OONDindustriesIndustry sectorsIndCode201
OWORProduction orderproduction orderDocEntry202
ODPIA/R down paymentsales depositDocEntry203
ODPOA/P down paymentpurchase depositDocEntry204
OPKGpackage typespackage typesPkgCode205
OUDOUser-Defined ObjectCustom objectcode206
ODOWData Ownership - ObjectsData Ownership - ObjectsObject, SubObject207
ODOXData Ownership - ExceptionsData Ownership - ExceptionsQueryId, Object, SubObject208
OHPSEmployee positionemployee positionPosID210
OHTMemployee teamsemployee teamsteamID211
OORLrelationshipsRelationshipsOrlCode212
ORCMRecommendation DataReferral DatesDocEntry213
OUPTUser Authorization TreeUser Authorization TreeAbsId214
OPDTPredefined textpredefined textAbsEntry215
OBOXbox definitionbox definitionBoxCode, ReportType, BosCode216
OCLAactivity statusStatus of the activitystatusID217
OCHF312312ObjName218
OCSHSUser Defined ValuesCustom ValuesIndexID219
OACPPeriods CategoryCategory PeriodsAbsEntry220
OATCAttachmentsAttachmentsAbsEntry221
OGFLGrid filtersgrid filterFormID, GridID, UserCode222
OLNGUser Language TableUser Language Tablecode223
OMLTMulti-language translationMultilingual translationTranEntry224
SDISDynamic Interface (Strings)Dynamic interface (strings)FormId, ItemId, ColumnId, Language229
OSVRSaved ReconciliationsSaved MatchesacctCode230
DSC1House bank accountshouse bank accountsAbsEntry231
RDOCdocumentsreceiptDocCode232
ODGPDocument generation parameter setsDocument creation Parameter setsAbsEntry233
OMHD#740#740alert code234
OACGAccountCategoryaccount categoryAbsId238
OBCABank charges allocation codesBank charge allocation codescode239
OCFTCash Flow Transactions - RowsCash Flow Transactions - RowsCFTId241
OCFWCash flow line itemcash flow positionCFWId242
OBPLBusiness PlacePlace of businessBPLId247
OJPELocal Era CalendarLocal epoch calendarcode250
ODIMCost Accounting Dimensiondimension of cost accountingDimCode251
OSCDService code tableService code tableAbsEntry254
OSGPService Group for BrazilPerformance group for BrazilAbsEntry255
OMGPMaterial Groupmaterial groupAbsEntry256
ONCMNCM codeNCM codeAbsEntry257
OCFPCFOP for Nota FiscalCFOP for Nota FiscalID258
OTSCCST Code for Nota FiscalCST code for Nota FiscalID259
OUSGUsage of Nota FiscalUse of the Nota FiscalID260
OCDPClosing Date ProcedureClosing Date ProcedureclsDateNum261
ONFNNota Fiscal NumberingNota Fiscal numberingObjectCode, DocSubType263
ONFTNota Fiscal Tax Category (Brazil)Nota Fiscal Tax Category (Brazil)AbsId264
OCNTcountiesdistrictsAbsId265
OTCTax Code DeterminationDetermination of the tax codeAbsId266
ODTYBoE Document TypeBoE document typeAbsEntry267
OPTFBoE portfolioBoE portfolioAbsEntry268
OISTBoE InstructionBoE statementAbsEntry269
OTPSTax parameterscontrol parametersAbsId271
OTFCTax Type CombinationTax type combinationAbsId275
OFMLTax Formula Master TableTax formula master tableAbsId276
OCNACNAE codeCNAE codeAbsId278
OTSISales Tax Invoicesales tax invoiceDocEntry280
OTPIPurchase Tax InvoicePurchase Tax InvoiceDocEntry281
OCCDCargo Customs Declaration NumbersCargo customs declaration numbersCCDNum283
ORSCResourcesresourcesResCode290
ORSGResource PropertiesResource propertiesResTypCod291
ORSBResGrpCodResGrpCodResGrpCod292
OITRInternal ReconciliationInternal voteReconNum321
OPOSPOS Master DataPOS master dataEquipment No541
ODRFStock Transfer DraftRearrangement DesignDocEntry1179
OMSGMessaging Service SettingsMessaging service settingsUSERID10000105
OBTNBatch Numbers Master DataBatch numbers master dataAbsEntry10000044
OSRNSerial Numbers Master DataSerial numbers master dataAbsEntry10000045
OIVKIVL vs OINM KeysIVL vs. OINM keyTransSeq10000062
OIQRInventory postinginventory postingDocEntry10000071
OFYMFinancial Year MastersFiscal Year MasterAbsId10000073
OSECsectionssectionsAbsId10000074
OCSNCertificate Seriescertificate seriesAbsId10000075
ONOANature of AssesseeType of beneficiaryAbsId10000077
TYPEDocument Type ListDocument type listCODE10000196
OUGPUoM GroupUoM groupUgpEntry10000197
OUOMUoM Master DataUoM master dataUomEntry10000199
OBFCBin field configurationSpace Field ConfigurationAbsEntry10000203
OBATBin location attributesStorage bin location attributeAbsEntry10000204
OBSLWarehouse sublevelStock sublevelAbsEntry10000205
WHETHER INAm Locationstorage placeAbsEntry10000206
ODNFDNF codeDNF codeAbsEntry140000041
OUGRAuthorization Groupauthorization groupGroupId231000000
OEGPE-Mail Groupemail groupEmlGrpCode234000004
OGPCGovernment Payment Codegovernment payment codeAbsId243000001
OIQIInventory Opening BalanceInventory Opening balanceDocEntry310000001
OBTWBatch Attributes in LocationBatch attributes in placeAbsEntry310000008
OLLFLegal List FormatFormat of the legal listAbsEntry410000005
OHETObject: HR Employee TransferObject: HR employee transferTransferID480000001
OTCXTax Code DeterminationTax Code DeterminationDocEntry540000005
OPQTPurchase Quotationshopping offerDocEntry540000006
ORCPRecurring Transaction TemplateTemplate for recurring transactionsAbsEntry540000040
OCCTCost Centre Typecost center typeCctCode540000042
OACRAccrualTypeaccrual typecode540000048
ONFMNota Fiscal ModelNota Fiscal ModelAbsEntry540000056
OBFIBrazil Fuel IndexerBrazil fuel indexerID540000067
OBBIBrazil Beverage IndexerBrazil Beverage indexerID540000068
OCPTCockpit Main TableCockpit main tableAbsEntry1210000000
OWTQInventory Transfer RequestInventory transfer requestDocEntry1250000001
OOATBlanket Agreementflat rate agreementAbsID1250000025
OKPIKey Performance Indicator PackagePerformance Indicators PackageAbsEntry1320000000
OTGGTarget GroupTarget groupstarget code1320000002
OCPNCampaigncampaignCpnNo1320000012
OROCRetorno Operation CodesRetorno transaction codesAbsEntry1320000028
OPSCProduct Source CodeProduct Source Codecode1320000039
ODTPFixed asset depreciation typesFixed assets Depreciation and amortisationcode1470000000
OADDTFixed Assets Account DeterminationFixed assets Account determinationcode1470000002
ODPAFixed asset depreciation areasDepreciation and amortisation of fixed assetscode1470000003
ODPPDepreciation type poolsDepreciation Type Poolscode1470000004
OACSAsset Classesasset classescode1470000032
OAGSasset groupsplant groupscode1470000046
ODMCG/L Account Determination Criteria - InventoryG/L Account Determination Criteria - InventoryDmcId1470000048
OACQcapitalizationactivationDocEntry1470000049
OGARG/L Account Advanced RulesExtended rules for G/L accountsAbsEntry1470000057
OACDCredit memocredit amountDocEntry1470000060
OBCDBar Code Master DataBarcode master dataBcdEntry1470000062
OINCInventory CountingInventory countDocEntry1470000065
OEDGDiscount GroupsDiscount groupsAbsEntry1470000077
OCCSCycle Count DeterminationCycle count determinationWhsCode1470000092
OPRQPurchase requestrequest for purchaseDocEntry1470000113
OWLSWorkflow - Task Detailsworkflow - Task details
TaskID1620000000

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article