SlideShare ist ein Scribd-Unternehmen logo
1 von 2
/**************************
The following SQL should return information about:
PO Transaction
XLA Information
GL Information
select
poh.org_id,
poh.segment1 po_num, pol.line_num, poll.shipment_num, por.release_num,
pod.distribution_num,
nvl(poll.price_override,pol.unit_price) Unit_price, pod.quantity_ordered,
pod.quantity_delivered, pod.quantity_billed, pod.quantity_cancelled,
xdl.ACCOUNTING_LINE_CODE, XDL.LINE_DEFINITION_CODE, XDL.EVENT_CLASS_CODE,
xal.accounted_dr, xal.accounted_cr,
jeh.ledger_id, jeb.name, jeb.creation_date, jeh.je_source, jeh.je_category,
jel.je_line_num, nvl(jel.accounted_dr,0) accounted_dr, nvl(jel.accounted_cr,0)
accounted_cr,
glcc.segment1, glcc.segment2, glcc.segment3, glcc.segment4, glcc.segment5,
glcc.segment6
from
apps.po_headers_all poh,
apps.po_lines_all pol,
apps.po_line_locations_all poll,
apps.po_distributions_all pod,
apps.po_releases_all por,
apps.RCV_RECEIVING_SUB_LEDGER RRSL,
apps.xla_distribution_links xdl,
apps.xla_ae_lines xal,
APPS.GL_IMPORT_REFERENCES gif,
apps.gl_je_lines jel,
apps.gl_je_headers jeh,
apps.gl_je_batches jeb,
apps.gl_code_combinations glcc
where 1=1
and poh.segment1='1100498'
and xdl.AE_LINE_NUM = xal.AE_LINE_NUM
AND XDL.AE_HEADER_ID = XAL.AE_HEADER_ID
and xal.gl_sl_link_table = gif.gl_sl_link_table
and xal.gl_sl_link_id = gif.gl_sl_link_id
and gif.je_header_id = jel.je_header_id
and gif.je_line_num = jel.je_line_num
and jel.code_combination_id = glcc.code_combination_id
and jel.je_header_id = jeh.je_header_id
and jeh.je_batch_id = jeb.je_batch_id
and RRSL.REFERENCE3=pod.po_distribution_id --- RCV_RECEIVING_SUB_LEDGER's
reference3 is equal to po_distributions_all's po_distribution_id
and RRSL.RCV_SUB_LEDGER_ID = XDL.SOURCE_DISTRIBUTION_ID_NUM_1
and xdl.SOURCE_DISTRIBUTION_TYPE='RCV_RECEIVING_SUB_LEDGER'
and pod.line_location_id = poll.line_location_id
and poll.po_line_id = pol.po_line_id
and pol.po_header_id = poh.po_header_id
and pod.po_release_id = por.po_release_id(+)
=============================================
select po_header_id from po_headers_all where segment1='1100498' --
po_header_id=85
select PO_DISTRIBUTION_ID from apps.po_distributions_all ppod where
po_header_id=589850 -- PO_DISTRIBUTION_ID =652123
select RCV_SUB_LEDGER_ID from RCV_RECEIVING_SUB_LEDGER RRSL where REFERENCE3
= 652123
select xdl.AE_LINE_NUM ,XDL.AE_HEADER_ID from XLA_DISTRIBUTION_LINKS XDL
where SOURCE_DISTRIBUTION_ID_NUM_1 in
(836651,836652)
and
SOURCE_DISTRIBUTION_TYPE='RCV_RECEIVING_SUB_LEDGER'
select xal.gl_sl_link_table , xal.gl_sl_link_id from apps.xla_ae_lines xal
where xal.AE_LINE_NUM = 1
AND XAL.AE_HEADER_ID = 3008868
select gif.je_header_id , gif.je_line_num from APPS.GL_IMPORT_REFERENCES
gif where
gif.gl_sl_link_table = 'XLAJEL' and gif.gl_sl_link_id = 6194606
select jel.je_header_id , jel.code_combination_id from apps.gl_je_lines jel
where jel.je_header_id=560233 and jel.je_line_num=2
select jeh.je_batch_id from apps.gl_je_headers jeh where
jeh.je_header_id=560233
select * from gl_je_batches jeb where jeb.je_batch_id=581082
select * from apps.gl_code_combinations glcc where
glcc.code_combination_id=2005

Weitere ähnliche Inhalte

Kürzlich hochgeladen

%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
masabamasaba
 
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
masabamasaba
 
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
Health
 

Kürzlich hochgeladen (20)

call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
 
Introducing Microsoft’s new Enterprise Work Management (EWM) Solution
Introducing Microsoft’s new Enterprise Work Management (EWM) SolutionIntroducing Microsoft’s new Enterprise Work Management (EWM) Solution
Introducing Microsoft’s new Enterprise Work Management (EWM) Solution
 
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
 
Generic or specific? Making sensible software design decisions
Generic or specific? Making sensible software design decisionsGeneric or specific? Making sensible software design decisions
Generic or specific? Making sensible software design decisions
 
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
 
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
 
Architecture decision records - How not to get lost in the past
Architecture decision records - How not to get lost in the pastArchitecture decision records - How not to get lost in the past
Architecture decision records - How not to get lost in the past
 
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfThe Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
 
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
 
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
 
Software Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsSoftware Quality Assurance Interview Questions
Software Quality Assurance Interview Questions
 
Payment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdf
Payment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdfPayment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdf
Payment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdf
 
8257 interfacing 2 in microprocessor for btech students
8257 interfacing 2 in microprocessor for btech students8257 interfacing 2 in microprocessor for btech students
8257 interfacing 2 in microprocessor for btech students
 
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
 
The Top App Development Trends Shaping the Industry in 2024-25 .pdf
The Top App Development Trends Shaping the Industry in 2024-25 .pdfThe Top App Development Trends Shaping the Industry in 2024-25 .pdf
The Top App Development Trends Shaping the Industry in 2024-25 .pdf
 
Announcing Codolex 2.0 from GDK Software
Announcing Codolex 2.0 from GDK SoftwareAnnouncing Codolex 2.0 from GDK Software
Announcing Codolex 2.0 from GDK Software
 
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
 
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
 
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
 
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
 

Empfohlen

How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
 

Empfohlen (20)

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 

R12 – sql po xla-gl

  • 1. /************************** The following SQL should return information about: PO Transaction XLA Information GL Information select poh.org_id, poh.segment1 po_num, pol.line_num, poll.shipment_num, por.release_num, pod.distribution_num, nvl(poll.price_override,pol.unit_price) Unit_price, pod.quantity_ordered, pod.quantity_delivered, pod.quantity_billed, pod.quantity_cancelled, xdl.ACCOUNTING_LINE_CODE, XDL.LINE_DEFINITION_CODE, XDL.EVENT_CLASS_CODE, xal.accounted_dr, xal.accounted_cr, jeh.ledger_id, jeb.name, jeb.creation_date, jeh.je_source, jeh.je_category, jel.je_line_num, nvl(jel.accounted_dr,0) accounted_dr, nvl(jel.accounted_cr,0) accounted_cr, glcc.segment1, glcc.segment2, glcc.segment3, glcc.segment4, glcc.segment5, glcc.segment6 from apps.po_headers_all poh, apps.po_lines_all pol, apps.po_line_locations_all poll, apps.po_distributions_all pod, apps.po_releases_all por, apps.RCV_RECEIVING_SUB_LEDGER RRSL, apps.xla_distribution_links xdl, apps.xla_ae_lines xal, APPS.GL_IMPORT_REFERENCES gif, apps.gl_je_lines jel, apps.gl_je_headers jeh, apps.gl_je_batches jeb, apps.gl_code_combinations glcc where 1=1 and poh.segment1='1100498' and xdl.AE_LINE_NUM = xal.AE_LINE_NUM AND XDL.AE_HEADER_ID = XAL.AE_HEADER_ID and xal.gl_sl_link_table = gif.gl_sl_link_table and xal.gl_sl_link_id = gif.gl_sl_link_id and gif.je_header_id = jel.je_header_id and gif.je_line_num = jel.je_line_num and jel.code_combination_id = glcc.code_combination_id and jel.je_header_id = jeh.je_header_id and jeh.je_batch_id = jeb.je_batch_id and RRSL.REFERENCE3=pod.po_distribution_id --- RCV_RECEIVING_SUB_LEDGER's reference3 is equal to po_distributions_all's po_distribution_id and RRSL.RCV_SUB_LEDGER_ID = XDL.SOURCE_DISTRIBUTION_ID_NUM_1 and xdl.SOURCE_DISTRIBUTION_TYPE='RCV_RECEIVING_SUB_LEDGER' and pod.line_location_id = poll.line_location_id and poll.po_line_id = pol.po_line_id and pol.po_header_id = poh.po_header_id and pod.po_release_id = por.po_release_id(+) ============================================= select po_header_id from po_headers_all where segment1='1100498' -- po_header_id=85 select PO_DISTRIBUTION_ID from apps.po_distributions_all ppod where po_header_id=589850 -- PO_DISTRIBUTION_ID =652123 select RCV_SUB_LEDGER_ID from RCV_RECEIVING_SUB_LEDGER RRSL where REFERENCE3 = 652123 select xdl.AE_LINE_NUM ,XDL.AE_HEADER_ID from XLA_DISTRIBUTION_LINKS XDL
  • 2. where SOURCE_DISTRIBUTION_ID_NUM_1 in (836651,836652) and SOURCE_DISTRIBUTION_TYPE='RCV_RECEIVING_SUB_LEDGER' select xal.gl_sl_link_table , xal.gl_sl_link_id from apps.xla_ae_lines xal where xal.AE_LINE_NUM = 1 AND XAL.AE_HEADER_ID = 3008868 select gif.je_header_id , gif.je_line_num from APPS.GL_IMPORT_REFERENCES gif where gif.gl_sl_link_table = 'XLAJEL' and gif.gl_sl_link_id = 6194606 select jel.je_header_id , jel.code_combination_id from apps.gl_je_lines jel where jel.je_header_id=560233 and jel.je_line_num=2 select jeh.je_batch_id from apps.gl_je_headers jeh where jeh.je_header_id=560233 select * from gl_je_batches jeb where jeb.je_batch_id=581082 select * from apps.gl_code_combinations glcc where glcc.code_combination_id=2005