Create report using two table

hi,
i have two table for emp attendance and leave .
1 table name --emp_att
emp_id------- number;
att_date -----date;
status ---------varchar(30);
in_time -------timestamp;
out_time -----timestaemp;
session--------- varchar2(12)
2--emp_leave
emp_id -------- number;
leave_date ---- date
leave type----- varchar2(17);
session -----------varchar2(12);
Here Leave Type ------SL,CL,PL THESE ARE LEAVE
now i want a report like
eg :-
emp_id---DATE ----STATUS----IN TIME----OUT TIME------ SESSION
101 01-JAN-2009 PRESENT 09:35 AM 3:56 PM 2009-2010
102 01-JAN-2009 SL 09:20 AM 3:30 PM 2009-2010
103 01-JAN-2009 PRESENT 09:35 AM 3:30 PM 2009-2010
104 01-JAN-2009 SL 09:15 AM 3:56 PM 2009-2010
105 01-JAN-2009 PRESENT 09:35 AM 3:56 PM 2009-2010
106 01-JAN-2009 PRESENT 09:35 AM 3:30 PM 2009-2010
107 01-JAN-2009 CL 09:35 AM 3:56 PM 2009-2010
108 01-JAN-2009 PRESENT 09:40 AM 3:30 PM 2009-2010
THANKS
Manoj

what happens if the employee is absent do we still have records in emp_att table or there is data in emp_leave only.Why are you asking us? It's your application, you should know the business logic.
I'm afraid I still don't understand what your question is. You want us to spend our time answering your question. We can't do that if we don't understand your point or the application you're working on. You need to spend an equal amount of time framing your post.
Please try again.
Cheers, APC
blog: http://radiofreetooting.blogspot.com

Similar Messages

  • How to structure report using two tables...

    Hi all,
    CR 2011; SLQ 2008
    I have a report that uses several tables but is essentially grouped into two "types" of sources.
    tbl.Produkte holds current data basically about stock levels, "real time"
    tbl.Log holds stock movement history.
    The commonality between the tables is StockID, which is a distinct column, but is an ID that is used to track based on three attributes:  Product, WidthHeight, and ContentCnt.  All three of these are columns unto themselves, but are not available in all tables, so I need to rely on StockID for fetches.
    Now I need to report by Product and WidthHeight.  I look to tbl.Produkte for some information such as Stock level, Average ContentCnt, and Reservations on Stock.
    Ideally on the same line, I'm looking to report on Average Monthly Usage, derived information coming from the tbl.Log.
    I seem to think I need a subreport to do this, but end up getting multiple occurances of the subreport when the StockID occurs multiple times in tbl.Produkte.  This is something I always seem to run into when I use a subreport, and I haven't been able to wrap my brain around it yet.  I'm handy enough with queries, but trying to use Commands to limit the data I'm picking seems to offer no better solutions.
    Anyone have insights as to what's wrong with my approach?
    To recap:
    I need a summary line by Product - WidthHeight
    Data consists of multiple rows coming from tbl.Produkte and multiple rows coming from tbl.Log
    Tables are essentialy unrelated in content but can be linked by StockID
    Need to elliminate multiple occurences of data coming from tbl.Log when there are multiple rows in tbl.Produkte
    Hope I haven't made complete mud of my predicament...
    Thanks you - Matt

    Hi,
    The code in my previous post was cut and pasted from my project.  It's in a command and work fine by itself, but as soon as I add more tables, I get the ODBC error.
    I'm guessing I need another approach.  I realize my original description was incomplete.
    Basically the meat consists of three tables LG_PRODUKTE, LG_LAGERORTE, and LG_LOGBUCH.
    The common field among the three is ID, which is a Stock ID that is uniquely comprised of Product, Size, and Contents(Qty)
    LG_PRODUKTE is the basic Product listing.  ID is unique in this table.  I need this for completeness and extended product data.
    LG_LAGERORTE is the Inventory.  ID can occur multiple times.  I need this to compile current Inventory.
    LG_LOGBUCH is the History. ID can occur multiple times.  I need this to compile past usage.
    I have tried both Inner and Left joins from LG_PRODUKTE to LG_LAGERORTE and feom LG_PRODUKTE to LG_LOGBUCH
    My Groupings are is:
    1 - Product
    2 - Size
    3 - ID
    Detail
    My primary issue is that I can't just report at the ID level because Contents(Qty) is really just a detail of the Product/Size.
    I need to summarize at the size level (also Product and Grand)
    At this level I need to pull in summary information from LG_LAGERORTE and LG_LOGBUCH, independantly, based on data linked on ID.
    Right now, I'm going to try subreports at Footer 2A for LG_LAGERORTE data, 2B for LG_LOGBUCH, passing parameters to 2C for a combined line...
    Can't seem to pin down the juggling...

  • Create Reports using Designer

    Hi all,
    Does anybody have any document to create a simple report using designer tables.
    Or
    Does anybody knows how to create reports using designer tables.
    Could you please let me know
    Thanks for your help
    Thanks
    Krishna

    The best thing to do is to find a report among the reports that are supplied with Designer that contains most of the information that you want in your new report. Then make a copy of it, and use the Oracle Reports Developer to adapt it for what you need. This will give you a good example of a working report.
    On the other hand, I myself am not very comfortable with Oracle Reports, so I don't do it that way. I prefer to write reports as PL/SQL Server pages and run them on the web. To make it easier, I wrote what I call a "cursor package" - a PL/SQL package containing pre-defined queries against the CI_ views in the repository. I don't currently have this available for download, but I will try to remember to add it to my web site.
    Oracle has fully documented the CI_ views that make up the repository model - find the docs at: http://download-east.oracle.com/otn_hosted_doc/designer/doc_library/6i_release42/CDOC72/model/el_defs/outer_frame2_de.htm.

  • Built a report using two dimensons & two fact

    Hi Experts,
    We have a requirement where we need to built a report using two dimensons & two
    fact i.e. the report contains columns for all the two dims & both the facts.
    the structure is as follows.
    1)we have two dimensions
    as REGION_BRANCH (containing region & barnch information) and
    PRODUCT_group(containing the product group info).
    2)Two fact as WORKING_CAPITAL_DAYS & WORKING_CAPITAL_BUDGET.
    FOLLOWING are the join conditions.
    1)The Dim table REGION_BRANCH has joins with fact tabel WORKING_CAPITAL_DAYS as
    REGION_BRANCH.REG_CD=WORKING_CAPITAL_DAYS.REG_CD
    REGION_BRANCH.BR_CD=WORKING_CAPITAL_DAYS.BR_CD
    2)the 2nd DIM table PRODUCT_group has joins with fact table WORKING_CAPITAL_DAYS as
    PRODUCT_group.PG_CD=WORKING_CAPITAL_DAYS.PG_CD
    3) The Dim table REGION_BRANCH has joins with the 2nd fact tabel WORKING_CAPITAL_BUDGET as
    REGION_BRANCH.BR_CD=WORKING_CAPITAL_BUDGET.BR_CD
    4)the 2nd DIM table PRODUCT_group has joins with fact table the 2nd fact tabel WORKING_CAPITAL_BUDGET as
    PRODUCT_group.PG_CD=WORKING_CAPITAL_BUDGET.PG_CD
    Now the requirement is as follows.
    1)we need to build a report in OBI where we will have
    REGION & BARNCH from REGION_BRANCH Dim table,
    PRODUCT from Product Group dim table,
    INV_ACTUAL_DAYS from WORKING_CAPITAL_DAYS (1ST fact TABLE)table.
    INV_DAYS FROM WORKING_CAPITAL_BUDGET (2ND FACT TABLE) TABEL.
    the issue is when we try to build the report..the OBIE answers gives an error as
    [nQSError: 15018] Incorrectly defined logical table source
    [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 15018] Incorrectly defined logical table source (for fact table WORKING_CAPITAL_DAYS) does not contain mapping for [WORKING_CAPITAL_BUDGET.INV_DAYS]. (HY000).
    How can we built a report using two FACT tables.
    Regrds,

    hi,
    Create a dimension hierarchy for the dim tables and set the content level to fact tables.....
    So that BI Server will identify at what level the facts are joined to dimension table
    try this it should work
    thanks,
    saichand

  • To find which reports uses the tables MKFP & MSEG

    Hi Experts,
    I have a list predeof reports. I just want to know if these reports uses the table MKFP & MSEG. Is there any predefined function or report available in order to find this one?
    Valuable answers will be rewarded.
    Thanks,
    Satish.

    user for
    MKFP  header masater document
    mseg  docu segment material
    Billing Document not released to accounting / Accounts determination:
    To resolve the error, you can analyze account determination in the billing document. Process:
    Goto T.Code: VF02 & Enter Invoice number
    Next (On the top most strip) goto Environment
    Next (Select Environment) go to Account determination
    Next (In Account Determination) select Revenue Account Determination (first option)
    This will list all the condition types in the Billing document & analyze each condition & check for which G/L accounts is not determined.
    Possible errors:
    1. VKOA not maintained for required combination
    Solution: Maintain the combination in VKOA.
    2. Account Assignment of Customer / material not maintained in Customer / Material Master (If maintained in combination in VKOA).
    Solution:
    Option 1 (Standard solution):
    step 1: Cancel Billing Document --> Reverse PGI --> cancel Delivery --> Cancel Sales Order
    step 2: Maintain Customer master / Material Master correctly.
    step 3: Recreate sales Order --> Delivery --> PGI --> Invoicing.
    Option 2:
    Force the Account Assignment Group of Customer / Material through Debug in change mode of Billing document, which will release Billing Document to Accounting.
    3. Account Key not maintained in Pricing Procedure:
    Impact: This may create accounting document, but if condition type, which are to be posted to account, but do not have account key maintained in pricing procedure, it will not be post the relevant condition type to G/L account.
    4. Billing Document not being released to accounting --
    In Material Master, there is some link between Profit Centre & MRP Type. If one of it is not maintained, erratically few documents get stuck while releasing Billing Document to accounting. Few of course get posted.
    Solution1: Cancel Billing Document --> Reverse PGI --> Cancel Delivery --> Block the sales Order & Create new sales Cycle all over again after rectifying Material master.
    Solution 2: (Temporary Solution) In Debug mode in Billing, force the Profit Center in Billing Document with the help of Abaper. But ensure Material master is rectified.
    From FI Side, you require to check that all the G/L account has been maintained through T.Code: FS00. G/L account being Master data has to be created in each client to upload through LSMW / SCATT / BDC.
    In Billing Document in change mode (in the first screen where we enter Billing Document number), on the top most left hand corner, take a dropdown on Billing Document & select Release to accounting. Here you can get the under mentioned possible message:
    1. G/L account not found
    2. Cost Element not maintained for G/L account.
    In both the above cases, FI consultant requires to take corrective action.
    Pricing:
    This is very specific & differs from client to client & may also differ based on scenario.
    Write-up on Pricing -
    In SD, Pricing Procedure is determined based on Sales Area (Sales Organization + Distribution Centre + Division) + Customer Pricing Procedure + Document Pricing Procedure. Sales Area is determined in Sales Order Header Level. Customer Pricing Procedure is determined from Customer Master. Document Pricing Procedure is determined from Sales Document Type / Billing Type (if configured). Once the pricing procedure is determined, Condition records are fetched. If appropriate condition records are found, the price is determined. If Mandatory pricing condition is missing, system will through an error message.
    In SD, the steps to configure Pricing procedure are as under:
    Step 1:
    Condition table: If existing condition table meets the requirement, we need not create a new condition table. Considering the requirement for new condition table, the configuration will be done in spro as follows: IMG --> Sales & Distribution --> Basic Function --> Pricing Control --> Condition Table (select the required fields combination, which will store condition record).
    Step 2:
    Access Sequence: If existing access sequence meets the requirement, we need not create a new access sequence. Considering the requirement for new sequence, the configuration will be done in spro as follows: IMG --> Sales & Distribution --> Basic Function --> Pricing Control --> Access Sequence (Access sequence is made up of Accesses (Tables) & the order of priority in which it is to be accessed. Here we assign the condition table to access sequence.
    Step 3:
    Condition Type: If existing condition type meets the requirement, we need not create a new condition type. Considering the requirement for new condition type, the configuration will be done in spro as follows: IMG --> Sales & Distribution --> Basic Function --> Pricing Control --> Condition Type. It is always recommended to copy an existing similar condition type & make the necessary changes. Here we assign Access sequence to Condition type.
    Step 4:
    a. Pricing Procedure: It is recommended to copy a similar pricing procedure & make the necessary changes in new pricing procedure. Pricing Procedure is a set of condition type & arranged in the sequence in which it has to perform the calculation. Considering the requirement for new Pricing Procedure, the configuration will be done in spro as follows: IMG --> Sales & Distribution --> Basic Function --> Pricing Control --> Pricing Procedure --> Maintain Pricing Procedure.
    b. Pricing Procedure: After maintaining the pricing procedure the next step will be determination of pricing procedure. Configuration for determining pricing procedure in SPRO is as follows: IMG --> Sales & Distribution --> Basic Function --> Pricing Control --> Pricing Procedure --> Determine Pricing Procedure.
    5. Condition record: Condition record is a master data, which is required to be maintained by Core team / person responsible from the client. During new implementation, the condition records can be uploaded using tools like SCAT, LSMW, etc.
    It is assumed that document pricing procedure, customer pricing procedure , ... are in place.
    Sales Document not assigned to Sales Area:
    SPRO --> Sales & Distribution --> Sales --> Sales Documents --> Sales Document Header --> Assign Sales Area To Sales Document Types --> Assign sales order types permitted for sales areas (do ensure to maintain combined Sales organization, combined Distribution channel & combined division. for eg: Sales org 1000 & sales org 1000, Sales org 2000 & sales org 2000, & so on ....
    similarly for distribution channel & Division, so that the Sales area combination is available for assignment to Sales Document Type.)
    Issues related to Customer Master data:
    1. what is the impact of leaving customer pricing procedure & customer statistic group blank in customer master --> sales area data --> sales tab:
    If Customer Pricing Procedure is left blank, Pricing will not be determined.
    If customer statistic group is left blank, then data will not flow to standard reports.
    2. Who maintains reconciliation account in customer master?
    Ideally, reconciliation account is maintained by FI person, but if SD person is authorized & has the knowledge of which reconciliation account to be maintained, then even SD person can maintain the same.
    3. Terms of payment appear in Company Code Data & sales Area Data. What is the impact of each? why is it not populated automatically, once it is maintained at either field?
    Terms of payment from company code data is for reporting purpose & it is from sales area data that it flows to sales order.
    It is a standard feature of SAP that it is not populated automatically if maintained at either of the field, but it is a must in sales area data & can be skipped in company code data.
    4. Unable to select Sales Area for Customer Master Creation?
    Most Probably either sales area is not defined or customization not done for common Sales Org & Common Distribution Channel. To maintain this configuration: SPRO --> Sales & Distribution --> Master Data --> Define Common Distribution Channels / Define Common Divisions

  • Steps for Creating Report  using LDB

    hellow sirs
    can u please tell Step by Step method for creating Reports using LDB method...
    if possible with screen Shots..
    thanking You
    Rahul

    Hi,
    Please refer the code below:
    Use the PNP LDB for this program,
    *: Report:  ZP_POSTCODE                                                :
    *: Date  :  2004                                                       :
    *: Description: Displays report of employees by postcode area,         :
    *:              includes current travelling allowances (i.e. parking   :
    *:              permit or transport card etc..)                        :
    *: Use:         Help encourage the use of car sharing and public       :
    *:              transport where appropriate.                           :
    REPORT  zp_postcode.
    type-pools: slis.                                      "ALV Declarations
    NODES: pernr.
    INFOTYPES: 0000, 0001, 0002, 0006, 0008, 0014, 0105, 0121.
    SELECTION-SCREEN BEGIN OF BLOCK pcode WITH FRAME TITLE text-s01.
    SELECT-OPTIONS: so_pcode FOR p0006-pstlz.
    SELECTION-SCREEN END OF BLOCK pcode.
    TYPES: BEGIN OF t_output,
      pernr       TYPE p0001-pernr,   "personnel name
      anredtxt    TYPE t522t-atext,   "title (based on p0002-anred)
      fname       TYPE p0002-vorna,   "first name
      lname       TYPE p0002-nachn,   "last name
      orgtx       TYPE t527x-orgtx,   "dept
      fte         TYPE p0008-bsgrd,   "fte
      parking(20) TYPE c,
      payslip     TYPE t526-sachn,        "payslip address
      telno       TYPE p0105-usrid_long,  "tel number(p0105-usrty = 0020)
      email       TYPE p0105-usrid_long,  "email (p0105-usrty = MAIL)
      postcode    type p0006-pstlz,
    END OF t_output.
    DATA: it_output TYPE STANDARD TABLE OF t_output INITIAL SIZE 0,
          wa_output TYPE t_output.
    *ALV data declarations
    data: fieldcatalog   type slis_t_fieldcat_alv with header line,
          gd_tab_group   type slis_t_sp_group_alv,
          gd_layout      type slis_layout_alv,
          gd_repid       like sy-repid,
          gt_events      type slis_t_event,
          gd_prntparams  type slis_print_alv,
          gd_count(6)    type n,
          gd_outtext(70) type c,
          gd_lines       type i.
    *START-OF-SELECTION.
    START-OF-SELECTION.
    clear: gd_count.
    GET pernr.
    * Infotype 0121 is used to store multiple contracts for personnel.
    * Field p0121-hpern contains the personnel number for the main contract.
      PROVIDE * from p0121 between pn-begda and pn-endda.
    *   Check if main contract
        if p0121-pernr ne p0121-hpern.
          reject.
        endif.
      ENDPROVIDE.
      add 1 to gd_count.
      concatenate 'Processing personnel data'(m10) gd_count into gd_outtext
                separated by ' '.
    * Display indicator for employee count
      perform progress_indicator using gd_outtext.
    * Retrieve datd from infotypes
      rp_provide_from_last p0000 space pn-begda pn-endda.
      rp_provide_from_last p0001 space pn-begda pn-endda.
      rp_provide_from_last p0002 space pn-begda pn-endda.
      rp_provide_from_last p0006 space pn-begda pn-endda.
      rp_provide_from_last p0008 space pn-begda pn-endda.
      rp_provide_from_last p0014 space pn-begda pn-endda.
    * Check post code
      CHECK p0006-pstlz IN so_pcode.  "cp
    * Post code
      wa_output-postcode = p0006-pstlz.
    * Personnel number
      wa_output-pernr = pernr-pernr.
    * Personnel title
      SELECT SINGLE atext
        FROM t522t
        INTO wa_output-anredtxt
       WHERE sprsl EQ sy-langu AND
             anred EQ p0002-anred.
    * First name
      wa_output-fname = p0002-vorna.
    * Last name
      wa_output-lname = p0002-nachn.
    * Organizational Unit text (dept)
      SELECT SINGLE orgtx
        FROM t527x
        INTO wa_output-orgtx
       WHERE sprsl EQ sy-langu AND
             orgeh EQ p0001-orgeh AND
             endda GE sy-datum.
    * FTE
      wa_output-fte = p0008-bsgrd.
    * Parking / travel deducted?
      CASE p0014-lgart.
        WHEN '7180' OR '7181' OR '7182'.
          wa_output-parking = text-002.
        WHEN '7183'.
          wa_output-parking = text-001.
        WHEN '7171' OR '7172' or '7173' or '7174' or
             '7175' or '7176' or '7177' or '7178'.
          wa_output-parking = text-003.
      ENDCASE.
    * Payslip Address
      SELECT SINGLE sachn
        FROM t526
        INTO wa_output-payslip
       WHERE werks EQ p0001-werks AND
             sachx EQ p0001-sacha.
      PROVIDE * from p0105 between pn-begda and pn-endda.
    *   Telephone numbers
        if p0105-usrty = '0020'.
           wa_output-telno = p0105-usrid_long.
        endif.
    *   Email address
        if p0105-usrty = 'MAIL'.
           wa_output-email = p0105-usrid_long.
        endif.
      ENDPROVIDE.
      append wa_output to it_output.
      clear: wa_output.
    *END-OF-SELECTION.
    END-OF-SELECTION.
    describe table it_output lines gd_lines.
    if gd_lines gt 0.
      perform build_fieldcatalog.
      perform build_layout.
      perform display_alv_report.
    else.
      message i003(zp) with 'No records found'.
    endif.
    *&      Form  PROGRESS_INDICATOR
    *       Displays progress indicator on SAP screen
    form progress_indicator using p_text.
      call function 'SAPGUI_PROGRESS_INDICATOR'
          exporting
    *         PERCENTAGE = 0
               text       = p_text.
    endform.                    " PROGRESS_INDICATOR
    *&      Form  BUILD_FIELDCATALOG
    *       Build Fieldcatalog for ALV Report
    form build_fieldcatalog.
      fieldcatalog-fieldname   = 'PERNR'.
      fieldcatalog-seltext_m   = 'Personnel No.'.
      fieldcatalog-col_pos     = 0.
      fieldcatalog-outputlen   = 10.
    *  fieldcatalog-emphasize   = 'X'.
    *  fieldcatalog-key         = 'X'.
    *  fieldcatalog-do_sum      = 'X'.
    *  fieldcatalog-no_zero     = 'X'.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
      fieldcatalog-fieldname   = 'ANREDTXT'.
      fieldcatalog-seltext_m   = 'Title'.
      fieldcatalog-col_pos     = 1.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
      fieldcatalog-fieldname   = 'FNAME'.
      fieldcatalog-seltext_m   = 'First Name'.
      fieldcatalog-col_pos     = 2.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
      fieldcatalog-fieldname   = 'LNAME'.
      fieldcatalog-seltext_m   = 'Last Name'.
      fieldcatalog-col_pos     = 3.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
      fieldcatalog-fieldname   = 'ORGTX'.
      fieldcatalog-seltext_m   = 'Department'.
      fieldcatalog-col_pos     = 4.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
      fieldcatalog-fieldname   = 'FTE'.
      fieldcatalog-seltext_m   = 'FTE'.
      fieldcatalog-col_pos     = 5.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
      fieldcatalog-fieldname   = 'PARKING'.
      fieldcatalog-seltext_m   = 'Parking/Metrocard'.
      fieldcatalog-col_pos     = 6.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
      fieldcatalog-fieldname   = 'PAYSLIP'.
      fieldcatalog-seltext_m   = 'Payslip Add.'.
      fieldcatalog-col_pos     = 7.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
      fieldcatalog-fieldname   = 'TELNO'.
      fieldcatalog-seltext_m   = 'Telephone'.
      fieldcatalog-col_pos     = 8.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
      fieldcatalog-fieldname   = 'EMAIL'.
      fieldcatalog-seltext_m   = 'E-mail'.
      fieldcatalog-col_pos     = 9.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
      fieldcatalog-fieldname   = 'POSTCODE'.
      fieldcatalog-seltext_m   = 'Post code'.
      fieldcatalog-col_pos     = 10.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
    endform.                    " BUILD_FIELDCATALOG
    *&      Form  BUILD_LAYOUT
    *       Build layout for ALV grid report
    form build_layout.
      gd_layout-no_input          = 'X'.
      gd_layout-colwidth_optimize = 'X'.
      gd_layout-totals_text       = 'Totals'(201).
      gd_layout-zebra             = 'X'.
    endform.                    " BUILD_LAYOUT
    *&      Form  DISPLAY_ALV_REPORT
    *       Display report using ALV grid
    form display_alv_report.
      gd_repid = sy-repid.
      call function 'REUSE_ALV_GRID_DISPLAY'
           exporting
                i_callback_program      = gd_repid
                is_layout               = gd_layout
                it_fieldcat             = fieldcatalog[]
                i_save                  = 'X'
           tables
                t_outtab                = it_output
           exceptions
                program_error           = 1
                others                  = 2.
      if sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      endif.
    endform.                    " DISPLAY_ALV_REPORT

  • DESKI Report using Temp tables in MS- SQL server 2005

    Hi,
    I am trying to create a Free hand SQL DESKI report using temp tables in MS SQL Server-2005, I am using ODBC connection.
    When I run the report, I am getting the error
    u201CConnection or SQL sentence error (DA0005) No column or data to fetchu201D
    Ex:
    Select *
    into #t1
    from region
    select * from #t1
    drop table #t1
    Please help.
    Regards,
    Pratik

    Pratik, the SQL does not seem right. BTW you can only retreive data via Deski Free hand SQL. Also try to use OLE DB connection.

  • Tree walking using two tables

    in order to create parent-child relationships, we need to use two tables because some children can have two parents and all parents have more than one children.
    this makes tree walking by using the "connect by prior" difficult. has anyone run into something similar and what is the solution?
    tia

    If you try to run a hierarchical query, using START WITH,
    CONNECTY BY, and PRIOR on a sub-query that contains a join
    condition, or on a view that was created using a join condition,
    you will get "ORA-01437: cannot have join with CONNECT BY". One
    way to get around this problem is to create a new table from the
    tables that need to be joined, then run the hierarchical query
    on the new table.
    For example, first create the new table:
    CREATE TABLE new_table AS
    SELECT old_table1.column_a, old_table2.column_b
    FROM   old_table1, old_table2
    WHERE  old_table1.column_c = old_table2.column_d;
    or if you are doing a self-join:
    CREATE TABLE new_table AS
    SELECT x.column_a, y.column_b
    FROM   old_table1 x, old_table1 y
    WHERE  x.column_c = y.column_d;
    Then, run the hierarchical query:
    SELECT     column_a, column_b
    FROM       new_table
    START WITH column_a = 'whatever'
    CONNECT BY PRIOR column_b = column_a;If you could post your table structure, some sample data, and a
    sample of the desired result, some of us could probably provide
    a more specific solution.
    Having multiple parents should not create a problem unless the
    relationship creates a loop, like if A is a parent of B and B is
    a parent of C and C is a parent of A.

  • Creating Report using EPM Functions with Dynamic Filters

    Hi All,
    I am new to BPC, In BPC 7.5 i seen like we can generate EPM report using EVDRE function very quickly and easy too. Is the same feature is existing in BPC 10.0 ? if no how can we create EPM reports using EPM Functions with Dynamic Filters on the Members of the dimension like in BPC 7.5.
    And i searched in SDN, there is no suitable blogs or documents which are related to generation of Reports using EPM Functions. All are described just in simple syntax way. It is not going to be understand for the beginners.
    Would you please specify in detail step by step.
    Thanks in Advance.
    Siva Nagaraju

    Siva,
    These functions are not used to create reports per se but rather assist in building reports. For ex, you want to make use of certain property to derive any of the dimension members in one of your axes, you will use EPMMemberProperty. Similary, if you want to override members in any axis, you will make use of EPMDimensionOverride.
    Also, EvDRE is not replacement of EPM functions. Rather, you simply create reports using report editor (drag and drop) and then make use of EPM functions to build your report. Forget EvDRE for now.
    You can protect your report to not allow users to have that Edit Report enabled for them.
    As Vadim rightly pointed out, start building some reports and then ask specific questions.
    Hope it clears your doubts.

  • Need code for sales order create report using bapi's

    need code for sales order create report using bapi's

    Hi,
    Go through below link
    http://www.saptechies.com/bapi_salesorder_createfromdat2/
    <b>Reward points if it helps,</b>
    Satish

  • How to create report using Procedure.

    Hi All,
    I want to create report in apex.But i do not have sql code.I have one procedure.Is it possible to create report using this procedure in apex.
    CREATE OR REPLACE PROCEDURE headcsv_prc2
    AS
       CURSOR cr_header
       IS
          SELECT ood.organization_code, fm.formula_no AS "FORMULA_NAME",
                   fm.formula_vers AS "FORMULA_VERSION",
                   fm.formula_desc1 AS "FORMULA_DESC",
                   DECODE (fm.formula_status,
                           100, 'New',
                           400, 'Approve for Laboratory Use',
                           700, 'Approve for General',
                           800, 'On Hold',
                           900, 'Frozen',
                           1000, 'Obsolete/Archived'
                          ) AS "FORMULA_STATUS",
                   DECODE (fd.line_type, '1', msib.segment1) product,
                   DECODE (fd.line_type, '-1', msib.segment1) ingrediant,
                   DECODE (fd.line_type, '2', msib.segment1) AS "BY_PRODUCT",
                   DECODE (by_product_type,
                           'W', 'Waste',
                           'R', 'Rework',
                           'Y', 'Yield',
                           'S', 'Sample',
                           NULL
                          ) AS "BY_PRODUCT_TYPE"
              FROM org_organization_definitions ood,
                   fm_form_mst fm,
                   fm_matl_dtl fd,
                   mtl_system_items_b msib
             WHERE ood.organization_id = fm.owner_organization_id
               AND fm.owner_organization_id = msib.organization_id
               AND msib.organization_id = fd.organization_id
               AND fd.organization_id = ood.organization_id
               AND fm.formula_id = fd.formula_id
               AND msib.inventory_item_id = fd.inventory_item_id
               -- and fm.FORMULA_NO like'%TEA%'
               AND fd.line_type IN ('1', '2', '-1')
          GROUP BY ood.organization_code,
                   fm.formula_no,
                   fm.formula_vers,
                   fm.formula_desc1,
                   fm.formula_status,
                   fd.line_type,
                   msib.segment1,
                   by_product_type
          ORDER BY fm.formula_no, fm.formula_vers;
    BEGIN
       DBMS_OUTPUT.put_line (   INITCAP ('ORGANIZATION CODE')
                             || ','
                             || INITCAP ('FORMULA NAME')
                             || ','
                             || INITCAP ('FORMULA VERSION')
                             || ','
                             || INITCAP ('FORMULA DESC')
                             || ','
                             || INITCAP ('FORMULA STATUS')
                             || ','
                             || INITCAP ('PRODUCT')
                             || ','
                             || INITCAP ('INGREDIANT')
                             || ','
                             || INITCAP ('BY PRODUCT')
                             || ','
                             || INITCAP ('BY PRODUCT TYPE')
       FOR ch IN cr_header
       LOOP
          DBMS_OUTPUT.put_line (   ch.organization_code
                                || ','
                                || ch.formula_name
                                || ','
                                || ch.formula_version
                                || ','
                                || '"'
                                || ch.formula_desc
                                || '"'
                                || ','
                                || ch.formula_status
                                || ','
                                || ch.product
                                || ','
                                || ch.ingrediant
                                || ','
                                || ch.by_product
                                || ','
                                || ch.by_product_type
       END LOOP;
    EXCEPTION
       WHEN OTHERS
       THEN
          DBMS_OUTPUT.put_line ('Error No: ' || SQLCODE || 'Error Msg: '
                                || SQLERRM
    END;
    EXEC HeadCSV_Prc2
    Thanks,
    Raghu

    RaghuVarma wrote:
    I created one report using sql code.(Ex: select * from emp).
    But my higher authorities want that for security purpose They will change the code into java.
    What "higher authorities"? What "security purpose"?
    In this process they changed my code as a procedure.Finally they give that java code.they tell to me please fix in apex.
    Do these "higher authorities" know anything about APEX? What does the Java code actually do? Have you asked them how their approach is to be integrated into APEX?
    There is no reason why a properly written Java stored program cannot be used in APEX, provided that whatever it is doing makes sense in an APEX/web context, and isn't some nonsense like using DBMS_OUTPUT to generate a CSV.
    I tried so many ways.But it is not fixed.Different Different errors will occurs.
    Tried what? Demonstrate what you have tried, preferably using examples on apex.oracle.com.
    How to solve this.
    How to solve what? No clearly defined problem or requirement has been identified.
    Describe the the problem/requirement (not your attempted solutions) in detail.
    How to ask questions
    Re: 2. How do I ask a question on the forums?
    Include as much relevant information with your question as possible, starting with:
    APEX version
    DB version, edition and host OS
    Web server architecture (EPG, OHS or APEX listener), platform, and host OS
    Browser(s)/version(s) used
    Theme
    Templates
    Region type(s)

  • Can you create report using report painter with Tcodes:FAGLL03,FCHN

    Hi Experts,
    1.I want to create report using report painter by using tcodes FAGLL03,FCHN.Can i create with report painter?
    2.i never used report painter can anyone provide report painter pdf for ecc6.0
    3.can any oneguide me how to develop report in report painter by using this tcodes.
    4.If not possible can i do with report writer?
    Regards,
    naresh.
    Moderator: Don't mix report painter with the TCodes wyou mentioned; there is no link between them. Regarding Report Painter - search SDN. Respect the rules and don't cross-post: you asked the same unclear question in several forums!

    cross posted
    Edited by: nareshvarma on Jul 19, 2010 9:11 AM

  • Is it possible to create report with two databases in Web Analysis Studio

    Hi,
    I am new to Hyperion Web Analysis, Could anyone help me out, whether its possible to create report with two databases for eg: OLAP(ESSBASE) and relational.
    Thanks & Regards,
    Prashanthi.

    Hi Mohit,
    Thanks for the reply, could you throw out some scenario so that i can try it out.As I am just trying my hands wet on this would like to know in detail & even i have gone through WA user guide but dint get any clue. Please throw some light.
    thanks
    prasanthi

  • How to create reports using jDeveloper

    what procedure to follow in order to creating
    reports drawn from mysql or Oracle 8.5.0 database.

    I have created 'reports' using BC4J and the JSP Web Application wizard (I use the RowsetBrowser bean).
    On the BC4J side, I use read only View Objects based on SQL queries (not based on Entity Objects).
    On the JSP side, I create a HTML form where the user can enter their query criteria, pass that criteria as parameters to the ViewObject query, then use a RowSetBrowser bean to display the results.
    You can also write your own custom beans to format the output of the report as you like.

  • Can i create report using more than one Business Area ?

    Hi Gurus,
    Can i create report using more than one Business Area?.Could anybody tell me that report will work?.
    Vikram

    You should have no problem creating a report using more than one Business Area, we share folders across BAs all the time for ease of management. As long as your joins exist its not a problem.
    Matt Topper
    TUSC, The Oracle Experts
    [email protected]

Maybe you are looking for

  • Itunes unresponsive iphone 5

    Itunes hangs when connecting my iphone 5 and I followed the troubleshooting guide but the guide stops if this issue still continues.  I highlighted the step below in red and hoping someone can redirect me to further troubleshooting steps.  Still have

  • Does anyone know how to print in color on a pages on Pages on a MacBook Pro?

    I have a project that I need to print out, and I recently just got a MacBook Pro, so I'm not 100% acquainted to Pages. SO PLEASE HELP!!!!

  • Mail files on server and webmail view don't match

    Hi there, First-time poster... sorry if this has been addressed ad infinitum. We are running Msging Server 6.2-6.01 (according to 'imsimta version'). I have a problem with a user's account. The account has a mailQuota of 20Mb, of which about 89% is c

  • Help In Moving the Album Art Folder

    Hi, Wonder if anybody can help me... I am running the latest ITunes on Windows Media Center edition. My problem is that the Album Art Folder is located on my C: drive and I am running out of storage and would like to move it to my Itunes folder on my

  • Airport Express not working wirelessly for OSX only

    Hi all- I have spent days reading in these forums and online attempting to resolve my issue, but to no avail. Computers: Macbook Pro, 2009, running Snow Leopard 10.6.3 (just updated today) Imac, 2008, running Snow Leopard 10.6.2 HP Touchsmart, runnin