Unable to link with GL AR in a query

Hi all

I'm using Oracle R12.1.3.

I have a query that connects AR with GL transactions.

I have a case where I am unable to connect a line of newspaper against a transaction AR. I don't have the appropriate data in GL_IMPORT_PREFERENCES for this entry.

Here's my query:

SELECT DISTINCT GJH.JE_HEADER_ID,
                GJL.JE_LINE_NUM,
                PARTY.PARTY_NAME CUSTOMER_VENDOR,
                RCT.TRX_NUMBER TRANS_NUMBER,
                CTL.DESCRIPTIONDESCRIPTION,
                NVL(xal.entered_dr, 0) - NVL(xal.entered_cr, 0) amount
  FROM GL.GL_JE_HEADERS                GJH,
       GL.GL_JE_LINES                  GJL,
       GL.GL_CODE_COMBINATIONS         GCC,
       GL.GL_PERIODS                   GLP,
       GL.GL_IMPORT_REFERENCES         IMP,
       XLA.XLA_AE_LINES                XAL,
       XLA.XLA_AE_HEADERS              XAH,
       XLA.XLA_EVENTS                  XE,
       XLA.XLA_TRANSACTION_ENTITIES    XTE,
       RA_CUSTOMER_TRX_ALL             RCT,
       HZ_PARTIES                      PARTY,
       AR.HZ_CUST_ACCOUNTS             CA,
       GL_CODE_COMBINATIONS_KFV        CC,
       AR.RA_CUSTOMER_TRX_LINES_ALL    CTL,
       AR.RA_CUST_TRX_LINE_GL_DIST_ALL CTLD
 WHERE 1 = 1
   AND GJH.JE_HEADER_ID = GJL.JE_HEADER_ID
      --AND GJL.STATUS || '' = 'P'
   AND GCC.CODE_COMBINATION_ID = CTLD.CODE_COMBINATION_ID
   AND GJH.PERIOD_NAME = GLP.PERIOD_NAME
   AND RCT.CUSTOMER_TRX_ID = CTLD.CUSTOMER_TRX_ID
   AND CTLD.CUSTOMER_TRX_LINE_ID = CTL.CUSTOMER_TRX_LINE_ID
      --       AND GLP.ADJUSTMENT_PERIOD_FLAG <> 'Y'
   AND GJH.JE_SOURCE in ('Spreadsheet', 'Receivables')
   AND GJL.JE_HEADER_ID = IMP.JE_HEADER_ID
   AND GJL.JE_LINE_NUM = IMP.JE_LINE_NUM
   AND IMP.GL_SL_LINK_ID = XAL.GL_SL_LINK_ID
   AND IMP.GL_SL_LINK_TABLE = XAL.GL_SL_LINK_TABLE
   AND XAL.APPLICATION_ID = XAH.APPLICATION_ID
   AND XAL.AE_HEADER_ID = XAH.AE_HEADER_ID
   AND XAH.APPLICATION_ID = XE.APPLICATION_ID
   AND XAH.EVENT_ID = XE.EVENT_ID
   AND XE.APPLICATION_ID = XTE.APPLICATION_ID
   AND XTE.APPLICATION_ID = 222
   AND XE.ENTITY_ID = XTE.ENTITY_ID
   AND XTE.ENTITY_CODE = 'TRANSACTIONS'
   AND XTE.SOURCE_ID_INT_1 = RCT.CUSTOMER_TRX_ID
   AND RCT.BILL_TO_CUSTOMER_ID = CA.CUST_ACCOUNT_ID
   AND CA.PARTY_ID = PARTY.PARTY_ID
   AND rcT.CUSTOMER_TRX_ID = ctl.CUSTOMER_TRX_Id
   AND CTL.LINE_TYPE = 'LINE'
   AND XAL.CODE_COMBINATION_ID = CC.CODE_COMBINATION_ID
   AND XAL.DISPLAYED_LINE_NUMBER = CTL.LINE_NUMBER
   and gjh.je_header_id = 375498
   and gjl.je_line_num = 13


I see that the je_source is the map calculation, but for the JE_HEADER_ID and the given JE_LINE_NUM I don't have the corresponding data in GL_IMPORT_PREFERENCES.

Any ideas how can I work around this in order to get the transaction number?

Kind regards

Alex

Hello

If je_source is the worksheet how can you have great sub subledger?

Tags: Oracle Applications

Similar Questions

Maybe you are looking for

  • application svchost.exe, module ntdll.dll, version 5.2.3790.4789, address 0x0006beb8 failure.

    One has the solution for this error Failing application svchost.exe, version 5.2.3790.3959, failed module ntdll.dll, version 5.2.3790.4789, address 0x0006beb8 failure.I get an error at startup This from Event Viewer: Event type: errorEvent source: ap

  • Original HP replacement parts

    Hello Sir, I would like to know if I could buy hood origin of HP Pavilion g6 2102tx online.

  • a call from a guy that he was from microsoft and the computer has a virus

    My friend got a call from a guy that he was from microsoft and that they had tried to him (by pop-up texts) she had a virus message. He was called to help set and wanted remote access, but would not give him any id to verify that it was legitimate, i

  • How to give property back to TrustedInstaller?

    I have granted ownership to the Administrators group to change a file that is located in a subfolder of the Syswow64 folder.  TrustedInstaller was the former owner.  How to give property back to TrustedInstaller?  I can't find an instance of TrustedI

  • Disable the added System Menu items

    Hello world I had quite a delicate question maybe someone can help me... When add MenuItems in Blackberry applications through your app, is there a possibility to disable these MenuItems If a specific form is currently not open, or if the application