Append to standard table

Hello,
I would like to maintain BW related classification in R3 standard table. For example , I would like to add couple of columns to material type table (T134) and populate it with values.
I would like to ask you the following questions :
Do you think its a right approach?
What is the down side of this approach?
How to populate these values as table looks not open for modify
Thanks

Hello,
I see no problem with your approach only pay attention with the following :
1/
Make sure you use unique field names.
Example start all your field names with ZZ and make sure you don't use SAP fieldnames.
This is important to avoid duplicate field names in future SAP releases for the table where you would like to add fields.
Duplicate field names will result in problems during patching of the system and can cause eventual data loss when handled incorrectly.
2/
Pay attention when future support packs, upgrades, enhancement packages, ... are installed in your system that there is a change that the table you are going to append will appear in the SPDD list because SAP provides a new version of the table.
It is then up to the basis team to handle this SPDD correctly and re-implement the append structure to prevent data loss.
This is the only side effect that I see.
Wim Van den Wyngaert

Similar Messages

  • Append Structure in Standard Table

    Hi Gurus,
    My problem Is:---
    I create an Append Structure on Standard Table..it create successfully..but after it, when i want to activate the standard table, it gives errors....
    Not standard table is partially active...
    I want to reverse it back...how it is possible....
    My Solution:.. I try my besy through SE14...there I give the Table name and click on EDIT...
    there i click on Activate and Adjust Database...but there it gives errors....
    Append structure ZMARC11 appended to table MARC
    Current enhancement classification 'enhanceable and numeric or char.type' is incorrect
    The following enhancement classifications can be selected:
        'Can Be Enhncd(Deep)'
    Field MATNR in table MARC is specified twice. Please check
    Field MATNR: Reference MATNR to class w/o interface cannot be used in DB table MARC
    Field MEINS: Reference MEINS to class w/o interface cannot be used in DB table MARC
    Attachment of search help MAT1 to field MARC-MATNR is deleted
    Activation of Table MARC not possible (please check)
    Request for MARC could not be executed..
    Plz. Help....

    Hi,
    I know the fields name...
    MARC-MATNR...and MARC-MEINS...
    How can i revert back....
    Plz Help...

  • How to add value in standard table

    Hi
    i need to add one field in standard table VBAK  so i have added one field ( for eg i have added  status as field in VBAK ) in that standard table through append structure
    than i used one user exit USEREXIT_SAVE_DOCUMENT_PREPARE in program MV45AFZZ
    in this i get values in the structure XVBAK
    than i moved the 'X'  in that status field shown below
    XVBAK-STATUS = 'X' .
    after that sales order get generated
    but when i open table VBAK and enter that VBELN or sales order no. i dont find any value in that status
    so pls tell how can i find value  of that field in table VBAK .
    Thanks
    Taran

    after moving the value did u append the table.
    Check it.

  • How to search records in a standard table with * ?

    Hi everyone,
    Can anyone tell me how to search records in a standard table with * ?
    That is, in screen if user type * abc * for searching the records in which the field MC_STEXT contains 'abc'. What the code should be? How to complete the code below?
      SELECT SINGLE objid FROM p1000  INTO p1000-objid,
      WHERE MC_STEXT = ? .
    Thanks!

    Hi
    There are several way to do that, probably just as some guys wrote the easier way is to use LIKE in WHERE condition and the sign % instead of *:
    V_STRING = '%ABC%'.
    SELECT SINGLE objid FROM p1000 INTO p1000-objid,
    WHERE MC_STEXT LIKE V_STRING.
    U can also use a range (just like select-options):
    RANGES: R_MC FOR P1000-MC_STEXT.
    R_MC-LOW = 'ABC'.
    R_MC(3) = 'ICP'.
    APPEND R_MC.
    SELECT SINGLE objid FROM p1000 INTO p1000-objid,
    WHERE MC_STEXT IN R_MC.
    Max

  • Read a csv file, fill a dynamic table and insert into a standard table

    Hi everybody,
    I have a problem here and I need your help:
    I have to read a csv file and insert the data of it into a standard table.
    1 - On the parameter scrreen I have to indicate the standard table and the csv file.
    2 - I need to create a dynamic table. The same type of the one I choose at parameter screen.
    3 - Then I need to read the csv and put the data into this dynamic table.
    4 - Later I need to insert the data from the dynamic table into the standard table (the one on the parameter screen).
    How do I do this job? Do you have an example? Thanks.

    Here is an example table which shows how to upload a csv file from the frontend to a dynamic internal table.  You can of course modify this to update your database table.
    report zrich_0002.
    type-pools: slis.
    field-symbols: <dyn_table> type standard table,
                   <dyn_wa>,
                   <dyn_field>.
    data: it_fldcat type lvc_t_fcat,
          wa_it_fldcat type lvc_s_fcat.
    type-pools : abap.
    data: new_table type ref to data,
          new_line  type ref to data.
    data: xcel type table of alsmex_tabline with header line.
    selection-screen begin of block b1 with frame title text .
    parameters: p_file type  rlgrap-filename default 'c:Test.csv'.
    parameters: p_flds type i.
    selection-screen end of block b1.
    start-of-selection.
    * Add X number of fields to the dynamic itab cataelog
      do p_flds times.
        clear wa_it_fldcat.
        wa_it_fldcat-fieldname = sy-index.
        wa_it_fldcat-datatype = 'C'.
        wa_it_fldcat-inttype = 'C'.
        wa_it_fldcat-intlen = 10.
        append wa_it_fldcat to it_fldcat .
      enddo.
    * Create dynamic internal table and assign to FS
      call method cl_alv_table_create=>create_dynamic_table
                   exporting
                      it_fieldcatalog = it_fldcat
                   importing
                      ep_table        = new_table.
      assign new_table->* to <dyn_table>.
    * Create dynamic work area and assign to FS
      create data new_line like line of <dyn_table>.
      assign new_line->* to <dyn_wa>.
    * Upload the excel
      call function 'ALSM_EXCEL_TO_INTERNAL_TABLE'
           exporting
                filename                = p_file
                i_begin_col             = '1'
                i_begin_row             = '1'
                i_end_col               = '200'
                i_end_row               = '5000'
           tables
                intern                  = xcel
           exceptions
                inconsistent_parameters = 1
                upload_ole              = 2
                others                  = 3.
    * Reformt to dynamic internal table
      loop at xcel.
        assign component xcel-col of structure <dyn_wa> to <dyn_field>.
        if sy-subrc = 0.
         <dyn_field> = xcel-value.
        endif.
        at end of row.
          append <dyn_wa> to <dyn_table>.
          clear <dyn_wa>.
        endat.
      endloop.
    * Write out data from table.
      loop at <dyn_table> into <dyn_wa>.
        do.
          assign component  sy-index  of structure <dyn_wa> to <dyn_field>.
          if sy-subrc <> 0.
            exit.
          endif.
          if sy-index = 1.
            write:/ <dyn_field>.
          else.
            write: <dyn_field>.
          endif.
        enddo.
      endloop.
    REgards,
    RIch Heilman

  • Standard Table to be updated based on User action

    Hi Friends ,
    i have a requirement , its a report and in that based on the user action ( if the user checks a check box that is available in the output screen of the report and saves it)  the value should be updated in a standard table as 'X'. I have appended the field in the standard table and now i need to write a logic at user command to populate the zfield that i have added in the table based on the user's input. Can someone suggest me how to proceed further on this ? Kindly let me know if you have any sample piece of code related to this scenario...
    thanks in advance.

    HI,
    Usually we can udpate the tables using UPDATE statement.
    But SAP will not suggest to use these statements which will hit the table directly. We need to use the standard transactions to create or update the standard tables.
    For eg: you are using a ztable.
    then once your report is ready, then use the user_command form ( for ALV) .
    fetch the records where the user have selected the records ( check box = 'X").
    *&      Form  USER_COMMAND
    FORM user_command USING g_ucomm     TYPE sy-ucomm
    gs_selfield TYPE slis_selfield                                          .
      CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
        IMPORTING
          e_grid = ls_ref1.
      CALL METHOD ls_ref1->check_changed_data .
    this will update the check box values in your internal table.
    now you can use
    loop at itab into wa where check eq 'X'.
    fill your final internal table where you need to update the table.
    endloop.
    loop at newtable.
    update ztable set value = 'X'
    where keyfield = w_keyfield.
    if sy-subrc eq 0.
    message s000.
    endif.
    endloop.
    endform.
    regards,
    Venkatesh

  • Short dumop in J2I5 (provide duplicate entry in Standard table)

    Hello Expert ,
                              We have a problem in  T.Code J2I5  ( Excise Register Extraction) input entry is lelect Excise group 20 . and a date   from 04.08.09 onwards. and select the register RG23D . it shows the run time error  ( Eg The ABAP/4 Open SQL array insert results in duplicate database record ) .  but in the standard Tcode is there possible to provide duplicate entry in Standard table
    Thaks & regards
    Aditya Kr Tripathi

    Runtime Errors         SAPSQL_ARRAY_INSERT_DUPREC
    Except.                CX_SY_OPEN_SQL_DB
    Date and Time          29.01.2010 10:57:09
    <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
    problem occurs in this code :
       assign I_RG23D_TAB-I_RG23D_TYP to <x_rg23dtyp> casting.
       <x_extrctdata> = <x_rg23dtyp>.
        class CL_ABAP_CONTAINER_UTILITIES definition load.
        call method CL_ABAP_CONTAINER_UTILITIES=>FILL_CONTAINER_C
          EXPORTING
            IM_VALUE               = i_rg23d_tab-i_rg23d_typ
          IMPORTING
            EX_CONTAINER           = i_report_tab-extrctdata
          EXCEPTIONS
            ILLEGAL_PARAMETER_TYPE = 1
            others                 = 2.
       I_REPORT_TAB-EXTRCTDATA = I_RG23D_TAB-I_RG23D_TYP.
        COMPUTE I_REPORT_TAB-EXTRCTLNGT = STRLEN( I_REPORT_TAB-EXTRCTDATA ).
        APPEND I_REPORT_TAB.
      ENDLOOP.
      IF M_EXTRACTED = 'X'.
        LOOP AT I_RG23D_KEY.
          DELETE
          FROM  J_2IEXTRCT
          WHERE BUDAT    = I_RG23D_KEY-BUDAT
          AND   SERIALNO = I_RG23D_KEY-SERIALNO
          AND   REGISTER = I_RG23D_KEY-REGISTER
          AND   EXGRP    = I_RG23D_KEY-EXGRP.
        ENDLOOP.
      ENDIF.
    Control table check here for data Extraction
      INSERT J_2IEXTRCT FROM TABLE I_REPORT_TAB.
    If the insertion of the extract table is successfull then the table
    for Extraction is Inserted
      IF SY-SUBRC EQ 0.
        PERFORM FILL_EXTDT USING C_RG23D M_EXTRACTED.
      ENDIF.
    ENDFORM.                                                    " RG23D
    *&      Form  RG23CPART1
    Purpose : RG23C Part I extraction logic
    FORM RG23CPART1.
      DATA: $PART1      TYPE PART1_TYP,
            $LINCNT     LIKE SY-LINCT,
            M_EXTRACTED VALUE '',
            $RC         LIKE SY-SUBRC.
    *********************************************************************************************8

  • Regarding adding a Custom field to Standard Table

    Hi ABAPers,
    Can any one explain the below spec-description.
    "The purpose of this design is to provide the foundation for a more automated solution to the invoice reconciliation process.  This design calls for adding a custom field to the standard SAP table EINE as well as a data maintenance tool for the same.  There will also be a new custom table for storing values associated with the new EINE field.  These new tables will also provide users with the ability to determine which PIR are soon to expire."
    We have to add one custom field to standard table EINE, how we can add this custom field to STND table.
    According to me we can add it through append structure. is it correct or not.
    and what is data maintenance tool.
    Pls.............Explain in details.
    Thanks in advance.
    Regards,
    Ramana Prasad. T

    Hi,
    Goto SE11 ,give ur table name.Then press display button.Then in the application tool bar press on append structure ...Now create a zstructure and add ur custom field and then activate the table.
    Regards,
    nagaraj

  • Adding a field to Standard table through Structure

    Hi everybody,
    I need to add a field to standard table, I am using one append structure in that i am adding my field , But whenever I am activating the structure, I am not able to activate, It is getting as "PARTLY/ACTIVE" status for structure, so please help me in activating the structure.
    ThankZ
    siddivinesh.

    go to the standard table it ll also be partially active
    goto se14
    give the std table name
    adjust and activate...
    if the problem is not solved.......
    see if the field is repeating twice in that Std table.....
    if so delete the repeating fields....

  • Want to add field in standard table control - me21n , me22n , me23n

    Dear All ,
    I have come across a situation where I want to add a field in a standard table control .
    But how to proceed for tht I am not getting .
    In the standad transation me22n in the ITEM  OVERVIEW table control I want to add Curreny field in the table control structure
    i.e MEPO1211 I have append the field in MEPO1211_DATA it is even visible in run time in the structure but not visible in table control and in table control settings also.
    How can I add one more column or some standard procedure to do that. Please suggest .
    Thanks & Regards
    Aryan

    hi,
    If you don't want to access key...then only option is ,you have to search USER Exit or BADi (Try using BADI ME_GUI_PO_CUST) for me22n transaction......to adding the field.
    Regards
    Gaurav

  • 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

  • What are the methods to modify SAP standard tables?

    hi
    what are the methods to modify SAP standard tables?

    .APPEND structures AND CUSTOMIZING INCLUDES.
    these are the two methods.. but customizing includes we, as a developers do not use.
    generally we use .APPEND structures to modify standard tables.
    note that we need an access key to modify atandard tables.
    we can create an apend structure and add that structure to the standard table at the end.
    note that .append structures should only be added only at the end.
    that is the reason we use .append structures to modify standard tables.as we should not include a field in the middle and disturb the original order of the standard table fields as it may effect many objects depending on the standard table.
    but Some standard tables for which there is a LONG datatype field can never be modified.
    the reason is the LONG datatype field should always be there at the end and also .APPEND strutures should always be there at the end. there will be a conflict. so, some standard tables can not be appended.

  • How to transport standard table entries

    Hi All,
    I want to transport SAP standard tables records from one server to another server in append mode. It is actually required for upgradation purpose.
    Can anybody please guide me in this regards ?
    Thanks in advance!!

    Hi Reddy,
    Thanks for your suggestion! but one problem I don't have the Transport Entries submenu enabled for all the SAP standard tables. Is it table specific ?. Please let me know how to enable this sub menu or is there any other generic method to attach the records of any SAP standard table in a TR.
    Thanks!

  • Usage of Sorted Keys in standard tables

    Hi,
      If I have a sorted secondary key (unique or non-unique) in my internal table, and use the secondary key with my DELETE statement (DELETE ... WITH TABLE KEY <secondary_key_name> COMPONENTS ... = ...), I still get a prio 2 checkman error saying possible sequential read. My question:
    1. What's the difference between usages of sorted key and a sorted table with regards to a READ statement?
    2. Would I still have to do a SORT on the standard table by the secondary key components and then do a BINARY search to avoid the possible sequential read? (in that case why should i mention the key to be "sorted"?
    Thanks in advance,
    Best Regards
    Anantharaman L

    Hi Anantharaman ,
    When we define sorted secondary keys, we do not have to sort it explicitly and use a binary search. we just have to define the sorted secondary keys and read based on that keys. The read statement should be as follows:
    read TABLE <internal table>INTO <work area/field symbol>WITH KEY <secondary key name> COMPONENTS <comp1 = value>.
    eg : read TABLE lt_tab INTO lw_tab WITH KEY key_1 COMPONENTS carrid1 = 'CC'
    Complete Code :
    REPORT  YTEST.
    DATA: lt_tab TYPE YSTRU1_TT,
          lw_tab LIKE LINE OF lt_tab.
    lw_tab-carrid1 = 'BB'.
    lw_tab-connid =  '50'.
    APPEND lw_tab to lt_tab.
    lw_tab-carrid1 = 'ZZ'.
    lw_tab-connid =  '50'.
    APPEND lw_tab to lt_tab.
    lw_tab-carrid1 = 'WW'.
    lw_tab-connid =  '50'.
    APPEND lw_tab to lt_tab.
    lw_tab-carrid1 = 'AA'.
    lw_tab-connid =  '50'.
    APPEND lw_tab to lt_tab.
    lw_tab-carrid1 = 'XX'.
    lw_tab-connid =  '50'.
    APPEND lw_tab to lt_tab.
    lw_tab-carrid1 = 'CC'.
    lw_tab-connid =  '50'.
    APPEND lw_tab to lt_tab.
    CLEAR lw_tab.
    read TABLE lt_tab INTO lw_tab WITH KEY key_1 COMPONENTS carrid1 = 'CC'.
    Note : Table type ystru1_tt is defined with a unique-sorted secondary key carrid1.
    Hope this will be helpful.
    Warm Regards,
    Jenny

  • How to store custom data in standard tables?

    How can I to store data in standard tables without creating a Z table?
    I want to store the next rows:
    SRD 100 R3D 100
    SRD 110 R3D 110
    SRD 120 R3D 120
    SRD 130 R3D 130
    But I prefer to avoid to use a Z table because the maintenance in a upgrade system.
    Somebody knows if some standard data type exists?
    Or how to make it to avoid the creation of a Z table?

    Hi Juan,
    The data store in the standard table is also custom data. If it is a customizing table then you can very easily add data using SM30 or if it is transaction table then use any transaction to create the data.
    If you want to add more fields in the existing table (extra columns) then you can use APPEND or INCLUDE structure.
    Regards,
    Atish

Maybe you are looking for

  • BI Publisher desktop in MS word ( error when preview ) Java class not find

    The problem is: open MS Word Log on successfully to Oracle BI in the MS Word with the desktop add-in Successfully access to the Answer's request results and get the field to rtf template. Pressing preview Error is shown as below: Error No: 53 Desc: F

  • How to export a fireworks file to flash while retaining image quality?

    I created a banner for our website using fireworks cs3. Part of the banner has aimation (basically a slide show of 6 photos). I've tried to export the files by saving the frams to files, but when I do this, the image quality really gets bad. When I t

  • HT1420 how i can solve error 0x80090318 ??

    hi,my personal os in my pc is windows 8,i inestall latest version of itunes but my itunes cant connect to itunes store,i have a real problem with this every time i got the message error 0x80090318 some times get this "make sure youre connection is ac

  • Safari and Firefox all media including U tube shows a quicktime ?

    Anbody got had this happen, I even updated to the latest of quicktime on my system. Whether I use Safari or Firefox, media doesn't load, video and flash things I think. U tube doesn't work either. Just shows a quicktime ? The funny thing is it comes

  • LR3 suddenly not importing

    i'm using LR3 on a Mac Mini with the latest OS, I've been using a MacBook Pro with the same OS previously. Suddenly on my the mini RAW files are not importing.