You are on page 1of 31

9/10/2016

AboutOracleApps:InterviewQuestionsonOracleSCM,AOL,Forms

AboutOracleApps
Subscribehere>>
EnteryourEmailAddress

Subscribeme!
Subscribeinareader

Search
Adsby Google
Adsby Google OracleWithOracleBookOracleViewSQLTool

19July2007

InterviewQuestionsonOracleSCM,AOL,Forms

EBSOracle
OracleForms
OracleReports
Adsby Google

OracleApps
Oracle11G
OracleWith

RecentPosts
Category

AOL AOLand
Syadmin AR Fast

Alerts

Rs.4,500

Rs.9,199

Rs.2,999

Rs.4,300

Rs.11,000

Rs.7,900

Formula FormPersonalization
InterviewQuestions INV

IPL OracleAlerts OracleAP

OracleApps(IQ)
AR

OracleFinancials

OracleForms OracleGL

OracleHRMS Oracle

New s OraclePO(IQ) Oracle


Reports OracleSCM
PL/SQL PL/SQL(IQ)
PO Script SiteHub
Sysadmin Tips
&#39n&#39Tricks tools

Tutorial

Negotiate

Oracle

XMLPublisher

OracleFinancials
OracleAppsAROverview.
MoreonOracleAppsAR.
FAQOracleAppsAP.
FAQOracleAppsPO
OracleFinanceFunctional
FAQOracleAppsARFunctional
Mustknow conceptsofGL,AP,AR

JavaInterviewQuestions

OracleHRMSTutorials
BasicConceptsinCoreHRMSPart1
BasicConceptsinCoreHRMSPart2
BasicConceptsinCoreHRMSPart3
BasicConceptsinCoreHRMSPart4
How tocheckiftheemployeeis
rehired
DateTrackinginOracleHRMS
OracleHRMSPayrollTables
BasicConceptsonOracleHRMS
SSHR
BatchElementEntry(BEE)inOracle
HRMS

With The Sellers!

Negotiate
With The Sellers!

1.Whatisordercycle?
Ordercyclesdescribetheprocessingorrouting,throughwhichordersprogress.Order
cyclescontaincycleactionssuchasEnter,PickReleaseorShipConfirm.Each
cycleactionhasatleastoneresult.Forexample,resultsfortheactionEnterinclude
Booked,PartialandEntered.Youcancustomizeyourordercyclebydefining
prerequisitesforeachactionsothatOracleOrderEntryperformstheseactionsinthe
sequenceyoudefine.Forexample,theprerequisitefortheactionPickReleasecould
betheactionLegalReviewandtheresultPass.Youwouldnotbeabletopickrelease
theorderuntilitmeetsthisprerequisite.Youcandefineasmanyordercyclesasyou
wantsoyoucanhandledifferentprocessingrequirementsfordifferenttypesoforders
orforordersfromdifferentsaleschannels.Forexample,youmayhaveoneorder
cyclethatrequireslegalapprovalthatyouuseforinternationalordersandonewithout
legalapprovalfordomesticorders.

Rs.11,000

Ifyoumakeanychangestocycleactionsinanordercycleyoucandeterminewhen
thosechangestakeeffectbysettingtheprofileoptionOE:CycleActionChanges
AffectExistingOrders

Rs.2,999

Rs.3,000

TablesusedareSO_CYCLES,SO_CYCLE_ACTIONS,SO_ACTION_PRE_REQS,
SO_ACTIONS,SO_RESULTS,SO_ACTION_RESULTS.
Rs.4,300

2.Listthevariousactionsofatypicalordercycle?
OrdercyclescontaincycleactionssuchasEnter,PickReleaseorShipConfirm,
BackorderRelease,ReceivableInterface,InventoryInterface,CompleteLine,
Completeorder.
Enetered>Book>Demand/ATP(AvailabletoPromise)>PickRelease>Shipping
>InventoryInterface>ReceivableInterface>Closeorder
3.Whatistherelationbetweenanordertypeandanordercycle?
OrderCyclecandifferdependingonthetypeofanorderForexampleyoumayhave
oneordercyclethatrequireslegalapprovalthatyouuseforinternationalordersand
onewithoutlegalapprovalfordomesticorders
Ordercycleisattachedtotheordertype.
4.WhatdoesInventoryInterfacedo?

AdvanceComputerTips
AboutOnlineTips

PopularArticles
SettingupMULTIORG
BasicConcepts:AOL
OracleAppsAROverview.
Mustknow conceptsofGL/AP/AR

InventoryInterfaceProgrampopulatestheinterfacetableswithtransactionssubmitted
throughConfirmshipmentforms.Itupdatesorderlineswithshippedquantitiesand
updatesinventory.

OracleFinanceFunctional

5.WhatareATOandPTO?

FreeOracleAppsvisinstance.

http://www.aboutoracleapps.com/2007/07/oracleappsmanufacturingaolforms.html

FAQOracleAppsARFunctional

1/31

9/10/2016
How touseWebADIinOracle
HRMS.

AboutOracleApps:InterviewQuestionsonOracleSCM,AOL,Forms
ATOAssembletoOrderAconfigurationyoumakeinresponsetocustomerorder
whichincludesoptionalitems.
PTOPicktoOrderAconfiguretoorderenvironmentwheretheoptionandincluded
itemsinamodelappearonpickslipsandorderpickersgathertheoptionswhenthey
shiptheorder.Alternativetomanufacturingtheparentitemonaworkorderandthen
shippingit.
6.WhatisRMA?
RMAispermissionforacustomertoreturnitems.OEallowsyoutoauthorizethe
returnofyoursalesordersaswellassalesmadebyotherdealersaslongastheitem
arepartofyouritemmasterandpricelist.Receiptofgoodspreviouslysoldto
customer,credittoacustomerorreplacewithidenticalitem.

OracleFinancialsTutorials
BasicConceptsinOracleAPPart1
BasicConceptsinOracleAPPart2
BasicConceptsinOracleARPart1
BasicConceptsinOracleARPart2
BasicConceptsinOracleGLPart1
BasicConceptsinOracleGLPart2
BasicConceptsinOracleCash
ManagementPart1

7.WhatisHold?

BasicConceptsinOracleCash
ManagementPart2

Afeaturethatpreventsanorderororderlinefromprocessingthroughtheordercycle.
Youcanplaceholdonanyorderororderline.

PayOnReceiptinOracle
ApplicationsTutorial

8.Whatarevarioustypesofholds?

RecurringInvoiceAcomplete
Tutorial

Creditcheckhold,LegalReviewhold,SalesReviewHold,CustomerrequestHold.
(so_holds.type_code)
Fewoflogitechsholdtypes:
CREDITThisholdisautomaticallyplacedonanorderinvoicedtoacustomerwhofails
creditcheck
GSAThisholdisautomaticallyplacedonanorderwhichisinviolationofGSA
CONFIGURATORThisholdisautomaticallyplacedonaSalesOrderLinethatfails
ConfiguratorValidation
OrderManagementProductonShortSupply
OrderManagementProductonQualityStopShipment
OrderManagementAwaitingclarificationonOrderDetail
OrderManagementIncompleteShipTo
CreditManagementCustomer/OrderonCreditHold
OrderManagementEDIorderwithincorrectpricingholduntilpricingissueresolved
OrderManagementEDIorderwithincorrectQTY(CasePack)holduntilQTYissue
resolved
OrderManagementCustomerRequestedHold
CreditManagementManualCreditHoldonBackorder
OrderManagementEDIorderwaitingforinformation
DocumentServicesPreReleaseHoldtoappliedtoPreventPickRelease
DocumentServicesPreReleaseHoldtoappliedtoPreventBackorderRelease
OrderManagementRMAOrderWaitingForInformation
CreditManagementOverduePaymentHoldbyCreditManagment
OrderManagementProductonShortSupply

9.WhatisaholdParameter?
Acriterionyouusetoplaceaholdonanorderororderline.Validholdparametersare
customer,customersite,order,anditem.(so_order_holds_view_hold.hold_level)
LogitechHOLD_LEVEL

Customer
Item
Order
SiteUse

10.Whatarevarioustypesofdiscounts?
Discountisareductionoflistpriceforanitem.FixedpricediscountsFinalpriceis
contractuallyfixedregardlessoffluctuationsinlistprice.Forexample:itemAhasa
listpriceof100,afixedpricediscountspecifiesasellingpriceof90,resultsina
sellingpriceof90evenifthelistpricechangesto110.
PriceadjustmentsThedifferencebetweenlistpriceofanitemanditssellingprice.
Pricedifferencecanhavepositiveornegativeimpactonpricelist.Priceadjustments
whichlowerthelistpricearecalledaspriceadjustmentdiscounts.Itcanbefororder
ororderline.
Earneddiscounts

http://www.aboutoracleapps.com/2007/07/oracleappsmanufacturingaolforms.html

2/31

9/10/2016

AboutOracleApps:InterviewQuestionsonOracleSCM,AOL,Forms
11.Whatisschedulingoforders?
Orderschedulingincludesassigningdemandorreservations,warehouses,shipment
dates,lotsandsubinventoriestoorderline,itcanbedontonbookedorunbooked
orders.
12.Howdoyoucalculatevalueofanorder(fromtables)?
select
sum((sol.ordered_quantitynvl(sol.cancelled_quantity,0))*sol.selling_price)
fromso_headers_allsh,so_lines_allsol
wheresh.order_number=&order_number
andsol.header_id=sh.header_id
13.Whatisunderlyingtablefordiscounts?
SO_DISCOUNTS,SO_DISCOUNT_CUSTOMERS,SO_DISCOUNT_LINES,
SO_PRICE_ADJUSTMENTS
14.Whatisautoaccounting?
AnReceivablefeaturethatletsyoudeterminehowtheAccountingFlexfieldforyour
revenue,receivable,freight,tax,unbilledreceivables,andunearnedrevenueaccount
typesarecreated.
15.WhatisAutoinvoicing?
Aprogramthatimportsinvoices,creditmemos,andonaccountcreditsfromother
systemintooraclereceivables.
16.Whatdoesthetablera_cust_trx_line_gl_diststore?
Storestheaccountingrecordsforrevenue,unearnedrevenue,andunbilledreceivables
foreachinvoiceorcreditmemoline.Thistablemusthaveonerowforeachaccounting
distribution.
17.Whataretheunderlyingtablesinvarioustransactionsinreceivables?
RA_CUSTOMER_TRX,RA_CUST_TRX_LINE_SALESREPS,
RA_CUSTOMER_TRX_LINE_GL_DIST,RA_CUSTOMER_TRX_LINES,
AR_PAYMENT_SCHEDULESAR_PAYMENT_SCHEDULES,AR_CASH_RECEIPTS,
AR_MISC_CASH_DISTRIBUTIONS,AR_CASH_RECEIPT_HISTORY,
AR_RECEIVABLE_APPLICATION
18.Whatareinterfacetablesusedduringautoinvoicinginterface?
RA_INTERFACE_LINES,RA_INTERFACE_SALESCREDITS,
RA_INTERFACE_DISTRIBUTIONS
19.Ifinvoice,creditmemosanddebitmemosallgetstoredinthesametable
then,howdoyoucometoknowwhichtransactionisit?
RA_CUSTOMER_TRXtablestorescust_trx_type_id,whichidentifiestheuserdefined
transactiontype.WhichinturnisstoredinRA_CUST_TRX_TYPES.ThefieldTYPE
definesthetypeoftransaction,whichislinkedtoLOOKUP_CODEofAR_LOOKUPS
table.Basic6transactiontypesarehardcodedinAR_LOOKUPStableandarenot
usermaintainable.
20.Whatisacreditmemo?
Creditmemoisadocument,whichpartiallyorfully,reversesanoriginalinvoice.You
cancreatecreditmemosthroughtheOracleReceivablesEnterCreditMemosformor
throughAutoInvoice.
21.Whatisadebitmemo?
Debitsthatyouassigntoyourcustomerforadditionalchargesthatyouwantto
collect.Youmaywanttochargeyourcustomersforunearneddiscountstaken,
additionalfreightcharges,taxes,andfinancecharges.
22.Whataretheunderlyingtablesforcreditmemosanddebitmemos?
RA_CUSTOMER_TRX_ALL
23.WhatisanaccountingRule?
AccountingruleisarulethatOraclereceivablesAutoinvoiceusestospecifyrevenue

http://www.aboutoracleapps.com/2007/07/oracleappsmanufacturingaolforms.html

3/31

9/10/2016

AboutOracleApps:InterviewQuestionsonOracleSCM,AOL,Forms
recognitionschedulesforyourtransactions.Youcandefineyouraccountingrule
whererevenueisrecognizedoverafixedorvariableperiodoftime.Forexample,you
candefineafixeddurationaccountingrulewithmonthlyrevenuerecognitionfora
periodof12months.
24.Whatisthedifferencebetweenanaccountingruleandaninvoicingrule?
InvoicingRule:RulestheOraclereceivablesuses,todeterminewhenyoubillyour
invoices.Youcanbillinadvanceorinarrears.
25.WhatarethevariousfeaturesofOracleReceivables?
MultipleSystemOptions
Useoptionalbatching
Customizetomeetyourneeds:
AccountingFlexfield
ItemFlexfield
TerritoryFlexfield
SalesTaxFlexfield
DescriptiveFlexfield
Defineanychartofaccountsusingupto30segments
Defineyourownaccountingcalendar
Choosefromavarietyofpaymentterms:
Splitterms
Proximaterms
Termsbyamountorpercent
Multiplediscounts
Choosefromtaxoptions:
Bylocationorproduct
Compoundingtax
Taxexemptions
Groupmultiple,conditionaltaxes
SalesTaxorVATenvironment
Userdefinabletaxhierarchy
Customers
Specifycustomerrelationships
Validatecustomeraddresses
Enteraddressesincountryspecificformats
Enteranunlimitednumberof:
Addresses,foreignordomestic
Remittoaddresses
Businesspurposes
Contactnames
Telephonenumbers
Createcustomercreditprofiles:
Paymentterms
Automaticreceiptinformation
Financecharges
Copycreditprofiles
Definesalesterritories
Defaultpertinentcustomersiteinformationtotransactions
Querycustomersusingvariablecriteria
Invoicing
Createsigninsensitivetransactions
Numberinvoicesandlinesautomatically
Recognizerevenueovermultipleperiodsusinginvoicerules
Createrecurringinvoices
Createconsolidatedbillinginvoicesbasedonperiodsdefinedbypayment
terms
Specifytransactiontype,including:
Deposit
Guarantee
Invoice
Debitmemo
Createcreditmemos,including:

http://www.aboutoracleapps.com/2007/07/oracleappsmanufacturingaolforms.html

4/31

9/10/2016

AboutOracleApps:InterviewQuestionsonOracleSCM,AOL,Forms
Fullandpartialcredit
Automaticsalescreditreversal
Onaccountcredit
Handlewriteoffsautomaticallyormanually
Setadjustmentlimits
Viewtransactionbalances
Viewaccountingentriesonline
Printinvoicesatanytime
Collections
Recordcustomercalls
Printcustomerstatements
Createdunninglettersbasedondaysoverdueordunninglevels
Defineunlimitednumberofuserdefineddunninglettertemplates
Producestatementsbasedonuserdefinablecycles
Reapplycash
Performinquiresonlineorontheweb
Createflexibleagings
Drilldowntodetailbyagingbucket
Inquireusingexternalreferencessuchasprojectandordernumber
Viewcorrespondencehistoryonline
Createcentralizedstatementsites
Createcentralizeddunningsites
CashApplication
Recordpaymentsfromthirdparties
Createchargebacks
Processreceiptsautomatically:
Lockboxtransmission
Billsofexchange
Directdebits
Matchreceiptstotransactionsby:
TransactionNumber
OrderNumber
PurchaseOrderNumber
ConsolidatedBillnumber
CustomNumber
UseAutoCashrules:
Applytooldestinvoicefirst
Exactmatchoninvoice
Clearpastdueinvoices
Cleartheaccount
ClearPastDueInvoicesgroupedbyPaymentTerm
Applypaymentsaccordingtouserdefinedrulesets
Useearnedandunearneddiscounts
Discountonspecifiedlinetypes
Trackbankremittances
Clearbankstatementitemsautomaticallyormanually
Useflexiblelockboxformats
Createbankchargesautomatically
Reapplycash
Reversemultiplereceiptsinasinglestep
ProcessNotesReceivable
Futuredatedchecks
PromissoryNote
GlobalAccounting
RecordsalesandVATtaxeswithcompletetaxreporting
Issuelettersofcredit
Handlebillsofexchangeandautomaticallyeliminaterisk
Useoptionalsequentialnumbering
Entermultiplecurrenciesusinguserdefinedcurrencyformats
Processcrosscurrencyreceipts
Calculatecurrencygainsandlosses
Entercrosscurrencydeposits
Defaulttaxcodefromrevenuesegmentofnaturalaccount

http://www.aboutoracleapps.com/2007/07/oracleappsmanufacturingaolforms.html

5/31

9/10/2016

AboutOracleApps:InterviewQuestionsonOracleSCM,AOL,Forms
Enterandprintlineamountsthatincludetax
Reportinmultiplecurrencies
Reporting
Viewreportsonline
Reportbycompany
Createaccountingreportsofagings,receipts,cashapplication,and
adjustments
UseReporteXchangetocustomizereports:
Queryselectedinformation
Exporttootherapplications
Createflexibleagings,including:
Customizableagingbuckets
Disputebucket
Customerandinvoicesummary
Byamountandsalesperson
Additionalreports:
Transactionregisters
Taxreports
Creditandcollectionsreports
Keyindicators
Supplier/CustomerNettingreport
ForeignExchangeGain/Lossreport
26.DoesanRMA(orderreturn)automaticallygeneratecreditmemos?
Yes,ReceivableInterfaceofRMAwillgeneratecreditmemos.IftheRMAInterface
resultsPartiallyAcceptedorCompletelyAcceptedareprerequisitestothe
ReceivablesInterfaceintheordercycle,onlyquantitiesoftheitemthathavebeen
receivedinasubinventoryarecredited.Items,whicharereceivedforpurposesof
inspection,arenoteligibletobecreditedunlesstheypassinspectionandare
receivedintoasubinventory.ThusiftheprerequisitefortheReceivablesInterface
includesRMAInterfacePartiallyAccepted,thentheReceivablesInterfacecreates
partialcreditscorrespondingtotheacceptedquantitythathasnotalreadybeen
credited.IftheprerequisitefortheReceivablesInterfaceisonlyRMAInterface
CompletelyAccepted,theReceivablesInterfacewaitsuntilthefullquantityis
acceptedandthencreatesafullcredit.IftheRMAInterfaceisnotaprerequisiteto
theReceivablesInterfaceintheordercycle,thefullreturnquantityenteredonthe
RMAlineiseligibletobecredited.
27.Whatdoesformregistrationdo?
28.Whydoyouneedformregistration?
29.IfIaddcertaincodetoaformanddon'tregisteritwhatwillhappen?
30.IfIaddacolumntoaformanddontregisteritwhatwillhappen?
Afteryoupaintyourform,registeryourformwithOracleApplicationObjectLibrary.In
fact,youmustregisteranyformyouwishtorununderOracleApplicationObject
Library.Byregisteringyourform,youassignittoaparticularapplicationandlet
OracleApplicationObjectLibraryaddformleveltriggersyourformneedstosupport
EasyFormandsuchfeaturesasMenus,QuickPick,andhelptext.Youshould
registeryourformsagainafteryoumakeanychangestotheirstructuressuchas
addingordeletingfieldsorzones.Youcanreregisteryourformasmanytimesasyou
wantwithoutharmingit.
YoucanusetheUpdateFormInformationformtoregisteranychangesyoumaketo
theblocksandfieldsofyourform,ortochangethenamethatappearsinQuickPicks.
31.Whatarethevariousstepsindevelopingareport?
Aftergettingavalidspecification,decideontheoracletoolinwhichreportcouldbe
developed,.ifitsSQLreportthen
1.WriteSQLstatement
2.Buildlayout
3.PutscriptinCUSTOM_TOPdirectory
4.Registerit
IfitsOracleReports(6i)then
1.Buildadatamodel.datamodelincludesquery,summarycolumns,formula
columns,placeholders,groupingsetc
2.Paintthelayout
3.Writetriggerstoenforcebusinessrules

http://www.aboutoracleapps.com/2007/07/oracleappsmanufacturingaolforms.html

6/31

9/10/2016

AboutOracleApps:InterviewQuestionsonOracleSCM,AOL,Forms
4.Createparameters
5.PutscriptinCUSTOM_TOPdirectory
6.Registerit
32.Howdoyoucallauserexit?
FromForms:?
FromReports:srw.user_exit("user_exit_name(parameter1,parameter2,...)")
33.Whatisanchoring?
Anchorsareusedtodeterminetheverticalandhorizontalpositioningofachildobject
relativetoitsparent.
Rules:
1.Anobjectmaybeanchoredtoonlyoneotherobject.
2.Matrixobjects,anchors,andthemargincannotbeanchoredtoanything(i.e.,they
maynotbetheparentorchildobjectforananchor).
3.Arepeatingframethatistheverticalorhorizontalrepeatingframeforamatrix
cannotbeanchoredtoanotherobject,butotherobjectsmaybeanchoredtoit(i.e.,it
canbetheparentbutnotthechildobjectforananchor).
4.Nothingcanbeanchoredtoahiddenobject(anobjectwithHiddenchecked).
5.Movingananchoralsocausethetwoobjectsitanchorstogethertomove.
6.Objectscannotbeanchoredtogetherinsuchawaythattheyhaveacircular
dependency.Forexample:
AssumethatobjectAandobjectBareanchoredtogetherandobjectAisthe
parent.ObjectBcannotbetheparentforanotheranchorbetweenobjectAandobject
B.Inaddition,objectBcannotbetheparentforananchortoobjectC,ifobjectCis
theparentforananchortoobjectA.
AssumethatframeAcontainsfieldBandfieldBisaboveframeAintheeditor.
Furthermore,frameAisanchoredtofieldC,whichisnotinsideofframeA,andfieldC
istheparent.FieldCcannotbetheparentforananchortofieldB.Becauseitis
insideofframeA,fieldBcannotbeanchoredtofieldC,iffieldCistheparent.
7.Tocopyananchor,youmustselecttheanchorandthetwoobjectsitanchors
together.Ifyouselecttheanchorbyitself,nothingwillbecopiedtothepastebuffer.If
youselecttheanchorandoneoftheobjects,onlytheobjectisplacedinthe
clipboard.
8.Ananchorcannotberesized.
9.Ananchormustalwaysbeontopoftheobjectsitanchorstogether(i.e.,itmustbe
oneormorelayersabovetheparentandchildobjects).OracleReportspreventsyou
frommovingtheanchortoalayerbelowitsparentandchildobjects.
10.YoucannotuseAlign,AlignObjects,orSizeObjectsfromtheArrangemenuon
anchors.
34.Whatareformattriggers?
FormatTriggersarePL/SQLfunctionsexecutedbeforetheobjectisformatted.The
triggercanbeusedtodynamicallychangetheformattingattributesoftheobject.
Rules:
Caution:ThePL/SQLinaFormatTriggerisexecutedeachtimethatOracleReports
attemptstoformatthelayoutobject.Asaresult,formattriggersshouldonlycontain
PL/SQLprogramunitsthatsetformattingattributes(e.g.,colorandhighlighting).You
shouldnotperformotheractions,suchasinsertingdatainatable,becauseyou
cannotpredictwhenorhowmanytimesthetriggerwillfire.Forexample,ifyouhave
PageProtectcheckedforanobject,theobjectmightnotbeformattedonthelogical
pagewherethetriggerisfired.Inaddition,thetriggermaybeexecutedmorethan
once.
1.CommentsinserteddirectlyintothePL/SQLcodemustusethePL/SQLcomment
delimiters.
2.InaFormatTrigger,youcanreadthevaluesofOracleReportscolumnsand
parametersofthecorrectfrequency(lookattherulebelow),butyoucannotdirectly
settheirvalues.Forexample,youcanusethevalueofaparametercalledCOUNT1in
acondition(e.g.,IF:COUNT1=10),butyoucannotdirectlysetitsvalueinan
assignmentstatement(e.g.,:COUNT1=10).(Thisrestrictionalsoappliestouser
exitscalledfromtheFormatTrigger.)
3.NotealsothattheuseofPL/SQLglobalvariablestoindirectlysetthevaluesof
columnsorparametersisnotsupported.Ifyoudothis,youmaygetunpredictable
results.
4.YoucannotreferencecolumnsorvariablesintheFormatTriggerofanobjectthat
haveadifferentfrequencythantheobject.Forexample,ifyoucreateamaster/detail
report,theparentgroup'srepeatingframecannothaveaFormatTriggerthatrelieson
avalueinthechildgroup.Foreachparent,theremaybemultiplechildren.Therefore,
attheparentrecordlevel,OracleReportscannotdeterminewhichofthechildrecords

http://www.aboutoracleapps.com/2007/07/oracleappsmanufacturingaolforms.html

7/31

9/10/2016

AboutOracleApps:InterviewQuestionsonOracleSCM,AOL,Forms
touse.Youalsocannotreferenceanypagedependentcolumns(i.e.,ResetAtof
Page)orcolumnsthatrelyonpagedependentcolumnsinaFormatTrigger.The
reasonforthisisthatitwouldresultinacirculardependency.Thatis,thevalueofa
pagedependentcolumncannotbecomputeduntilthereportisformatted,butthe
reportcannotbeformatteduntiltheFormatTriggerisexecuted.
5.IfaFormatTriggerreturnsfalseandtheobjectdoesnotformat,thiscancause
otherobjectsnottoprint.Forexample,ifarepeatingframedoesnotformat,any
objects(fields,boilerplate,frames,orotherrepeatingframes)itencloseswouldnot
formateither.
6.Forrepeatingframes,theFormatTriggerisexecutedforeachinstanceofthe
repeatingframe.TocreateaFormatTriggerthatactsuponallinstancesofarepeating
frameatonce,createaframearoundtherepeatingframeandenteraFormatTrigger
fortheframe.IftheFormatTriggerreturnsFALSEforeveryinstanceofarepeating
frameonalogicalpage,therepeatingframewilloccupynospaceonthelogicalpage
andanchorstootherobjectswillcollapse(ifspecified).
7.ThePL/SQLinaFormatTriggermustreturnconsistentresultsforthesameobject.
Forexample,sayyouhaveaframewhoseFormatTriggerreturnsFALSEwhena
certainconditionismet.Iftheframespanstwopages,theFormatTriggeractually
firestwice(onceforeachpageonwhichtheframeformats).Theconditioninyour
PL/SQLmustreturnthesameresultbothtimestheFormatTriggerfires.Otherwise,
onlypartoftheframewillbeformatted(e.g.,thepartoftheframeonthefirstpage
formats,butthepartonthesecondpagedoesnot).
8.IftheFormatTriggeronarepeatingframeinamatrixreportreturnsFALSE,an
entireroworcolumnofthematrixwillnotformat.Forexample,ifaninstanceofthe
acrossdimensionrepeatingframedoesnotformat,theentirecolumnwillnotformatin
thematrix.
9.Ifyouwanttoconditionallychangethecellofamatrix,youshouldputaframe
aroundthefieldinsidethematrixandusetheFormatTriggerfortheframe.
35.WhatisauserExit?
Auserexitisaroutineyourformcallstoperformapplicationprocessing.
Occasionally,youmayneedtobuildyourownuserexittoperformapplication
processingthatisbeyondthescopeofSQLorSQL*Formscommands.Oracle
ApplicationObjectLibraryhelpsyoubuildauserexitinathirdgenerationlanguage
(suchasPro*C)andintegrateitintoastandarduserexitlibrary.
36.Howcanyouincreasetheperformanceofreports?
1.WritingstraightforwardandplaindatafetchingQueries.
2.Utilizingacorrectcombinationofindicesontablestofetchdata.
3.IncaseofOraclereports(6i)reducethenumberofUserexits,formattriggers,
formulacolumns,summarycolumnsetc.
4.IncaseofOraclereports(6i),insteadofwritingacomplexquery,breakitupinto
multiplesimplequeriesandlinkthemupwithdatalinks.

38.WhatisExplainPlan?
ExplainPlananalyzesthequeryandbreaksitupintothestepswhichoraclefollows
tofetchthedata.
PURPOSE:
TodeterminetheexecutionplanOraclefollowstoexecuteaspecifiedSQLstatement.
Thiscommandinsertsarowdescribingeachstepoftheexecutionplanintoa
specifiedtable.Ifyouareusingcostbasedoptimization,thiscommandalso
determinesthecostofexecutingthestatement.
39.HowdidyouoptimizeyourSQLafterusingExplainPlan?
0.EliminateFULLtablescans.
1.Forcingappropriateindices.
2.Rearrangingthetablenamesinfromclause.
3.Doingawaywithfunctionsinwhereclause.
4.UseEXISTSwhereeverpossibleinsteadofsubqueries.
40.WhatisTKPROF?
TKPROFisatollbyOracletoformatthetracefileoutput.Bypassingdifferent
parametersyoucancontrolthecontentsoftheoutputfile.
UsethefollowingargumentswithTKPROF:
filename1specifiestheinputfile,atracefilecontainingstatisticsproducedbythe
SQLtracefacility.Thisfilecanbeeitheratracefileproducedforasinglesessionora
fileproducedbyappendingtogetherindividualtracefilesfrommultiplesessions.

http://www.aboutoracleapps.com/2007/07/oracleappsmanufacturingaolforms.html

8/31

9/10/2016

AboutOracleApps:InterviewQuestionsonOracleSCM,AOL,Forms
filename2specifiesthefiletowhichTKPROFwritesitsformattedoutput.
EXPLAINdeterminestheexecutionplanforeachSQLstatementinthetracefileand
writestheseexecutionplanstotheoutputfile.TKPROFdeterminesexecutionplans
byissuingtheEXPLAINPLANcommandafterconnectingtoORACLEwiththeuser
andpasswordspecifiedinthisparameter.ThespecifiedusermusthaveCREATE
SESSIONsystemprivileges.
TABLEspecifiestheschemaandnameofthetableintowhichTKPROFtemporarily
placesexecutionplansbeforewritingthemtotheoutputfile.Ifthespecifiedtable
alreadyexists,TKPROFdeletesitsrows,usesitfortheEXPLAINPLANcommand,
andthendeletesitsrows.Ifthistabledoesnotexist,TKPROFcreatesit,usesit,and
thendropsit.
ThespecifiedusermustbeabletoissueINSERT,SELECT,andDELETEstatements
againstthetable.Ifthetabledoesnotalreadyexist,theusermustalsobeableto
issueCREATETABLEandDROPTABLEstatements.
Fortheseprivilegestoissuestatement,seetheORACLE7ServerSQLLanguage
ReferenceManual.
ThisoptionallowsmultipleindividualstoconcurrentlyrunTKPROFwiththesameuser
intheEXPLAINvalue.TheseindividualscanspecifydifferentTABLEvaluesandavoid
destructivelyinterferingwitheachother'sprocessingonthetemporaryplantable.
IfyouusetheEXPLAINparameterwithouttheTABLEparameter,TKPROFusesthe
tablePROF$PLAN_TABLEintheschemaoftheuserspecifiedbytheEXPLAIN
parameter.IfyouusetheTABLEparameterwithouttheEXPLAINparameter,TKPROF
ignorestheTABLEparameter.
INSERTcreatesaSQLscriptthatstoresthetracefilestatisticsinthedatabase.
TKPROFcreatesthisscriptwiththenamefilename3.Thisscriptcreatesatableand
insertsarowofstatisticsforeachtracedSQLstatementintothetable.
SYSenablesanddisablesthelistingofSQLstatementsissuedbytheuserSYS,or
recursiveSQLstatementsintotheoutputfile.ThedefaultvalueofYEScauses
TKPROFtolistthesestatements.ThevalueofNOcausesTKPROFtoomitthem.
NotethatthisparameterdoesnotaffecttheoptionalSQLscript.TheSQLscript
alwaysinsertsstatisticsforalltracedSQLstatements,includingrecursiveSQL
statements.
SORTsortsthetracedSQLstatementsindescendingorderofthespecifiedsort
optionbeforelistingthemintotheoutputfile.Ifmorethanoneoptionisspecified,the
outputissortedindescendingorderbythesumofthevaluesspecifiedinthesort
options.Ifyouomitthisparameter,TKPROFlistsstatementsintotheoutputfilein
ascendingorderofwheneachwasfirstissued.
Thesortoptionsare:
PRSCNTnumberoftimesparsed
PRSCPUCPUtimespentparsing
PRSELAelapsedtimespentparsing
PRSDSKnumberofphysicalreadsfromdiskduringparse
PRSQRYnumberofconsistentmodeblockreadsduringparse
PRSCUnumberofcurrentmodeblockreadsduringparse
PRSMISnumberoflibrarycachemissesduringparse
EXECNTnumberofexecutes
EXECPUCPUtimespentexecuting
EXEELAelapsedtimespentexecuting
EXEDSKnumberofphysicalreadsfromdiskduringexecute
EXEQRYnumberofconsistentmodeblockreadsduringexecute
EXECUnumberofcurrentmodeblockreadsduringexecute
EXEROWnumberofrowsprocessedduringexecute
EXEMISnumberoflibrarycachemissesduringexecute
FCHCNTnumberoffetches
FCHCPUCPUtimespentfetching
FCHELAelapsedtimespentfetching
FCHDSKnumberofphysicalreadsfromdiskduringfetch
FCHQRYnumberofconsistentmodeblockreadsduringfetch
FCHCUnumberofcurrentmodeblockreadsduringfetch
FCHROWnumberofrowsfetched
PRINTlistsonlythefirstintegersortedSQLstatementsintotheoutputfile.Ifyouomit
thisparameter,TKPROFlistsalltracedSQLstatements.Notethatthisparameter
doesnotaffecttheoptionalSQLscript.TheSQLscriptalwaysinsertsstatisticsforall
tracedSQLstatements.

http://www.aboutoracleapps.com/2007/07/oracleappsmanufacturingaolforms.html

9/31

9/10/2016

AboutOracleApps:InterviewQuestionsonOracleSCM,AOL,Forms
ExampleThisexamplerunsTKPROF,acceptsatracefilenamed
KERVMS_RPK2_FG_SQLDBA_007.TRCandwritesaformattedoutputfilenamed
OUTPUTA.PRF:
TKPROFKERVMS_RPK2_FG_SQLDBA_007.TRCOUTPUTA.PRF
EXPLAIN=SCOTT/TIGERTABLE=SCOTT.TEMP_PLAN_TABLE_A
INSERT=STOREA.SQLSYS=NOSORT=(EXECPU,FCHCPU)PRINT=10
41.WhatisSQLtrace?
TheSQLtracefacilityprovidesperformanceinformationonindividualSQLstatements.
TheSQLtracefacilitygeneratesthefollowingstatisticsforeachstatement:
Parse,execute,andfetchcounts
CPUandelapsedtimes
Physicalreadsandlogicalreads
Numberofrowsprocessed
Missesonthelibrarycache
42.Whatdoesso_picking_batchescontain?
Auserdefinedgroupofpickslipsforordersthatyoureleaseforpickingallatonce.
Youcreatepickingbatcheswhenyoureleaseyourordersforshipping.Forexample,a
batchcancontainallshipmentsforaspecificwarehouse,orallpriorityshipments
regardlessofwarehouse.
SO_pickingbatchescontainspickingbatchnameandotherinformationdependson
thevaluesenteredonpickreleasescreenfromthefollowingfieldslikewarehouse,
customer,subinventory,orderetc.usermayentercombinationofthesevaluesand
createapickingbatch.Whichinturnwillfireanconcurrentprogramwhichpopulates
theso_picking_headers,so_picking_lines,so_picking_line_detailstablesandprints
pickingslipsforthebatch.
43.Howdoyoucallaflexfieldfromareport?

44.WhatallreportshaveyoucustomizedinOE?
1.PrintingsalesordersinEuropeanlanguages.
2.
45.Mentionanyreportcustomizationyouhavedone?

46.Howdoyouregisterareport?
1.CreatetheExecutable
2.Createconcurrentprogram
2.1Assigntheexecutable,whichyouhavecreated.
2.2Createtheparameterstobepassedtothereport.
2.3Attachvaluesettoeachandeveryparameter.Ifvaluesetnotthereyouhaveto
createone.
2.4Listincompatibleprogramifany.
47.Whatisaresponsibility?
Usethisformtodefinearesponsibility.Aresponsibilitydetermineshowmuchofan
application'sfunctionalityausercanuse,whatreportsandconcurrentprogramsthe
usercanrun,andwhichapplications'datathosereportsandconcurrentprogramscan
access.
48.Howdoyoucreatearesponsibility?
NavigateSecurityResponsibilityDefine
1.Specifytheapplicationinwhichyouwanttocreateresponsibility.
2.Specifythedatagroupbywhichuserwilllogintodatabase.
3.SpecifythemainMenuwhichuserwillseeonthescreen.
4.Specifythefirstscreenuserwouldseeafterthesuccessfullogin.
5.Assignthereportsecuritygroupwhichdecideswhichreportsuserhasaccessto.
(Optional)
49.Whattablesdoesdemandinterfaceupdate?
MTL_DEMAND_INTERFACE

http://www.aboutoracleapps.com/2007/07/oracleappsmanufacturingaolforms.html

10/31

9/10/2016

AboutOracleApps:InterviewQuestionsonOracleSCM,AOL,Forms
50.Whatiscanvas?
Canvasviewsarethebackgroundobjectsonwhichyouplacetheinterfaceitems(text
items,checkboxes,radiogroups,etc.)andboilerplateobjects(boxes,lines,images,
etc.)thatoperatorsinteractwithastheyrunyourform.Eachcanvasviewisdisplayed
inawindow.
51.Howdoyoutransferdatafromlegacysystemtooraclefinancials?
TransferthedataintoASCIIfilesfromLegacysystem.
UploadthedatafromtheASCIIfilesintoInterfaceTablesusingSQL*loader.
Importthedata,whichisexistingintheinterfacetablestotheOracle'sbasetables
afternecessaryvalidations.
53.Whatarelexicalparameters?
LexicalreferencesareplaceholdersfortextthatyouembedinaSELECTstatement.
YoucanuselexicalreferencestoreplacetheclausesappearingafterSELECT,
FROM,WHERE,GROUPBY,ORDERBY,HAVING,CONNECTBY,andSTART
WITH.
Rules:
1.YoucannotmakelexicalreferencesinaPL/SQLstatement.
2.Ifacolumnorparameterisusedasalexicalreferenceinaquery,itsdatatype
mustbeCharacter.
3.IfyouwanttouselexicalreferencesinyourSELECTclause,youshouldcreatea
separatelexicalforeachcolumnyouwillsubstitute.Inaddition,youshouldassignan
aliastoeachlexicalreference.Thisenablesyoutousethesamelayoutfieldand
boilerplatelabelforwhatevervalueyouenterforthelexicalontheRuntimeParameter
Form.Seetheexamplebelow.
4.IfyouuselexicalreferencesinyourSELECTclause,youmustspecifythesame
numberofitemsatruntimeaswerespecifiedinthereport'sdatamodel.Inaddition,
eachvalueyouspecifyforyourlexicalreferencesatruntimemusthavethesamedata
typeasitsInitialValue.Lookattheexamplebelow.
5.AnOracleReportslinkshouldnotdependuponalexicalreference.Thatis,neither
thechildcolumnofalinkoritstablenameshouldbedeterminedbyalexical
reference.Toachievethisfunctionality,youneedtocreatealinkwithnocolumns
specifiedandthenentertheSQLclause(e.g.,WHERE)forthelinkdirectlyinthe
query.Forexample,yourparentandchildqueriesmightbewrittenasfollows:
ParentQuery:SELECTDEPTNOFROMEMP
ChildQuery:SELECT&PARM_1COL_1,&PARM2COL_2
FROMEMP
WHERE&PARM_1=:DEPTNO

NotehowtheWHEREclausemakesabindreferencetoDEPTNO,whichwas
selectedintheparentquery.Also,thisexampleassumesthatyouhavecreatedalink
betweenthequeriesintheDataModeleditorwithnocolumnsspecified.
6.AlexicalreferencecannotbeusedtocreateadditionalbindvariablesaftertheAfter
Formtriggerfires.Forexample,supposeyouhaveaquerylikethefollowing(notethat
theWHEREclauseisreplacedbyalexicalreference):
SELECTENAME,SALFROMEMP
&where_clause
IfthevalueoftheWHERE_CLAUSEparametercontainsareferencetoabindvariable,
youmustspecifythevalueintheAfterFormtriggerorearlier.Youwouldgetanerrorif
yousuppliedthefollowingvaluefortheparameterintheBeforeReporttrigger:
WHERESAL=:new_bind
IfyousuppliedthissamevalueintheAfterFormtrigger,thereportwouldrun.
Followingaresomeexamplesoflexicalreferences:
SELECTClause

http://www.aboutoracleapps.com/2007/07/oracleappsmanufacturingaolforms.html

11/31

9/10/2016

AboutOracleApps:InterviewQuestionsonOracleSCM,AOL,Forms
SELECT&P_ENAMENAME,&P_EMPNOENO,&P_JOBROLEFROMEMP
P_ENAME,P_EMPNO,andP_JOBcanbeusedtochangethecolumnsselectedat
runtime.Forexample,youcouldenterDEPTNOasthevalueforP_EMPNOonthe
RuntimeParameterForm.Notethatinthiscase,youshouldusealiasesforyour
columns.Otherwise,ifyouchangethecolumnsselectedatruntime,thecolumn
namesintheSELECTlistwillnotmatchtheOracleReportscolumnsandthereport
willnotrun.
FROMClause
SELECTORDID,TOTALFROM&ATABLE
ATABLEcanbeusedtochangethetablefromwhichcolumnsareselectedat
runtime.Forexample,youcouldenterORDforATABLEatruntime.Ifyoudynamically
changethetablenameinthisway,youmayalsowanttouselexicalreferencesfor
theSELECTclause(lookatthepreviousexample)incasethecolumnnamesdiffer
betweentables.
WHEREClause
SELECTORDID,TOTALFROMORDWHERE&CUST
CUSTcanbeusedtorestrictrecordsretrievedfromORD.AnyformoftheWHERE
clausecanbespecifiedatruntime.
GROUPBYClause
SELECTNVL(COMMPLAN,DFLTCOMM)CPLAN,SUM(TOTAL)TOTALFROMORD
GROUPBY&NEWCOMM
ThevalueofNEWCOMMcanbeusedtodefinetheGROUPBYclause.
HAVINGClause
SELECTCUSTID,SUM(TOTAL)TOTALFROMORDGROUPBYCUSTIDHAVING
&MINTOTAL
ThevalueofMINTOTALcould,forexample,beusedtoselectcustomerswitha
minimumtotaloforders.
ORDERBYClause
SELECTORDID,SHIPDATE,ORDERDATE,TOTALFROMORDORDERBY&SORT
ThevalueofSORTcanbeusedtoselectSHIPDATE,ORDERDATE,ORDID,orany
combinationasthesortcriterion.Itcouldalsobeusedtoaddontothequery,for
exampletoaddaCONNECTBYandSTARTWITHclause.
CONNECTBYandSTARTWITHClauses
ParametersinCONNECTBYandSTARTWITHclausesareusedinthesamewayas
theyareintheWHEREandHAVINGclauses.
MultipleClauses
SELECT&COLSTABLE
COLSTABLEcouldbeusedtochangeboththeSELECTandFROMclausesat
runtime.Forexample,youcouldenterDNAMEENAME,LOCSALFROMDEPTfor
COLSTABLEatruntime.
SELECT*FROMEMP&WHEREORD
WHEREORDcouldbeusedtochangeboththeWHEREandORDERBYclausesat
runtime.Forexample,youcouldenterWHERESAL>1000ORDERBYDEPTNOfor
&WHEREORDatruntime.
PL/SQLandSQL
SELECT&BREAK_COLC1,MAX(SAL)FROMEMPGROUPBY&BREAK_COL
BREAK_COLisusedtochangeboththeSELECTlistandtheGROUPBYclauseat
runtime.TheInitialValueoftheparameter&BREAK_COLisJOB.Atruntime,theuser
ofthereportcanprovideavalueforaparametercalledGROUP_BY_COLUMN(of
DatatypeCharacter).IntheValidationTriggerforGROUP_BY_COLUMN,youcallthe
followingPL/SQLprocedureandpassitthevalueofGROUP_BY_COLUMN:

http://www.aboutoracleapps.com/2007/07/oracleappsmanufacturingaolforms.html

12/31

9/10/2016

AboutOracleApps:InterviewQuestionsonOracleSCM,AOL,Forms
procedureconv_param(in_varINchar)is
begin
ifupper(in_var)in('DEPTNO','EMPNO','HIREDATE')then
:break_col:='to_char('in_var')'
else
:break_col:=in_var
endif
end
ThisPL/SQLensuresthat,ifnecessary,aTO_CHARisplacedaroundthebreak
columntheuserchooses.NoticehowinSQL,youmakealexicalreferenceto
BREAK_COL.InPL/SQL,youmustmakeabindreferencetoBREAK_COLbecause
lexicalreferencesarenotallowedinPL/SQL.
54.HowdoIpopulateaPOPlistwitharecordgroupatruntime?
Syntax:
POPULATE_LIST(list_id,recgrp_id)
POPULATE_LIST(list_id,recgrp_name)
POPULATE_LIST(list_name,recgrp_id)
POPULATE_LIST(list_name,recgrp_name)
BuiltinType
Unrestrictedprocedure
EnterQueryMode:yes
Description:
Removesthecontentsofthecurrentlistandpopulatesthelistwiththevaluesfroma
recordgroup.Therecordgroupmustbecreatedatruntimeanditmusthavethe
followingtwocolumn(CHAR)structure:
Column1:Column2:
Thelistlabelthelistvalue
Parameters:
List_idSpecifiestheuniqueIDthatOracleFormsassignswhenitcreatesthelist
item.UsetheFIND_ITEMbuiltintoreturntheIDtoanappropriatelytypedvariable.
ThedatatypeoftheIDisITEM.
list_nameThenameyougavetothelistitemwhenyoucreatedit.Thedatatypeof
thenameisCHAR.
recgrp_idSpecifiestheuniqueIDthatOracleFormsassignswhenitcreatesthe
recordgroup.ThedatatypeoftheIDisRecordGroup.
recgrp_nameTheCHARnameyougavetotherecordgroupwhenyoucreatedit.
UsageNotes:
DonotusethePOPULATE_LISTbuiltiniftheOtherValuespropertyisdefinedand
therearequeriedrecordsintheblock.DoingsomaycauseOracleFormstobe
unabletodisplayrecordsthathavealreadybeenfetched.
Forexample,assumethatalistitemcontainsthevaluesA,B,andCandtheOther
Valuespropertyisdefined.Assumealsothatthesevalueshavebeenfetchedfromthe
database(aqueryisopen).Atthispoint,ifyoupopulatethelistusing
POPULATE_LIST,anerrorwilloccurbecauseOracleFormswillattempttodisplay
thepreviouslyfetchedvalues(A,B,andC),butwillbeunabletobecausethesevalues
wereremovedfromthelistandreplacedwithnewvalues.
Beforepopulatingalist,closeanyopenqueries.UsetheABORT_QUERYbuiltinto
closeanopenquery.
Restrictions:
POPULATE_LISTreturnserrorFRM41337:Cannotpopulatethelistfromtherecord
groupif:
Therecordgroupdoesnotcontaineitherthedefaultvalueelementortheother
valueselementandthelistdoesnotmeetthecriteriaspecifiedfordeletingthese
elementswithDELETE_LIST_ELEMENT.Refertotherestrictionson
DELETE_LIST_ELEMENTformoreinformation.
Therecordgroupcontainsanothervalueelementbutthelistdoesnotmeetthe
criteriaspecifiedforaddinganothervalueelementwithADD_LIST_ELEMENT.Refer

http://www.aboutoracleapps.com/2007/07/oracleappsmanufacturingaolforms.html

13/31

9/10/2016

AboutOracleApps:InterviewQuestionsonOracleSCM,AOL,Forms
totherestrictionsonADD_LIST_ELEMENTformoreinformation.
Example:
/*
**Builtin:POPULATE_LIST
**Example:Retrievesthevaluesfromthecurrentlistitem
**Intorecordgroupone,clearsthelist,and
**Populatesthelistwithvaluesfromrecordgroup
**Twowhenabuttonispressed.
**Trigger:WhenButtonPressed
*/
BEGIN
Retrieve_List(list_id,'RECGRP_ONE')
Clear_List(list_id)
Populate_List(list_id,'RECGRP_TWO')
END

55.HowdoIcallreportsfromforms?
56.WhatarevariousparametersofRun_productbuiltin?
RUN_PRODUCT(product,document,commmode,execmode,location,
list,display)
RUN_PRODUCT(product,document,commmode,execmode,location,
name,display)
Parameters:
productSpecifiesanumericconstantfortheOracleproductyouwanttoinvoke:
FORMSspecifiesaRunformsession.GRAPHICSspecifiesOracleGraphics.
REPORTspecifiesOracleReports.BOOKspecifiesOracleBook.
DocumentSpecifiestheCHARnameofthedocumentormoduletobeexecutedby
thecalledproduct.Validvaluesarethenameofaformmodule,report,Oracle
Graphicsdisplay,orOracleBookdocument.Theapplicationlooksforthemoduleor
documentinthedefaultpathsdefinedforthecalledproduct.
CommmodeSpecifiesthecommunicationmodetobeusedwhenrunningthecalled
product.ValidnumericconstantsforthisparameterareSYNCHRONOUSand
ASYNCHRONOUS.
SYNCHRONOUSspecifiesthatcontrolreturnstoOracleFormsonlyafterthecalled
producthasbeenexited.Theoperatorcannotworkintheformwhilethecalled
productisrunning.
ASYNCHRONOUSspecifiesthatcontrolreturnstothecallingapplication
immediately,evenifthecalledapplicationhasnotcompleteditsdisplay.
execmodeSpecifiestheexecutionmodetobeusedwhenrunningthecalledproduct.
ValidnumericconstantsforthisparameterareBATCHandRUNTIME.Whenyourun
OracleReportsandOracleGraphics,execmodecanbeeitherBATCHorRUNTIME.
WhenyourunOracleForms,alwayssetexecmodetoRUNTIME.
LocationSpecifiesthelocationofthedocumentormoduleyouwantthecalled
producttoexecute,eitherthefilesystemorthedatabase.Validconstantsforthis
propertyareFILESYSTEMandDB.
ListornameSpecifiestheparameterlisttobepassedtothecalledproduct.Valid
valuesforthisparameteraretheCHARnameoftheparameterlist,theIDofthe
parameterlist,orNULL.TospecifyaparameterlistID,useavariableoftype
PARAMLIST.
Note:YoucanpasstextparameterstocalledproductsinbothSYNCHRONOUSand
ASYNCHRONOUSmode.However,parameterliststhatcontainparametersoftype
DATA_PARAMETER(pointerstorecordgroups)canonlybepassedtoOracle
ReportsandOracleGraphicsinSYNCHRONOUSmode.(SYNCHRONOUSmodeis
requiredwheninvokingOracleGraphicstoreturnanOracleGraphicsdisplaythatwill
bedisplayedinaformchartitem.)

Note:YoucanpreventOracleGraphicsfromloggingonbypassingaparameterlist
thatincludesaparameterwithkeysettoLOGONandvaluesettoNO.
Note:YoucannotpassaDATA_PARAMETERtoachildqueryinOracleReports.
Datapassingissupportedonlyformasterqueries.
displaySpecifiestheCHARnameoftheOracleFormschartitemthatwillcontainthe
display(suchasapiechart,barchart,orgraph)generatedbyOracleGraphics.The
nameofthechartitemmustbespecifiedintheformatblock_name.item_name.(This
parameterisonlyrequiredwhenyouareusinganOracleGraphicschartitemina
form.)

http://www.aboutoracleapps.com/2007/07/oracleappsmanufacturingaolforms.html

14/31

9/10/2016

AboutOracleApps:InterviewQuestionsonOracleSCM,AOL,Forms
Add_Parameter(pl_id,'EMP_QUERY',DATA_PARAMETER,'EMP_RECS')
/*
**Runthereportsynchronously,passingtheparameterlist
*/
Run_Product(REPORTS,'empreport',SYNCHRONOUS,RUNTIME,
FILEYSTEM,pl_id,NULL)

57.Ifthefirstfieldofaformisrequired,andIwanttotaboutwithoutentering
anyvalue,howdoIdothat?
Foruser:
PressShift+Tab,itallowstonavigateoutoftherequiredcurrentfield.
Fordeveloper:
VALIDATE(validation_scope)
BuiltinType:unrestrictedprocedure
EnterQueryMode:yes
Description:
VALIDATEforcesOracleFormstoimmediatelyexecutevalidationprocessingforthe
indicatedvalidationscope.
Parameters:
validationscopeSpecifyoneofthefollowingscopes:
DEFAULT_SCOPEPerformnormalvalidationforthedefaultscope,determinedbythe
runtimeplatform.
Note:IfyouchangethescopeviaSET_FORM_PROPERTY(VALIDATIONUNIT)and
thencallVALIDATE(DEFAULT_SCOPE),youwilloverridethedefaultscopeasdefined
intheformmodule.Inthiscase,OracleFormswillnotvalidateatthedefaultscope
butatthescopedefinedbySET_FORM_PROPERTY.
FORM_SCOPEPerformnormalvalidationforthecurrentform.
BLOCK_SCOPEPerformnormalvalidationforthecurrentblock.
RECORD_SCOPEPerformnormalvalidationforthecurrentrecord.
ITEM_SCOPEPerformnormalvalidationforthecurrentitem.
58.Whatisacomplexreportyouhavedone?
59.WhataretheprerequisitesofaMatrixreport?
DataModelRequirementsYoumusthaveamatrix,nestedmatrix,ormatrixbreak
datamodel.Thedatamodelmusthaveatleastfourgroups,oneofwhichmustbea
crossproductgroup.Formoreinformation,seeBuildingReportsManual.
Note:Fordatamodelsthatrequireabreakgroup,youshouldcreatethebreakgroup
beforecreatingthecrossproductgroup.Ifthecrossproductgroupalreadyexists,
deleteit,createthebreakgroup(s),andthenrecreatethecrossproductgroup.
MatricesandSummaries#Whencreatingsummariesthatwillappearwithinthe
matrix,thesummarymustbeownedbythecrossproductgroupandmusthave
ProductOrderspecified.OracleReportsusestheProductOrdertodeterminewhere
toplacethefieldsforthesummariesinthelayout.(Notethatsummariesownedby
thecrossproductgroupcannothaveaResetAtorComputeatofPageorrelyon
columnsthatdo.)
DefaultLayoutRequirementsYoumustselectthecrossproductgroup,andatleast
twoofthegroupsinsideofit.
MatrixReportDefaulting
Thissectionisdividedintosixsections:
Matrixdefaultingwithoutsummaries
Matrixdefaultingwithsummaries
Nestedmatrixdefaultingwithoutsummaries
Nestedmatrixdefaultingwithsummaries
Matrixbreakdefaultingwithoutsummaries

http://www.aboutoracleapps.com/2007/07/oracleappsmanufacturingaolforms.html

15/31

9/10/2016

AboutOracleApps:InterviewQuestionsonOracleSCM,AOL,Forms
Matrixbreakdefaultingwithsummaries
MatrixDefaultingwithoutSummaries
Assumeyouonlyhaveonegrouptree,youselectedthecrossproductgroup,two
groupsinsideofit,andonegroupbelowit.Assumethateachgroupcontainsone
column.
GeneratedObjects:YourLayouteditorwillcontainthefollowingobjects:
B_columnnameForthelabelofeachselectedcolumnintheDefaultLayoutdialog
box.(B_impliesitisaboilerplateobject.)
F_columnnameForeachcolumnthatyouselectedintheDefaultLayoutdialogbox.
(F_impliesitisafield.)
R_groupnameForeachgroupthatyouselectedintheDefaultLayoutdialogbox.(R_
impliesitisarepeatingframe.)
M_groupname_HDRForeachgroupthatyouselectedintheDefaultLayoutdialog
box.(M_impliesitisaframeHDRimpliesitisaheaderframe.M_groupname_HDR
isusedtoprotectfieldlabelsfrombeingoverwrittenbyotherobjectsinthereport.)
X_groupnameForeachpairofrepeatingframesthatintersecttoformthematrix.By
multiplyingthenumberofacrossdimensionsbythenumberofdowndimensions,you
cancalculatethenumberofmatrixobjectscreated.Inthiscase,onedimensiongoing
downmultipliedbyonedimensiongoingacrossyieldsonematrixobject.
60.HowdoIcallabackendstoredprocedurefromforms?
Justcallthestoredprocedureinformsbyitsnameandpassingrequiredparameters.
61.HowdoIhandlestoredProcedureerrorsfromforms?
IferrornothandledinSPthenerrorwillpropagateinforms.
1.Ifuknowtheerrorthendisplayappropriatemessageinonerror.
2.Ifudontknowtheerror,thengeterrorcodeandtextwhichoraclegives
DBMS_ERROR_CODE,DBMS_ERROR_TEXTanddisplaythecontents.
62.IfIamcallingareportfromforms&ifthereportqueryisselect*from
empanddynamicallyatruntimeIwanttochangeittoselect*fromdept
canIdoit?How?
Yes,itispossible.
1)Thedatamodelshouldbepreparedinthemostgenericformatpossiblei.e.using
lexicalparameterslike&QUERY.Forex.Selectmaximumnumberofdummy
columnswithfixedcolumnaliasesfromdualshouldbethedefaultvalueforthelexical
parameterQUERY.
2)Afteracceptingthereportqueryfromtheuserthroughauserparameter(sayRQ).
3)WriteacodeineitherAfterparameterformORBeforereporttriggerstoextract
tablename(sayTN)fromRQ.Queryupthecolumnsfromthedatadictionary(table
COL)forthetablenameTN.
4)Buildthereportqueryusingthecolumnnamesthatarequeriedupandthetable
namethatisextracted.Dontforgettoaddthefixedcolumnaliasesthatwereusedto
formthedatamodel.Applytheto_charfunctiontoallthosenoncharacterfieldsthat
arepartofthereportquery.
5)Passthenewlybuiltreportquerytothedatamodelviathelexicalparameter
QUERY.
6)Thefollowingarethelimitations:
a)Thenumberofcolumnsinthereportlayoutislimitedbythemaximumnumberof
columnsforwhichthedatamodelisdesignedandthereportlayoutispainted.
b)Thetedioushardcodingpartinvolvedinbuildingthenewqueryforthereportin
eitherofthe2AfterparameterformORBeforereporttriggers.
63.Ifwehavesametriggersatmultiplelevelsi.e.Form,BlockandItemthen
whatisthedefaultorderoffiringthetriggers?
1.Item
2.Block
3.Form
64.Whattriggersgetfiredfirst?Whennewforminstanceorwhennewitem
instance?
1.Whennewforminstance
2.Whennewiteminstance

http://www.aboutoracleapps.com/2007/07/oracleappsmanufacturingaolforms.html

16/31

9/10/2016

AboutOracleApps:InterviewQuestionsonOracleSCM,AOL,Forms
65.WhatallAOLfeatureshaveyouused?

66.WhatallstepshavetobedoneifIhavetoaddaQuickPicktoaform,
registeritandrunitinOraclefinancialsApplication?
1)Gettheregisteredformfromthetopdirectoryandaddacoupleofstepsinthe
FND_STARTUPtriggeroftheform.Thestepsareasfollows:
a)DefineanLOV.E.g.
#FNDFKEYDEFINE_LISTVAL
SQL="SELECTLOOKUP_CODE,MEANING\"UnitofMeasure\"
INTO:ORDER_LINE.UNIT_OF_MEASURE,
:ORDER_LINE.UNIT_OF_MEASURE_MEANING
FROMOE_LOOKUPSWHERELOOKUP_TYPE=
'UNIT_OF_MEASURE'AND
LOOKUP_CODEIN(SELECTUNIT_OF_MEASUREFROM
OE_PRODUCT_PRICES
WHEREPRODUCT_ID=:ORDER_LINE.PRODUCT_ID)"
COLUMN="\"UnitofMeasure\"(15)"
LOVNAME="UOM_QP"
b)attachittotheFieldasoneofthestepsinFND_STARTUPtrigger.
#FNDFIELD_INFO
ZONENAME="ORDER_LINE"
FIELDNAME="UNIT_OF_MEASURE"
LOVNAME="UOM_QP"
2)
a)AddanewtriggerdefiningacustomizedLOV.
XXX_QP(oranunnamedstepofyourformlevelEasyFormdeclarationtriggeratform
level)
whereXXXarethreeormorecharactersyouchoose
Createuserdefinedtriggerasfollows:
Syntax,Step1
#FNDFKEYDEFINE_LISTVAL
LOVNAME=list_of_values_name"
SQL="SQLselectstatement"
[QVALIDATION="SQLlogicforqueryvalidation"]
[EVALIDATION="SQLlogicforentryvalidation"]
COLUMN="column1(length),column2(length),..."
[FLDNAME=":block.reference_field"]
[TITLE="{titletext*applicationshortname:messagename}"]
[HEADING="{heading1(length),heading2(length),...
*applicationshortname:messagenameN}"]
[CACHE="{YN}"]
[MATCH="{YN}"]
[LONGLIST="{YN}"]
[SKIP="{012...}"]
[AUTOPICK="{YNFORCE_YESFORCE_NO}"]
[WINDOW="xorigin,yorigin,width,height"]
AddaFND_LISTVALtriggerspecifyingyourLOVNAMEwiththefieldtowhichithas
tobeattachedto,atitemlevelasfollows:
#FNDFKEYLISTVAL
FLDNAME=":first_block.ename"LOVNAME="LOV1"
c)AddFND_FKEYtriggercalling#EXEMACROEXETRGusertriggernamethis
triggeriscalledfromaformlevelstandardPRE_FIELDtrigger.ThisFND_FKEY
triggerqueriesandfetchesdatabasedontheLOVdefinitionandlightsupthePICK
lampinthemessageline.ThisFND_FKEYshouldbeatitemlevel.
d)Registertheform.ResponsibilityApplicationDeveloperandthenavigationpathis
\NavigateApplicationFormRegister
67.HowdoIattachaformtomyownmenu?
\NavigateApplicationMenu
Specifyapplicationname,menunameandmovetonextzone.Foramenuitem
attachaobject,specifyTYPEasFORM.Specifyunderwhichapplicationtheformis
registeredintoandSavechanges.
68.Tellanycomplexreportyouhavedeveloped?
69.Whatallfeaturesofreportshaveyouincorporatedinyourreport?
70.Tellanycomplexformyouhavedeveloped?
71.Whatallfeaturesofformsyouhaveincorporatedinyourform?

http://www.aboutoracleapps.com/2007/07/oracleappsmanufacturingaolforms.html

17/31

9/10/2016

AboutOracleApps:InterviewQuestionsonOracleSCM,AOL,Forms
72.Whatallarestepsrequiredtopassaflexfieldasaparametertoareport?
Avaluesetofvalidationtypespecialorpairhastobecreated,inwhichwehaveto
actuallyinvoketheflexfield.Thenwhenyouspecifyreportparametersinconcurrent
programdefinition,specifythevaluesetwhichistobeusedforparametervalidation.
Dependingonthevaluesetyouuseforvalidation,flexfieldpopupwillappear.
Parametersarepassedtothereportasastring.APPSinbuiltuserexitwillinterpret
thestringandwillreturnaformattedWHERECLAUSEinformofalexicalparameter
whichwehavetoattachtothequery.
73.Whattechnicalfeatures(nonfunctional)haveyoupracticallyusedin
OracleApplications?
Contextsensitivehelp,zoom,quickpick,quickcode,descriptiveflexfield,reportsets,
menucreation,responsibility,concurrentprogram,registeringtables,columns,forms,
report,executable
74.Whatispickrelease?Whichtablesareusedinpickrelease?
PickReleaseisanordercycleactiontonotifywarehousethatordersarereadyfor
picking.Pickingisaprocessofwithdrawingitemsfrominventorytobeshippedtothe
customer.
Tablesusedare
SO_PICKING_HEADER,
SO_PICKING_LINES,
SO_PICKING_LINE_DETAILS,
SO_PICKING_BATCHES,
75.Howdoyoureleasebackordereditems?
Backorderisunfulfilledcustomerorderorcommitment.Whenyoupickreleasean
orderthereisafieldforbackorderifyouspecifybackordertoINCLUDEDorONLYthe
backorderquantitywillbepickedforshipment.
Thisvaluecanbeeitheroffollowing:
IncludeReleasesallbackorderedorderlinesthatmeetyourcriteriaandthenall
unreleasedorderlinesthatmeetyourcriteria.
ExcludeReleasesallunreleasedorderlinesthatmeetyourcriteria(excluding
backorders).
OnlyReleasesonlybackorderedlinesthatmeetyourcriteria.
UnfulfilledorderlinedetailswhichhavefailedtobereleasedatleastoncebyPick
ReleaseorhavebeenbackorderedbyShipConfirm.
76.WhatisstoredinSO_PICKING_BATCHES?
Storesbatchinformationfortheorders,whicharedueforpickrelease.Itstoresitem
id,warehouse,subinventory,shipmentmethod,shipmentpriority,shipsetno,order
type,etc.
77.Whichtablesstoredorderholdsinformation?
Tablesstoringholdinformationare
SO_HOLDS,
SO_HOLD_AUTHORIZATION,
SO_HOLD_RELEASES,
SO_HOLD_SOURCES_ALL,
SO_ORDER_HOLDS_ALL
78.Howdoyoumodifydescriptiveflexfield?
1.Forchangingsegmentsofdescriptiveflexfield
FromAOLselect
\Flexfielddescriptivesegments
YouhavetoUNFREEZflexfieldandthenchangethesegments.Onceyouare
throughwithmodifications,setitbacktoFREEZ.Thiswillfireaconcurrentrequest
whichwillinturnchangethedescriptiveflexfieldtoreflectthechanges.
2.Forchangingvaluesetsattachedtoflexfield
\Flexfielddescriptivevalues.
Specifytheapplication,form,zone,flexfieldnameandchangevaluesetsinthenext

http://www.aboutoracleapps.com/2007/07/oracleappsmanufacturingaolforms.html

18/31

9/10/2016

AboutOracleApps:InterviewQuestionsonOracleSCM,AOL,Forms
zone.Savethescreentoreflectthenewvalueset.
79.Howdoesexplainplaninformthataparticularindexbeusedforquery
execution?
Youcanpasshintfortheoptimizertousethespecifiedindex.Hintispassedinthe
SQLas/*hint*/wherehintistheindexnametobeused.
80.Namethetablewheredemandinterfacedataisstored?
PleaserefertoquestionNo48
81.Howtoregisteraform,reports?
Refertoquestion46and27to30foranswer.
82.Wherewillyoukeephostsourcecode?
$APPL_TOP/bin
83.Whatisflexfield?
FlexfieldAnOracleApplicationsfieldmadeupofsegments.Eachsegmenthasan
assignednameandasetofvalidvalues.OracleApplicationsusesflexfieldsto
captureinformationaboutyourorganization.Therearetwotypesofflexfields:key
flexfieldsanddescriptiveflexfields.
84.Whatissegmentqualifier?
SegmentQualifier
Asegmentqualifieridentifiesaparticulartypeofvalueinasinglesegmentofakey
flexfield.IntheOracleApplications,onlytheAccountingFlexfieldusessegment
qualifiers.Youcanthinkofasegmentqualifierasan"identificationtag"foravalue.In
theAccountingFlexfield,segmentqualifierscanidentifytheaccounttypeforan
accountsegmentvalue,anddeterminewhetherdetailpostingorbudgetingareallowed
foraparticularvalue.
Itiseasytoconfusethetwotypesofqualifiers.Youshouldthinkofaflexfieldqualifier
assomethingthewholeflexfieldusestotagitspieces,andyoucanthinkofa
segmentqualifierassomethingthesegmentusestotagitsvalues.
85.Whatareglobalsegments?
Descriptiveflexfieldshavetwodifferenttypesofsegments,globalandcontext
sensitive,thatyoucandecidetouseinadescriptiveflexfieldstructure.Aglobal
segmentisasegmentthatalwaysappearsinthedescriptiveflexfieldpopupwindow,
regardlessofcontext(anyotherinformationinyourform).
86.Whatarecontextsensitivesegments?
Descriptiveflexfieldshavetwodifferenttypesofsegments,globalandcontext
sensitive,thatyoucandecidetouseinadescriptiveflexfieldstructure.Acontext
sensitivesegmentisasegmentthatmayormaynotappeardependinguponwhat
otherinformationispresentinyourform.
87.Howtoimplementflexfieldsinforms,namethetriggersanduserexits?
ForinsertingdataforaFlexField
a)TriggerKEY_PREFIELDcallsPOPIDuserexitforinvokingflexfield.Thisiswritten
atthefieldlevel.
b)TriggersFND_PRE_INSERTand/orFND_PRE_UPDATEcallsVALIDuserexitfor
validatingtheuserenteredflexfield.Thesearewrittenattheblocklevel.
ForquerieddataforaFlexfield
a)TriggerFND_PRE_QUERYcallsPOPIDuserexitforinvokingflexfieldwindowand
FND_POST_QUERYcallsLOADIDuserexitforloadingsegmentdescriptionswhen
userQueries.

88.WhyisFNDCURRENCYusedinreports?
ItisFNDFORMAT_CURRENCYuserexitforareport,whichdisplaysmixedcurrency
values.Informationabouttheradixcharacterandthousandsseparatoraredetermined
fromthelocationoftheuser.Thespecialdisplayfornegativeandpositivecurrency
valuesisspecifiedbytwoprofileoptions.Hence,areportcanappeardifferently
dependinguponthelocationoftheuserandtheprofileoptionsvaluesset.

http://www.aboutoracleapps.com/2007/07/oracleappsmanufacturingaolforms.html

19/31

9/10/2016

AboutOracleApps:InterviewQuestionsonOracleSCM,AOL,Forms
InGermanytheradixcharacterandthousandseparatorareswitchedfromtheUS
counterpart.Thenegativenumbersdisplayinparentheses()oranglebrackets<\>
dependingupontheuser'spreference.
NOTE:Itdoesnotconvertonecurrencyintoanotherbutjustformatstheamountsas
perlocation.
89.Whatisthedifferencebetweenquickpickandquickcode?
OverviewofQuickPickandQuickCodes
QuickPickisapowerfulOracleApplicationObjectLibraryfeaturethatmakesyour
usersmoreproductivebylettingthementerdatainshorthandformandbyensuring
thattheyentervaliddata.QuickPickalsomakesiteasyforyoutocreateforeignkey
relationshipsinyourforms.Youcandesignmoreintuitiveformsbydisplaying
descriptivenamesandhidinginternalidentifiers.Forexample,whenenteringthesales
representativeresponsibleforaclient,yourusercanentertherepresentative'sname,
insteadoftherepresentative'semployeeIDorsomeotheridentifyingcode.
YoucanalsouseQuickPicktoenforceseparatevalidationrulesfordataentryand
dataquery.Forexample,youcanspecifythatwhenenteringacurrencyname,your
usercanonlychosefromcurrencynamesthatareenabledandcurrentlyactive.
Whenqueryingdata,youusersseesallenabledanddisabledcurrencynames.
IfyoudefineaQuickPickonafield,yourformdisplaysaPICKlamptoshowyour
userthatQuickPickisavailable.
QuickCodesletyoudefinegeneralpurpose,staticlistsofvaluesforformfields.
QuickCodesallowyoutobaseyourprogramlogiconcodeswhiledisplayinguser
friendlynamesinaQuickPickwindow.QuickCodessimplifynameandlanguage
changesbylettingyoualterthenamesyouruserssee,whilethecodesinyour
underlyingformsandprogramsremainunchanged.
QuickCodesshareallthepowerfulfeaturesofQuickPick,suchasAutoSelectionand
AutoReduction.QuickCodesalsouseseparatevalidationcriteriafordataentryand
dataquery,althoughforQuickCodesthisvalidationhappensautomatically,basedon
startandenddatesandanenabledflag.
Fromyourenduser'spointofview,aQuickCodesfieldlooksandactsjustlikea
QuickPickfield.However,duetothestaticnatureofQuickCodeslistsofvalues,
OracleApplicationObjectLibraryprocessesthemuptotentimesfasterthanordinary
QuickPicklists,resultinginimprovedperformanceforyourusers.
Forexample,supposeyourformcontainsseveralfieldsthatacceptthevaluesYes
andNo.Insteadofwritingtriggersthatexplicitlycheckforeachofthesevalues(and
theirpartialvalueslikeYorN),youcanwriteQuickCodestriggersthatrefertothe
QuickCodestypeYES_NO.IfyourenduserentersYesorNo(ortheirpartialvalues),
QuickCodesreturnsacodetoyourformtoindicatethevalueentered.
YoucanalsouseQuickCodesonfieldsthatacceptlongerlistsofvalues,suchas
U.S.statenames.Yourenduserscanaddvaluestolistsyoudefine.Yourendusers
canalsospecifyastartingdate,anendingdate,andwhetheraparticularQuickCodes
valueisenabled.
TherearetwotypesofQuickCodes.SomeQuickCodesaresharedamongseveral
applications,andarealwayspreseeded.Werecommendyoudonotcreatenew
QuickCodetypesforthepreseededQuickCodes.Youcanmaintainthese
QuickCodesusingtheDefineQuickCodesform.
SpecialQuickCodes,whicharemaintainedfromtheDefineSpecialQuickCodesform,
allowyoutocreatenewQuickCodetypes.Inthischapter,wediscussmaintaining
anddevelopingSpecialQuickCodes,usuallyreferredtosimplyasQuickCodes.
90.Whatisautoreduction?
AutoReductionautomaticallyshortensthelisttoonlythosevaluesbeginningwiththe
character(s)youruserstype.
91.Whatarespecialtriggerscreatedintheformwhenyouregisterit?
Referquestion2730.
92.Howwillyoudisplayamessageintheformthatyouhavemodifiedfor
testingtheform?

93.Howcanyouseetheglobalparametervaluesintheformwithoutcoding?

http://www.aboutoracleapps.com/2007/07/oracleappsmanufacturingaolforms.html

20/31

9/10/2016

AboutOracleApps:InterviewQuestionsonOracleSCM,AOL,Forms
Youshouldhavedevelopermenutodothis.YouhaveaExamineoptionwhichlistsall
formlevel,systemlevelandglobalvariables.Youcanseevaluesofallofthemwithout
codingforit.
94.Howtodebugtheform?
Youshouldhavedevelopermenutodothis.ThereisanoptiontosetDebuggerOn
andOff.Itwillshowyouwhichtriggerisgettingfiredandyoucandebugtherelevant
trigger.
95.Whatwasthestructureofaccountingflexfieldinyourpreviousproject?
Company
Region
CostCenter
Account
Product
Subaccount
96.Whatisbalancingsegment?
BalancingsegmentAnAccountingFlexfieldsegmentthatyoudefinesothatOracle
GeneralLedgerautomaticallybalancesalljournalentriesforeachvalueofthis
segment.Forexample,ifyourcompanysegmentisabalancingsegment,Oracle
GeneralLedgerensuresthat,withineveryjournalentry,thetotaldebitstocompany01
equalthetotalcreditstocompany01.
97.Whatiscostcentersegment?
Itisasegmentqualifier.Asegmentqualifieridentifiesaparticulartypeofvalueina
singlesegmentofakeyflexfield.IntheOracleApplications,onlytheAccounting
Flexfieldusessegmentqualifiers.Youcanthinkofasegmentqualifierasan
"identificationtag"foravalue.IntheAccountingFlexfield,segmentqualifierscan
identifytheaccounttypeforanaccountsegmentvalue,anddeterminewhetherdetail
postingorbudgeting,areallowedforaparticularvalue.
98.CanyouhavetwoaccountingflexfieldsinAR?
Yes,youcanhaveasmanyaccountingflexfieldsasyouwish.But,thenyouhaveto
defineonesetofbooksperaccountingflexfield.
99.Whatareonaccountsalescredits?
Onaccount:Paymentswhereyouintentionallyapplyallorpartofthepayment
amounttoacustomerwithoutreferencetoandebititem.Onaccountexamples
includeprepaymentsanddeposits.
Onaccountcredits:Creditsthatyouassigntoyourcustomer'saccountthatarenot
relatedtoaspecificinvoice.YoucancreateonaccountcreditsintheEnterCredit
MemosformorthroughAutoInvoice.
100.Whatiscustomermerging?
Youcanmergethebusinesspurposesoftwodifferentcustomersinordertoassignall
transactionstoanewcustomer,oryoucanmergebusinesspurposesforthesame
customer.OracleReceivablesautomaticallygeneratesareportafteryoumerge
customerinformationtoallowyoutoreviewthedetailsofyourmerge.
101.Whathappenswhenyoucompleteaninvoice?
Youcompleteaninvoicebyenteringyesinthisfield.Ifyouonlyhavepartial
informationfortheinvoiceyoucanalwaysgobacktoentermoreinformationto
completeyourinvoice.
OracleReceivablesperformsseveralvalidationtestsbeforeitallowsyoutosetthe
CompletefieldtoYesforaninvoice:
_Invoicecontainsatleastonelineorhasfreightattheheaderlevel.
_Invoicedateiswithinactivedaterangesofparameters
_Eachinvoicelineamountmustequalthesumofit'sdistributions
_GLdatemustfallwithinanopenorfutureenterableaccountingperiod
_InvoiceAmountsignadherestothevaluethatyouspecifiedfortheCreationSign

http://www.aboutoracleapps.com/2007/07/oracleappsmanufacturingaolforms.html

21/31

9/10/2016

AboutOracleApps:InterviewQuestionsonOracleSCM,AOL,Forms
fieldofthetransactiontypeforthisinvoice
Ifyouareenteringaninvoiceagainstacommitment:
_Invoicedateisequaltoorlaterthanthetransactiondate
_Invoice'sGLdateisequaltoorlaterthanthecommitment'sGLdate
Ifyouhaveassignedanautomaticpaymentmethodtoaninvoice:
_Specifiedacustomerbank
_Specifiedacustomerbankbranch
_Specifiedacustomerbankaccount
Ifyouassignaninvoicingruletoaninvoice:
_Eachinvoicelinehasanaccountingrule
_Eachinvoicelinehasarulestartdate
_Invoiceandtaxlinesofaninvoicehaveaccountsets
Ifyoudonotassignaninvoicingruletoaninvoice:
_Revenueaccountsexistforalloftheinvoiceandtaxlines
_AccountsontheAccountAssignmentsarevalidFlexfieldcombinations
IfTaxCalculationissettoYes:
_Eachlinehasataxlineexceptchargeslines
WhenyoucompleteaninvoicewhosetransactiontypehasOpenReceivablessetto
Yes,OracleReceivablesdisplaystheinvoiceonyouragings.Ifyouchangethe
transactiontypeofacompletedinvoicewhereOpenReceivablesissettoNo,Oracle
Receivablesnolongerdisplaystheinvoiceonyouragings.
IfyouupdateacompletedinvoicebychangingvaluesonwhichAutoAccounting
depends,andAutoAccountingfails,OracleReceivablesdisplaysawarningmessage
andchangesthisfieldbacktoNo.
Ifyouupdateacompletedinvoicebychangingvaluesonwhichtaxcalculation
depends,andtaxcalculationfails,OracleReceivablesdisplaysawarningmessage
andchangesthisfieldbacktoNo.
OracleReceivablesalsoletsyoudeleteincompleteinvoicesifyouenterYesinthe
AllowDeletefieldoftheSystemOptionsform.
102.WhatallthingsarestoredinRA_CUSTOMER_TRX?
TheRA_CUSTOMER_TRXtablestoresinvoice,debitmemo,commitmentandcredit
memoheaderinformation.Eachofthesetransactionsisstoredasauniquerecord,
basedontheprimarykey,customer_trx_id.Thetransactionnumber,transactiondate
andbillingcustomerarestoredinthetrx_number,trx_dateandbill_to_customer_id
columns,respectively.Additionalinformationstoredinthistableincludesshipto
customer,documentsequencenumber,currencycodeandatransactioncomplete
flag.ThetransactiontypefortheinvoiceisstoredintheRA_CUST_TRX_TYPES
table,butcanbereferencedviatheforeignkeycust_trx_type_id.
103.Whatarechargebacks?
Chargebackisanewdebititemthatyouassigntoyourcustomerwhenyouclosean
existing,outstandingdebititem.
104.Whatislockbox?
105.Whatisaddressvalidation?
Foreachaddressstyleyoucandefinecountryspecificvalidationwhichcontrolsthe
informationyouenterincertainaddresselements.Forexample,youmaywantto
restricttheentryofcitiesforFrenchaddressestoapredefinedlist,oryoumaywant
torestrictapostalcodetoacertainrangeofnumbers.OracleApplicationsallowyou
todefineyourowncountryspecificvalidation.Validationcantaketheformofasimple
quickpickoracomplexparentchildrelationshipbetweenaddresselements.

http://www.aboutoracleapps.com/2007/07/oracleappsmanufacturingaolforms.html

22/31

9/10/2016

AboutOracleApps:InterviewQuestionsonOracleSCM,AOL,Forms
106.Whatisfinancecharge?
Financechargesareadditionalchargesthatyouassigntoyourcustomersforpast
dueitems.Youspecifywhetheryouwanttochargeyourcustomersfinancecharges
throughtheircustomerprofiles.Financechargescanbeincludedonyourcustomer's
statementsanddunningletters.
107.HowARandOErelated?
OrdersareenteredthroughOEmodule.OnceorderisShipConfirmedi.e.materialis
deliveredtocustomer,receivableinterfaceisrun.ThisinterfaceportsdatafromOEto
ARtables.ARenablestochasecustomerforpayments.Variouskindsofreportsare
produced.DataremainsinARtillInvoiceispaidoffandthendataispassedontoGL.
108.Whatiscreditmemoanddebitmemo?
Ref.Question20,21.
109.WhatisthelinkbetweenCMandinvoice(columnname)?
InvoiceandCMbothgoinra_customer_trxtable.CMrecordwillhave
customer_trx_type_idofcreditmemo(intrainingdatabaseitssetto1002).ThisCM
recordwillstorethetrx_numberofInvoicerecordinprevious_customer_trx_number.
Eg.
Invoicerecordtrx_number=1000
CMrecordtrx_number=1020086previuos_customer_trx_number=1000
110.Whatissetofbooks?
SetofbooksAcompanyorgroupofcompanieswithinOracleGeneralLedgerthat
sharesacommonAccountingFlexfieldstructure,calendarandfunctionalcurrency.
111.Howtofindoverdueinvoices?
Youcanfindoutoverdueinvoicesbyfiringanagingreport.Defineagingbucketstolist
invoicesindifferentbucketslike30daysoverdue,60daysoverdue,90daysoverdue
etc.

112.ListthekeyflexfieldsinAR?
Territory
Salestaxlocation
113.Whichistheparametersettovalidatekeyflexfieldvalue?
Syntax
#FND{POPIDLOADIDVALID}
CODE="flexfieldcode"
APPL_SHORT_NAME="application_short_name"
VALIDATE="{FULLPARTIALNONEQUERY}"
SEG="block.concatenatedvaluesfieldname"
[BLOCK="block_name"]
[FIELD="field_name"]
[DERIVED=":block.field\nSegmentqualifier"]
[READ_ONLY="{YN}"]
[DINSERT="{YN}"]
[WINDOW="{YN}"]
[ID="block.uniqueIDfield"]
[REQUIRED="{YN}"]
[DISPLAY="{ALLflexfieldqualifier
segmentnumber}"]
[UPDATE="{ALLflexfieldqualifier
segmentnumber}"]
[INSERT="{ALLflexfieldqualifier
segmentnumber}"]
[DATA_FIELD="concatenatedhiddenIDsfield"]
[DESC="block.concatenateddescriptionfieldname"]
[TITLE="windowtitle"]
[VDATE="date"]
[NAVIGATE="{YN}"]
[AUTOPICK="{YN}"]
[NUM=":structuredefiningfield"]
[COPY=":block.field\n{ALLflexfieldqualifier}"]
[VRULE="flexfieldqualifier\n
segmentqualifier\n

http://www.aboutoracleapps.com/2007/07/oracleappsmanufacturingaolforms.html

23/31

9/10/2016

AboutOracleApps:InterviewQuestionsonOracleSCM,AOL,Forms
{I[nclude]E[xclude]}\n
NAME=MessageDictionarymessagename\n
validationvalue1\n
validationvalue2..."]
[VALATT=":block.field\n
flexfieldqualifier\n
segmentqualifier"]
[USEDBFLDS="{YN}"]
[COLUMN="{column1(n)column1alias(n)
[,column2(n),...]}]
[WHERE="whereclause"]
[SET="setnumber"]
[ALLOWNULLS="{YN}"]
[QUERY_SECURITY="{YN}"]
[QBE_IN="{YN}"]
[LONGLIST="{YN}"]
[NO_COMBMSG="MESG_NAME"]
114.Whatisdunningletter?
Aletterthatyousendtoyourcustomerstoinformthemofpastduedebititems.
OracleReceivablesletsyouspecifythetextandformatofeachletter.Youcan
choosetoincludeunappliedandonaccountpayments.
115.Whatisprofile?
Profileisasetofoptional/mandatoryparameters,whichausercanset,whichdecide
thewayOracleapplicationswork.
116.Whatisconcurrentprogram?
Itisauniquefacilitythatmanagesmanytimeconsuming,noninteractivetaskswithin
OracleApplicationsforyou,soyoudonothavetowaitfortheircompletion.Whenyou
submitarequestinOracleApplicationsthatdoesnotrequireyourinteraction,such
asreleasingshipmentsorrunningareport,theConcurrentManagerdoestheworkfor
you,enablingyoutocompletemultipletaskssimultaneously.
117.Whataretheinputsforpickrelease?
Backorders&PriorReservationsOnlyaremandatoryfields,restofthemare
optional,whichincludethefollowing:
a)OrderType
b)OrderNumber
c)CustomerNumber
d)BetweenRequestDatesandorScheduleDates.
e)Warehouse
f)Subinventory
g)Item
h)Shipmentpriority
i)FreightCarrier
118.Afterwhichstageyoucannotcanceltheorder?
TheCancelOrdersformenforcessomesecurityrulesthatarenotpredefinedusing
theDefineSecurityRulesform.Forexample,theCancelOrdersformpreventsyou
fromcancellingorderlinequantitiesthathavebeenshippedorinvoiced,andfrom
cancellingreturnlinequantitiesthathavebeenreceivedorcredited.TheCancel
OrdersformhonorssecurityrulesthatyoudefinefortheCanceloperationthatare
stricterthantheserules,butifyoudefineanythatconflictwiththeserules,theywill
beignored.
119.NameimportanttablesfromOE/AR?
FollowingarethelistofsometablesinOEmodule:
SO_CYCLES
SO_ACTIONS
SO_CYCLE_ACTIONS
SO_RESULTS
SO_HEADERS
SO_LINESSO_LINE_DETAILS
SO_PRICE_LISTS
SO_PRICE_LIST_LINES
SO_PRICE_ADJUSTMENTS
SO_DISCOUNTS
SO_DISCOUNTS_LINES
SO_PICKING_BATCHESSO_PICKING_HEADERSSO_PICKING_LINES
SO_LINE_APROVALS
SO_ORDER_APROVAL

http://www.aboutoracleapps.com/2007/07/oracleappsmanufacturingaolforms.html

24/31

9/10/2016

AboutOracleApps:InterviewQuestionsonOracleSCM,AOL,Forms
SO_CREDIT_CHECK_RULES
FollowingarethelistofsometablesinARmodule:
RA_CUSTOMER_TRX
RA_CUSTOMER_TRX_LINES
RA_CUST_TRX_LINE_GL_DIST
RA_CUSTOMER_TRX_LINE_SALESREPS
AR_PAYMENT_SCHEDULES
AR_CUSTOMER_PROFILES
AR_CUSTOMER_PROFILE_CLASSES
AR_CASH_RECEIPTS
AR_MISC_CASH_DISTRIBUTIONS
AR_CASH_RECEIPT_HISTORY
AR_RECEIVABLE_APPLICATIONS
120.GivecompleteprocesscycleforOE/AR?
TheprocesscycleforageneralOEisasfollows:
ENTER
BOOK
DEMANDINTERFACE
BACKORDERRELEASE
PICKRELEASE
SHIPCONFIRM
INVENTORYINTERFACE&RECEIVABLEINTERFACECOMPLETELlNECOMPLETE
ORDER
TheprocesscycleforageneralOEisasfollows:
ImportInvoiceinformationfromlegacysystemorfromOEmodule(Receivable
Interface)toAutoinvoicetheOrders.
EnterReceipt
ApplytheInvoicesagainstthereceiptreceivedordepositsheldorcreditmemosor
prepayments.
Completeinvoice.
121.NameinterfacetablesinOE/AR?
OracleOrderEntryinsertsinformationintotwoofthethreeAutoInvoiceinterface
tables(RA_INTERFACE_LINESandRA_INTERFACE_SALES_CREDITS).
RA_INTERFACE_DISTRIBUTIONS
OracleReceivablesandOracleGovernmentReceivablesusesthreetablesto
temporarilystoredatayoutransferfromothersystems.Thesetablesarecalled
RA_INTERFACE_LINES_ALL,RA_INTERFACE_SALESCREDITS_ALLand
RA_INTERFACE_DISTRIBUTIONS_ALL.Thefourthtable,
RA_INTERFACE_ERRORS_ALLisusedonlybyAutoInvoicetostoreinformation
aboutinterfacedatathatfailedvalidation.Foradetaileddescriptionofeachcolumnin
thesetables,pleaserefertotheTableandColumnDescriptionsection.
122.WhattablesarehitwhenanInvoiceisentered?
RA_CUSTOMER_TRX
RA_CUSTOMER_TRX_LINES
RA_CUST_TRX_LINE_GL_DIST
RA_CUSTOMER_TRX_LINE_SALESREPS
AR_PAYMENT_SCHEDULES
123.Nameimportanttablesofvariousmodules?
FollowingaresomeoftheimportanttablesinAPmodule:
AP_INVOICES
AP_INVOICE_DISTRIBUTIONS
AP_HOLDS
AP_PAYMENT_SCHEDULES
AP_INVOICE_PREPAYS
AP_CHECKS
AP_INVOICE_PAYMENTS
AP_PAYMENT_DISTRIBUTIONS
FollowingaresomeoftheimportanttablesinGLmodule:
GL_JE_BATCHES
GL_JE_HEADERS
GL_JE_LINES
GL_CODE_COMBINATIONS
GL_BALANCES
GL_IMPORT_REFERENCES
GL_BUDGETS
GL_BUDGET_ENTITIES
GL_BUDGET_ASSIGNMENTS
GL_BUDGET_VERSIONS

http://www.aboutoracleapps.com/2007/07/oracleappsmanufacturingaolforms.html

25/31

9/10/2016

AboutOracleApps:InterviewQuestionsonOracleSCM,AOL,Forms
GL_INTERFACE
FollowingaresomeoftheimportanttablesinINVmodule:
MTL_SYSTEM_ITEMS
MTL_PARAMETERS
MTL_ITEM_ATTRIBUTES
MTL_ITEM_TEMPLATES
MTL_ITEM_TEMPL_ATTRIBUTES
MTL_UNITS_OF_MEASURE
MTL_ITEM_REVISIONS
MTL_SERIAL_NUMBERS
MTL_LOT_NUMBERS
MTL_ITEM_CATALOG_GROUPS
MTL_MATERIAL_TRANSATIONS
MTL_MATERIAL_TRANSATIONS_TEMP
MTL_ONHAND_QUANTITIES
MTL_DEMAND_INTERTFACE

125.WhatyouknowaboutSQL*Loader?
SQL*LoaderisautilityusedformovingdatafromexternalfilesintotheOracle
database.
ItssyntaxissimilartothatoftheDB2Loadutility,butcomeswithmoreoptions.
SQL*loadersupportsvariousloadformats,selectivefilters,andmultitableloads.
OneloaddataintotheOracledatabasebyusingthesqlldr(sqlloadonsome
platforms)
utility.Lookatthefollowingexample:
sqlldrorauser/passwdcontrol=loader.ctl
Thisisthecontrolfile,loader.ctl:
loaddata
infile*
replace
intotabledepartments
(deptposition(02:05)char(4),
deptnameposition(08:27)char(20)
)
begindata
COSCCOMPUTERSCIENCE
ENGLENGLISHLITERATURE
MATHMATHEMATICS
POLYPOLITICALSCIENCE
Loadvariableandfixlengthdatarecords
lookatthefollowingcontrolfileexamples.Inthefirstwewillloaddelimiteddata
(variablelength):
LOADDATA
INFILE*
INTOTABLEload_delimited_data
FIELDSTERMINATEDBY","OPTIONALLYENCLOSEDBY'"'
TRAILINGNULLCOLS
(data1,
data2
)
BEGINDATA
11111,AAAAAAAAAA
22222,"A,B,C,D,"
Ifyouneedtoloadpositionaldata(fixedlength),lookatthefollowingcontrolfile
example:
LOADDATA
INFILE*
INTOTABLEload_positional_data
(data1POSITION(1:5),
data2POSITION(6:15)
)
BEGINDATA
11111AAAAAAAAAA
22222BBBBBBBBBB

http://www.aboutoracleapps.com/2007/07/oracleappsmanufacturingaolforms.html

26/31

9/10/2016

AboutOracleApps:InterviewQuestionsonOracleSCM,AOL,Forms
Modifydataasitloadsintothedatabase:
lookatthefollowingexamples:
LOADDATA
INFILE*
INTOTABLEmodified_data
(rec_no"my_db_sequence.nextval",
regionCONSTANT'31',
time_loaded"to_char(SYSDATE,'HH24:MI')",
data1POSITION(1:5)":data1/100",
data2POSITION(6:15)"upper(:data2)"
)
BEGINDATA
11111AAAAAAAAAA
22222BBBBBBBBBB
LOADDATA
INFILE'mail_orders.txt'
BADFILE'bad_orders.txt'
APPEND
INTOTABLEmailing_list
FIELDSTERMINATEDBYb","
(addr,
city,
state,
zipcode,
mailing_addr"decode(:mailing_addr,null,:addr,:mailing_addr)",
mailing_city"decode(:mailing_city,null,:city,:mailing_city)",
mailing_state
)
Loaddataintomultipletablesatonce:
Lookatthefollowingcontrolfile:
LOADDATA
INFILE*
REPLACE
INTOTABLEemp
WHENempno!=''
(empnoPOSITION(1:4)INTEGEREXTERNAL,
enamePOSITION(6:15)CHAR,
deptnoPOSITION(17:18)CHAR,
mgrPOSITION(20:23)INTEGEREXTERNAL
)
INTOTABLEproj
WHENprojno!=''
(projnoPOSITION(25:27)INTEGEREXTERNAL,
empnoPOSITION(1:4)INTEGEREXTERNAL
)
Selectivelyloadonlythedatathatyouneed:
Lookatthisexample,(01)isthefirstcharacter,(30:37)arecharacters30to37:
LOADDATA
APPEND
INTOTABLEdb_trace_19980517
WHEN(01)<>'H'and(01)<>'T'and(30:37)='19980517'
(
regionCONSTANT'31',
service_keyPOSITION(01:11)INTEGEREXTERNAL,
call_b_noPOSITION(12:29)CHAR
)

YoucannotgetSQL*Loadertocommitattheendoftheloadfile,butbysettingthe
ROWS=parametertoalargevalue,committingcanbe
reduced.Makesureyouhavebigrollbacksegmentsreadywhenyouuseahighvalue
for
ROWS=.
ToImproveperformanceofSQL*Loader:
1.Averysimplebuteasilyoverlookedhint,donothaveanyindexesand/orconstraints
(primarykey)onyourloadtablesduringtheloadprocess.Thiswillsignificantly
slowdownloadtimesevenwithROWS=settoahighvalue.

http://www.aboutoracleapps.com/2007/07/oracleappsmanufacturingaolforms.html

27/31

9/10/2016

AboutOracleApps:InterviewQuestionsonOracleSCM,AOL,Forms
2.Addthefollowingoptioninthecommandline:DIRECT=TRUE.Thiswilleffectively
bypassmostoftheRDBMSprocessing.However,therearecaseswhenyoucan't
usedirectload.Refertochapter8onOracleserverUtilitiesmanual.
3.TurnoffdatabaseloggingbyspecifyingtheUNRECOVERABLEoption.Thisoption
canonlybeusedwithdirectdataloads.
4.Runmultipleloadjobsconcurrently.
126.Namesomeimportantinterfaceprograms
a)Inventory
b)Customer
c)Item
d)Receivable
e)GL
f)Demand
g)Tax
127.Whatareobjectgroups?
Anobjectgroupisacontainerforagroupofobjects.Youdefineanobjectgroupwhen
youwanttopackagerelatedobjectssoyoucancopyorreferencetheminanother
module.
Objectgroupsprovideawaytobundleobjectsintohigherlevelbuildingblocksthat
canbeusedinotherpartsofanapplicationandinsubsequentdevelopmentprojects.
Forexample,youmightbuildanappointmentschedulerinaformandthendecideto
makeitavailablefromotherformsinyourapplications.Theschedulerwouldprobably
bebuiltfromseveraltypesofobjects,includingawindowandcanvasview,blocks,
anditemsthatdisplaydatesandappointments,andtriggersthatcontainthelogicfor
schedulingandotherfunctionality.Ifyoupackagedtheseobjectsintoanobjectgroup,
youcouldthencopythemtoanynumberofotherformsinonesimpleoperation.
Youcancreateobjectgroupsinformandmenumodules.Onceyoucreateanobject
group,youcanaddandremoveobjectstoitasdesired.
Programunitscannotbeplacedinanobjectgroup.
Objectsownedbyblockscannotbeplacedinanobjectgroup.Thisincludesitems,
itemleveltriggers,blockleveltriggers,andrelations.Theseobjectscannotexist
independentlyoftheblockinwhichtheyweredefined.Toincludetheseobjectsinan
objectgroup,youmustincludetheblockitselfbydraggingtheblockobjectintothe
objectgroupintheNavigator.
Theobjectsinagroupmustallbedefinedinthesamemoduleyoucannotplace
objectsfromtwodifferentformsinthesameobjectgroup.
Anobjectgroupcannotcontainanotherobjectgroup.
Whenanobjectinanobjectgroupisdeletedfromamodule,itisremovedfromthe
objectgroupautomatically.
Deletinganobjectgroupfromamoduledoesnotdeletetheobjectsitcontainsfrom
themodule.
Objectgroupsdonotstorecopiesoftheobjectstheycontain,butratherpointersto
theobjectsdefiningobjectgroupsdoesnotincreasemodulesizesignificantly.
128.Differencebetweenpackagesandprocedure/function
Packages
ApackageisadatabaseobjectthatgroupslogicallyrelatedPL/SQLtypes,objects,
andsubprograms.Packagesusuallyhavetwoparts,aspecificationandabody,
althoughsometimesthebodyisunnecessary.Thespecificationistheinterfaceto
yourapplicationsitdeclaresthetypes,variables,constants,exceptions,cursors,
andsubprogramsavailableforuse.Thebodyfullydefinescursorsandsubprograms
andsoimplementsthespecification.
Unlikesubprograms,packagescannotbecalled,passedparameters,ornested.Still,
theformatofapackageissimilartothatofasubprogram:
Thespecificationholdspublicdeclarations,whicharevisibletoyourapplication.The
bodyholdsimplementationdetailsandprivatedeclarations,whicharehiddenfrom

http://www.aboutoracleapps.com/2007/07/oracleappsmanufacturingaolforms.html

28/31

9/10/2016

AboutOracleApps:InterviewQuestionsonOracleSCM,AOL,Forms
yourapplication.
Youcandebug,enhance,orreplaceapackagebodywithoutchangingtheinterface
(packagespecification)tothepackagebody.
PackagescanbecreatedinteractivelywithSQL*PlusorSQL*DBAusingtheCREATE
PACKAGEandCREATEPACKAGEBODYcommands.
Onlythedeclarationsinthepackagespecificationarevisibleandaccessibleto
applications.Implementationdetailsinthepackagebodyarehiddenandinaccessible.
So,youcanchangethebodywithouthavingtorecompilecallingprograms.
PackageBody
Thepackagebodyimplementsthepackagespecification.Thatis,thepackagebody
containsthedefinitionofeverycursorandsubprogramdeclaredinthepackage
specification.Keepinmindthatsubprogramsdefinedinapackagebodyare
accessibleoutsidethepackageonlyiftheirspecificationsalsoappearinthepackage
specification.Thepackagebodycanalsocontainprivatedeclarations,whichdefine
typesandobjectsnecessaryfortheinternalworkingsofthepackage.Thescopeof
thesedeclarationsislocaltothepackagebody.Therefore,thedeclaredtypesand
objectsareinaccessibleexceptfromwithinthepackagebody.Unlikeapackage
specification,thedeclarativepartofapackagebodycancontainsubprogrambodies.
Procedure
Aprocedurehastwoparts:thespecificationandthebody.Theprocedure
specificationbeginswiththekeywordPROCEDUREandends
withtheprocedurenameoraparameterlist.Parameterdeclarationsareoptional.
Proceduresthattakenoparametersarewrittenwithoutparentheses.
TheprocedurebodybeginswiththekeywordISandendswiththekeywordEND
followedbyanoptionalprocedurename.Theprocedurebodyhasthreeparts:a
declarativepart,anexecutablepart,andanoptionalexceptionhandlingpart.The
declarativepartcontainslocaldeclarations,whichareplacedbetweenthekeywords
ISandBEGIN.ThekeywordDECLARE,whichintroducesdeclarationsinan
anonymousPL/SQLblock,isnotused.Theexecutablepartcontainsstatements,
whichareplacedbetweenthekeywordsBEGINandEXCEPTION(orEND).Atleast
onestatementmustappearintheexecutablepartofaprocedure.TheNULL
statementmeetsthisrequirement.Theexceptionhandlingpartcontainsexception
handlers,whichareplacedbetweenthekeywordsEXCEPTIONandEND.
Function
Afunctionisasubprogramthatcomputesavalue.Functionsandproceduresare
structuredalike,exceptthatfunctionshaveaRETURNclause.
Likeaprocedure,afunctionhastwoparts:thespecificationandthebody.The
functionspecificationbeginswiththekeywordFUNCTIONandendswiththeRETURN
clause,whichspecifiesthedatatypeoftheresultvalue.Parameterdeclarationsare
optional.Functionsthattakenoparametersarewrittenwithoutparentheses.The
functionbodybeginswiththekeywordISandendswiththekeywordENDfollowedby
anoptionalfunctionname.Thefunctionbodyhasthreeparts:adeclarativepart,an
executablepart,andanoptionalexceptionhandlingpart.
Thedeclarativepartcontainslocaldeclarations,whichareplacedbetweenthe
keywordsISandBEGIN.ThekeywordDECLAREisnotused.Theexecutablepart
containsstatements,whichareplacedbetweenthekeywordsBEGINand
EXCEPTION(orEND).OneormoreRETURNstatementsmustappearinthe
executablepartofafunction.Theexceptionhandlingpartcontainsexception
handlers,whichareplacedbetweenthekeywordsEXCEPTIONandEND.

129.Variouswaystocallaformfromanotherformandtheirdifference
NEW_FORM
BuiltinType:restrictedprocedure
EnterQueryMode:no
Description:
Exitsthecurrentformandenterstheindicatedform.Thecallingformisterminatedas
theparentform.Ifthecallingformhadbeencalledbyahigherform,OracleForms
keepsthehighercallactiveandtreatsitasacalltothenewform.OracleForms
releasesmemory(suchasdatabasecursors)thattheterminatedformwasusing.
OracleFormsrunsthenewformwiththesameRunformoptionsastheparentform.If
theparentformwasacalledform,OracleFormsrunsthenewformwiththesame
optionsastheparentform.

http://www.aboutoracleapps.com/2007/07/oracleappsmanufacturingaolforms.html

29/31

9/10/2016

AboutOracleApps:InterviewQuestionsonOracleSCM,AOL,Forms
CALL_FORM
BuiltinType:unrestrictedprocedure
EnterQueryMode:yes
Description:
Runsanindicatedformwhilekeepingtheparentformactive.OracleFormsrunsthe
calledformwiththesameRunformpreferencesastheparentform.Whenthecalled
formisexitedOracleFormsprocessingresumesinthecallingformatthepointfrom
whichyouinitiatedthecalltoCALL_FORM.
OPEN_FORM
BuiltinType:restrictedprocedure(cannotbecalledinEnterQuerymode)
EnterQueryMode:no
Description:
Openstheindicatedform.CallOPEN_FORMtocreatemultipleformapplications,that
is,applicationsthatopenmorethanoneformatthesametime.
130.Canyoubaseablockinaformonaview?
Yes,Youcan.Iftheviewisnonupdatableornoninsertablethenyoucannotbasea
blockonview.
closedorder:Anorderanditsorderlinesthathavecompletedallactivitiesinits
processflowandforwhichthecloseactivityhasbeencompleted.
Saleschannelisalwaysassociatedwiththecustomer.Wecandefinethesales
personforthecustomeralso.Ifsalespersonnotdefinedatthecustomerlevel,wecan
associateasalespersonwithanorderalso.Accountspecialistandsalesmanager
arealwaysassociatedwithbilltositeaddressofthecustomer.
RelatedArticlestoRead
AOL
InterviewQuestionsOracleAppsAOLandSysadmin
OracleApplicationsInterviewQuestions:AOLandSystemAdministration
TestyourskillsonAOLandSysadmin
FAQ:OracleApps
InterviewQuestionsonOracleApplicationsFlexfields
InterviewQuestionsonFormsPersonalizations
HowtouseAuditTrailinOracleApplications
HowtoSetParametersDynamically
HowtousePairValueSet
FileSysteminOracleApps11i
HowtoRegisterNewFormsinoracleapplicationsTutorial
HowtouseOracleMessageDictionary
AOLConceptsinOracleApplications
InterviewQuestionsAOL&SYSADMIN
InterviewQuestionsonOracleAOL
OracleForms
LearnOracleForms6i
Creating11iForms2
Creating11iForms1
FAQ:OracleApps
InterviewQuestionsonFormsPersonalizations
HowtoRegisterNewFormsinoracleapplicationsTutorial
OracleApps%28IQ%29
OracleAppsTechnicalInterviewQuestions
Howtoregistershellscriptasconcurrentprogram?
InterviewQuestionsForOracleappsTechnicalConsultants
ParticipateinOracleApplicationContest01
OracleAppsInterviewQuestions
InterviewQuestiononOracleApps
InterviewQuestionsonOracleAR(AccountReceivables)
InterviewQuestionsonOracleReports6i
InterviewQuestionsonOraclePurchasingorOraclePO
InterviewQuestionsonOraclePayablesorOracleAP
OracleAlertsFAQ
OracleAppsInterviewQuestionsPart13
OracleHRMSInterviewQuestions

http://www.aboutoracleapps.com/2007/07/oracleappsmanufacturingaolforms.html

30/31

9/10/2016

AboutOracleApps:InterviewQuestionsonOracleSCM,AOL,Forms
OracleAppsInterviewQuestionsPart12
OracleAppsInterviewQuestionsPart11
OracleAppsInterviewQuestionsPart10
OracleAppsInterviewQuestionsPart8
OracleAppsInterviewQuestionsPart9
OracleAppsInterviewQuestionsPart7
OracleAppsInterviewQuestionsPart6
OracleAppsInterviewQuestionsPart4
OracleAppsInterviewQuestionsPart5
OracleAppsInterviewQuestionsPart3
OracleAppsInterviewQuestions

PostedbyMG
Labels:AOL,OracleApps(IQ),OracleForms

PostaComment

Enteryourcomment...

Commentas:

Publish

SwapnilKashid(Google)

Notifyme

Preview

NewerPost

Signout

Home

OlderPost

Subscribeto:

2008 AboutOracleApps ACompleteGuidetoOracleApplicationsProfessionals.| Contact|Aboutus.


AllarticlesarecopyrightedtoAboutOracleApps.

http://www.aboutoracleapps.com/2007/07/oracleappsmanufacturingaolforms.html

31/31

You might also like