Click on Update Icon
Click on Apply.
Click on Update Icon
Apply .
Click on Apply.
Apply .
SELECT DISTINCT
A.PO_NO,
A.LINE_NUM,
A.DIST_NUM,
A.ITEM_CATEGORY,
A.IS_CAPITAL,
A.SEGMENT2 PO_ACCT,
A.ACCT PO_ACCT_DESC,
A.UNIT_PRICE,
A.AMOUNT_ORDERED,
NVL (
(SELECT TO_CHAR (RT.TRANSACTION_DATE, ‘yyyy-mm-dd’)
FROM RCV_TRANSACTIONS RT
WHERE RT.PO_HEADER_ID = A.PO_HEADER_ID
AND RT.PO_LINE_ID = A.PO_LINE_ID
AND RT.PO_LINE_LOCATION_ID = A.LINE_LOCATION_ID
AND RT.PO_DISTRIBUTION_ID = A.PO_DISTRIBUTION_ID
AND RT.TRANSACTION_TYPE = ‘DELIVER’
AND ROWNUM = 1),
‘N’)
RECIEVED_FLAG,
B.SEGMENT2 SLA_ACCT,
B.ACCT SLA_ACCT_DESC,
B.ENTERED_DR,
B.ENTERED_CR,
B.ACCOUNTED_DR,
B.ACCOUNTED_CR,
C.SEGMENT2 AP_ACCT,
C.ACCT AP_ACCT_DESC,
C.AMOUNT,
A.SHIP_RECEIPT_FLAG,
A.DIST_RECEIPT_FLAG
FROM (SELECT POH.SEGMENT1 PO_NO,
POL.LINE_NUM,
POLL.LINE_LOCATION_ID,
POL.PO_LINE_ID,
POL.PO_HEADER_ID,
POD.DISTRIBUTION_NUM DIST_NUM,
POD.CODE_COMBINATION_ID,
POD.PO_DISTRIBUTION_ID,
POL.UNIT_PRICE,
POD.AMOUNT_ORDERED,
GCC.SEGMENT2,
GL_FLEXFIELDS_PKG.GET_CONCAT_DESCRIPTION (
GCC.CHART_OF_ACCOUNTS_ID,
GCC.CODE_COMBINATION_ID,
‘.’)
ACCT,
NVL (POLL.ACCRUE_ON_RECEIPT_FLAG, ‘N’) SHIP_RECEIPT_FLAG,
NVL (POD.ACCRUE_ON_RECEIPT_FLAG, ‘N’) DIST_RECEIPT_FLAG,
(SELECT SEGMENT1
FROM MTL_CATEGORIES_B
WHERE CATEGORY_ID = POL.CATEGORY_ID AND ROWNUM = 1)
ITEM_CATEGORY,
HL_PO_UTL_PKG.IS_CAPITAL (POL.CATEGORY_ID) IS_CAPITAL
FROM PO_HEADERS_ALL POH,
PO_LINES_ALL POL,
PO_LINE_LOCATIONS_ALL POLL,
PO_DISTRIBUTIONS_ALL POD,
GL_CODE_COMBINATIONS GCC
WHERE POH.PO_HEADER_ID = POL.PO_HEADER_ID
AND POH.PO_HEADER_ID = POD.PO_HEADER_ID
AND POL.PO_LINE_ID = POD.PO_LINE_ID
AND POH.PO_HEADER_ID = POLL.PO_HEADER_ID
AND POL.PO_LINE_ID = POLL.PO_LINE_ID
AND POLL.LINE_LOCATION_ID = POD.LINE_LOCATION_ID
AND POD.CODE_COMBINATION_ID = GCC.CODE_COMBINATION_ID
AND POL.ITEM_ID IS NULL /*AND poh.po_header_id IN
(SELECT * FROM tmp_po_accrue_on_receipt_flag)*/
) A,
(SELECT RT.PO_HEADER_ID,
RT.PO_LINE_ID,
RT.PO_LINE_LOCATION_ID,
RT.PO_DISTRIBUTION_ID,
RT.VENDOR_ID,
RT.VENDOR_SITE_ID,
SLA.*
FROM (SELECT XTE.SOURCE_ID_INT_1,
XL.CODE_COMBINATION_ID,
XL.ENTERED_DR,
XL.ENTERED_CR,
XL.ACCOUNTED_DR,
XL.ACCOUNTED_CR,
GCC.SEGMENT2,
GL_FLEXFIELDS_PKG.GET_CONCAT_DESCRIPTION (
GCC.CHART_OF_ACCOUNTS_ID,
GCC.CODE_COMBINATION_ID,
‘.’)
ACCT
FROM XLA.XLA_AE_HEADERS XH,
XLA.XLA_AE_LINES XL,
XLA.XLA_TRANSACTION_ENTITIES XTE,
XLA.XLA_EVENTS XEA,
GL.GL_CODE_COMBINATIONS GCC
WHERE XH.AE_HEADER_ID = XL.AE_HEADER_ID
AND XTE.ENTITY_ID = XH.ENTITY_ID
AND XL.CODE_COMBINATION_ID = GCC.CODE_COMBINATION_ID
AND XEA.EVENT_ID = XH.EVENT_ID
AND XH.BALANCE_TYPE_CODE = ‘A’
AND XH.JE_CATEGORY_NAME = ‘Receiving’
AND XL.ACCOUNTED_DR IS NOT NULL) SLA,
RCV_TRANSACTIONS RT
WHERE RT.TRANSACTION_ID = SLA.SOURCE_ID_INT_1(+)
AND RT.TRANSACTION_TYPE = ‘DELIVER’) B,
(SELECT AID.DIST_CODE_COMBINATION_ID,
POD.PO_DISTRIBUTION_ID,
POD.PO_HEADER_ID,
POD.PO_LINE_ID,
POD.LINE_LOCATION_ID,
GCC.SEGMENT2,
GL_FLEXFIELDS_PKG.GET_CONCAT_DESCRIPTION (
GCC.CHART_OF_ACCOUNTS_ID,
GCC.CODE_COMBINATION_ID,
‘.’)
ACCT,
AID.AMOUNT
FROM AP_INVOICE_DISTRIBUTIONS_ALL AID,
PO_DISTRIBUTIONS_ALL POD,
GL_CODE_COMBINATIONS GCC
WHERE AID.PO_DISTRIBUTION_ID = POD.PO_DISTRIBUTION_ID
AND AID.DIST_CODE_COMBINATION_ID = GCC.CODE_COMBINATION_ID
AND AID.LINE_TYPE_LOOKUP_CODE IN (‘ITEM’, ‘ACCRUAL’)) C
WHERE A.PO_HEADER_ID = B.PO_HEADER_ID(+)
AND A.PO_LINE_ID = B.PO_LINE_ID(+)
AND A.LINE_LOCATION_ID = B.PO_LINE_LOCATION_ID(+)
AND A.PO_DISTRIBUTION_ID = B.PO_DISTRIBUTION_ID(+)
AND A.PO_DISTRIBUTION_ID = C.PO_DISTRIBUTION_ID(+);
Profile Name
|
Profile Value
|
FND: Diagnostics
|
Yes
|
Personalize Self-Service Defn
|
Yes
|
FND: Personalization Region Link Enabled
|
Yes / Minimal
|
Disable Self-Service Personal
|
No
|
Script:
SELECT GCC.CODE_COMBINATION_ID,
GCC.SEGMENT1,
GCC.SEGMENT2,
GCC.SEGMENT3,
GCC.SEGMENT4,
GCC.SEGMENT5,
GCC.SEGMENT6,
GCC.SEGMENT7,
GCC.SEGMENT8,
SUBSTR (
APPS.GL_FLEXFIELDS_PKG.GET_DESCRIPTION_SQL (
GCC.CHART_OF_ACCOUNTS_ID,
1,
GCC.SEGMENT1),
1,
40)
SEGMENT1_DESC,
SUBSTR (
APPS.GL_FLEXFIELDS_PKG.GET_DESCRIPTION_SQL (
GCC.CHART_OF_ACCOUNTS_ID,
2,
GCC.SEGMENT2),
1,
40)
SEGMENT2_DESC,
DECODE (
GCC.SEGMENT3,
NULL, ”,
SUBSTR (
APPS.GL_FLEXFIELDS_PKG.GET_DESCRIPTION_SQL (
GCC.CHART_OF_ACCOUNTS_ID,
3,
GCC.SEGMENT3),
1,
40))
SEGMENT3_DESC,
DECODE (
GCC.SEGMENT4,
NULL, ”,
SUBSTR (
APPS.GL_FLEXFIELDS_PKG.GET_DESCRIPTION_SQL (
GCC.CHART_OF_ACCOUNTS_ID,
4,
GCC.SEGMENT4),
1,
40))
SEGMENT4_DESC,
DECODE (
GCC.SEGMENT5,
NULL, ”,
SUBSTR (
APPS.GL_FLEXFIELDS_PKG.GET_DESCRIPTION_SQL (
GCC.CHART_OF_ACCOUNTS_ID,
5,
GCC.SEGMENT5),
1,
40))
SEGMENT5_DESC,
DECODE (
GCC.SEGMENT6,
NULL, ”,
SUBSTR (
APPS.GL_FLEXFIELDS_PKG.GET_DESCRIPTION_SQL (
GCC.CHART_OF_ACCOUNTS_ID,
6,
GCC.SEGMENT6),
1,
40))
SEGMENT6_DESC,
DECODE (
GCC.SEGMENT7,
NULL, ”,
SUBSTR (
APPS.GL_FLEXFIELDS_PKG.GET_DESCRIPTION_SQL (
GCC.CHART_OF_ACCOUNTS_ID,
7,
GCC.SEGMENT7),
1,
40))
SEGMENT7_DESC,
DECODE (
GCC.SEGMENT9,
NULL, ”,
SUBSTR (
APPS.GL_FLEXFIELDS_PKG.GET_DESCRIPTION_SQL (
GCC.CHART_OF_ACCOUNTS_ID,
8,
GCC.SEGMENT8),
1,
40))
SEGMENT8_DESC,
GCC.CHART_OF_ACCOUNTS_ID CHART_OF_ACCOUNTS_ID,
GCC.ACCOUNT_TYPE
FROM GL_CODE_COMBINATIONS GCC
WHERE CODE_COMIBINATION_ID = :P_ID
Where: P_ID, you can pass Code Combination Id to get description for particular Accounting Combination.
–Query for Ledger, Operating Unit, Legal Entity, balancing segment:
select HRL.COUNTRY,
HROUTL_BG.name BG,
HROUTL_BG.ORGANIZATION_ID,
LEP.LEGAL_ENTITY_ID,
LEP.name LEGAL_ENTITY,
HROUTL_OU.name OU_NAME,
HROUTL_OU.ORGANIZATION_ID ORG_ID,
HRL.LOCATION_ID,
HRL.LOCATION_CODE,
GLEV.FLEX_SEGMENT_VALUE
from XLE_ENTITY_PROFILES LEP,
XLE_REGISTRATIONS REG,
HR_LOCATIONS_ALL HRL,
HZ_PARTIES HZP,
FND_TERRITORIES_VL TER,
HR_OPERATING_UNITS HRO,
HR_ALL_ORGANIZATION_UNITS_TL HROUTL_BG,
HR_ALL_ORGANIZATION_UNITS_TL HROUTL_OU,
HR_ORGANIZATION_UNITS GLOPERATINGUNITSEO,
GL_LEGAL_ENTITIES_BSVS GLEV
where LEP.TRANSACTING_ENTITY_FLAG = ‘Y’
and LEP.PARTY_ID = HZP.PARTY_ID
and LEP.LEGAL_ENTITY_ID = REG.SOURCE_ID
and REG.SOURCE_TABLE = ‘XLE_ENTITY_PROFILES’
and HRL.LOCATION_ID = REG.LOCATION_ID
and REG.IDENTIFYING_FLAG = ‘Y’
and TER.TERRITORY_CODE = HRL.COUNTRY
and LEP.LEGAL_ENTITY_ID = HRO.DEFAULT_LEGAL_CONTEXT_ID
and GLOPERATINGUNITSEO.ORGANIZATION_ID = HRO.ORGANIZATION_ID
and HROUTL_BG.ORGANIZATION_ID = HRO.BUSINESS_GROUP_ID
and HROUTL_OU.ORGANIZATION_ID = HRO.ORGANIZATION_ID
and GLEV.LEGAL_ENTITY_ID = LEP.LEGAL_ENTITY_ID;
This site uses cookies and other tracking technologies to assist with navigation and your ability to provide feedback, analyse your use of our services, and provide content from third parties. By continuing to browse the site, you are agreeing to our use of cookies.
Got ItLearn moreWe may request cookies to be set on your device. We use cookies to let us know when you visit our websites, how you interact with us, to enrich your user experience, and to customize your relationship with our website.
Click on the different category headings to find out more. You can also change some of your preferences. Note that blocking some types of cookies may impact your experience on our websites and the services we are able to offer.
These cookies are strictly necessary to provide you with services available through our website and to use some of its features.
Because these cookies are strictly necessary to deliver the website, refusing them will have impact how our site functions. You always can block or delete cookies by changing your browser settings and force blocking all cookies on this website. But this will always prompt you to accept/refuse cookies when revisiting our site.
We fully respect if you want to refuse cookies but to avoid asking you again and again kindly allow us to store a cookie for that. You are free to opt out any time or opt in for other cookies to get a better experience. If you refuse cookies we will remove all set cookies in our domain.
We provide you with a list of stored cookies on your computer in our domain so you can check what we stored. Due to security reasons we are not able to show or modify cookies from other domains. You can check these in your browser security settings.
These cookies collect information that is used either in aggregate form to help us understand how our website is being used or how effective our marketing campaigns are, or to help us customize our website and application for you in order to enhance your experience.
If you do not want that we track your visit to our site you can disable tracking in your browser here:
We also use different external services like Google Webfonts, Google Maps, and external Video providers. Since these providers may collect personal data like your IP address we allow you to block them here. Please be aware that this might heavily reduce the functionality and appearance of our site. Changes will take effect once you reload the page.
Google Webfont Settings:
Google Map Settings:
Google reCaptcha Settings:
Vimeo and Youtube video embeds:
The following cookies are also needed - You can choose if you want to allow them:
You can read about our cookies and privacy settings in detail on our Privacy Policy Page.
Privacy Policy
Recent Comments