Sie sind auf Seite 1von 3

3/31/2017 OracleAppsGurus:ImpSalesOrderQueries

0 More NextBlog CreateBlog SignIn

OracleAppsGurus

Wednesday,August27,2008

ImpSalesOrderQueries
QuerytoretrivetheheaderinformationoftheSalesOrderFormis:

SELECTooha.header_id,ooha.order_number,ott.NAME"ORDERTYPE", Fly SpiceJet At Low Fares


hp.party_name"CUSTOMER",hca.account_number"CUSTOMERNUMBER",
ooha.ordered_date"DATEORDERED",qh.NAME"PRICELIST",
ooha.transactional_curr_code"CURRENCY", Get Best Deals & Great
ooha.cust_po_number"CUSTOMERPO", Discounts only on
SpiceJet. Book Now!
ooha.freight_carrier_code"SHIPPINGMETHOD",
ooha.flow_status_code"STATUS",rtt.NAME"PAYMENTTERMS",
mp.organization_code"WAREHOUSE",ol.meaning"FREIGHTTERMS",
ol1.meaning"SHIPMENTPRIORITY",al.meaning"FOB",
Disclaimer
rsa.NAME"SALESPERSON",
hcsua.LOCATION I'maprincipalconsultantandOracleHRMSExpert
',' forAppsAssociatesLLC.Opinionsexpressedin
hl.address2 thisblogareentirelymyownanddonotreflectthe
',' positionofmyemployer,Oracleoranyother
hl.city corporation.I'mNOTresponsibleforanydamages
inwhateverformcausedbytheusageofthe
','
contentofthisblog.IcreatedthisBlogtosharemy
hl.state
knowledge,especiallywithOracleApplication
','
ERP...
hl.postal_code
','
hl.county"BILLTOLOCATION",
hcsua1.LOCATION
','
hl1.address2
','
hl1.city
','
hl1.state
','
hl1.postal_code
','
hl1.county"SHIPTOLOCATION"
FROMoe_order_headers_allooha, Booksiamreadingnow
oe_transaction_types_tlott,
qp_list_headersqh, HandleWithCAREbyBarbaraA.Glanz
ra_terms_tlrtt, ThePagebyRandyLisk
mtl_parametersmp,
ra_salesreps_allrsa,
hz_cust_accountshca, SearchThisBlog
hz_partieshp,
Search
hz_partieshp1,
hz_locationshl,
hz_locationshl1, BlogArchive
hz_cust_acct_sites_allhcasa,
hz_cust_acct_sites_allhcasa1, 2015(3)
hz_cust_site_uses_allhcsua, 2014(5)
hz_cust_site_uses_allhcsua1,
2013(2)
hz_party_siteshps,
hz_party_siteshps1, 2012(3)
oe_lookupsol, 2011(11)
oe_lookupsol1,
2010(13)
ar_lookupsal
WHERE1=1 2009(46)
ANDooha.order_number=10265 2008(109)
ANDooha.sold_to_org_id=hca.cust_account_id December(3)
ANDooha.order_type_id=ott.transaction_type_id
ANDott.LANGUAGE=USERENV('LANG') November(8)
ANDrtt.LANGUAGE=USERENV('LANG') October(24)
ANDrtt.term_id=ooha.payment_term_id September(26)
ANDqh.list_header_id=ooha.price_list_id
ANDmp.organization_id=ooha.ship_from_org_id August(34)
ANDooha.salesrep_id=rsa.salesrep_id Queriestofindthedatabaseversionwith
ANDhca.party_id=hp.party_id options...
ANDhca.party_id=hp1.party_id AsciiTable
ANDooha.invoice_to_org_id=hcsua.site_use_id(+) DeletestocklocatorsbyusingAPI
ANDhcsua.cust_acct_site_id=hcasa.cust_acct_site_id(+)
ANDhcasa.party_site_id=hps.party_site_id(+) HowtofindtheQuantityonhand.
ANDhl.location_id(+)=hps.location_id ImpSalesOrderQueries
ANDooha.ship_to_org_id=hcsua1.site_use_id(+) CompleteOrderManagementCycle(O2C)
ANDhcsua1.cust_acct_site_id=hcasa1.cust_acct_site_id(+)
OracleOrderManagementTables
ANDhcasa1.party_site_id=hps1.party_site_id(+)
ANDhl1.location_id(+)=hps1.location_id

http://arunrathod.blogspot.in/2008/08/impsalesorderqueries.html 1/3
3/31/2017 OracleAppsGurus:ImpSalesOrderQueries
ANDooha.freight_terms_code=ol.lookup_code Stepstoenable/displaytheLegalDisclaimer
ANDooha.shipment_priority_code=ol1.lookup_code page...
ANDal.lookup_code=ooha.fob_point_code XMLSqlCallsConcept
Howtogetthecreatestatementofsqlview
QuerytoretrievethelineinformationoftheSalesOrderFormis:
Spooldatafromsql*plustoa.csvfile
SELECToola.line_number"LINENUMBER",oola.ordered_item"ORDEREDITEM", Querytoextractallapplicationusersand
oola.ordered_quantity"QTY",oola.order_quantity_uom"UOM", associa...
oola.unit_selling_price"UNITSELLINGPRICE", Scripttogettheinvoiceandsupplierdetails
oola.cancelled_quantity"QTYCANCELLED",
oola.shipped_quantity"QTYSHIPPED",oola.tax_code"TAXCODE", GlassesiconinARTransactionForm
ott.NAME"LINETYPE", Quickestwaytogeneratethecolumnsused
DECODE(opa.line_id, inthec...
NULL,DECODE(opa.credit_or_charge_flag, HowtorestrictWhocolumnsfrombeing
'C',(1)*opa.operand, updatedin...
opa.operand p_datetrack_update_modeinHRMS
),
APSourceSetup
DECODE(opa.credit_or_charge_flag,
'C',DECODE(opa.arithmetic_operator, Acomparativeanalysisbetween
'LUMPSUM',(1)*(opa.operand), SQL*LOADERandUTL_...
(1) ScripttocreateanOracledirectoryentryin
*(oola.ordered_quantity dba_...
*opa.adjusted_amount ImportantBasetablesforHRMS
)
OracleCodeTuningTips
),
DECODE(opa.arithmetic_operator, QuerythatcoversP2Plifecycle
'LUMPSUM',opa.operand, TypesoftableextensionsinOracle
(oola.ordered_quantity*opa.adjusted_amount
AppsDocumentation
)
) OracleAIMDocumentTemplates
) WorkflowWFLOADthroughUNIX
)"LINE_CHARGES",
StandardLineStatusFlowsinOM
ol.meaning"CALCULATEPRICEFLAG",oola.pricing_quantity,
oola.unit_selling_price,oola.unit_list_price,oola.tax_value, WorkflowNotificationsOverrideEmail
addressfo...
(oola.shipped_quantity)*(oola.unit_selling_price)"LINETOTAL"
((oola.shipped_quantity)*(oola.unit_selling_price) ReferencesandRelatedArticlesforHRMS
) AddressS...
+(DECODE(opa.line_id, FND_LOADcommands.
NULL,DECODE(opa.credit_or_charge_flag,
HRMS:EmployeeExtractionQuery
'C',(1)*opa.operand,
opa.operand HRMSSetups
), Packagetodeletethepricelistlinesfrom
DECODE(opa.credit_or_charge_flag, Oracle....
'C',DECODE(opa.arithmetic_operator,
June(1)
'LUMPSUM',(1)*(opa.operand),
(1) May(13)
*(oola.ordered_quantity
*opa.adjusted_amount
) Contact
),
Pleasecontactmethrough:
DECODE(opa.arithmetic_operator,
'LUMPSUM',opa.operand,
Email:arunkumar.srAThotmailDOTcom
(oola.ordered_quantity*opa.adjusted_amount
LinkedIn:http://www.linkedin.com/in/arunrathod
)
)
)
)
)"ORDERTOTAL"
FROMoe_order_lines_alloola,
Getupdatesviaemail
oe_transaction_types_tlott,
oe_price_adjustmentsopa, DeliveredbyFeedBurner
oe_order_headers_allooha,
oe_lookupsol
WHERE1=1
ANDoola.line_type_id=ott.transaction_type_id TotalPageviews
ANDopa.header_id=ooha.header_id
ANDopa.line_id=oola.line_id(+) 6 3 7 5 4 5
ANDopa.list_line_type_code='FREIGHT_CHARGE'
ANDopa.applied_flag='Y'
ANDott.LANGUAGE=USERENV('LANG') Followers
ANDoola.header_id=1547
ANDol.lookup_type='CALCULATE_PRICE_FLAG'
Followers(65)Next
ANDoola.calculate_price_flag=ol.lookup_code

PostedbyArunKumarS.Rat1:19AM
Labels:ImpSalesOrderQueries

Nocomments:
PostaComment

Follow

http://arunrathod.blogspot.in/2008/08/impsalesorderqueries.html 2/3
3/31/2017 OracleAppsGurus:ImpSalesOrderQueries

Fly SpiceJet At Low Fares

Get Best Deals & Great


Discounts only on SpiceJet.
Book Now!

NewerPost Home OlderPost

Subscribeto:PostComments(Atom)

Simpletheme.Themeimagesbysndr.PoweredbyBlogger.

http://arunrathod.blogspot.in/2008/08/impsalesorderqueries.html 3/3

Das könnte Ihnen auch gefallen