URGENT -- Linking GL to AR & AP for custom report

Hello All,
I am having trouble linking GL tables to AR and AP tables for a customized Account Analysis report.
I have an initial query but the values for Accounted_DR/CR and Entered_DR/CR do no seem to be correct, so it is possible that the links I have are possibly wrong.
Any help would be greatly appreciated.
Here is my initial query:
SELECT DISTINCT NVL(src.user_je_source_name, '**********') SOURCE,
NVL(cat.user_je_category_name, '**********') CATEGORY,
jeh.NAME JOURNAL_NAME,
jeb.NAME BATCH_NAME,
jeh.period_name PERIOD_NAME,
gcc.segment1 CO,
gcc.segment2 COST_CENTER,
gcc.segment3 ACCOUNT,
gcc.segment4 SECTOR,
gcc.segment5 AC_TYPE,
gcc.segment6 PROJ,
gcc.segment7 FUTURE,
(gcc.segment1 || '-' || gcc.segment2 || '-' || gcc.segment3 || '-' || gcc.segment4 || '-' || gcc.segment5 || '-' || gcc.segment6 || '-' || gcc.segment7) ACCOUNT1,
jel.accounted_dr ACCOUNTED_DR,
jel.accounted_cr ACCOUNTED_CR,
jel.entered_dr ENTERED_DR,
jel.entered_cr ENTERED_CR,
jel.description LINE_DESCRIPTION,
(SELECT ffv.description
FROM FND_FLEX_VALUES_VL ffv
WHERE ffv.flex_value = gcc.segment3) ACCOUNT_DESCRIPTION,
(SELECT ffv.description
FROM FND_FLEX_VALUES_VL ffv
WHERE ffv.flex_value = gcc.segment4) SECTOR_DESCRIPTION,
ap.vendor_name VENDOR_NAME,
ca.check_number CHECK_NUMBER,
ca.check_date CHECK_DATE,
aia.invoice_num INVOICE_NUM,
aia.invoice_date INVOICE_DATE,
jeh.posted_date POSTED_DATE,
/*(SELECT DISTINCT awt.NAME
FROM
ap_invoice_lines_all ail,
ap_awt_groups awt
WHERE aia.invoice_id = ail.invoice_id
AND ail.awt_group_id = awt.group_id
AND rownum=1) TAX_NAME*/
FROM gl_je_headers jeh,
gl_je_lines jel,
gl_je_batches jeb,
gl_je_sources src,
gl_je_categories cat,
gl_code_combinations gcc,
fnd_flex_values_vl ffv,
gl_import_references gli,
xla.xla_ae_lines xal,
xla.xla_ae_headers xah,
xla.xla_events xe,
xla.xla_transaction_entities xte,
apps.ap_invoices_all aia,
ap.ap_suppliers ap,
ap_invoice_payments_all aipa,
ap_checks_all ca
WHERE
jeh.je_header_id = jel.je_header_id
AND jeh.je_batch_id = jeb.je_batch_id
AND jeh.je_source = src.je_source_name
AND jeh.je_category = cat.je_category_name
AND jel.code_combination_id = gcc.code_combination_id
AND gcc.segment4 = ffv.flex_value
AND jeh.je_batch_id = gli.je_batch_id
AND jeh.je_header_id = gli.je_header_id
AND jel.je_line_num = gli.je_line_num
AND (NVL(gli.reference_9, 1) = 1 OR gli.reference_9 >0)
AND gcc.code_combination_id = xal.code_combination_id
AND gli.gl_sl_link_id = xal.gl_sl_link_id
AND gli.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 xe.entity_id = xte.entity_id
AND xte.source_id_int_1 =aia.invoice_id
AND aia.vendor_id = ap.vendor_id
AND aia.invoice_id = aipa.invoice_id(+)
AND aipa.check_id = ca.check_id(+)
AND jel.status || '' = 'P'
AND jeb.average_journal_flag = 'N'
AND jeh.period_name = :P_PERIOD_NAME
--AND gcc.CODE_COMBINATION_ID=NVL(aia.ACCTS_PAY_CODE_COMBINATION_ID,gcc.CODE_COMBINATION_ID) /*link for GL and AP*/
--AND gcc.CODE_COMBINATION_ID=NVL(aia.ACCTS_PAY_CODE_COMBINATION_ID,gcc.CODE_COMBINATION_ID) /*link for GL and AP*/
ORDER BY ACCOUNT1,
SOURCE ,
CATEGORY,
jeb.NAME
Regards,
Jovee
Edited by: JoveeL on May 23, 2012 5:19 PM

Hello again,
I am still having trouble linking the data from GL. Specifically GL_JE_LINES and AP/AR values.
Currently trying to link invoice details to GL details and Accounted CR/DR do not match up with the invoices and are sometimes repeating for different invoices.
Upon checking, the values for GJ_JE_LINES repeat when I include the invoice details, but if I comment them out, they are okay.
I suspect that there is something wrong with my link between the XLA and GL tables, but I could not narrow it down.
I have tried looking it up in Google but there is nothing I found that is remotely helpful.
Any helpful advice would be greatly appreciated.
Regards,
Jovelyn
Edited by: JoveeL on May 23, 2012 5:15 PM

Similar Messages

  • Transaction code for Custom report

    Hi,
    How to create transaction code for Custom report ?
    the custom report is a drilldown report of COPA, which can seen in tcode  FDI3.
    then how to add this new transaction to the menu path Easy assess->FI->AR->Information system->Reports->customers:items.
    Thanks,
    Swetha

    Hi Swetha,
    There is a special way to assign tcodes to such reports. Normally you create the report via report painter/writer. These reports are part of library and report group.
    Create the tcode in SE93. Then at the bottom of the screen you would find option to specify report group, report name, variant to lauch with. Don't have system to specify the exact way of specifying, if you need I can provide on monday. You can take some existing COPA standard report and check from SE93.
    --Ram

  • Incompatibility for custom Report is not working properly

    Hi Gurus,
    Need your help to diagnose the issue here.
    The problem here is as under
    We have a custom report CP1 which fills a table T1 during the process (table is truncated in the begining of the procedure). This CP1 is set incompatible to itself so that table architecture will work properly.
    but the problen here is the next run starts ( 2sec, 5 secs or 10 secs) prior to the actual completion of the last run.
    the data is as
    CONCURRENT_ REQUEST ACTUAL_START ACTUAL_COMPLETION_
    PROGRAM_ID ID                DATE     DATE
    138361     3033673     7/3/2012 10:31:46 AM     7/3/2012 10:57:13 AM
    138361     3033671     7/3/2012 10:28:47 AM     7/3/2012 10:31:42 AM
    138361     3033670     7/3/2012 10:25:22 AM     7/3/2012 10:28:48 AM
    138361     3033669     7/2/2012 7:07:21 PM     7/3/2012 10:25:37 AM
    138361     3033665     7/2/2012 7:05:10 PM     7/2/2012 7:07:15 PM
    here as you see the req 3033670 starts @7/3/2012 10:25:22 AM whereas the req 3033669 ends at 7/3/2012 10:25:37 AM (though we have terminated the 3033669 ) similarly for 3033670 and 3033671.
    the following query is giving 1 row
    select * from FND_CONCURRENT_PROGRAM_SERIAL
    where RUNNING_CONCURRENT_PROGRAM_ID = 138361 is
    We have bounced the CM after setting the incompatibility as per the
    Setting up Incompatibility Rules for Custom Reports [ID 107224.1] suggested by Hussein on this forum.
    This is happening on our prod env. kindly suggest something.
    We are on 12.1.1 (r12).
    Thanks
    -Shivdeep Singh
    Edited by: user1054040 on Jul 2, 2012 10:58 PM

    Hi Srini,
    We have raised a SR with oracle for this it seems to be a bug in 12.1.1 release I will update the same once I got any fix or patch from oracle.
    from the intial investigation it seems to be that the imcompatibility wit itself feature is not working as expected.
    Also this is the latest case
    CONCURRENT_
    PROGRAM_ID REQUEST_ID ACTUAL_START_DATE ACTUAL_COMPLETION_DATE COMPLETION_TEXT
    150364     3036174     7/3/2012 4:55:03 PM     7/3/2012 4:57:04 PM     Normal completion
    150364     3036178     7/3/2012 4:55:57 PM     7/3/2012 4:57:47 PM     Normal completion
    150364     3036181     7/3/2012 4:57:27 PM     7/3/2012 4:58:09 PM     Normal completion
    the request id 3036178 should have been started after the completion of 3036174 ie after 7/3/2012 4:57:04 PM but it actually starts 7/3/2012 4:55:57 PM
    hope this give the better understanding for the scenario here.
    Thanks
    -Shivdeep Singh
    Edited by: user1054040 on Jul 4, 2012 11:36 PM

  • Modification assistant for customer reports

    Hi,
    How to enable modification assistant for the reports in customer namespace ?
    Regards,
    Rafal Olechowski

    sorry for the late reply.
    No You can not do it through Modifictaion Overview for Custom reports, unless and untill its an standard SAP program.
    Might be there any standard functions which could help you, but am not sure of this.
    And as i said the version management and the version comparision can help you know the changes done in any report. in the version management only you can find the version comparision based on the requests.
    Regards
    Gopi

  • Tip: adding metadata for customized reporting

    Users sometimes build their own custom reports around dimensions specific to their company. For example, a bank may want to know about financial data elements that are high priority, but violate completeness rules. You can do this with Data Insight 11.5.1.1.
    Simply have your Data Insight administrator choose weights, dimensions, priorities, and so on in their Data Insight UI. All of the users can choose Rule Classifications when they edit/create a rule and specify the appropriate items. This metadata is stored in the repository, which you can easily query for custom reports.
    For more details, check the Data Insight User's Guide. Enjoy!

    Hi,
    I hope you wont mind me asking for the steps on how to do this.
    The customized data source which i had obtained from the ecc6 is zskat. And the local language which are actually being maintained in the R/3 FI-GL. The following fields in zskat datasource are:
    KTOPL     Chart of Accounts
    MCOD1     Search Term for Matchcode Search
    SAKNR     G/L Account Number
    SPRAS     Language Key
    TXT20       G/L account short text
    TXT50       G/L Account Long Text
    If i am not wrong, SPRAS would be the key to the language right? I found that it is in the table T002, but again, how would i know which one would be the correct text?
    Since the language translation had been maintained in the source system, i guess i wont need to use the flat file option do i?
    Should I find the text data from the source system and load as you had advised? Should I do it through DTP and so on?
    Could you show me some steps by steps if possible? Simple one if possible.
    Cheers
    Tommy
    Edited by: Yu Tommy on Jul 23, 2008 12:14 PM
    Edited by: Yu Tommy on Jul 23, 2008 12:16 PM
    Edited by: Yu Tommy on Jul 23, 2008 12:27 PM

  • BACK button functionality to be changed for custom report in ITS screen

    Hi all,
    I am working on SRM 5.0 with INTERNAL ITS.I have created a custom report and a transaction code for the same.Now in the SRM Web menu,I have provided a link for this report.
    Now i can see all the std menu options like BACK SYSTEM CANCEL  as buttons in the web screen.However when i click on the BACK button,it takes me to the SAP EASY ACCESS MENU screen as we see in SAPGUI.
    My reqt is that on click of the BACK button,i need to show the HOMEPAGE of the SRM.Is this possible?If so,how?
    All inputs will be highly appreciated and rewarded.

    Hello!
    There are several possibilities how to call transaction:
    - You can call it as service (that is what you do when you test it from SICF)
    - You can call it through service (or alias) WEBGUI (not using service for the specific transaction to call it)
    If you are calling it through WEBGUI then parameter ~SINGLETRANSACTION should be added to service (or alias) of WEBGUI. And there should be added also Log Off URL (in SICF). At this case it should navigate back to the URL which is specified in SICF.
    Hope this helps!
    Best regards,
    Rorijs

  • Template for Customized Reports

    Where will I find templates for customizing forms and reports in OraApps11i.

    Naren,
          Another option is, if you want to FORCE global stylesheet for ALL users.  You can update the WebIDefaultStyleSheet.css located in  \SAP BusinessObjects\SAP BusinessObjects Enterprise XI 4.0\images\ folder.
    Regards,
    Ajay

  • Returning User Password in Java code for custom reports

    Hi I'm doing a custom report and for the life of me I can't seem to find the password field in the database. :(
    Anyways I'm thinking maybe I can use java code to return the password and then using the decrypt password function. Could someone please shed some light on this!!!
    Note: I need to return the User password using java code and not XPRESS code. It would be best if someone either shows me how you can get the password using a java method or tell me where the User password is stored as I'm going crazy trying to find it in the DB!!!
    Thanks in advance!!!

    well... not sure what your Java code does. But if you can get the WSUser object for each user, you could call getPassword on the object to get the user's password

  • No "Execute Report Immediately" check box for Custom Reports

    I need a report to be executed immediately within a homepage and due to the documentation a check box should be there when defining "My Homepage Custom Report".
    There is not!
    Can anyone be so kind and illuminate me?
    Thanks in advance
    JC
    Edited by: 872161 on 16.08.2011 06:57

    If that option is not appearing for you, contact On Demand Customer Care to have that option enabled.

  • Color setting for custom reports in Grid Control

    I created a report in GC (chart from SQL) which works fine.
    I like to adjust the colors for the report. Is there any possibility to do this?

    Which version of EM are you using? The native reporting tool does not support changing colors.
    In EM 12, we added support for Oracle BI Publisher which is a more advanced reporting tool and allows more design options.
    More details here: http://www.oracle.com/technetwork/middleware/bi-publisher/overview/index.html

  • Run time eroor for customer report after upgrade DYNP_TOO_MANY_RADIOBUTTONS

    Hi friends,
                   I am getting runtime error after upgrade of our systems from sap 4.7 to ECC 6.0.There is a report which has three radio butons,in which third radio button is set as default .there are 5 variants for the report.If select any variant which selects the second radio button.Getting runtime error.
    The error is DYNP_TOO_MANY_RADIOBUTTONS_ON.
    Thanks & Reghards,
    Manoj

    Might be case two buttons are set on at single time....
    see this:
    handle the exception on radibutton.
    DYNP_TOO_MANY_RADIOBUTTONS_ON

  • Specific SQL statements for custom report?

    I am trying to create a custom report that gives me the System Name, Operating System, Manufacturer, Model, and Last HW Scan. I am not a SQL expert, but which statements would I need to select when I am in SCCM Console and creating a new report? It lists
    hundreds of them. Any help is appreciated, thanks in advance.

    This query will get you started.
    http://smsug.ca/blogs/garth_jones/archive/2008/02/04/basic-all-in-one.aspx
    Garth Jones | My blogs: Enhansoft and
    Old Blog site | Twitter:
    @GarthMJ

  • Function module for custom report for cost center group

    Hello all,
    I wonder, if there is any SAP function module for following query:
    We have got a custom program, which evaluates cost centers. We would like to evaluate a cost center group, like it is available within the report painter - the output screen is splitted into two parts, on the left part there is the cost centre group hierarchy and on the right side, there are the values for the node, which is selected within the hierarchy.
    Is there any standard function module od do we have to program it ourself?
    Thanks in advance

    Hi Peter,
    You have a BAPI which gives you the details of cost centre group, if this is what you are looking for:
    BAPI_COSTCENTERGROUP_GETLIST
    Regards,
    Eli

  • Finding data in GRC-PC for custom reporting

    We're using GRC-PC version 2.5 and would like to create a customized issue detail report that contains, among other things, the Control Significance indicator (Key Control or Standard Control), and the text from the Description and Comments boxes for the issues and remediation plans.
    Can anyone tell me where (table & field) our developers can find this data?  So far, they have been unsuccessful.
    Thanks
    Jeff

    Dear Jeff,
    the signifficance indicator you can find in table HRP5304.
    In transaction GRPC_STR_DISPLAY you find the objects used by PC 2.5 and from the technical information (F1) you can derive the table where information is stored.
    Feel free to ask me if you do not find specific information.
    Kind regards,
    Jürgen

  • Too many columns for Custom report

    Hi,
    I'm building a custom XML Publishe report, the O/P will be in excel format.
    Problem is that i have too many columns...around 30 which are extracted to excel sheet.
    How should i create RTF file with these many columns?
    Any suggestion?
    Database:10g
    Thanks.

    Hi,
    try the Oracle BI Publisher forum (BI Publisher as you are using XML Publisher.
    Regards, Roberto

Maybe you are looking for