Displaying data based on selection in tabler form

Hi ALL,
I have created report with three columns, from the three first column is select list. And initially user can't see any record, once user select "Add Row" button then one row will be displayed with empty data. Now when user selects one value from first column of select list then data needs to get populated for other columns in the row.
I am able to do this it the select list is an item with a property of "select list on submit". But I could not able to go with the tabler form.
Can anyone help me and also make me to find a related example too...
Thanks & Regards
Vishwanath

Hi All,
Please tell me if my question is not clear. I am waiting for the reply. Please help out in resolving this issue.
Thanks
Vishwanath

Similar Messages

  • Adobe form displaying data of previous selected records

    Dear All,
    I have created a wd component consisting of 2 views.
    In the first view i am displaying an ALV. When i select a record and click on the alv button, the second view
    gets called which contains an Adobe Form showing the data.
    The problem i am facing is that the record which gets displayed in the adobe form is the one previous selected record and not the current record which i select.
    Kindly give your valuable suggestions .
    Regards,
    Niti

    Hi ,
    Adobe form is just an external media in your case , it has nothing to do with your data.
    Check what data is getting passed to adobe form via debuging .
    check if your getting the selected element .
    You can also post your code here if possible.
    Regards
    Kuldeep

  • Displaying items based on Query record count (Forms 4.5)

    I have a special requirement.
    Assume col1 that I am selecting from table temp.
    select col1 from temp;
    Now if query fetches 9 records.
    Each column I want to show like this.
    1 2 3 4 5 6
    7 8 9
    If query fetches 15 records.
    Each column I want to show like this.
    1 2 3 4 5 6
    7 8 9 10 11 12
    13 14 15.
    That means items displayed on screen chages based on output of
    query.
    Pls. suggest some solution.
    null

    When i made the above query a view and created an oracle portal form. I get this error when I try to retrieve all the records in that view i made above.
    An unexpected error occurred: ORA-01445: cannot select ROWID from a join view without a key-preserved table (WWV-16016)
    What does the "key-preserved table" mean?

  • Unable to display data no entry in the table without using Model clause

    Hi,
    I've an urgent requirement described below :
    The previously posted Question has been answerted using Model Clause:
    Is there any way out to solve it without using Model clause:
    I've a table named as "sale" consisting of three columns : empno, sale_amt and sale_date.
    (Please ref. The table script with data as given below)
    Now if I execute the query :
    "select trunc(sale_date) sale_date, sum(sale_amt) total_sale from sale group by trunc(sale_date) order by 1"
    then it displays the data for the dates of which there is an entry in that table. But it does not display data for the
    date of which there is no entry in that table.
    If you run the Table script with data in your schema, then u'll see that there is no entry for 28th. Nov. 2009 in
    sale table. Now the above query displays data for rest of the dates as its are in sale table except for 28th. Nov. 2009.
    But I need its presence in the query output with a value of "sale_date" as "28th. Nov. 2009" and that of "total_sale" as
    "0".
    Is there any means to get the result as I require?
    Please help ASAP.
    Thanks in advance.
    Create table script with data:
    CREATE TABLE SALE
    EMPNO NUMBER,
    SALE_AMT NUMBER,
    SALE_DATE DATE
    SET DEFINE OFF;
    Insert into SALE
    (EMPNO, SALE_AMT, SALE_DATE)
    Values
    (100, 1000, TO_DATE('12/01/2009 10:20:10', 'MM/DD/YYYY HH24:MI:SS'));
    Insert into SALE
    (EMPNO, SALE_AMT, SALE_DATE)
    Values
    (100, 1000, TO_DATE('11/30/2009 10:21:04', 'MM/DD/YYYY HH24:MI:SS'));
    Insert into SALE
    (EMPNO, SALE_AMT, SALE_DATE)
    Values
    (100, 1000, TO_DATE('11/29/2009 10:21:05', 'MM/DD/YYYY HH24:MI:SS'));
    Insert into SALE
    (EMPNO, SALE_AMT, SALE_DATE)
    Values
    (100, 1000, TO_DATE('11/26/2009 10:21:06', 'MM/DD/YYYY HH24:MI:SS'));
    Insert into SALE
    (EMPNO, SALE_AMT, SALE_DATE)
    Values
    (100, 1000, TO_DATE('11/25/2009 10:21:07', 'MM/DD/YYYY HH24:MI:SS'));
    Insert into SALE
    (EMPNO, SALE_AMT, SALE_DATE)
    Values
    (200, 5000, TO_DATE('11/27/2009 10:23:06', 'MM/DD/YYYY HH24:MI:SS'));
    Insert into SALE
    (EMPNO, SALE_AMT, SALE_DATE)
    Values
    (200, 4000, TO_DATE('11/29/2009 10:23:08', 'MM/DD/YYYY HH24:MI:SS'));
    Insert into SALE
    (EMPNO, SALE_AMT, SALE_DATE)
    Values
    (200, 3000, TO_DATE('11/24/2009 10:23:09', 'MM/DD/YYYY HH24:MI:SS'));
    Insert into SALE
    (EMPNO, SALE_AMT, SALE_DATE)
    Values
    (200, 2000, TO_DATE('11/30/2009 10:23:10', 'MM/DD/YYYY HH24:MI:SS'));
    Insert into SALE
    (EMPNO, SALE_AMT, SALE_DATE)
    Values
    (300, 7000, TO_DATE('11/24/2009 10:24:19', 'MM/DD/YYYY HH24:MI:SS'));
    Insert into SALE
    (EMPNO, SALE_AMT, SALE_DATE)
    Values
    (300, 5000, TO_DATE('11/25/2009 10:24:20', 'MM/DD/YYYY HH24:MI:SS'));
    Insert into SALE
    (EMPNO, SALE_AMT, SALE_DATE)
    Values
    (300, 3000, TO_DATE('11/27/2009 10:24:21', 'MM/DD/YYYY HH24:MI:SS'));
    Insert into SALE
    (EMPNO, SALE_AMT, SALE_DATE)
    Values
    (300, 2000, TO_DATE('11/29/2009 10:24:22', 'MM/DD/YYYY HH24:MI:SS'));
    Insert into SALE
    (EMPNO, SALE_AMT, SALE_DATE)
    Values
    (300, 1000, TO_DATE('11/30/2009 10:24:22', 'MM/DD/YYYY HH24:MI:SS'));
    COMMIT;
    Any help will be needful for me
    Regards,

    select sale_date,sum(sale_amt) total_sale
    from
    select empno,0 sale_amt,(sale_date + ao.rn) sale_date
    from
    select empno,sale_amt,sale_date ,(t.nxt_dt - t.sale_date) diff
    from
    select empno
    ,sale_amt,trunc(sale_date) sale_date
    ,trunc(nvl(lead(sale_date) over (partition by 1 order by sale_date),sale_date)) nxt_dt
    from sale
    ) t
    where (t.nxt_dt - t.sale_date) >1
    ) rec,(select rownum rn from user_objects where rownum<=200) ao
    where ao.rn <=(rec.diff-1)
    union all
    select empno,sale_amt,trunc(sale_date) sale_date
    from sale
    group by sale_date
    order by 1;
    ~~~~Guess this will serve the purpose...
    Cheers Arpan

  • Scorecard doesn't display data for some selections

    Hi,
    I have configured a scorecard to display detail data (product quantities for 4 quarters) based on different parameter (product code) selection in other master scorecard. The detail dashboard doesn't display data for all the product codes. It's weird even data is there for the same product code where the scorecard is mapped in the excel however doesn't display. Appreciate if any of you can help me to overcome the issue.
    Technology: SAP Dashboard 4.1 SP4, Oracle 11g
    Thanks,
    Anurag

    Hi Anurag
    Have you taken an excel snapshot and checked if the master scorecard has the rows you expect to see in the detail sorecard?
    Thanks
    Runali

  • How to display data based on the option selected in selectonechoice

    Hi,
    I have an adf application jspx page where I need to display list of Sectors in a list box and on selection of a sector corresponding Departments will get displayed as golinks.
    I am using af:selectOneChoice where I am displaying Sector Lists.
    <af:selectOneChoice label="" id="soc1" immediate="true" autoSubmit="true" clientComponent="true" unselectedLabel="Select a Sector" valuePassThru="true" value="#{DepartmentalInformationManagedBean.sectorId}">
    <af:forEach items="#{DepartmentalInformationManagedBean.sectors}" var="sectorList">
    <af:selectItem label="#{sectorList.sectorName}" value="#{sectorList.sectorId}" id="si1"/>
    </af:forEach>
    </af:selectOneChoice>
    <!--To display list of Departments -->
    <af:forEach items="#{DepartmentalInformationManagedBean.departments}" var="departmentList">
    <af:goLink text="#{departmentList.departmentName}" partialTriggers=":soc1" destination="http://www.google.co.in" targetFrame="_blank" id="gl1"/>
    </af:forEach>
    The problem is when I am selecting one Sector, I am getting the corresponding Departments inside the managedbean but the Department links are not reflecting in my page.
    Can any one please help me.

    853833 wrote:
    <af:forEach items="#{DepartmentalInformationManagedBean.departments}" var="departmentList">
    <af:goLink text="#{departmentList.departmentName}" partialTriggers=":soc1" destination="http://www.google.co.in" targetFrame="_blank" id="gl1"/>
    </af:forEach> Try setting partialTrigger on af:forEach instead of af:goLink. If that doesn't work, try wrapping the af:forEach with af:panelGroupLayout and set partialTrigger on that.

  • How to get data based on selection screen on the output

    Hi Expert,
    Can any one tell me based on material number on slection screen correspondind field i.e on selection scren
    WERKS,MTART,EKGRP,DISPO,BESKZ,MATNR should also get. i.e if i give mtart on selection screen corresponding to material number mtart shoul get.
    NOTE: I HAVE WRITTEN SELECT QUERY FOR TWO TABLES I.E MARA,MBEW.
    Below is my code
    TABLES:MARA,MARC,MARD.
    TYPES: BEGIN OF ty_mbew,
          matnr TYPE matnr,
          bwkey TYPE werks_d,
          lbkum TYPE lbkum,
          END OF ty_mbew.
    TYPES: BEGIN OF ty_close_stk,
           mandt TYPE mandt,
           matnr TYPE matnr,
           cdate TYPE zwkdate,
           bwkey TYPE werks_d,
           meins TYPE meins,
           zlbkum TYPE lbkum,
           WERKS  TYPE WERKS,      "
           MTART  TYPE MTART,
           EKGRP  TYPE EKGRP,
           DISPO TYPE  DISPO,
           BESKZ TYPE BESKZ,      
           salk3 TYPE salk3,
           END OF ty_close_stk.
    TYPES: BEGIN OF ty_mbewh,      
           matnr type matnr,
           bwkey type bwkey,
           lbkum type lbkum,
           lfmon type lfmon,
           end of ty_mbewh.        
    TYPES: begin of wa_matnr,
                matnr type matnr,
           end of wa_matnr.
    dATA : it_matnr type standard table of wa_matnr.
    DATA : it_close_stk_del TYPE STANDARD TABLE OF zclose_stock WITH HEADER LINE.
    DATA : it_close_stk TYPE STANDARD TABLE OF ty_close_stk,
           it_mbew TYPE STANDARD TABLE OF ty_mbew,
           wa_close_stk TYPE ty_close_stk,
           wa_mbew TYPE ty_mbew,
           it_mbewh TYPE STANDARD TABLE OF ty_mbewh,            "89286
           wa_mbewh TYPE ty_mbewh.                              "89286
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE TEXT-001.
    89286*********************
    SELECT-OPTIONS: WERKS FOR MARD-WERKS,    "Plant
                    MTART FOR MARA-MTART,    "Material type
                    EKGRP FOR MARC-EKGRP,    "Purchasing group
                    DISPO FOR MARC-DISPO,    "MRP Controller
                    BESKZ FOR MARC-BESKZ,    "Procurement type
                    s_MATNR FOR MARA-MATNR.  "Material number
    ************89286***************
    SELECTION-SCREEN END OF BLOCK b1.
    SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE TEXT-002.
    select MATNR INTO CORRESPONDING FIELDS OF TABLE IT_MATNR
           FROM MARA
           WHERE MATNR IN S_MATNR.
    SELECT matnr
             bwkey
             lbkum
             salk3            "MSK25072011
             FROM mbew INTO CORRESPONDING FIELDS OF TABLE it_mbew
            WHERE lfgja = fis_year
              where matnr  in s_matnr
               and  bwkey in werks.

    Hi
    Perhaps I don't understand yet, but you have several select-options in your selection-screen, every select-options can be assigned to different tables (MARA, MARC, MBEW), so you need to decide if to use a JOIN o single SELECTION in order to get all data in one step or many steps.
    IF you need to do several selections, these have to be linked in order to get the data for the records selected in the previous selection, something like that:
    SELECT matnr mtart INTO TABLE t_mara
        FROM mara
          WHERE matnr IN s_matnr
            AND mtart IN s_mtart.
      IF sy-subrc = 0.
        SELECT matnr werks ekgrp INTO TABLE t_marc
          FROM marc
            FOR ALL ENTRIES IN t_mara
              WHERE natnr = t_mara-matnr
                AND ekgrp IN s_ekgrp.
        IF sy-subrc = 0.
          SELECT matnr bwkey lbkum salk3 INTO TABLE t_mbew
            FROM mbew
              FOR ALL ENTRIES IN t_marc
                WHERE matnr = t_marc-matnr
                  AND bwkey = t_marc-werks.
        ENDIF.
      ENDIF.
    But you can use an single join with all tables
    Max

  • How to view information based on selection from table

    I currently have a roles table, usersinroles table, and a users table. The users table has a user ID, the roles table has a Role ID, and the usersinroles table has Role ID and user ID as foreign keys. Many users can have many roles. On one page I have the users first name and last name displayed in a read-only table. a user can be selected in which they are directed to a page to view the users details. How can I display on that page the selected user's roles he/she has? I've tried a view but it displays ALL the users and their roles.
    Thanks,
    Adam

    Hi,
    create a bind variable in the users VO and then pass the authenticated username as an argument to the ExecuteWithparams operation. This queries the VO to only show the user you are interested in. The developer guide is a good source of information and inspiration
    http://download-uk.oracle.com/docs/html/B25947_01/toc.htm
    Frank

  • How to display data based on two columns in Apex calendar?

    I have a table for holiday details with 2 date columns...from-date and a to-date. I need to display the name of the person for the date range they have specified. For Ex if i applied for leaves from may 1 to may 4...the calendar should display my name for 4 dates i.e may1,2,3 and 4
    I am new user in apex and still trying new things. Please help me achieve this.

    Swetha
    I created an application using Apex. It is a calendar application to show events that are happening. I ran into an issue with it
    If there is an event that occurs during an interval like August15 - August22, the event is shown only on August15, which is the first day of the event. I would like to show it in all days from August15-22.
    Here are the items coming from the page
    event_id number,
    employee_id number
    date_from date,
    date_to date,
    due_date date,
    act_id number,
    act_loc varchar2,
    reminder varchar2,
    frequency varchar2,
    division varchar2,
    event_status varchar2
    I am looking to write a process / procedure where it can show the same event on all the days it is occurring
    Thanks in advance
    Latha

  • Graph in BEX not displaying data for the selected range

    Hi Gurus,
    I am running a report for the calweek 200801-200840. But the graph is displaying value upto 200835. The data is available in the cube till 200840.
    Please help!!
    Thanks
    Nisha

    Hi Nisha,
    Please check once again whether there is data for 200836 to 200840 for the corresponding selections and restrictions you have mentioned in the design of your query.
    Regards,
    Suresh

  • Dynamic data on  Screen -Display data Based On the First Field

    hello Helping Minds..
    I have Two Fields In MODULEPOOL SCREEN.
    1--- BUKRS
    2--- BELNR ..... Both From BKPF table.
    My requirement is When i select a CompanyCode ( BUKRS ) In d first field,all the DocumentNO ( BELNR ) related to that CompCOde Shd be displayed in the 2nd field,
    For Ex-
    If i choose BUKRS = 1000,
    and Then clicked the Belnr field, All d DocumentNO for BUKRS 1000 will be populated in d Dropdown list..
            BUKRS = 0001,
    then BELNR = 0100000000 ,
                          0100000001 in d dopdown. 
    source code will be Appreciated...
    Thnks in advance To D helping Minds

    Process on value-request.
    filed Bukrs module f4_bukrs.
    field belnr module f4_belnr.
    *module f4bukrs input.*_
    if belnr is not initial.
    select belnr bukrs from bkpf whre belnr = belnr.   
    else.
    select belnr bukrs from bkpf whre belnr = belnr.
    endif.               ""   Hey both these Condition lead to same thing...den Whts d use??
    Firstly Belnr will be always Intial. cos it will be populated after we select the BUKRS.  , Here am confused?
    if t_bkpf is not initial.
      CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'        "  No idea Abt dis FUncn module, pls explain
    endif.
    end module.
    module f4_belnr input.
    if bukrs is not initial.
    select belnr bukrs from bkpf where bukrs = bukrs.
    else.
    select belnr bukrs from bkpf whre belnr = belnr.
    endif.
    if t_bkpf is not initial.          ""   What is t_bkpf and y its used
    call fm to CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'
    endif.
    end module.

  • DYnamic Screen -Display data Based On the First Field

    hello Helping Minds..
    I have Two Fields In  MODULEPOOL SCREEN.
    1--- BUKRS
    2--- BELNR     ..... Both From BKPF table.
    My requirement is When i select a CompanyCode ( BUKRS )  In d first field,all the DocumentNO ( BELNR ) related to that CompCOde Shd be displayed in the 2nd field,
    For Ex- If i choose BUKRS = 1000,
                and Then clicked the Belnr field, All d DocumentNO for BUKRS 1000 will be populated in d Dropdown list..
            BUKRS = 1000,
    then  BELNR = 0100000000 ,
                           0100000001   in d dopdown.
    <<don't cross post/Duplicate else thread will be locked or deleted>>
    Thnks in advance To D helping Minds
    Edited by: Vijay Babu Dudla on Apr 25, 2009 4:57 AM

    Process on value-request.
    filed Bukrs module f4_bukrs.
    field belnr module f4_belnr.
    *module f4bukrs input.*_
    if belnr is not initial.
    select belnr bukrs from bkpf whre belnr = belnr.   
    else.
    select belnr bukrs from bkpf whre belnr = belnr.
    endif.               ""   Hey both these Condition lead to same thing...den Whts d use??
    Firstly Belnr will be always Intial. cos it will be populated after we select the BUKRS.  , Here am confused?
    if t_bkpf is not initial.
      CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'        "  No idea Abt dis FUncn module, pls explain
    endif.
    end module.
    module f4_belnr input.
    if bukrs is not initial.
    select belnr bukrs from bkpf where bukrs = bukrs.
    else.
    select belnr bukrs from bkpf whre belnr = belnr.
    endif.
    if t_bkpf is not initial.          ""   What is t_bkpf and y its used
    call fm to CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'
    endif.
    end module.

  • ALV report to display data based upon radio button.

    i am new to abap, I have a requirement its like there are three radio buttons , r1 r2 r3  If i click r1 datas of r1 should display
    if i click r2 datas of r1 and r2 should display if i click r3 datas of r1 r2 and r3 should display , its ALV report. Please give me solution.

    Hi
    You can use by having the radio buttons in the same group. For ex i'm stating if want to have r radio buttons for change, display and create and you select it with a push button you can code it as ..
    //////SAMPLE CODE
    SELECTION-SCREEN BEGIN OF BLOCK BLOCK1 WITH FRAME TITLE TEXT-003 NO INTERVALS.
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS: SRCE RADIOBUTTON GROUP ELE.
    SELECTION-SCREEN COMMENT 3(15) TEXT-004.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS: VARIN RADIOBUTTON GROUP ELE.
    SELECTION-SCREEN COMMENT 3(15) TEXT-005.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS: ATTR RADIOBUTTON GROUP ELE.
    SELECTION-SCREEN COMMENT 3(15) TEXT-006.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS: DOCU RADIOBUTTON GROUP ELE.
    SELECTION-SCREEN COMMENT 3(15) TEXT-007.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS: TXELE RADIOBUTTON GROUP ELE.
    SELECTION-SCREEN COMMENT 3(15) TEXT-008.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN SKIP 1.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN PUSHBUTTON 1(15)  TEXT-009 USER-COMMAND DISPL.
    SELECTION-SCREEN PUSHBUTTON 18(15) TEXT-010 USER-COMMAND CHNGE.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN END OF BLOCK BLOCK1.
    *PARAMETERS : XXX LIKE T100A-ARBGB MATCHCODE OBJECT YCL_T100A.
    AT SELECTION-SCREEN.
    CASE SY-UCOMM.
    WHEN 'CREAT'.
      MESSAGE I000(YCL_MC01) WITH 'Create'. // or insert your alv code here
    WHEN 'DISPL'.
      MESSAGE I000(YCL_MC01) WITH 'Display'. // or insert your alv code here
    WHEN 'CHNGE'.
      MESSAGE I000(YCL_MC01) WITH 'Change'. // or insert your alv code here
    ENDCASE.
    //////SAMPLE CODE
    In same you can code it.
    Hope this is useful to you.
    Regards
    Vinodh

  • Problem in displaying data onto Form after selecting from table.

    Hi there,
    I keep hitting this error when I tried to display the data after the selection from table. Using backing beans w data control to do it
    Err: java.lang.ClassCastException: java.util.Collections$SingletonList cannot be cast to java.lang.Integer
    Table used ArrayList to retrieve out the wanted data. E.g uses A object
    To display: selected data to retrieve the selected row to display as a read-only form layout below the table. E.g. need to get A.getName() to match with B object B.getName() then uses the B object to retrieve out the data.
    Anyone know how to do it?

    Hi
    use the follwing code
    int rowcount = wdContext.node<Name>().size();
    while(rs.next())
    IPrivate<ViewName>.I<Name>Element tabnode =wdContext.node<Name>().get<Name>ElementAt(i);
    tabnode.nodeAuthoriseNode().invalidate();
    tabnode.nodeAuthoriseNode().addElement(0,authele);
    tabnode.nodeAuthoriseNode().setLeadSelection(0);
    wend
    Regards
    Dhinakar

  • Reg: Data getting repeated in the table and displayed in the Smartorm.

    Hello Experts,
    Requirement is to display header data from kna1table and item data from two tables faglflexa and bsid.
    Layout is something like this.
    Name and Address is capture from KNA1.
    Item Details from faglflexa and BSID based on one condition, UMSKZ ne 'X' and 'Y' for the respective KUNNR from KNA1.       First Item table.I have taken a separate internal table from print program
    Item Details from BSID only based on one condition, UMSKZ eq 'X' and 'Y' for the respective KUNNR from KNA1. Second Item table. I have taken a separate internal table from print program
    Calculation based on faglflexa and BSID table on one condition,UMSKZ ne 'X' and 'Y' for the respective KUNNR from KNA1.       Third t Item table. Data from the first internal table
    The complete thing should be displayed on Smartform for one Customer (kunnr). Then should go to the next customer.
    I have a written a code like this, For Example.
    loop at kna1 into w_kna1.
    Used Table1 in smartform and give a loop to display the item details based on first internal table.
    display itemdetails
    Used Table2 in smartform and give a loop to display the item details based on second internal table.
    display itemdetails.
    Used Template to display the item details to display the item details based on first internal table.
    endloop.
    Now my problem is table 1 is coming fine. table 2 data is getting repeated for all the customers based on 1st customer data, how should i clear the workarea after every customer.
    Similar pbm for the template which i'm using.
    Please help me on this.
    Thanks in advance.
    Abdur Rafique

    Hi Vishnu,
    Thanks for replying. I cant use one single table to display the output. There are several conditions in two tables.
    I have corrected the error of repetition data. Logic i will mention it below.
    loop at kna1 into wa_kna1.
    for header data " this is main table
    loop at item_1  into wa_item_1. " for first item table
    Data displayed.
    loop at item_2 into wa_item_2. " for 2nd item table
    Data displayed.
    endloop. " for 2nd item table
    data calculation based on first item table.
    endloop. " this is for first item table
    endloop." this is for 2nd item table.
    The data which is there in the 2nd item table should display data based on the kna1 loop. Data is displaying properly but not in 1 table, say for example.
    kunnr- 1000010
    there are 9 items.
    All the 9 items should be in 1 table. But here it is displaying 1 item in 1 table till 9 items in 9 tables.
    I need to club all the 9 items in 1 table.
    One more doubt is 2 items have same belnr (document number) i need to club this and add the wmbtr field and then display as 1 record.
    So final records in 2nd item table should be 8 not 9.
    Can you please help me on this.
    Thanks in advance.
    Abdur Rafique

Maybe you are looking for