Two Internal tables to be displayed as separate ALV grid.

Hi Friends,
I have 2 internal tables say i_tab1 and i_tab2.
I_TAB1 contains 10 records.
I_TAB2 contains 15 records.
My requirement is to display I_TAB1 with title 'Success Records' and ITAB2 with title 'Missed Records'.
It should be done thro ALV grid Display. I can do using ALV LIST Display. But I need using GRID display.
Its version 4.6C.
How to do this?
Regards,
Viji

Hi,
Use a container and the spliters as below:
DATA: container1   TYPE REF TO cl_gui_container,
      container2   TYPE REF TO cl_gui_container,
      container3   TYPE REF TO cl_gui_container,
      main1        TYPE REF TO cl_gui_custom_container,
      splitter1    TYPE REF TO cl_gui_splitter_container,
      grid1        TYPE REF TO cl_gui_alv_grid,
      grid2        TYPE REF TO cl_gui_alv_grid,
      grid3        TYPE REF TO cl_gui_alv_grid,
      ls_layo      TYPE lvc_s_layo,
      count        TYPE i VALUE 0,
      g_okcode     LIKE sy-ucomm,
      r1,r2.
DATA: alv_fcat     TYPE lvc_t_fcat WITH HEADER LINE.
* First Main Container
CREATE OBJECT main1
       EXPORTING container_name = 'MAIN_CONTAINER'.
* First Splitter Container
CREATE OBJECT splitter1
       EXPORTING parent  = main1
                 rows    = 2
                 columns = 1.
* Place Container1 in First row First column
CALL METHOD splitter1->get_container
  EXPORTING
    row       = 1
    column    = 1
  RECEIVING
    container = container1.
* Place Container2 in Second row First column
CALL METHOD splitter1->get_container
  EXPORTING
    row       = 2
    column    = 1
  RECEIVING
    container = container2.
* Create grids
  CREATE OBJECT grid1
         EXPORTING i_parent      = container1.
  CREATE OBJECT grid2
         EXPORTING i_parent      = container2.
CALL METHOD grid1->set_table_for_first_display
    EXPORTING
      is_layout       = ls_layo
    CHANGING
      it_outtab       = itab1[]
      it_fieldcatalog = alv_fcat[].
* Display itab2 in grid2
  CALL METHOD grid2->set_table_for_first_display
    EXPORTING
      is_layout       = ls_layo
    CHANGING
      it_outtab       = itab2[]
      it_fieldcatalog = alv_fcat[].

Similar Messages

  • Like SM30 ,table should be display in editable ALV Grid(for Dynamic DB )

    Hi Friends,
    plese help me how to display  ALV grid in editable mode for differnt types of data base tables.
    same as like SM30 transaction.
    Moderator message: please search for available information/documentation/previous discussions before asking.
    Edited by: Thomas Zloch on Nov 11, 2010 6:40 PM

    Hi,
    In SLIS_T_FIELDCAT_ALV you specify the field as edit = X.
    Give it as mentioned, where you assign fieldname and positions etc.
    Thanks&Regards

  • Alv with two internal tables

    I have two separate internal tables. However , they have a common field matnr. In the report output, the two internal tables should be joined by this common field. Can this be done with an ALV . The common field Matnr should appear to the extreme left. Followed by itab1 and then itab2 . Its in a sense Matnr is the header , but it shows as rows. Each matnr has several item in both itab1 and itab2 , it is not necessary that total number of item data in itab1 and itab2 will be same .

    You can see example program :
    TYPE-POOLS: slis.
    DATA: BEGIN OF itab OCCURS 0,
            vbeln TYPE vbeln,
            expand,
          END OF itab.
    DATA: BEGIN OF itab1 OCCURS 0,
            vbeln TYPE vbeln,
            posnr TYPE posnr,
            matnr TYPE matnr,
            netpr TYPE netpr,
          END OF itab1.
    DATA: t_fieldcatalog TYPE slis_t_fieldcat_alv.
    DATA: s_fieldcatalog TYPE slis_fieldcat_alv.
    s_fieldcatalog-col_pos = '1'.
    s_fieldcatalog-fieldname = 'VBELN'.
    s_fieldcatalog-tabname   = 'ITAB'.
    s_fieldcatalog-rollname  = 'VBELN'.
    s_fieldcatalog-outputlen = '12'.
    APPEND s_fieldcatalog TO t_fieldcatalog.
    CLEAR: s_fieldcatalog.
    s_fieldcatalog-col_pos = '1'.
    s_fieldcatalog-fieldname = 'VBELN'.
    s_fieldcatalog-tabname   = 'ITAB1'.
    s_fieldcatalog-rollname  = 'VBELN'.
    s_fieldcatalog-outputlen = '12'.
    APPEND s_fieldcatalog TO t_fieldcatalog.
    CLEAR: s_fieldcatalog.
    s_fieldcatalog-col_pos = '2'.
    s_fieldcatalog-fieldname = 'POSNR'.
    s_fieldcatalog-tabname   = 'ITAB1'.
    s_fieldcatalog-rollname  = 'POSNR'.
    APPEND s_fieldcatalog TO t_fieldcatalog.
    CLEAR: s_fieldcatalog.
    s_fieldcatalog-col_pos = '3'.
    s_fieldcatalog-fieldname = 'MATNR'.
    s_fieldcatalog-tabname   = 'ITAB1'.
    s_fieldcatalog-rollname  = 'MATNR'.
    APPEND s_fieldcatalog TO t_fieldcatalog.
    CLEAR: s_fieldcatalog.
    s_fieldcatalog-col_pos = '4'.
    s_fieldcatalog-fieldname = 'NETPR'.
    s_fieldcatalog-tabname   = 'ITAB1'.
    s_fieldcatalog-rollname  = 'NETPR'.
    s_fieldcatalog-do_sum    = 'X'.
    APPEND s_fieldcatalog TO t_fieldcatalog.
    CLEAR: s_fieldcatalog.
    DATA: s_layout TYPE slis_layout_alv.
    s_layout-subtotals_text            = 'SUBTOTAL TEXT'.
    s_layout-key_hotspot = 'X'.
    s_layout-expand_fieldname = 'EXPAND'.
    SELECT vbeln UP TO 100 ROWS
           FROM
           vbak
           INTO TABLE itab.
    IF NOT itab[] IS INITIAL.
      SELECT vbeln posnr matnr netpr
             FROM vbap
             INTO TABLE itab1
             FOR ALL ENTRIES IN itab
             WHERE vbeln = itab-vbeln.
    ENDIF.
    DATA: v_repid TYPE syrepid.
    v_repid = sy-repid.
    DATA: s_keyinfo TYPE slis_keyinfo_alv.
    s_keyinfo-header01 = 'VBELN'.
    s_keyinfo-item01   = 'VBELN'.
    CALL FUNCTION 'REUSE_ALV_HIERSEQ_LIST_DISPLAY'
         EXPORTING
              i_callback_program = v_repid
              is_layout          = s_layout
              it_fieldcat        = t_fieldcatalog
              i_tabname_header   = 'ITAB'
              i_tabname_item     = 'ITAB1'
              is_keyinfo         = s_keyinfo
         TABLES
              t_outtab_header    = itab
              t_outtab_item      = itab1
         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.
    Thanks
    Seshu

  • Can we get the data from two internal tables in ALV.

    hi friends i would like to display the data using two internal tables using alv grid.please guide me.

    Hi,
    ALV would be having a specific layout say :
    MATNR
    MAKTX
    QTY
    Now, if you have two internal tables, then do they have a different structure. If they have different structures, then what kind of ALV layout you expect. The ALV output should be as per the structure of 1st or 2nd internal table.
    If both internal table have same layout, then populate the data from 2nd internal table into 1st internal table and pass the 1st internal table ( it will have data of both internal tables) to ALV.
    Best regards,
    Prashant

  • Two internal tables data into one

    Hello Gurus,
    I have data in two internal tables. One table IT_A contains the fields -
    MATNR - SALES ORG - DCHANNEL - STATUS - DESCRIPTION
    The other table IT_B contains the fields -
    CUSTOMER - SALES ORG.
    I need to display the result of all the fields when the sales org of both the tables are equal. i.e IT_A-VKORG = IT_B-VTORG.
    MATNR - SALES ORG - DCHANNEL - STATUS - DESCRIPTION.
    Please help me out with the code to be written.
    Regards,
    Balu

    TABLES    : MVKE, CAUFVD, TVMST.
    TYPES     : BEGIN OF T_MVKE,
                MATNR TYPE MVKE-MATNR,
                VKORG TYPE MVKE-VKORG,
                VTWEG TYPE MVKE-VTWEG,
                VMSTA TYPE MVKE-VMSTA,
                VMSTB TYPE TVMST-VMSTB,
                END OF T_MVKE.
    DATA      : LT_MVKE TYPE STANDARD TABLE OF T_MVKE WITH HEADER LINE,
                LS_MVKE TYPE T_MVKE.
    DATA      : LT1_MVKE TYPE STANDARD TABLE OF T_MVKE WITH HEADER LINE,
                LS1_MVKE TYPE T_MVKE.
    DATA      : LT2_MVKE TYPE STANDARD TABLE OF T_MVKE WITH HEADER LINE,
                LS2_MVKE TYPE T_MVKE.
    TYPES     : BEGIN OF T_KNVP,
                KUNNR TYPE KNVP-KUNNR,
                VKORG TYPE KNVP-VKORG,
                END OF T_KNVP.
    DATA      : LT_KNVP TYPE STANDARD TABLE OF T_KNVP WITH HEADER       LINE,
                LS_KNVP TYPE T_KNVP.
    SELECT-OPTIONS S_MATNR FOR MVKE-MATNR.
    PARAMETER  : P_KUNNR TYPE KNVP-KUNNR .
    START-OF-SELECTION.
    SELECT MATNR VKORG VTWEG VMSTA FROM MVKE INTO TABLE LT_MVKE WHERE MATNR IN S_MATNR .
    IF SY-SUBRC = 0.
    APPEND LT_MVKE.
    ELSE.
    EXIT.
    ENDIF.
    SELECT DISTINCT KUNNR VKORG FROM KNVP INTO TABLE LT_KNVP WHERE KUNNR = P_KUNNR.
    IF SY-SUBRC = 0.
    APPEND LT_KNVP.
    ELSE.
    EXIT.
    ENDIF.
    LOOP AT LT_MVKE.
    LT1_MVKE-MATNR = LT_MVKE-MATNR.
    LT1_MVKE-VKORG = LT_MVKE-VKORG.
    LT1_MVKE-VTWEG = LT_MVKE-VTWEG.
    LT1_MVKE-VMSTA = LT_MVKE-VMSTA.
    SELECT SINGLE VMSTB FROM TVMST INTO LT1_MVKE-VMSTB WHERE VMSTA = LT_MVKE-VMSTA AND SPRAS = SYST-LANGU.
    APPEND LT1_MVKE.
    CLEAR LT1_MVKE.
    ENDLOOP.
    LOOP AT LT1_MVKE.
      IF NOT LT_KNVP[] is INITIAL.
      READ TABLE LT_KNVP WITH KEY VKORG = LT1_MVKE-VKORG BINARY SEARCH TRANSPORTING NO FIELDS.
       IF SY-SUBRC = 0.
       APPEND LT1_MVKE TO LT2_MVKE.
       ELSE.
       APPEND LT1_MVKE TO LT2_MVKE.
       MESSAGE S003.
       ENDIF.
      CLEAR LT1_MVKE.
      ELSE. "IF LT_KNVP[] IS INITIAL.
       APPEND LT1_MVKE TO LT2_MVKE.
    ENDIF.
    ENDLOOP.
    WRITE: /1 'MATERIAL NUMBER', 20 'SALES ORG', 35 'DISTRIBUTION CHANNEL', 65 'MATERIAL STATUS', 85 'STATUS DESCRIPTION'.
    LOOP AT LT2_MVKE.
    FORMAT HOTSPOT ON.
    WRITE: /1 LT2_MVKE-MATNR, 20 LT2_MVKE-VKORG, 35 LT2_MVKE-VTWEG, 65 LT2_MVKE-VMSTA, 85 LT2_MVKE-VMSTB.
    HIDE: LT2_MVKE-MATNR, LT2_MVKE-VKORG, LT2_MVKE-VTWEG, LT2_MVKE-VMSTA, LT2_MVKE-VMSTB.
    CLEAR LT2_MVKE.
    FORMAT HOTSPOT OFF.
    ENDLOOP.
    AT LINE-SELECTION.
      IF LT2_MVKE-VMSTA = ' '.
       MESSAGE E002.
    ELSE.
    SET PARAMETER ID 'MAT' FIELD LT2_MVKE-MATNR.
    CALL TRANSACTION 'CO09'.
    DATA WERKS(4) TYPE C VALUE '1200'.
    SET PARAMETER ID 'WRK' FIELD WERKS.
    DATA RULE(2) TYPE C VALUE 'ZB'.
    SET PARAMETER ID 'PRR' FIELD RULE.
    SET PARAMETER ID 'X' FIELD CAUFVD-PRMBD.
    ENDIF.
    Hello gurus,
    The above code is working fine when I give both Material and customer in the select options. But it is not doing anything when I enter only the material.
    Please help.
    Regards,
    Balu

  • Two internal tables with different structures

    Hi Experts,
    I Have two internal tables.
    Table 1 structure:
    Name
    Age
    Table 2 structure :
    Name
    age
    branch
    Now the table 1 has some 5 data's and table 2 is empty.
    First i want to move that 5 data's from table 1 to table 2.
    Then the branch field is same for all records. its stored in a separate field called 'Branch'.
    finallay i need to move that branch to internal table 2 for all records.
    So the Table 2 should has five records and each record should have the branch.Its like,
    Name  Age Branch
    name1 10  ECE
    name2 10  ECE
    I didnt use with header line for both tables. In function module i declared as table parameter.
    Please give me a logic.
    Helps will be appreciated.

    Since the structure of yur both internal table is different so you can't use ITAB1[] = ITAB2[] statements.
    In this  case you have to  loop on first table then move data into second table and appned data into second table.
    Declare work area for both table with like line of statement as follows
    data: wa_itab1 like line of itab1,
              wa_itab2 like line of itab2.
    Loop at ita1 into wa_itab1.
    wa_itab2-name = wa_itab1-name.
    wa_itab2-age = wa_itab1-age.
    wa_itab2-branch = 'ECE'.
    append wa_itab to itab2.
    clear wa_itab1, wa_itab2.
    endloop.
    Hope this will solve your problem.

  • Appending two internal tables

    hello friends,
    I have two internal tables of different structure.
    i have filled those two internal tables using join statements.
    But one field is common in both the tables, when i try to append both tables into another new internal table.
    i cant get the value for the 2nd tables field.
    EX.
    vbeln is common in vbuk, vbup, vbap, vbak, likp, lips.
    but its sale order number in vbak, vbap.
    delivery document in likp,lips.
    vbup has both sales order and delivery in the vbeln field.
    so, i made a join to between vbak, vbup and lips to see the goods movement status in vbup.
    for that the vbeln should be delievery number.
    and in other table, i have added vbup and vbak and vbep to get the delievery status.
    for that the vbeln should be sale order no.
    when i append both the tables into the third internal table that has the structure of both internal tables.
    i could not get the vbeln of  the second table(sale order no) in the third table.
    help me guys.
    rewards for helpful solutions.

    hello,
    types:
    begin of str,
    vbeln like vbak-vbeln,
    vkorg like vbak-vkorg,
    vtweg like vbak-vtweg,
    end of str.
    types:
    begin of st1,
    lfstk like vbuk-vbeln,
    end of st1.
    types:
    begin of st2,
    vbeln like vbak-vbeln,
    vkorg like vbak-vkorg,
    vtweg like vbak-vtweg,
    lfstk like vbuk-lfstk,
    end of st2.
    selection-screen: s_order for vbak-vbeln,
                              s_div for vbak-vtweg.
    data: it type table of st with header line,
            it1 type table of st1 with header line,
            it2 type table of st2 with header line.
    select vbeln vkorg vtweg from vbak into table it
    where         vbeln in s_order and
                     vkorg in s_div.
    select lfstk from vbuk into table it1 for all entries in it
          where vbeln = it-vbeln.
    it2[] = it[].
    append it1-lfstk into it2[].
    or
    move-corresponding it1 to it2.
    " when i execute this code with a grid or list display, i m not able to get the values or entries for the 2nd table it1.
    the it2 has the lfstk cloumn blank in the final display.
    help me for  a remedy.
    rewards for useful suggestion.

  • DIFFERENCE BETWEEN TWO INTERNAL TABLES,THESE TABLES HAVE SAME FILEDS

    TYPES: BEGIN  OF
    TY_AS_UP,
    WERKS  LIKE  
                      MARC-WERKS,
    MATNR LIKE  
                       MARC-MATNR,
    LGORT LIKE  
                      MARD-LGORT,
    LABST(13) TYPE C,             
    (MARD-LABST)
    END OF TY_AS_UP.
    TABLES:
    1) FLAT FILE DATA.:
    DATA: WA_FILEDATA 
                 TYPE TY_AS_UP,
    I_FILEDATA TYPE STANDARD TABLE OF TY_AS_UP INITIAL SIZE 0.
    2) SAP DATA (SELECT QUREY)
    DATA: WA_SAPDATA
                  TYPE TY_AS_UP,
    I_SAPDATA TYPE STANDARD TABLE OF TY_AS_UP INITIAL SIZE 0.
    NOTE:
    I brought data to above table(2) from two internal tables I_MARC and I_MARD .
    My requirement is to display difference between  tables  1) and 2) based on quantity field(MARD-LABST)..
    report layout:
          top-of-page
    plant  diff qty  distri.qty   sap  
    01       -20       30        50  
            end-of-page
              page no 1.
    Kindly help me,it is urgent

    hi micky,
         thanks for your solution.
    another problem:
    I could not understand below
    requirement, could you please
    explain me.
    8)     Format the report based on the display options specified in the selection screen.
    a)     Display option “EQUAL IN QTY” show report lines where the difference is between the distributor file quantity and the SAP quantity is 0.
    b)     Display option “DIFFERENCE IN QTY” show report lines where the difference between the distributor file quantity and the SAP quantity is not 0.
    c)     If both options are selected, show report lines where the difference is both 0 and not 0.
    d)     Display SKUs in the distributors file not found in SAP as “Missing SKUs”
    regards,
    saritha.

  • Using for all entries of two internal tables in where clause of the select

    Hi experts,
    My requirement is, need to select Marc-minbe and wrpl-sobst, for all the entries of the two internal tables it_mara , and it_t001w.
    here is the select queries i have used,
    select matnr normt from  mara into it_mara for all entries in it_data where normt = it_data-normt.
    select konnr werks from t001w into it_t001w for all entries in it_data where konnr = it_data-konnr.
    now i need to select minbe of marc table and sobse of wrpl table for all the entries of above internal tables, it_mara and it_t001w, using both matnr of it_mara and werks of it_t001w in where condition.
    Pls advise how i can do it.
    Thanks.
    Moderator message: very basic, please work on this yourself first, these forums are not a substitute for ABAP training.
    Edited by: Thomas Zloch on Dec 6, 2010 9:38 AM

    Hi
    call SE16 with table TFTIT in order to get a full list (it will be long...)
    A list of FMs with parameters can be found in table FUNCT.
    Finally go to sm37rsdf4
    that will give you all the function modules with description
    Here is the list:
    http://www.erpgenie.com/abap/functions.htm
    hope this helps...
    Regards
    CSM Reddy

  • Comparing each value of two internal tables

    HI  everybody,
    i have two internal tables  itab1 and itab2 same structure
    both r having four fields each and field with values
    now i need to compare the two internal tables
    and if every value of itab1 matches itab2
    then i have to write one select quirie  for the following given description
    compare past and current shipping point
    compare internal_table2 and internal_table3
    if entry in internal_table2 and internal table3 match
    variable_tknum = internal_table2-tknum
    endif.
    for each entry that matches:
    select vlabdata into zi_vlabdata from vlbl where vbeln = variable_tknum and vlbl-vlabtyp = 'ZIBOOKNO'.
    plz give me solution for this
    thanks
    hridhayanjili.

    sort : ITAB1 by f1,f2,f3,f4,
           ITAB2 by f1,f2,f3,f4.
    LOOP AT ITAB1.
      READ TABLE ITAB2 WITH KEY F1 = ITAB1-F1
                                F2 = ITAB1-F2
                                F3 = ITAB1-F3
                                F4 = ITAB1-F4 BINARY SEARCH.
      IF SY-SUBRC = 0.
    *--all the fields of ITAB1 and ITAB2 are matching .
    *--write your logic here
      ELSE.
    *--ITAB1 and ITAB2 records are not matching.
      ENDIF.
    ENDLOOP.
    Regards
    Srikanth
    Message was edited by: Srikanth Kidambi

  • Reg  comparison of two  internal tables

    hi friends,
    please help me solving this.
    there are two internal tables t_zvs38 and t_value
    1.t_value like seahlpres
    2.t_zvs38 like zvs38.
    values in t_value will be like this.
    first line wil contain zmdtype(mandatory document) and second line will contain
    zmdtypet (the description for zmdtype).
    eg.
    D001 -
    -zmdtype
    internal----
    zmdtypet
    D002
    external
    D003
    renewal
    values in t_zvs38.
    for a particular sales.org the zmdtype is filled.
    select vkorg zmdtype into corrsponding fields of table t_zvs38
    where vkorg = p_vkorg.
    Now i want to compare t_value and t_zvs38 with field zmdtype
    and delete the contents of  t_value which are not in t_zvs38.
    i have written like this.
    loop at t_value.
    read table t_zvs38 with key zmdtype = t_value-string.
    if sy-subrc ne 0.
    delete t_value. "to delete zmdtype
    sy-tabix = sy-tabix + 1.
      delete t_value. " to delete zmdtypet
    else.
    sy-tabix = sy-tabix +2. "to go to next zmdtype.
    endif.
    endloop.
    but it is deleting all the contents of t_value.
    points are assured.

    CLEAR zvs32t.
      SELECT zvs32tzmdtype zvs32tzmdtypet
        INTO (zvs32t-zmdtype, zvs32t-zmdtypet)
        FROM zvs32t
        JOIN zvs32
        ON   zvs32tzmdtype = zvs32zmdtype
        WHERE zvs32t~spras    = sy-langu
        AND   zvs32~zfrenewal = space.
         WRITE zvs32t-zmdtype TO t_value.
        APPEND t_value.
        WRITE zvs32t-zmdtypet TO t_value.
        APPEND t_value.
      ENDSELECT.
      SELECT vkorg vkbur zmdtype FROM zvs38 INTO CORRESPONDING FIELDS OF TABLE t_zvs38
      WHERE vkorg = p_vkorg
    AND vkbur = p_vkbur.
      LOOP AT t_value INTO wa_area1.
        v_index = sy-tabix.
        READ TABLE t_zvs38 INTO wa_area2 WITH KEY zmdtype = wa_area1-string
      BINARY SEARCH.
       IF sy-subrc NE 0.
          IF l_flag IS INITIAL.
            DELETE t_value INDEX v_index.
           ELSE.
            CLEAR l_flag.
          ENDIF.
       ELSE.
          l_flag = 'X'.
       ENDIF.
      ENDLOOP.
    Using this code ,i am unable to ge the correct output.Thank u all for ur help.

  • Downloading two internal tables in same text file

    I have one internal table as like below.
    Data:begin of itab1 occurs 0,
         rec(5),
         end of itab1.
    Itab1 is getting updated from input text file(Continuous text).
    Here Itab1 contains one record with Indicator '01 and n number of records with indicator '02'.
    This needs to be seperated in to two internal tables.
    data:Begin of Itab_Head occurs 0,
         Rec_ind(2) type C,
         Name(3) type C,
         end of itab_Head.
    data:Begin of Itab_Item occurs 0,
         Rec_ind(2) type C,
         Id(3) type C,
         Status(10,
         end of itab_Item.
    loop at itab1.
    If itab1-Rec+0(2) = '01'.
       Itab_Head-Rec_Ind = itab1-rec+0(2).
       Itab_Head-Name = itab1-rec+2(3).
       Append Itab_Head.
    elseif itab1-rec+0(2) = '02'.
       Itab_Item-Rec_Ind = itab1-rec+0(2).
       Itab_Item-Id = itab1-rec+2(3).
       Append Itab_Item.
    endif.
    endloop.
    After moving to the internal tables I am doing some processing and updating the status of Itab_item.
    After all these again I have to download the internal table as a text file.Now my question is.
    I have values in 2 diff internal tables.How to download the two in same file.

    See this sample code.
    data: itab1 type string occurs 0 with header line,
          itab2 type string occurs 0 with header line.
    itab1 = 'itab1_text'.
    append itab1.
    itab2 = 'itab2_text'.
    append itab2.
    CALL METHOD CL_GUI_FRONTEND_SERVICES=>GUI_DOWNLOAD
        exporting
          FILENAME = 'C:\ftext.txt'
        APPEND = 'X'
        changing
         DATA_TAB = itab1[].
    CALL METHOD CL_GUI_FRONTEND_SERVICES=>GUI_DOWNLOAD
        exporting
          FILENAME = 'C:\ftext.txt'
          APPEND = 'X'
        changing
         DATA_TAB = itab2[].
    Svetlin

  • Two internal tables in to one internal table

    Hi , 
               I have two internal tables ITAB1 and ITAB2, i would like to put fields from  two internal tables in to one internal table(ITAB3) with out using inner joint. any one of you can give the sample code for this
    Thanks
    Raja.

    Hi,
    Kamesh wrote :
          Read itab2 into wa_itab2 with key f2 = itab1-f1 <USe your where conditions here>.
    Read statement does not have WHERE conditions.
    Please be careful while posting. Your thread will be reffered by many people. Please dont mislead.
    Regards,
    Swapna.

  • Function module for comparing contents of two internal tables

    Hi All,
    Is there any function module to compare contents of two internal tables of same structure?
    If yes please let me know.
    Thanks in advance.
    Amol

    Hi
    call SE16 with table TFTIT in order to get a full list (it will be long...)
    A list of FMs with parameters can be found in table FUNCT.
    Finally go to sm37rsdf4
    that will give you all the function modules with description
    Here is the list:
    http://www.erpgenie.com/abap/functions.htm
    hope this helps...
    Regards
    CSM Reddy

  • Get the Common from Two Internal Tables with same structure

    Hi ,
    I need to get the Common data from Two Internal Tables with same structure with using the looping method.
    For e.g.
    I have two internal table say ITAB1 and ITAB2.
    ITAB1 has values A,B,C,D,E,F
    ITAB2 has values A,H,B,Y,O
    Output at runtime should be : A,B

    Hi mohit,
    1. If u want to compare all fields,
       for matching purpose,
       then we can do like this.
    2.
    report abc.
    data : a like t001 occurs 0 with header line.
    data : b like t001 occurs 0 with header line.
    loop at a.
      LOOP AT B.
        IF A = B.
          WRITE :/ 'SAME'.
        ENDIF.
      endloop.
    ENDLOOP.
    regards,
    amit m.

Maybe you are looking for

  • FireFox showing 126,000+ K in the Task manager, but doesn't appear

    Hello, today I started FF. After about three minutes, it didn't appear so I double clicked its icon again. It still didn't show. I then opened the Task manager, and FF was 126,000+ K. I had to use another browser. I attended a webinar online, and as

  • My one-month old MacBook Pro won't connect to the internet?

    I called the service provider, it is neither our modem nor our internet. The PCs in the house work fine, but a couple housemates and myself own Macbooks, and although they find the network, they do not connect. I've heard it's just some problem that

  • FI - MM - SD Integration

    Hi, What is the point of contact for FI, MM and SD in integration Kindly answer me in detail. Your help is highly appreciated. Regards Srikanth Revuru

  • Adobe Flash  how did I  get it to work, here's how

    Brand new Laptop, HP DM4. Day three,  viewingYoutube, Need to load flash player 11. when all was fine. Step One.  Tools  Internet options, Advance tab (upper right) Reset Inter explorer settings DONE A Little History Searching, posting, noticed my vi

  • DVD and CD rewritealbe disc burning.

    I am using the generic burning software that came with my laptop, but I can not add files to rewritable discs no matter what I do. Is this supported by the generic burning software or do I need a program like toast?