Ztable Changes

Hi,
I made some changes to a ztable like deleting a field and adding few more fields and activated it. What other steps I should follow before moving it to test system.
Thanks,
Veni.

Thank you all.
I did 'utilities-->database utility->activate and adjust database table'. But not able to do 'Goto to utilities - table maintenance and then clik change button' It looks differently for me. We have ECC6.0. I donot see a change button here.It has Authorization group, Function Group and Radio buttons for one step and two step.
The table is still in Test system. I have some changes now from Dev to Test.
I donot have real data yet, all test data.
I gave Delivery class- A and Display/Maintenance Allowed .
Please help me.
Thanks,
Veni.

Similar Messages

  • Report to record Ztable changes

    Hi frnds i have a requirement here that whenever a change is made in a Ztable it should be recorded and displayed along with the user name who made the change , the time , the field which was changed and also the old value and the new value .

    Hi Sandeep,
    User T-code STAT /STAD.
    The FM to read DBTABLOG table is DBLOG_READ_TABLE.
    Reward if helpful.
    Regards,
    Harini.S

  • Check box in OOps ALV

    Hi All,
    I have created my field catalogue using 'Field Catalogue Merge' Function Module passing a structure name to it. I want to further add a checkbox now... Please suggest an approach...
    Thanks in advance.
    Tanu

    Hi Faisal,
    Thanks for your response !
    I need to add an extra checkbox (or button) for selecting rows. It is not any field of the structure passed in FieldCatalogue Merge Function. Its extra from all the fields of table.
    The approach that came to me is -
    ************Field Catalogue Generation
    CALL FUNCTION 'LVC_FIELDCATALOG_MERGE' " Generate Field Catalog using this way and after getting change the Required one
      EXPORTING
        i_structure_name       = 'ztable'
      CHANGING
        ct_fieldcat            = it_fcat
      EXCEPTIONS
        inconsistent_interface = 1
        program_error          = 2
        OTHERS                 = 3.
    IF sy-subrc  0.
      MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
              WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    **************Add an extra checkbox field
    CLEAR wa_fcat.
      wa_fcat-fieldname = 'CHKBOX'.
      wa_fcat-edit  = 'X'.
      wa_fcat-no_out  = 'X'.
      wa_fcat-tabname = 'G_TAB_ALVDIS'.
      wa_fcat-outputlen = 7.
      APPEND wa_fcat TO it_fcat.
    *************Add this Checkbox field to layout
    gs_layout-box_fname = 'CHKBOX'.
    Display of ALV
    IF g_tab_alvdis[] IS NOT INITIAL.
    allow to select multiple lines
          CALL METHOD g_ref_grid->set_table_for_first_display
            EXPORTING
              is_layout                     = gs_layout
            CHANGING
              it_outtab                     = g_tab_alvdis
              it_fieldcatalog               = g_tab_fldc
            EXCEPTIONS
              invalid_parameter_combination = 1
              program_error                 = 2
              too_many_lines                = 3
              OTHERS                        = 4.
          IF sy-subrc <> 0.
          ENDIF.
    Endif.
    I need to confirm if I'm going right. This is how it has been done previously in one of the reports. But the difference was that fieldcatalogue was generated manually. But appending each of the fields separately.
    Please do correct if anything is missing or need to be changed.
    Thanks
    Tanu

  • Question reg. converting code from ALV list to ALV grid

    I created a report based on a code posted by an SDN user in ABAP forums. The code is below. Now I want to create the same functionality using ALV grid and not simple ALV list. Can you please tell me what modifications to be done to the below coding?
    Appreciate your help and input.
    Thanks a lot,
    Krishen
    ******************Code start*******************
    **Change required before executing the report..
    1)
    Create a GUI status for the program in SE41 by copying
    from the program SAPLKKBL and Status 'STANDARD'..
    and store the resulting in status 'TEST2'.
    2)
    I have used table name as ZTABLE..Change accordingly
    to your ztable name..
    **Endchange
    declarations.
    TABLES: ztable.
    TYPE-POOLS: slis.
    DATA: t_fieldcatalog TYPE slis_t_fieldcat_alv.
    DATA: s_fieldcatalog TYPE slis_fieldcat_alv.
    DATA: s_layout TYPE slis_layout_alv.
    DATA: BEGIN OF t_ztable OCCURS 0.
    INCLUDE STRUCTURE ztable.
    DATA: BOX TYPE c,
    END OF t_ztable.
    DATA: v_repid TYPE syrepid.
    selection screen
    SELECT-OPTIONS so_id for ztable-id.
    SELECT-OPTIONS so_date for ztable-date.
    start-of-selection.
    Get the data.
    SELECT * FROM ztable
    INTO TABLE t_ztable.
    where id in so_id
    and date in so_date.
    IF sy-subrc <> 0.
    MESSAGE s208(00) WITH 'No data found'.
    LEAVE LIST-PROCESSING.
    ENDIF.
    v_repid = sy-repid.
    Get the field catalog.
    CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
    EXPORTING
    i_program_name = v_repid
    i_structure_name = 'ZTABLE'
    CHANGING
    ct_fieldcat = t_fieldcatalog.
    Set the layout.
    s_layout-box_fieldname = 'BOX'.
    CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
    EXPORTING
    i_callback_program = v_repid
    is_layout = s_layout
    i_callback_pf_status_set = 'SET_PF_STATUS'
    i_callback_user_command = 'USER_COMMAND'
    it_fieldcat = t_fieldcatalog[]
    TABLES
    t_outtab = t_ztable.
    FORM SET_PF_STATUS *
    --> EXTAB *
    FORM set_pf_status USING extab TYPE slis_t_extab.
    SET PF-STATUS 'TEST2'.
    ENDFORM.
    FORM user_command *
    --> UCOMM *
    --> SELFIELD *
    FORM user_command USING ucomm LIKE sy-ucomm
    selfield TYPE slis_selfield.
    Check the ucomm.
    IF ucomm = 'DELETE'.
    LOOP AT t_ztable WHERE box = 'X'.
    DELETE FROM ztable WHERE matnr = t_ztable-matnr.
    COMMIT WORK.
    DELETE t_ztable.
    ENDLOOP.
    ENDIF.
    selfield-refresh = 'X'.
    ENDFORM.
    **********Code ending**********************

    I believe that the only change would be to replace the work LIST with GRID in the function call.
    CALL FUNCTION 'REUSE_ALV_<b>GRID</b>_DISPLAY'
         EXPORTING
            i_callback_program = v_repid
            is_layout = s_layout
            i_callback_pf_status_set = 'SET_PF_STATUS'
            i_callback_user_command = 'USER_COMMAND'
            it_fieldcat = t_fieldcatalog[]
         TABLES
            t_outtab = t_ztable.
    The function module interface should be exactly the same.
    Regards,
    Rich Heilman

  • Custom development - suggestions.

    Hi All,
    We have to make a custom application for entertainment claims. the flow would rougly be like this :
    employee applies for entertainment claim through EP ->(through bapi) after all checks, the entry gets stored in a Ztable which has the fields - empno, request no (genetated theough EP), status (which will be applied once the employee applies for the claim), amount, month -> request sent to finance department head for approval -> after it is approved, status in the ztable changed to approved, Same information from Ztable is to be updated in infotype 15 and send a confirmation mail to employee in EP.
    Can you suggest after making the status to be ' approved' in Ztable, how to upload some fields from ztable into infotype 15 in the background.
    If you can suggest another better way to capture entertainment claim other than the flow specified above, It would be very helpful.
    Thanks

    >>>Can you suggest after making the status to be ' approved' in Ztable, how to upload some fields from ztable into infotype 15 in the background.
    Since you mentioned, the updating of Ztable is via a BAPI.. you could make us eof the fucntion call HR_INFOTYPE_OPEARTION to store the same data in Infotype 0015.
    ~Suresh

  • ASSIATANCE OR ADVICE REQ IN DEVELOPING  A REPORT

    HI all,
    I need assistance in writing a report.
    My requirement is as follows.
    1) I NEED TO RETRIEVE DATA FROM A ZTABLE SAY BASED ON DATE AND ID.
    2 I HAVE TO DISPLAY THE DATA BASED ON THE SELECTION OR INPUT IN SCLECTION.
    3)I NEED TO SELECT SAY FEW RECORDS OUT OF THE DISPLAYED ONES AND NEED TO DELETE IT FROM THE ZTABLE.
    CAN I USE AN ALV'S .
    If its possible pls do send some sample reports to my email
    [email protected]
    THANKS
    PREETI

    Hi,
    Check this report...
    **Change required before executing the report..
    1)
    Create a GUI status for the program in SE41 by copying
    from the program SAPLKKBL and Status 'STANDARD'..
    and store the resulting in status 'TEST2'.
    2)
    I have used table name as ZTABLE..Change accordingly
    to your ztable name..
    **Endchange
    declarations.
    TABLES: ztable.
    TYPE-POOLS: slis.
    DATA: t_fieldcatalog TYPE slis_t_fieldcat_alv.
    DATA: s_fieldcatalog TYPE slis_fieldcat_alv.
    DATA: s_layout       TYPE slis_layout_alv.
    DATA: BEGIN OF t_ztable OCCURS 0.
            INCLUDE STRUCTURE ztable.
    DATA: BOX TYPE c,
          END OF t_ztable.
    DATA: v_repid        TYPE syrepid.
    selection screen
    SELECT-OPTIONS so_id   for ztable-id.
    SELECT-OPTIONS so_date for ztable-date.
    start-of-selection.
    Get the data.
    SELECT * FROM ztable
           INTO TABLE t_ztable.
           where id   in so_id
           and   date in so_date.
    IF sy-subrc <> 0.
      MESSAGE s208(00) WITH 'No data found'.
      LEAVE LIST-PROCESSING.
    ENDIF.
    v_repid = sy-repid.
    Get the field catalog.
    CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
         EXPORTING
              i_program_name   = v_repid
              i_structure_name = 'ZTABLE'
         CHANGING
              ct_fieldcat      = t_fieldcatalog.
    Set the layout.
    s_layout-box_fieldname = 'BOX'.
    CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
         EXPORTING
              i_callback_program       = v_repid
              is_layout                = s_layout
              i_callback_pf_status_set = 'SET_PF_STATUS'
              i_callback_user_command  = 'USER_COMMAND'
              it_fieldcat              = t_fieldcatalog[]
         TABLES
              t_outtab                 = t_ztable.
          FORM SET_PF_STATUS                                            *
    -->  EXTAB                                                         *
    FORM set_pf_status USING  extab TYPE slis_t_extab.
      SET PF-STATUS 'TEST2'.
    ENDFORM.
          FORM user_command                                             *
    -->  UCOMM                                                         *
    -->  SELFIELD                                                      *
    FORM user_command USING ucomm LIKE sy-ucomm
                            selfield TYPE slis_selfield.
    Check the ucomm.
      IF ucomm = 'DELETE'.
        LOOP AT t_ztable WHERE box = 'X'.
          DELETE FROM ztable WHERE matnr = t_ztable-matnr.
          COMMIT WORK.
          DELETE t_ztable.
        ENDLOOP.
      ENDIF.
      selfield-refresh = 'X'.
    ENDFORM.
    Hope this helps..
    Thanks,
    Naren

  • Entering multiple entries in ZTABLE after changing a key field to nokey.

    HI Experts,
    This is Hema Iam new To ABAP.
    My senario is I have created a ZTABLE with companycode, GLAccount, costcenter,profitcenter,plant.
    AT first my table has companycode and GLaccount has key fields..
    But to enter the multiple entries for cocode and GLaccount (ZBUKRS and ZHKONT) i have changed GLaccount has non key fields and table maintainence regenarated for the same.
    my issue is as there are repeating entries for cocode and glaccount it is not possible to enter the entries as it is saying the entry is repeated and asking me to skip because cocode is primarykey there...
    how can i overcome thsi issue to enter multipel entries for cocode and GLaccount.
    As it should be done quickly ur help would be usefull
    Thanks In Advance
    L.Hemalatha.

    Hi
    I created zslno field and made it has primary key field aslo but still iam getting eror message while entrying entries as
    "an entry already exists with the same key"
    wht should be done i maintainance recreated after adding this field nad in se14 i adjusted the table too still what steps should be done ?
    eg i need to enter data:
    client cocode  zslno GLacount Cost center profit center plant
    010    1000                 1483100   1001199                       0035
    010     1000                 226100     101199                        0076
    so while entering second record and trying to save iam getting that error.... help me out

  • Changes via SM30 of ztable is not reflected after saving...

    Hello experts,
    I am trying to modify a z table because the users told me that when they
    try to modify it using its maintenance view their changes is not being saved.
    Now, I checked the table and it has 3 fields(excluding MANDT) and I found out all of
    them are primary keys. So my question is, what modification will I do to the table
    to let users change the existing records of the ztable?
    Again, thanks guys and take care!

    Hi again,
    1. Ya, no problem.
    2. After changing the keys to non-primary,
      thru se11,
      and activating,
      it will give warning,
    3. hence, after that u will have to
      do it using SE14.
    4. Data will not get lost.
    5. The only IMPORTANT THING
      is that
      the data in the primary keys
      should be unique, after your changes.
    regards,
    amit m.

  • Regarding Ztable entries changes

    Hi all,
    we created one Ztable for storing all production versions reletad data.
    here we can enter data manuvally.
    we can create production version using tranaction C223.
    Now my requirement is , if i did any changes in Ztables, i want replicate same values in PRODUTION version releted master data .
    1)Is it posssible to meet this requirement?
    2) how it is?
    Thanks in advance,
    Bhaskar

    Hi,
    Yes, It is possible.
    You need to create Transport Request for the particular entries and Transport it.
    Make Sure ur table should be Display/Maintenence allowed in both Developement
    as well as in Production.
    Reward me if it is helpful.
    Thanks & Regards,
    Ramya.

  • How to save change log for a particular standard table in ZTABLE

    Hi Experts,
    Wouldlike to make one ztable in R3 which should  record changes made( say particualr field)  in standard SAP DB table ( say TXPDAT). I  think that there has to beway to do it.
    Could you please share the way to achieve it?
    Will appreciate a quick reply.
    Thank you
    Best Regards

    Hi,
    or else do like this...
    In order to maintain the log changes the main pre reuisite is to checkmark the checkbox in dataelement of table filed.
    To do this...
    goto transaction SE11>enter ur table name>cleck on fields tab>cleick on dataelement->click on Furthercharacterstics tab-->select the checkbox'Change Document'.
    If u dont select dis the u cannot see the log entry of the particuylar field..Do like this for each dataelement for each table field...selecting all the fields is not mandatory..u can choose the table field u want to see the log report..
    Once u done with dat...
    Goto SCDO transaction> click on create>give a name change doc startwith Z or Y only>Follow the prodedure and in-->name of table field>enter u r TABLE NAME->click on individual field checkbox.--->insertentries..
    Once u done with dis..
    Goto SE16->enter CHDIR or CDPOS->press ENTER->enter u r object id>F8
    U can see the new and old value of a table entry.....

  • SM30 going to dump for a Ztable whose fields I recently changed

    Hi All,
    Need to resolve a very urgent issue. We added a new field to a Ztable in DEV & hit the table maintenance generator with screen 8. However when I transport these  changes to TS1, the SM30 transaction goes into dump with the error stating screen "009" missing.
    When I created screen "0009" in DEV and retransport to Test, I still get the same error.
    what can the error be here?
    Thanks,
    Tejas

    Hello,
    Once the fields of the table is changed then u need to adjust it in SE14 Tcode.
    Then delete the existing Table main. and recreate it.
    Vasanth

  • Get ZTABLE Old - New  Field Values for Change Document History Log

    I have done all necessary log configuration for ZTABLE and able to see change document log via SCU3. My problem is that I have to write FM which returns Log History for a specific period. As I have gone throught the Report RSVTPROT. But not able to get how the log data is displayed.

    Hi,
    Try checking the FMs..Sorry I am not sure which one gives the log....These are the FMs called in the program RSVTPROT.
    DBLOG_READ
    DBLOG_READ_WITH_STATISTIC
    Thanks,
    Naren

  • Ztable field level Mass Change

    Dear All,
    According to our client business scenario we have created one Ztable to capture day to day activities.
    Daily minimum 3000 records are getting saved. after some time user will change the single field value with some conditions. at a time he can change 10000 records also..now im using the syntax UPDATE ZTABLE FROM INTERNALTABLE.its working ...but i feel it may fail when no of  records got increased.
    so suggest me some options...if any one have idea about Mass change object creation for ztable please guide me to create
    Thanks & Regards
    Raj

    If you are changing too much data without a "commit work", then the redo buffers will be full at some point, leading to a short dump.
    To be on the safe side update the database table in blocks of say 10,000 records and send a "commit work" after each block. The optimal block size varies depending on row length and system parameter settings. Just try around a bit.
    Thomas

  • Change Delivery Class of ZTable

    We currently have a ZTABLE that is defined as Delivery Class 'A'. In each system (DEV, QAS, PRD) we modify the table using a Table Maintenance View and SM30. We now have a requirement to enforce promotion of the Data in the table from DEV to QAS to PRD. In my experiments, Delivery Class 'C' will provide this functionality; however, I am not sure if it is possible (or advisable) to change the Delivery Class of a Table already promoted to Production.
    Has anyone had any experience with changing the Delivery Class of an existing table?
    I've checked online documentation for Delivery Classes; so far this has explained how to initially choose a Delivery Class, but there has been no information on changing a Delivery Class or statements stating not to change the Delivery Class of a table. In addition I have Googled "SAP Change Delivery Class", "SAP Table Class" and "SAP Delivery Class"; these searches have yielded no results that answer this question.
    The other option I am looking at involves building a new table with an identical structure of the Delivery Class 'C', then changing each application to read the new table instead of the existing table.
    Any help and/or opinions will be appreciated.
    Thank you,
    Steven Coolbaugh

    >
    Steven Coolbaugh wrote:
    > We currently have a ZTABLE that is defined as Delivery Class 'A'. In each system (DEV, QAS, PRD) we modify the table using a Table Maintenance View and SM30. We now have a requirement to enforce promotion of the Data in the table from DEV to QAS to PRD.
    Hello Steven,
    Whether or not table entries can be transported does not depend upon the "delivery class".
    In my experiments, Delivery Class 'C' will provide this functionality
    AFAIK this won't help. If the delivery class of the table is 'C', then you have to use a customizing request to transport the entries. To make the entries transportable you have to activate the "standard recording routine" radio-button in the table maintenance generator.
    Hope this helps.
    BR,
    Suhas

  • Change track history for Ztable?

    Hi,
    I have created a ztable with more than 30 fields and I want to maintain the change track history for the ztable( if record modified or deleted or field values changes I need to maintain the history who changed and when and new values) .
    What is the best approach I can follow to maintain the change track history for the ztable?
    If I want to maintain the change track history in another ztable how can I do this?
    Please let me know.
    Thanks for your time.
    Kavitha

    If you dont have many time use SE11 technical options to activate storing of the logs in table [DBTABLOG|https://www.sdn.sap.com/irj/scn/advancedsearch?query=dbtablog&cat=sdn_all]
    If you have the time, look at [Change Document|https://www.sdn.sap.com/irj/scn/advancedsearch?cat=sdn_all&query=change+document&adv=false&sortby=cm_rnd_rankvalue] and transaction [SCDO|https://www.sdn.sap.com/irj/scn/advancedsearch?cat=sdn_all&query=scdo&adv=false&sortby=cm_rnd_rankvalue] where [Change-Document Object |https://help.sap.com/saphelp_nwmobile71/helpdata/en/2a/fa018f493111d182b70000e829fbfe/frameset.htm] are maitained
    Regards

Maybe you are looking for