How to combine multiple Details section rows in my report

Hello,
I am currently creating a report which will display employee details, which includes first name, last name, home phone, cell phone and Email.
I get my First Name and Last name from the "Employees" table but all other info is situated in the "CommunicationLinks" table.
The tricky part which I am having issues with is the Home Phone, Cell Phone and Email are all under the same field in this table, the field is called "DisplayAs".
These 2 tables are linked together by taking Employees.LinkID and linking it to CommunicationLinks.LinkIDParent, which are matching linkids.
The only issue that I have, is for example, if you look at the screenshot provided, I have 5 details section that gets populated for the same employee.
How can I combine all these 5 records to only one?
The homephone, cellphone and email field have formulas created for them, the formula is as follow.
This example below is for the HomePhone field, the others have different type assigned to them
If {CommunicationLinks.Type} =1 then
{CommunicationLinks.DisplayAs}
else ""
Homephone, Cellphone and Email are all different types but uses the same field "DisplayAs".
I also tried creating a subreport for each of these fields but seems to give me the same results.
Any help would be really appreciated.
If you have any other questions please let me know. See attached screenshots for reference.
Thank you in advanced.
Jocelyn

Easier way without working in SQL:
1.  Group by a field that is unique to the employee.
2.  Suppress the employee group header and the details sections.
3.  Create a couple of formulas:
{@ClearVariables}
WhilePrintingRecords;
StringVar HomePhone := "";
StringVar CellPhone :="";
StringVar Email := "";
Put this formula in the employee group header - even though the section is suppressed, it will evaluate.
{@SetVariables}
WhilePrintingRecords;
StringVar HomePhone;
StringVar CellPhone;
StringVar Email;
if {CommunicationLinks.Type} =1 then
  HomePhone := {CommunicationLinks.DisplayAs};
else if {CommunicationLinks.Type} = <type for cell> then
  CellPhone := {CommunicationLinks.DisplayAs};
else if {CommunicationLinks.Type} = <type for email> then
  Email := "";
Put this formula in the details section - it will evaluate even though the section is suppressed.
{@HomePhone}
WhilePrintingRecords;
StringVar HomePhone
(Do the same for Cell Phone and Email.  Note that there is no semi-colon at the end of this one!)
Put these formulas and all of the rest of the employee data in one or more Employee group footer sections.
-Dell

Similar Messages

  • Multiple Details Sections in the same report

    I'm trying to take two different columns from a fact table, and display them in one column on the report. So I'll then have the charge quantities (grouped and summarized) listed above the charge amounts (grouped and summarized) across months (columns).
    Is there any way to have multiple detail sections in the same report, something like below? I tried sub reporting, but you can't subreport a subreport. I also tried cross tabs, but they're not flexible enough in the groupings I'm looking for.
    Report Header
    Group Heading 1
    Details
    Group Footing 1
    Group Heading 1
    Details
    Group Footing 1
    Report Footer
    Thanks!!

    Hi,
    Inorder to create new  Group Header sections like Group Header a and Group Header b.There are two options
    ->In the design mode of the crystal reports,Rt.click on the Group Header section-Choose insert section below
    OR
    ->From the Expert tool bar->select the Selection Expert,choose the Group Header->click insert button

  • HT4059 I'm trying to organize my PDFs in iBooks on my ipad2 and I can't figure out how to combine multiple PDFs into one. Any thoughts?

    I'm trying to organize my PDFs in iBooks on my ipad2 and can't figure out how to combine multiple PDFs into one. Any thoughts?

    I'm trying to organize my PDFs in iBooks on my ipad2 and can't figure out how to combine multiple PDFs into one. Any thoughts?

  • How to combine multiple Unmanaged Solution to one single Managed solution

    Hi,
    How to combine multiple Unmanaged Solution to one single Managed solution.?
    There were some other third party developer have kept things lik ein UAT there are 2 release solution and both are Managed Solution.
    And in Production the changes are only deployed for release 1 and for the release 2 changes deployment needs to be done.
    But when i import that second release Managed Solution from UAT to Production then i got number of elements missing but i have checked they are already there in Soolution.
    I did some R&D on this but not much helpful.
    I thought i require to convert Unmanaged Solution of Production environment to Managed first for first release and then needs to import Managed solution of UAT to Production for second release.
    Is this the right way to overcome form this situation?
    Any help and response would be really appreciated.
    Thanks.
    If this post answers your question, please click &quot;Mark As Answer&quot; on the post and &quot;Mark as Helpful&quot;

    Hi, 
    You can prepare unmanaged solution by adding all the components from the default solution,which are there in the managed solution, If Customizatiable entity is true in  the managed solution.

  • Problems underlaying multiple detail sections

    I&#39;m having difficulty with Crystal XI - report has multiple detail sections, I would like to underlay them so they appear on top of each other, but I just can&#39;t get it to work.

    Your explanation isn't detailed enough to allow someone to help. I'd suggest two courses of action:
    1) Run the data and form through Central with tracing turned on. This will provide you with detailed information on what is happening when and why. You should be able to see what's triggering the subforms.
    2) Post another note, this time with an example of your data and a more detailed explanation of your result (e.g. I have 3 details and 3 totals and they're coming out in the following order D1,D2,D3,T1,T2,T3 instead of D1, T1, D2, T2, D3, T3) and I'll try to help.
    Rob McDougall
    Indigo Pacific Ltd.

  • How to apply List box for multiple selection of rows  in ALV report ?

    Hi Exprots,
    1: How to apply List box for multiple selection of rows  in ALV report ?
    Thanking you.
    Subash

    hi,
    check the below program.
    REPORT zalv_dropdowns.
    *Type pools declarations for ALV
    TYPE-POOLS : slis.
    *data declarations for ALV container,ALV grid, Fieldcatalogues & layout
    DATA: g_grid  TYPE REF TO cl_gui_alv_grid,
          g_custom_container TYPE REF TO cl_gui_custom_container,
          gt_fieldcat TYPE lvc_t_fcat,
          gs_layout TYPE lvc_s_layo.*INTERNAL TABLE AND WA DECLARATIONS FOR t517 A table
    DATA: gt_outtab TYPE STANDARD TABLE OF t517a INITIAL SIZE 0,
          wa_outtab TYPE t517a.
    START-OF-SELECTION.*Call to ALV
      CALL SCREEN 600.*On this statement double click  it takes you to the screen painter SE51.
    *Create a Custom container and name it CCONT and OK code as OK_CODE.
    *Save check and Activate the screen painter.
    *Now a normal screen with number 600 is created which holds the ALV grid.
    PBO of the actual screen , Here we can give a title and customized menus
    Here we also call the subroutine for ALV output.
          MODULE PBO OUTPUT                                             *
    MODULE pbo OUTPUT.
      PERFORM alv_output.
    ENDMODULE.                    "pbo OUTPUT
          MODULE PAI INPUT                                              *
    MODULE pai INPUT.
    ENDMODULE.                    "pai INPUT
    *&      Form  BUILD_FIELDCAT
    FORM build_fieldcat.
    DATA ls_fcat TYPE lvc_s_fcat.
    *Build the field catalogue
      CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'
        EXPORTING
          i_structure_name = 'T517A'
        CHANGING
          ct_fieldcat      = gt_fieldcat.
    To assign dropdown in the fieldcataogue
      LOOP AT gt_fieldcat INTO ls_fcat.   
    CASE ls_fcat-fieldname.
       WHEN 'SLART'.
    *is the first list box
            ls_fcat-drdn_hndl = '1'.
            ls_fcat-outputlen = 15.
            MODIFY gt_fieldcat FROM ls_fcat.
    is the second list box    
    WHEN 'ABART'.       
            ls_fcat-drdn_hndl = '2'.
            ls_fcat-outputlen = 15.
            MODIFY gt_fieldcat FROM ls_fcat.   
    ENDCASE.
      ENDLOOP.
    ENDFORM.                    "build_fieldcat
    *&      Form  ALV_OUTPUT
    FORM alv_output .*Create object for container
      CREATE OBJECT g_custom_container
             EXPORTING container_name = 'CCONT'.
    *create object for grid
      CREATE OBJECT g_grid
             EXPORTING i_parent = g_custom_container.
    Build fieldcat and set column
    *Assign a handle for the dropdown listbox.
      PERFORM build_fieldcat.
    *Build layout
      PERFORM build_layout.
    Define a drop down table.
      PERFORM dropdown_table.
    *fetch values from the T517A table
      SELECT * FROM t517a INTO TABLE gt_outtab.
    *Display ALV output
      CALL METHOD g_grid->set_table_for_first_display
        EXPORTING
          is_layout       = gs_layout
        CHANGING
          it_fieldcatalog = gt_fieldcat
          it_outtab       = gt_outtab.ENDFORM.                               "ALV_OUTPUT
    *&      Form  dropdown_table
          text
    -->  p1        text
    <--  p2        text
    FORM dropdown_table.*Declarations for drop down lists in ALV.
      DATA: lt_dropdown TYPE lvc_t_drop,
            ls_dropdown TYPE lvc_s_drop.
    First SLART listbox (handle '1').
      ls_dropdown-handle = '1'.
      ls_dropdown-value = '01 Primary school'.
      APPEND ls_dropdown TO lt_dropdown.  ls_dropdown-handle = '1'.
      ls_dropdown-value = '02 Lower Secondary'.
      APPEND ls_dropdown TO lt_dropdown.  ls_dropdown-handle = '1'.
      ls_dropdown-value = '03 Upper Secondary'.
      APPEND ls_dropdown TO lt_dropdown.
      ls_dropdown-handle = '1'.
      ls_dropdown-value = '04 Professional School'.
      APPEND ls_dropdown TO lt_dropdown.
      ls_dropdown-handle = '1'.
      ls_dropdown-value = '05 College'.
      APPEND ls_dropdown TO lt_dropdown.
      ls_dropdown-handle = '1'.
      ls_dropdown-value = '06 University'.
      APPEND ls_dropdown TO lt_dropdown.
      ls_dropdown-handle = '1'.
      ls_dropdown-value = '09 Other Establishment'.
      APPEND ls_dropdown TO lt_dropdown.* Second ABART listbox (handle '2').  ls_dropdown-handle = '2'.
      ls_dropdown-value = '10 Primary School certificate'.
      APPEND ls_dropdown TO lt_dropdown.
      ls_dropdown-handle = '2'.
      ls_dropdown-value = '20 Lower secondary/Junior high'.
      APPEND ls_dropdown TO lt_dropdown.  ls_dropdown-handle = '2'.
      ls_dropdown-value = '30 High school diploma(B-levels)'.
      APPEND ls_dropdown TO lt_dropdown.
      ls_dropdown-handle = '2'.
      ls_dropdown-value = '31 Vocational'.
      APPEND ls_dropdown TO lt_dropdown.  ls_dropdown-handle = '2'.
      ls_dropdown-value = '32 Matriculation'.
      APPEND ls_dropdown TO lt_dropdown.  ls_dropdown-handle = '2'.
      ls_dropdown-value = '40 Specialist vocational certificate'.
      APPEND ls_dropdown TO lt_dropdown.  ls_dropdown-handle = '2'.
      ls_dropdown-value = '50 College degree Level1'.
      APPEND ls_dropdown TO lt_dropdown.  ls_dropdown-handle = '2'.
      ls_dropdown-value = '51 College degree Level2'.
      APPEND ls_dropdown TO lt_dropdown.  ls_dropdown-handle = '2'.
      ls_dropdown-value = '52 Masters degree'.
      APPEND ls_dropdown TO lt_dropdown.  ls_dropdown-handle = '2'.
      ls_dropdown-value = '60 Univ Degree level1'.
      APPEND ls_dropdown TO lt_dropdown.  ls_dropdown-handle = '2'.
      ls_dropdown-value = '61 Bachelors degree'.
      APPEND ls_dropdown TO lt_dropdown.  ls_dropdown-handle = '2'.
      ls_dropdown-value = '62 Masters degree'.
      APPEND ls_dropdown TO lt_dropdown.  ls_dropdown-handle = '2'.
      ls_dropdown-value = '63 Licenciate'.
      APPEND ls_dropdown TO lt_dropdown.  ls_dropdown-handle = '2'.
      ls_dropdown-value = '64 Doctors Degree Ph.D'.
      APPEND ls_dropdown TO lt_dropdown.  ls_dropdown-handle = '2'.
      ls_dropdown-value = '89 None'.
      APPEND ls_dropdown TO lt_dropdown.  ls_dropdown-handle = '2'.
      ls_dropdown-value = '90 Unknown'.
      APPEND ls_dropdown TO lt_dropdown.*method to display the dropdown in ALV
      CALL METHOD g_grid->set_drop_down_table
        EXPORTING
          it_drop_down = lt_dropdown.ENDFORM.                               " dropdown_table
    *&      Form  build_layout
          text
    *layout for ALV output
    FORM build_layout .  gs_layout-cwidth_opt = 'X'.
      gs_layout-grid_title = 'ALV DROPDOWN LISTS'.
      gs_layout-no_toolbar = 'X'.ENDFORM.                    " build_layout
    endform.
    Edited by: S.r.v.r.Kumar on Jun 1, 2009 2:48 PM

  • How to combine multiple MailAttachement-x payload to One -Help Please ?

    Hi Friends  ,
                      In my scenario My Mail sender Adapter reading attachment . It works fine for 1 attachement but <b>if more than</b> one comes<b> It is reading all</b> attachements  <b>but  it is converting the First attachement only  to XML format </b> , rest  of files are left as it is.
             Can you please tell me how to combine all the Mailattachements and then covert into XML ?
              In our Mail  Sender configurations  , I am giving parameters for MessageTransFormBean like
               xml.documentName                -    MT_Row
               xml.documentNameSpace      -     http://com.test
                xml.fieldNames                      -    Details
               xml.fieldSeparator                   -     ' \n'
               xml.ProcessFieldNames         -  FromConfiguration
      In PayLoadSwapBean
               i am giving propertieslike Content-Description , Content-Disposition , attachement;filename="MailAttchement-1.txt" and all other configuration i am giving.
           I am not clear as if will it WorkFor Multiple attachement ? I can understand as it wil work for Only one attachement . But if i can get multiple attachemnt 1 with proper XML conversion  ( our DataType )  , rest of files are  with out XML
    conversion . How can i process those files also as XML converted ?
            Expecting your reply asap !
    Regards .,
    V.Rangarajan

    > Can you please tell me how to combine all
    >  the Mailattachements and then covert into XML ?
    This is not possible without a self-written adapter module.
    Regards
    Stefan

  • How to create multiple detail records dynamically  ?

    Hi All,
    I have a master-detail Form. I would like to display 5 records from details in my form. After entering data in 5 records in my detail how do I create a new detail record. And how can I get a scroll bar to manage them ? Right now all I could do is just create 5 records as default while designing the form.
    Can anyone please help me out ASAP.
    Thanks very much,
    Murali
    [email protected]

    Hi murali,
    Currently this is the way how MD forms works.If you wish to add more records in one go you can set at the design time for more no of detail records using "Number of Detail Rows to Display" in the Detail section .There is no provision of scrollbars at present.
    The other time when you enter just enter the Master form's key value with "Master action" set to none and just insert the Detail Form's record using the "Detail actions " to Insert.
    Hope it helps.
    rahul

  • How to work in detail section

    Post Author: Linux Guy
    CA Forum: General
    hi guys
    i m new  for crystal reports and i want to know that how to maintain detail section with multiple columns, i mean , i want to display 100 records in detail section , in first column it should be display 1 to 25 and then 2nd column 26 to 50 and so on... but when i m tring to display all those record it displayed all the records on the same column (from top to bottom)... i want to display in this formatt ....like
    Srno    Price     Srno    Price   Srno     Price
    1           xyz        26       xyz       51         xyz
    2           "            27        "          52          "
    3           "            28        "          53          "
    n          "             n         "           n           "
    25         "            50        "          75           "
    so how can i do this . im using Crystal Reports 10, i would really appreicate if someone give me that solution
    thankx

    Post Author: Linux Guy
    CA Forum: General
    thanks alot 

  • How to combine multiple purchased aac files into one aac file

    I recently purchased in iTunes an album consisting of 16 m4a files.  I ended up creating a playlist in iTunes for the songs.  I would like to create one m4a file which combines all and then play it in iTunes.  Is the copy protection preventing me from doing so?
    I know how to convert m4a files that I have converted to mp3 and combine them using Terminal with a cat command.  Then I import that combined file into iTunes.  All is well in this case.  I tried this with the 16 m4a files and I could not import the resultant mp3 file into iTunes.
    Any way to combine multiple purchased aac files?

    A simple way to accomplish the job, though not recommended is to print the 2 page file to a new PDF with multi-up (assuming you select vertical rather than horizontal locations) and adjust the paper in the Adobe PDF printer to be 8.5X22. At least you might give it a shot. Some variation, along with rotation possibly, might work.

  • How to Combine multiple files into the one file?

    Hi all,
    How do I combine multiple canon hf10 avchd files into the one file with a new extension. No need to be compressed.
    Afterwards, I also want to split this combined file to original files.
    Need Help!

    Yes, angelanna. You can merge or split your video file via FCP sequence.
    ahaah, maybe I think angelanna would like to get the resulting file with MTS format because he mentioned “No need to be compressed”. Are you asking for this, angelanna?
    If so, a simple MTS files managing and editing tool  is needed. Maybe you can have a try the Mac version of Aunsoft Final Mate for managing HD camcorder footages. I just downloaded its free trial version and it offers a simple way of garping footages directly  from camcorder. And also it provides a attractive feature to join flawlessly and split accurately native MTS files for video file output with original MTS format.
    Maybe this is the tool cwhich an help you out, angelanna.
    Enjoy your video.

  • How to save multiple vendors at row level.

    hi.
    I need a small information.
    One of my client is having one requirement.
    ie.in purchase Requst each item at item details they want to add vendor details nothing but vendor code
    all ready default one vendor column  is there at row level , but each itme may haing 1.......10
    if it is 1 i requirement is over all ready b1 has given but i want to save more than one
    i dont want to use any customization is there any way to add multiple vendors at row level..
    Any information plz udpate me..
    i dont want to run any customizaion...

    Hi,
    Please explain your requirement with an example. Why do want save multiple vendor code at row level?
    In SAP, we have an option to create purchase quotation for multiple vendors at time. For this, you have to add preferred vendor in item mater data.
    Not sure, same way you can apply for this to purchase request.
    Thanks & Regards,
    Nagarajan

  • Single Master, multiple details add-rows problem

    Hi, hope to get a replay at least this time (last threads have gone unreplied :-( )
    We've built a master-multiple details table. Everything in visualization has worked OK until we've got the need to add rows to each
    detail table separately (i.e. for same master row, one could add N rows to one detail and M rows to the other).
    Keeping the standard "addRows" table buttons doesn't work because the same addRows event is fired for both the subtables, so
    adding a row in one just adds a row also to the other, until a dedlock situation is reached.
    So we tried to set a different button so we could intercept the originator table (SOURCE_PARAM) in the processForm but here we're facing
    some big problems.
    First at all, the methods and names are correct: we've tried to use the same code (cut and paste) for the table putting the inner table "outside"
    and buttons are working as expected.
    But when the detail table is put back "within" the master, what happens is that the AM method called by pFR in the Controller is executed, so
    we reach the end of the processFormRequest, but at this time something happens and we get the exception error message reported more below.
    I've read that via the VL it is not the original detail VO instance which is showed, so wonder if the error has something to do with that...
    So to summarize:
    1) all the objects exist and are ok, and the VL is defined OK; and indeed the standard AddRows management works (as said, the problem
    is that we need to differentiate two different details...)
    2) the methods are OK as they work as soon as the details are put outside the master table.
    Any suggestion ? Do we need to refer to a specific details VO instance ???
    Thanks in advance. Rgds.
    GN
    ## Detail 0 ##
    oracle.apps.fnd.framework.OAException: oracle.jbo.InvalidObjNameException: JBO-25005: Nome oggetto per il tipo Oggetto vista non valido
         at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:891)
         at oracle.apps.fnd.framework.webui.OAPageErrorHandler.prepareException(OAPageErrorHandler.java:1145)
         at oracle.apps.fnd.framework.webui.OAPageErrorHandler.processErrors(OAPageErrorHandler.java:1408)
         at oracle.apps.fnd.framework.webui.OAPageBean.processFormRequest(OAPageBean.java:2704)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1707)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:511)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:432)
         at OA.jspService(OA.jsp:33)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
         at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
         at java.lang.Thread.run(Thread.java:534)
    oracle.apps.fnd.framework.OAException: oracle.jbo.InvalidObjNameException: JBO-25005: Nome oggetto per il tipo Oggetto vista non valido
         at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:891)
         at oracle.apps.fnd.framework.webui.OAPageErrorHandler.prepareException(OAPageErrorHandler.java:1145)
         at oracle.apps.fnd.framework.webui.OAPageErrorHandler.processErrors(OAPageErrorHandler.java:1408)
         at oracle.apps.fnd.framework.webui.OAPageBean.processFormRequest(OAPageBean.java:2704)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1707)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:511)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:432)
         at OA.jspService(OA.jsp:33)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
         at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
         at java.lang.Thread.run(Thread.java:534)

    Any suggestion on this ? What I need, in other words, is to put two details table under the same master table...

  • BPEL Human Task: how to remove task details section from notification email

    This is concerning the human task component of SOA Suite 11g. Upon task assignment, the assignee receives an email notification with an administrator configured text. Below this text the task details are automatically added. How can this be removed? Marking the notification as 'secure' also removes the administrator configured text. But that I'd like to keep. Only the automatically added task details section needs to go. Any hints?

    This configuration is available in the following navigation. Workflow Administrator Web Applications > Oracle Applications Manager > Workflow Manager > Service Components > Workflow Notification Mailer > Edit > Advanced > Message Generation section > Templates. You can refer to the "Oracle Workflow Administrator's Guide" > "Modifying Your Message Templates" for more information.
    Please note that this applies to ALL the outbound notifications, not specific for Purchasing notifications.

  • How to Combine Multiple Physical Queries

    Hi All,
    I have a big reports with over 70-80 columns in Answer. This is not a Pivot report. Now it is generating 3 physical queries .
    I need to merge this 3 queries into a single query. But it seems very hard to implement.
    Couple of points:
    1. Report is generating 3 physical queries. All queries are GROUP BY queries and each of them giving different count separately
    2. If we find a way to combine. The result would be different from Answers Report Result (This is my assumption)
    3. How Answer is combining the results from 3 queries and showing us the result?
    Any input or thought is high appreciated.
    I'm totally stuck in there. Tried different ways. But is there any solution for this that I'm not able to think?
    Pls Help
    Thanks in Advance
    Regards
    Sudipta

    Hi Kranthi,
    Thanks for you reply.
    I need to combine multiple report queries into one and give it to ETL guys. I don't have to do anything in Answers. This is my requirement.
    I'm good in SQL. So I tried to combine like the following. Taking a small scenario.
    In this case, Anlytics is generating following 2 queries:
    Query 1:
    select sum(x), [Fact column]
    sum(y), [Fact column]
    column1, [Dim column]
    column2, [Dim column]
    column3, [Dim column]
    from table1,table2,table3
    where [All joins]
    group by column1,column2,column3
    Query 2:
    select sum(z), [Fact column]
    column1, [Dim column]
    column2, [Dim column]
    column3, [Dim column]
    from table1,table2,table3
    where [All joins]
    group by column1,column2,column3
    I'm trying to combine it:
    Query 1:
    select sum(x), [Fact column]
    sum(y), [Fact column]
    sum(z), [Fact column]
    column1, [Dim column]
    column2, [Dim column]
    column3, [Dim column]
    from
    (select sum(x), [Fact column]
    sum(y), [Fact column]
    column1, [Dim column]
    column2, [Dim column]
    column3, [Dim column]
    from table1,table2,table3
    where [All joins]
    group by column1,column2,column3
    ) q1,
    select sum(z), [Fact column]
    column1, [Dim column]
    column2, [Dim column]
    column3, [Dim column]
    from table1,table2,table3
    where [All joins]
    group by column1,column2,column3
    ) q2
    where
    q1.column1=q2.column1 and
    q1.column2=q2.column2 and
    q1.column3=q2.column3
    But i think it is not the correct way may be, as i'm getting a bit different count. So the where conditions are not matching for the 2 queries above.
    Any thought on this?
    Thanks
    Sudipta

Maybe you are looking for

  • How can I add customer partner function entries in LSMW?

    I am using SAP ECC 6.0 with best practices installed. I am able to create sold-to customers using the batch input program RFBIDE00.  When I try to add partner function entries using structure BKNVP, it appears that the partner ID stored in KTONR is n

  • Getting HTTP Error 403 in Adaptor Engine Archival

    Hi, Getting below error Cannot read archived messages; reason: Reading Messages from Archive failed. Reason: java.lang.Exception: XML DAS SELECT command failed with ErrorCode: 403; ErrorText: <!DOCTYPE HTML PUBLIC I went through below blog but still

  • EP6 SP9 - 'Personalize Portal' link does not work

    Hi, We've just installed EP6 SR1 SP9 and applied patch 4. The portal seems to work fine, except for one thing: The 'Personalize' link on the top right, above the TLN, doesn't seem to work. When clicking the link, nothing happens. No popup, no error m

  • Running Sum with Javascript

    Hi All, How can we access previous row in for loop in javascript? I am trying to access it with i-1 as follows but it does not work: document.wwv_flow.f04[i-1].value Can someboday point out the error please? Thanks, Zahid

  • SWF-to-EPCF Bridge

    With latest firefox installed doing 'Banking' - New Bank-we get SWF-to-EPCF Bridge failed -- unknown can continue to connect and function - whats causing it, and how can the error be corrected?