project BLF > include bFcOpenInstance.i

Description

Before running methods in an instance of a business component, communication must be opened.

Remark on state-reset setup: If the instance to open is started from an interface component
in stead of the business component that wants to open it, the instance is not accessible
to this component. To solve this a new instance of the same business component is started,
which will point to the needed instance by a reference in it's private-data.
The method iRefreshInstanceData will then read this reference and read the data from the
correct instance.


include parameters


&CLASSclass short name
&ERROR-STATEMENTAction to take when an error occurred.


Internal usage


BLF
method business.BusinessClassActions
method business.InitInstance
method business.SetPublicData
method database.AdditionalUpdates
method database.CheckValidationExceptionList
method database.DataSave
method database.ExitInstance
method database.UpdateWorkobject
method database.WriteObjectSecurity
method BBaseDaemon.ValidateComponent
method BBaseDaemonProcessor.SwitchSessionCy
method BCustomField.AdditionalUpdates
method BCustomField.ValReturnField
method BDomain.SetDomainTypeAsSystem
method BDomain.ValidateComponent
method BReportDaemonProcessor.PerformWorkItem
method BReportRequest.AdditionalUpdates
method BResource.ApiSynchronize
method BStoredSearch.GetFields
method BSystem.ApiDumpDefaultSecurity
method BSystem.ApiSynchronise
method BSystem.ValidateComponent
method BUDCConfiguration.AdditionalUpdates
method BWorkObject.PostSave

QadFinancials
method database.IsOperationalReplicationEnabled
method BAccountingInterface.GenerateFile
method BAccountingInterface.GetAlternateInfo
method BAllocationBatch.ExecuteAllocationBatch
method BAPMatching.AddAPMatchingLn
method BAPMatching.StopExternalInstances
method BAPMatching.AdditionalUpdatesAll
method BAPMatching.AdditionalUpdatesAllExtCInvoice
method BAPMatching.AdditionalUpdatesAllExtQCrossCyPosting
method BAPMatching.CreateMatchingPosting
method BAPMatching.DefaultValuesInvoiceAmount
method BAPMatching.GetPendingVouchers
method BAPMatching.GetPendingVouchersLogChargesQuery
method BAPMatching.GetPendingVouchersNoLogChargesTaxFiscal
method BAPMatching.LoadMatchingPosting
method BAPMatching.PostSave
method BAPMatching.PostSaveUpdateOperationals
method BAPMatching.UpdateCInvoiceFromUIAPM
method BAPMatching.ValidateComponentPost
method BAPMatching.ValidateComponentPreAPMCInvoice
method BAPMatching.ValidateComponentPreAPMCInvoiceLegalDocument
method BAPMatching.ValidateComponentPreAPMLn1
method BAPMatchingReport.UnmatchedReceipt
method BBankEntry.AdditionalUpdates
method BBankEntry.StopExternalInstances
method BBankEntry.AdditionalUpdatesInv
method BBankEntry.AdditionalUpdatesInvDeductions
method BBankEntry.AdditionalUpdatesInvInstanceOpen
method BBankEntry.AdditionalUpdatesInvInstanceValidate
method BBankEntry.CreatePostingHeader
method BBankEntry.GetJournalEntryBalance
method BBankEntry.GetPossibleAllocationsCInvoice
method BBankEntry.GetPostingAmount
method BBankEntry.GetPostingAmountLC
method BBankEntry.LoadBEPosting
method BBankEntry.RemovePosting
method BBankEntry.UpdatePostingHeader
method BBankImport.ApiEDIImportBankImport
method BBankImportLine.AdditionalUpdates
method BBankImportLine.ProcessBankImpLineCDocStatusChg
method BBankImportLine.ProcessBankImpLineConfirm
method BBankImportLine.ProcessBankImpLineDDocStatusChg
method BBankImportLine.ProcessBankImpLineNewBankEntry
method BBankImportLine.ProcessBankImpLineNewDDocument
method BBankImportLine.ProcessBankImpLineOther
method BBankImportLineProcess.GetBankImpLineByFilter
method BBankImportLineProcess.SaveAndProcess
method BBankStateImport.AdditionalUpdatesBankStatement
method BBudget.AdditionalUpdCreateSafStructureLink
method BBudget.ApiCheckBudget
method BBudgetLinkActual.AdditionalUpdatesCreateDelete
method BBudgetLinkCommitment.AdditionalUpdatesCreateDelete
method BBudgetRebuild.ApiRebuildBudget
method BBusinessComponent.AdditionalUpdates
method BBusinessRelation.AdditionalUpdates
method BBusinessRelation.ValidateComponentDelete
method BBusinessRelation.ValidateComponentExternalAddress
method BBusinessRelation.ValidateComponentPostAddress
method BBusinessRelation.ValidateComponentPostAddressTax
method BCashBox.UpdateJournal
method BCDocument.AdditionalUpdatesCInvoice
method BCDocument.AdditionalUpdatesPosting
method BCDocument.AdditionalUpdatesPostingCrossCy
method BCDocument.AdditionalUpdatesPostingPrePayment
method BCDocument.AdditionalUpdatesPostingXref
method BCDocument.AdditionalUpdatesWHT
method BCDocument.ApiSetCDocumentStatusChange
method BCDocument.CalculateAllWhtGetData
method BCDocument.DataLoadByInput
method BCDocument.GetPossibleAllocationsByBank
method BCDocument.ValidateComponentPreCInvoice
method BCDocument.ValidateComponentPreCreditor
method BCDocumentReport.CDocumentReportAllSub
method BCDocumentReport.CDocumentReportCheque
method BCDocumentReport.CDocumentReportDraft
method BCInvoice.StopExternalInstances
method BCInvoice.AdditionalUpdatesAll
method BCInvoice.AdditionalUpdatesAllAPMatching
method BCInvoice.AdditionalUpdatesAllAssignments
method BCInvoice.AdditionalUpdatesAllCreateCA
method BCInvoice.AdditionalUpdatesAllQCInvoiceMovement
method BCInvoice.AdditionalUpdatesAllWorkObject
method BCInvoice.ApiCreateCreditorInvoices
method BCInvoice.ApiStdMaintainTTV01
method BCInvoice.ApiStdMaintainTTWithIntPost
method BCInvoice.ClearAllData
method BCInvoice.ClearMFPosting
method BCInvoice.CreateCInvoiceMovements
method BCInvoice.CreateCInvoiceMovementsCrossCyExt
method BCInvoice.CreateCInvoicesPayment
method BCInvoice.CreateCIPosting
method BCInvoice.CreateMFPosting
method BCInvoice.DefaultValuesGeneralInfo
method BCInvoice.LoadCIAndMFPosting
method BCInvoice.PostSaveLegalDocumentGetLDId
method BCInvoice.PreSave
method BCInvoice.PreSaveValidate
method BCInvoice.ReInitializeEverything
method BCInvoice.ReInitializePostings
method BCInvoice.ReplaceCInvoice
method BCInvoice.ReplaceCInvoicePosting
method BCInvoice.ReverseCInvoicePosting
method BCInvoice.UpdateJournalInPostingInstance
method BCInvoice.ValidateComponent
method BCInvoice.ValidateComponentPost
method BCInvoice.ValidateComponentPostMovement
method BCInvoiceAPMatching.CreateAPMatchingRun
method BCInvoiceAPMatching.CreateCInvoice
method BCInvoiceAPMatching.CreateCInvoiceAPMatchingGetCInvoiceData
method BCInvoiceAPMatching.CreateCInvoiceRun
method BCInvoiceJournalEntry.ApiStdMaintainTTV01
method BCMask.Copy
method BCOAMaskCC.ApiLoadCOAMaskCC
method BCOAMaskCC.DataLoadByInput
method BCOAMaskCC.InitialValues
method BCOAMaskCC.InitUI
method BCOAMaskCC.SetNewStatus
method BCOAMaskCC.ValidateComponentPost
method BCOAMaskCC.ValidateComponentPre
method BCOAMaskDiv.ApiLoadCOAMaskDiv
method BCOAMaskDiv.DataLoadByInput
method BCOAMaskDiv.InitialValues
method BCOAMaskDiv.InitUI
method BCOAMaskDiv.SetNewStatus
method BCOAMaskDiv.ValidateComponentPost
method BCOAMaskDiv.ValidateComponentPre
method BCOAMaskProj.ApiLoadCOAMaskProj
method BCOAMaskProj.DataLoadByInput
method BCOAMaskProj.InitialValues
method BCOAMaskProj.InitUI
method BCOAMaskProj.SetNewStatus
method BCOAMaskProj.ValidateComponentPost
method BCOAMaskProj.ValidateComponentPre
method BCompany.AdditionalUpdates
method BCompany.DataLoadByInput
method BCompany.ValidateCompanyCode
method BCompanyProperty.CreateInterCoAccounts
method BCompanyProperty.SwitchPrimaryCompany
method BCompanyProperty.ValidateComponent
method BConCheck.AdditionalUpdates
method BConCheck.ConCheckCreateBatch
method BConCheck.ConCheckExecute
method BConCheckProcessor.ConCheckProcessBatch
method BConCheckProcessor.ConCheckProcessDet
method BConCheckProcessor.ConCheckProcessFinish
method BConsolid.AdditionalUpdatesConsolidationBlock
method BConsolid.AdditionalUpdatesDelete
method BConsolid.AdditionalUpdatesPosting
method BCostCentre.AdditionalUpdates
method BCostCentre.PostSave
method BCostCentre.ValidateComponentPreCOAMask
method BCountry.AdditionalUpdates
method BCreditor.AdditionalUpdates
method BCreditor.Calculate
method BCreditor.ValFederalTax
method BCreditor.ValidateComponent
method BCreditor.ValStateTax
method BCreditor.ValTaxIDFiscalCode
method BCreditorBalance.RebuildHistory
method BDCollection.Export
method BDDocument.AdditionalUpdatesDeductions
method BDDocument.AdditionalUpdatesDInvoice
method BDDocument.AdditionalUpdatesDPaymentSelection
method BDDocument.AdditionalUpdatesPosting
method BDDocument.AdditionalUpdatesPostingDeduction
method BDDocument.AdditionalUpdatesPostingPrePayment
method BDDocument.ApiSetDDocumentStatusChange
method BDDocument.ApiStdMaintainTT
method BDDocument.DataLoadByInput
method BDDocument.ValidateComponentPreDebtor
method BDDocument.ValidateComponentPreDInvoice
method BDebtor.AdditionalUpdates
method BDebtor.Calculate
method BDebtor.ValFederalTax
method BDebtor.ValidateComponent
method BDebtor.ValStateTax
method BDebtorBalance.RebuildHistory
method BDebtorEndUser.AdditionalUpdates
method BDebtorEndUser.ApiCreateDebtorEndUser
method BDebtorEndUser.ApiReplicateFromDaemon
method BDebtorEndUser.DataLoadByInput
method BDebtorEndUser.ValidateComponent
method BDebtorEndUser.ValidateComponentUpdateAllSharedEndusers
method BDebtorFinanceCharge.FCDInvoiceCommit
method BDebtorReport.CustomerCreditOverview
method BDebtorReport.DebtorMasterCard
method BDebtorReport.DebtorReminders
method BDebtorReport.GetBusinessFields2
method BDebtorReport.GetBusinessFields3
method BDebtorShipTo.AdditionalUpdates
method BDebtorShipTo.ApiCreateDebtorShipto
method BDebtorShipTo.ApiMaintainDebtorShipto
method BDebtorShipTo.ApiReplicateFromDaemon
method BDebtorShipTo.DataLoadByInput
method BDebtorShipTo.ValidateComponent
method BDebtorShipTo.ValidateComponentUpdateAllSharedShiptos
method BDInvoice.StopExternalInstances
method BDInvoice.AdditionalUpdatesAll
method BDInvoice.AdditionalUpdatesAllAssignments
method BDInvoice.AdditionalUpdatesAllQDInvoiceMovement
method BDInvoice.ApiStdMaintainTT
method BDInvoice.ApiStdMaintainTTWithIntPost
method BDInvoice.CancelTax
method BDInvoice.CreateDInvoiceMovements
method BDInvoice.CreateDInvoicesDeduction
method BDInvoice.CreateDIPosting
method BDInvoice.DefaultValuesGeneralInfo
method BDInvoice.InitInstance
method BDInvoice.LoadDIPosting
method BDInvoice.MoveSuspendedTax
method BDInvoice.PostTaxCommit
method BDInvoice.PreSave
method BDInvoice.PreSaveValidate
method BDInvoice.ReInitializeEverything
method BDInvoice.StdMaintainTT
method BDInvoice.StdMaintainTTWithIntPost
method BDInvoice.UpdateDeductionDetailPosting
method BDInvoice.ValidateComponentAllBank
method BDInvoice.ValidateComponentAllMovement
method BDInvoiceJournalEntry.ApiStdMaintainTT
method BDInvoiceMultiCy.UpdateDeductionDetailCy
method BDInvoiceMultiCy.UpdateDeductionDetailCyV01
method BDivision.AdditionalUpdates
method BDivision.ApiLoadDivision
method BDivision.PostSave
method BDivision.ValidateComponentPreCOAMask
method BDomain.AdditionalUpdates
method BDomain.AdditionalUpdatesReplication
method BDomain.ApiSynchronise
method BDomain.DataLoadByInput
method BDomain.ValDomainCode
method BDomain.ValidateComponent
method BDomainProperty.CreateInterCoAccounts
method BDomainProperty.ValidateComponentPostNumbers
method BDPaymentSelection.AdditionalUpdates
method BDPaymentSelection.AdditionalUpdatesDCollection
method BDPaymentSelection.AdditionalUpdatesDDocument
method BDPaymentSelection.AdditionalUpdatesDInvoice
method BDPaymentSelection.GetListAllowedDocStatus
method BEmployee.AdditionalUpdates
method BERSProcessor.ERSProcess
method BERSProcessor.ERSProcessAPMatchingPrice
method BERSProcessor.ERSProcessCreateBatchRequest
method BERSProcessor.ERSProcessFinish
method BERSProcessor.ERSProcessInit
method BERSProcessor.GetERSLegalDocumentsLC
method BERSProcessor.GetERSLegalDocumentsNoLC
method BExchangeRate.AdditionalUpdates
method BExpenseNote.APIExpNoteRegister
method BFixedAssetCapital.AdditionalUpdatesFAAsset
method BFixedAssetDepreciation.AdditionalUpdatesFAAssetBook
method BFixedAssetDepreciation.AdditionalUpdatesPosting
method BFixedAssetDisposal.AdditionalUpdatesFAAsset
method BFixedAssetDisposal.AdditionalUpdatesPosting
method BFixedAssetRevaluation.AdditionalUpdatesFAAsset
method BFixedAssetRevaluation.AdditionalUpdatesPosting
method BFRWAnalysisCode.AdditionalUpdatesReportTree
method BGL.AdditionalUpdates
method BGLCalendar.AdditionalUpdates
method BGLMask.AdditionalUpdates
method BGLOpenItemProcessor.GLOpenItemReconciliation
method BGLReport.AccTransJournal
method BGLReport.AltAccBalanceTOT
method BGLReport.AltCBGLReport
method BGLReport.AltSubLedgeReport
method BGLReport.AltVATPayableLedger
method BGLReport.CalAltCOAStructWBSForBS
method BGLReport.CalAltCOAStructWBSForIS
method BGLReport.CBPaymentJournal
method BGLReport.CBReceiptJournal
method BGLReport.ForeignCurrJournal
method BGLReport.GeneralGLJournal
method BGLReport.GLReport
method BGLReport.GLSequenceRenumber
method BJournal.AdditionalUpdates
method BJournal.ValidateComponent
method BPosting.AdditionalUpdatesBQBudgetActual
method BPosting.AdditionalUpdatesBQPosting
method BPosting.AdditionalUpdatesCrossCyPosting
method BPosting.AdditionalUpdatesFACapital
method BPosting.AdditionalUpdatesOpenItems
method BPosting.AddPostingHeader
method BPosting.ApiStdMaintainMultiTT
method BPosting.ApiStdMaintainTT
method BPosting.PreSaveValidate
method BPosting.StdMaintainTT
method BPosting.UpdateInvoiceNumbers
method BPosting.ValidateComponentPost
method BPosting.ValidateComponentPostPosting2
method BPosting.ValidateComponentPreAssignPosting1
method BJournalEntry.CheckForCorrectionPeriod
method BJournalEntry.UpdateJournalDateInPostingInstance
method BJournalEntry.UpdateYearJournal
method BJournalEntryMultiCy.CreateMultiCyPostings
method BLanguage.AdditionalUpdates
method MfgDatabaseComponent.IsReplicationEnabled
method MfgDatabaseComponent.ProcessSharedSetToMfg
method BMfgAddress.ApiReplicateFromFinancialsBusRel
method BMfgAddress.ApiReplicateFromFinancialsEndUSer
method BMfgAddress.ApiReplicateFromFinancialsShipTo
method BMfgAddress.MaintainDataCreditor
method BMfgAddress.MaintainDataDebtor
method BMfgAddress.MaintainDataDebtorShipto
method BMfgAddress.MaintainDataEndUser
method BMfgAddressListDetail.MaintainDataCreditor
method BMfgAddressListDetail.MaintainDataDebtor
method BMfgAddressListDetail.MaintainDataDebtorEnduser
method BMfgAddressListDetail.MaintainDataDebtorShipto
method BMfgBatchNumber.AdditionalUpdates
method BMfgBatchNumber.GetNextBatchNumber
method BMfgCreditTerms.MaintainData
method BMfgCurrency.AdditionalUpdates
method BMfgCustomer.AdditionalUpdates
method BMfgDomain.AdditionalUpdates
method BMfgEndUser.AdditionalUpdates
method BMfgEndUser.ApiReplicateFromFinancials
method BMfgEndUser.MaintainDataBusinessRelation
method BMfgEndUser.PerformMfgUpdate
method BMfgEntity.SwitchPrimaryEntity
method BMfgLocation.AdditionalUpdates
method BMfgSupplier.AdditionalUpdates
method BMultiCyProcessor.ProcessRequestAsyncProcess
method BOpenItemAdjustment.OIAdjApplyFilterCreditor
method BOpenItemAdjustment.OIAdjCommitSub
method BOpenItemAdjustment.OIAdjCommitSubCInvoice
method BOpenItemAdjustment.OIAdjCommitSubCInvoiceDiscount
method BOpenItemAdjustment.OIAdjCommitSubDInvoice
method BOpenItemAdjustment.OIAdjCommitSubDInvoiceDiscount
method BOpenItemAdjustment.OIAdjCommitSubOpenItemAdj
method BOpenItemAdjustment.OIAdjJournalEntryBalance
method BOpenItemAdjustment.StopExternalInstancesExceptBJE
method BPaymentCondition.AdditionalUpdates
method BPaymentSelection.AdditionalUpdates
method BPaymentSelection.AdditionalUpdatesDInvoice
method BPaymentSelection.AdditionalUpdatesPrepayment
method BPaymentSelection.AdditionalUpdatesRegister
method BPaymentSelection.AdditionalUpdatesUnconfirm
method BPaymentSelection.APITransferPayments
method BPaymentSelection.CalculatePaySelLineWhtGetData
method BPaymentSelection.ChangeStatusPaymentSelInBatch
method BPaymentSelection.DefaultValuesForApiConfirm
method BPaymentSelection.GenerateASCII
method BPaymentSelection.GetInvWithCommonPayAttributes
method BPaymentSelection.GetToPayObjectsForCInvoice
method BPaymentSelection.ValidateComponent
method BPaymentSelection.ValidateComponentPreBankPayFormat
method BPeriod.AdditionalUpdates
method BPeriod.ApiUpdatePeriodStatus
method BPeriod.UpdatePeriodMark
method BPeriod.ValidateComponentPost
method BPostingHist.UpdatePostingHist
method BProfile.AdditionalUpdates
method BProject.AdditionalUpdates
method BProject.PostSave
method BProject.UpdateSafStructureLinkRef
method BProject.ValidateComponent
method BProject.ValidateComponentPreCOAMask
method BQBudgetActual.AdditonalUpdatesDelete
method BQBudgetActual.ApiDeleteQBudgetLinkActual
method BQBudgetCommitment.AdditionalUpdatesDelete
method BQBudgetCommitment.ApiDeleteQBudgetLinkCommit
method BQCInvoiceMovement.AdditionalUpdates
method BQCInvoiceMovement.ApiProcessQCInvoiceMovement
method BQCrossCyPosting.ApiProcessQCrossCyPosting
method BQCrossCyPosting.ApiProcessQCrossCyPostingForCI
method BQCrossCyPosting.ApiProcessQCrossCyPostingForDI
method BQCrossCyPosting.ApiProcessQCrossCyPostingForReverse
method BQCrossCyPosting.ApiProcessQCrossCyPostingLogging
method BQDInvoiceMovement.AdditionalUpdates
method BQDInvoiceMovement.ApiProcessQDInvoiceMovement
method BQPosting.AdditionalUpdates
method BQPosting.ApiProcessQPostingLineSaf
method BRevaluation.AdditionalUpdates
method BRevaluation.AdditionalUpdatesPosting
method BRole.AdditionalUpdates
method BRole.ApiCreateCIApproveRole
method BRoundingMethod.AdditionalUpdates
method BSelfBill.ApiCreateInvPrepayPayment
method BSharedSetMerge.MergeInit
method BSystem.ApiSetSystemPropertiesExtInvCert
method BSystem.ApiSynchroniseSyst
method BUser.AdditionalUpdates
method BUserRole.AdditionalUpdates
method BVATReport.ITARVATReg
method BVATReport.ITVATRegSusp
method BYearClosing.AdditionalUpdatesClosePeriods
method BYearClosing.AdditionalUpdatesCreatePeriods
method BYearClosing.AdditionalUpdatesPosting
method BYearClosing.GetNumberingDateForYearClosing
method BYearClosing.ValidateComponentAll
method MfgNotification.IsReplicationEnabled
method BBankImportLine.CreateUnallocatedBankEntry
method BFRWChart.AdditionalUpdateBudgetCompany
method BFRWChart.AdditionalUpdateCOACrossRef
method BSharedSetMerge.MergeBeforeMergeGL


include code

run BusinessClassActions in {&TARGETPROCEDURE}
   (input        "{&CLASS}":U,
    input        "OPEN":U,
    input        no,
    &IF "{&CLASS-REF}" = ""
    &THEN
    input-output vi{&CLASS}OC,
    input-output vh{&CLASS}Inst,
    input-output vi{&CLASS}Id,
    &ELSE
    input-output vi{&CLASS-REF}OC,
    input-output vh{&CLASS-REF}Inst,
    input-output vi{&CLASS-REF}Id,
    &ENDIF
    input        "",
    input        "",
    output viFcIncludeReturn).
if viFcIncludeReturn <> 0
then oiReturnStatus = viFcIncludeReturn.
if viFcIncludeReturn < 0
then do:
    &IF "{&ERROR-STATEMENT}" = ""
    &THEN
    return ?.
    &ELSE
    {&ERROR-STATEMENT}
    &ENDIF
end.