How to append a structure to a std table

I appended two fields to vbak but these are not reflecing in the program.,i.e in program syntax error is showing that no componenet exist.
Please help out.
Thank you
Bhanu

Hi
steps:
0)Append structures allow you to attach fields to a table without actually having to modify the table itself. You can use the fields in append structures in ABAP programs just as you would any other field in the table.
1)Click on the append structure tab and opt to create new
structure.
Append structures allow you to enhance tables by adding fields to them that are not part of the standard. With append structures; customers can add their own fields to any table or structure they want.
Append structures are created for use with a specific table. However, a table can have multiple append structures assigned to it
2)Customers can add their own fields to any table or structure they want.
The customer creates append structures in the customer namespace. The append structure is thus protected against overwriting during an upgrade. The fields in the append structure should also reside in the customer namespace, that is the field names should begin with ZZ or YY. This prevents name conflicts with fields inserted in the table by SAP
<b>Reward if usefull</b>

Similar Messages

  • How to find the structural difference between two tables

    Hi all,
    How to find the structural difference between two tables .
    Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - Production
    PL/SQL Release 11.1.0.7.0 - Production
    CORE 11.1.0.7.0 Production
    TNS for 32-bit Windows: Version 11.1.0.7.0 - Production
    NLSRTL Version 11.1.0.7.0 - Production
    Thanks,
    P Prakash

    you could try something similar to this, for each table pair that you want to compare:
    SELECT 'TABLE_A has these columns that are not in TABLE_B', DIFF.*
      FROM (
            SELECT  COLUMN_NAME, DATA_TYPE, DATA_LENGTH
              FROM all_tab_columns
             WHERE table_name = 'TABLE_A'
             MINUS
            SELECT COLUMN_NAME, DATA_TYPE, DATA_LENGTH
              FROM all_tab_columns
             WHERE table_name = 'TABLE_B'
          ) DIFF
    UNION
    SELECT 'TABLE_B has these columns that are not in TABLE_A', DIFF.*
      FROM (
            SELECT COLUMN_NAME, DATA_TYPE, DATA_LENGTH
              FROM all_tab_columns
             WHERE table_name = 'TABLE_B'
             MINUS
            SELECT COLUMN_NAME, DATA_TYPE, DATA_LENGTH
              FROM all_tab_columns
             WHERE table_name = 'TABLE_A'
          ) DIFF;that's assuming, column_name, data_type and data_length are all you want to compare on.

  • Append two structures in an internal table.

    hi,
         if i join two tables by innerjoining will it effect the performance?If such,how i can join these with better performance?can i get the data from different tables in a single internal table by appending different structures in this case?Please answer me.

    If inner Join has a performance issue the best thing u can do is...
    Create 3 int tables.   "This is to avoid 'INTO CORRESPONDING FIELDS' select query which will affect performance.
    itab1 with the structure of table1
    itab2 with the structure of table2
    itab3 with the structure of table1 & table2
    Select from 1st table into itab1.
    if itab1 is not initial.
    select from table 2 into itab2 for all entries in itab1 where field = itab1-field.
    sort itab2 by field.   "For binary search
    loop itab1.
    move-corresponding itab1 to itab3.
    read itab2 with key field = itab1-field binary search.
    move-corresponding itab2 to itab3.
    append itab3.
    endloop.
    Regards
    Sathar
    Edited by: Sathar RA on Sep 8, 2008 9:10 AM

  • How to add a structure in 500 series table field catalog

    Hi,
    can any one tell me how to add fiels in field catalogue of 500 series table.
    thanks & regards
    naveen

    field catalogue of 500 series table
    please elaborate..
    Sumit

  • How to append structure dynamically to another structure

    Hi Everyone,
    My requirement is like this.
    PERFORM fill_additional_fields_f16 USING         'RIHAFVC'
                                                            CHANGING <ls_object_tab>.
    FORM fill_additional_fields_f16  USING         iv_structure_name TYPE strukname
                                                      CHANGING  cs_object    type any.
    endform.
    Now my question is how to append the structure IV_STRUCTURE_NAME to CS_OBJECT in the subroutine.
    Thanks in advance
    -Regards
      TOM

    Have a look at the below link.
    https://wiki.sdn.sap.com/wiki/display/Snippets/Add%20a%20column%20to%20an%20internal%20table%20dynamically
    Thanks

  • Modifying the structure of the std CSV file in SNC FTR

    Hi All,
    We are using the File for SNI Monitor in SNC 7.0 Ehp1 to facilitate the suppliers in uploading their Inventory data (Unrestricted Stock on Hand) for their location products.
    The issue with the std. CSV file downloaded from the system is that it has all the key figures from the SNI Monitor which we are not interested in. We want the supplier to just see the following key figures for their location products:
    1. Unrestricted-Use Stock- New (its an editable field which the supplier updates in Period0)
    2. Unrestricted-Use Stock- Original (which contains the current inventory data in the SNC system for the location product)
    Now our concerns are:
    a. We are not able to apply the filter to the CSV file for the above key figures as a blank line between location products prevents filtering. This makes it very cumbersome for the supplier to update the stock data for 200+ skus using the std. file
    b. We tried formatting the std. file but ended up with errors on upload.
    Can anyone share their inputs on how to simplify the structure of the Std. CSV file.
    Note: We are looking for std. solutions.
    Regards,
    Bharath

    Hi Mayari,
    though you were successfull with
    METHOD cl_alv_table_create=>create_dynamic_table
    I must warn you not to use it. The reason is that the number of tables created is limited, the method uses GENERATE SUBROUTINE statement and this triggers an unwanted database commit.
    If you know the DDIC structure, it is (starting with ECC6.0) much easier:
    field-symbols:
      <table> type standard table.
    data:
      lr_data type ref to data.
    Create data lr_data type table of (<DDIC structure>).
    assign lr_data->* to <table>.
    The split code can be simplified gaining speed loosing complexity not loosing functionality.
    field-symbols:<fs_s> type any.
    field-symbols:<fs_t> type any.
    SPLIT lv_rec AT ';' INTO table it_string.
    loop at it_string assigning <fs_s>.
      assign component sy-tabix of wa_string to <fs_t>.
    if sy-subrc = 0.
      <fs_t> = <fs_s>.
    endif.
    at last.
      append <fs_itwa3> to <ft_itab3>.
    endat.
    endloop.
    Though it may work as Keshav.T suggested, there is no need to do that way.     
    Regards,
    Clemens

  • How to append to dynamic table

    hi, everyone
    I want to append some data to a dynamic internal table.
    I have some code like following:
    form dyna  using  itab.
    DATA: NEW_LINE type ref to data.
    FIELD-SYMBOLS: <FS_1> type any table,
                   <FS_2>,
                   <FS_3>.
    assign itab to <FS_1>.
    create data NEW_LINE like line of <FS_1>.
    assign NEW_LINE->*  to <FS_2>.
    assign component 1 of structure <FS_2> to <FS_3>.
    <FS_3> = 'I'.
    assign component 2 of structure <FS_2> to <FS_3>.
    <FS_3> = 'ABC'.
    then <FS_2> is the entry I want to append now
    append ???
    endform.
    What I want to know is how to append the <FS_2> to the dynamic table. I require the entry can be append, and return out of this form.
    Any suggestion and answer is welcome
    Hope your reply, thanks a lot

    Hi,
    try out like this.
    data: begin of itab occurs 0,
          val1 type c,
          val2(3) type c,
          end of itab.
    data ws_itab like itab.
    DATA: NEW_LINE type ref to data.
    FIELD-SYMBOLS: <FS_1> type standard table,
    <FS_2>,
    <FS_3>.
    assign itab[] to <FS_1>.
    create data NEW_LINE like line of <FS_1>.
    assign NEW_LINE->* to <FS_2>.
    assign component 1 of structure <FS_2> to <FS_3>.
    <FS_3> = 'I'.
    assign component 2 of structure <FS_2> to <FS_3>.
    <FS_3> = 'ABC'.
    append <FS_2> to <FS_1>.
    Regards,
    Jagath

  • How to append S950 Info structure with the structure ZS950

    I have created Info structure ,now How to append S950 Info structure with the structure ZS950

    Refer this link:
    Addition of a new field to a standard table .
    Regards,
    ravi

  • How to delete the "Appended" custom structure in VBAK?

    Hi All,
    I have appended a :
    structure ZZLAND1
       Component: ZZLAND1 (Domain: LAND1).
    Now I want to delete the structure that I just appended, so I did:
    1.  SE11 -> VBAK -> Append Structure Button -> Select ZZLAND1 --> Delete
    2.  To further ensure that the table is adjusted, I also executed SE14 -> Adjust table
    but I have an anonymous error in the DataBaseLog:
    Table VBAK could not be activated
    (E- Table VBAK (Error adjusting the database) ) [See here the details of dataBase error log|http://www.megaupload.com/?d=TZP3PV9J]
    so I did another option,
    1.  SE11 -> Data Type -> ZZLAND1 --> Delete
    2.  Execute SE14 again,
    And still have the same error.
    This thread is close relevant to [Add new field in VBAK|Runtime Error in SE16 after adding fields in VBAK (ABAP-SD);.  Now I want to revert back my changes but I cannot now.
    Anyone, please enlighten?
    Thanks

    Solution: "I used other laptop" to modify VBAK.
    1. SE14
    2. SE11>VBAK>Append Structure..
    3. Select the structure > Delete
    Weird: in my laptop it is always not refreshing.

  • How to create an dynamic internal table with the structure of a ddic table

    Hi all,
    I want to fill ddic-tables (which I already created) in my abap dictionary with data out of CSV-files (which are located on the CRM-Server).  The ddic tables have different amount of fields.
    I started with creating a table which contains the name of the tables and the path to the matching CSV-file.
    At the beginning I'm filling an internal table with part of this data (the name of the ddic-tables) - after that I am looping at this internal table.
    LOOP AT lt_struc ASSIGNING <lfs_struc>.
         LOOP AT lv_itab1 INTO lv_wa1 WHERE ztab_name = <lfs_struc>.
         lv_feld = lv_wa1-zdat_name.
        ENDLOOP.
        CONCATENATE 'C:\-tmp\Exportierte Tabellen\' lv_feld INTO lv_pfad.
        Do.
        OPEN DATASET lv_pfad FOR INPUT IN TEXT MODE ENCODING NON-UNICODE IGNORING CONVERSION ERRORS.
        READ DATASET lv_pfad INTO lv_rec.
        IF sy-subrc NE 0.
          EXIT.
        ENDIF.
        enddo.
        REPLACE ALL OCCURRENCES OF '"' IN lv_rec WITH ''.
        SPLIT lv_rec AT ';' INTO TABLE lt_str_values.
        INSERT into (<lfs_struc>) values lr_str_value.
        CLOSE DATASET lv_pfad.
    endloop.
    This is not the whole code, but it's working until
    SPLIT lv_rec AT ';' INTO TABLE lt_str_values.
    I want to split all the data of lv_rec into an internal table which has the structure of the current ddic-table, but I didn't find out how to do give the internal table the structure of the ddic-table. In the code I used an internal tyble type string but I should be the structure of the matching tabel.
    If I try to create an internal table by using a fiel symbol, I am told, that the data types are not matching.
    Has anyone an idea?

    Hi Mayari,
    though you were successfull with
    METHOD cl_alv_table_create=>create_dynamic_table
    I must warn you not to use it. The reason is that the number of tables created is limited, the method uses GENERATE SUBROUTINE statement and this triggers an unwanted database commit.
    If you know the DDIC structure, it is (starting with ECC6.0) much easier:
    field-symbols:
      <table> type standard table.
    data:
      lr_data type ref to data.
    Create data lr_data type table of (<DDIC structure>).
    assign lr_data->* to <table>.
    The split code can be simplified gaining speed loosing complexity not loosing functionality.
    field-symbols:<fs_s> type any.
    field-symbols:<fs_t> type any.
    SPLIT lv_rec AT ';' INTO table it_string.
    loop at it_string assigning <fs_s>.
      assign component sy-tabix of wa_string to <fs_t>.
    if sy-subrc = 0.
      <fs_t> = <fs_s>.
    endif.
    at last.
      append <fs_itwa3> to <ft_itab3>.
    endat.
    endloop.
    Though it may work as Keshav.T suggested, there is no need to do that way.     
    Regards,
    Clemens

  • How to append DATA_PACKAGE strucutre to include new key figures?

    Hi,
    Iu2019m a newbie to ABAP and need some help with a start routine in BW 3.5
    In the source DSO I only have  the u201CYTD amountu201D key figure. The destination DSO should also contain the key figures u201CCurrent month amountu201D (ZAMTMO) and u201CLast 12months amountu201D (ZAMTLTM). So in the transfer rule I want to have a start routine to do some calculations and add the 2 new key figures.
    I use an internal table LCYEARDATA do the calculations:
      DATA: LCYEARDATA type sorted table of /bic/aZHYP3_O00
            with unique key CALMONTH /BIC/ZHYP_ACC /BIC/ZHYP_ENTI
            /BIC/ZHYP_SUBA /BIC/ZHYP_VERS
            with header line.
    IF DATA_PACKAGE IS NOT INITIAL.
       LOOP AT DATA_PACKAGE.
    *Get the YTD This Month.
        READ TABLE LCYEARDATA
            WITH KEY
              CALMONTH = DATA_PACKAGE-CALMONTH
              /BIC/ZHYP_ACC = DATA_PACKAGE-/BIC/ZHYP_ACC
              /BIC/ZHYP_ENTI = DATA_PACKAGE-/BIC/ZHYP_ENTI
              /BIC/ZHYP_SUBA = DATA_PACKAGE-/BIC/ZHYP_SUBA
              /BIC/ZHYP_VERS = DATA_PACKAGE-/BIC/ZHYP_VERS.
          IF sy-subrc IS INITIAL.
              YTDTHISMONTH  = LCYEARDATA-AMOUNT.
    ENDIF.
    *Last 12 Months = (YTD Last Year - YTD Month Last Year) + YTD This Month
        LAST12MONTH = YTDLASTYEAR - YTDMONTHLASTYEAR + YTDTHISMONTH.
    *Save MONTHLYVALUE and LAST12MONTH to the DATA_PACKAGE.
         DATA_PACKAGE-ZAMTMO = MONTHLYVALUE.
         DATA_PACKAGE-ZAMTLTM = LAST12MONTH.
         modify DATA_PACKAGE.
        ENDLOOP.
    ENDIF.
    Since the DATA_PACKAGE have the same structure as the source DSO, and donu2019t contain the new key figures, I canu2019t add the new calculated key figures at the end of the loop. I get an error message saying that ZAMTMO and ZAMTLTM canu2019t be found.
    So the basic question is: How do I append the structure of the Data Package so it can include the new key figures?
    Best,
    Johan

    Hi Karsten,
      Similar post... have a look...
    Re: data package error
    DATA: varighed TYPE i.
    wa_temp type DATA_PACKAGE_STRUCTURE OCCURS 0
    WITH HEADER LINE.
    LOOP AT DATA_PACKAGE into wa_temp.
    varighed = 100.(<b>What this means....?? condition..?</b>)
    wa_temp-/bic/iotvarig = varighed.
    wa_temp-/BIC/IOTOBJFOR = 'TEST'.
    -->> <b>you have to write modify wa_temp</b>.
    modify wa_temp.
    ENDLOOP.
    REFRESH DATA_PACKAGE.
    LOOP AT wa_temp.
    APPEND wa_temp TO DATA_PACKAGE.
    ENDLOOP.
    Hope it Helps
    Srini

  • How to append data in array

    I use three read waveform nodes to read data from three channels of
    oscilloscope. The data of each channel are 1D array, and I use build
    array node to change them into 2D array. It can work well now.
    When I want to continuously reading data, I put the read waveform nodes
    and build array node into a while loop structure(a timer controls the
    time when to stop). That means every time, the program calls read
    waveform nodes and then changes them into 2D array. The problem is:after
    each loop, the data stored in the 2D array are overwrited. So, at last,
    I can only get the last loop data.
    I want to append the data into the 2D array, but I do not know how to
    implement? I have tried put the build array outside the while loop,
    unfortunatel
    y, it does not work.
    Any advice would be appreciated.
    Sent via Deja.com http://www.deja.com/
    Before you buy.

    The shift register is a built in way to carry data forward from one
    iteration of a loop to the next iteration.. Anything that you feed into the
    right shift register appears a data at the beginning of the next loop. You
    already have Build Array to combine three 1D array Elements into a single 2D
    array. Use another Build Array function to combine the current 2D array
    with the previous 2D array to create a combined array. To do this, you must
    change the input mode of the Build Array function to Array (not Element).
    This will concatenate the arrays and make the continuous data that you are
    after.
    The only other hidden step is that you must use Initialize Array to feed a
    blank, 2D array into the left shift register to clear any leftover data.
    Michael Munroe Mailto:[email protected]
    A Better Complete Development Engineering Firm
    San Mateo, CA 94403 http://www.abcdefirm.com
    [email protected] wrote:
    > Because I am very new to Labview and in fact, English is not my native
    > language, I can not understand the sentence that "combine the current
    > reading with the previous reading from the left shift register and save
    > it back to the right shift register" means.
    >
    > Now, I want to descript my question in a simple way:
    > In a while loop, I use a build array node to build three 1D arrays into
    > one 2D array. For each time when while loop repeats, the value of these
    > 1D arrays change, I want to append the new data to the previous ones.
    > But in my program, the data in the build array are overrided after the
    > while loop repeating.
    > So, How to append the data instead of overriding them in the while loop
    > structure?
    >
    > Thanks a lot!
    >
    > zhljh
    >
    > In article <[email protected]>,
    > Michael Munroe wrote:
    > > You need to combine the build array function with the shift register.
    > Pop
    > > up on the edge of the loop and Add Shift Register. You can combine the
    > > current reading with the previous reading from the left shift register
    > and
    > > save it back to the right shift register.
    > > --
    > > Michael Munroe Mailto:[email protected]
    > > A Better Complete Development Engineering Firm
    > > San Mateo, CA 94403 http://www.abcdefirm.com
    > >
    > > [email protected] wrote:
    > >
    > > > I use three read waveform nodes to read data from three channels of
    > > > oscilloscope. The data of each channel are 1D array, and I use build
    > > > array node to change them into 2D array. It can work well now.
    > > > When I want to continuously reading data, I put the read waveform
    > nodes
    > > > and build array node into a while loop structure(a timer controls
    > the
    > > > time when to stop). That means every time, the program calls read
    > > > waveform nodes and then changes them into 2D array. The problem
    > is:after
    > > > each loop, the data stored in the 2D array are overwrited. So, at
    > last,
    > > > I can only get the last loop data.
    > > > I want to append the data into the 2D array, but I do not know how
    > to
    > > > implement? I have tried put the build array outside the while loop,
    > > > unfortunately, it does not work.
    > > > Any advice would be appreciated.
    > > >
    > > > Sent via Deja.com http://www.deja.com/
    > > > Before you buy.
    > >
    > >
    >
    > Sent via Deja.com http://www.deja.com/
    > Before you buy.
    Michael Munroe, ABCDEF
    Certified LabVIEW Developer, MCP
    Find and fix bad VI Properties with Property Inspector

  • How to append to an array

    i have a true false case inside a loop and each time
    it pases through a false case . i pull out one value from the array(external). i would like to know if some one can help me in telling me how to append an element to an exisiting array or to create a array inside the false case structure.
    THanks
    Attachments:
    append.vi ‏42 KB

    hello, well, I dun really understand what you wanna do. Here's my guess. Hope it helps
    Cheers
    ian.f k
    SG/MY
    Ian F
    Since LabVIEW 5.1... 7.1.1... 2009, 2010
    依恩与LabVIEW
    LVVILIB.blogspot.com
    Attachments:
    buildarray.vi ‏27 KB

  • How to append the data list bod (JList)

    how to append the data list box (JList)
    Message was edited by:
    raju_2reddy

    For this you will need a nested internal table. such that each column of the internal table should be declared as another internal table.
    Try something like this :
    " Lets say that the type of table that will be returned by the function BOM is ty_ret_tab, then declare as follows
    types begin of ty_tab,
    c1 type table of ty_ret_tab,
    c2 type table of ty_ret_tab,
    end of ty_tab.
    data gt_tab type standard table of ty_tab,
            gwa_tab like ty_tab.
    Now the question is how many columns should you declare ? Because you said that in a loop you intend to call a function which will return a internal table and this internal table you need to store in a column of another internal table. And if this is not fixed, you would need to do some dynamic programming to achieve this.
    But if we assume that there are fixed number of columns and fixed number of loops, then within the loop, you wiill have to simply move the data from the returned table to each of the columns. Then append the work area outside the loop.
    data field(30) type c.
    data c_tabix(10) type c.
    field-symbols <fs> type ret_tab.  " this should be
    Loop at itab.
    call function BOM...
    exporting...
    importing.....
    tables  ret_itab.
    c_tabix = sy-tabix.
    concatenate 'C' c_tabix into field.
    condense field.
    assign component  (field) of structure gwa_tab to <fs>.
    <fs> = ret_tab.   " Pass data to each column
    endloop.
    append gwa_tab to gt_tab.  " Now a single record with all columns containing an internal table is built.
    Hope this pseudo code helps.
    BR,
    Advait

  • How to Transport Extract Structure and datasource

    Hi all!
    I had recently made enhancements to 0CO_PC_PCP_01 datasource.When I transported the datasource and the Extract structure, I noticed that only the append structure has been transported. The datasource has not been transported.
    Could some one tell me how to collect the datasource and the Appended extract structure and transport them.
    Thanks,
    S.P

    Hi Jaya,
    I had already tried this already. When I selected the dtasource and selected the transport button. I got the message, action successfully executed. When I checked in SE09, I see no transport. Unless it asks me for a transport request, I will not see it in SE09, right.
    ~S.P

Maybe you are looking for