Upgrade- Table maintanence

Hi all,
In Upgrading 4.7 to ECC 6 we are replacing the obsolete function modules.
When we create a table maintanence generator, it creates function group.
in that function group there are lot of obsolete function modules are there. (in 4.7)
for ex: popup_to_confirm_step. now i need to replace to popup_to_confirm.
As it is in SAP Name space. we can not do any changes.
will it be any problem in ECC 6 for these table maintanence.
Thanks in advance.
Shiv

Hi Ajay,
i have hundreds of Zee tables in 4.7. for these table table maintanence generater is created.
for each table there will be one function group is there.
i have to use it. no option.
regrds

Similar Messages

  • Error while creating a Event in Table maintanence gen

    Hi,
    I've created a table maintanence gen every thing worked fine...i wanted to create a event 05 at new entries in my table main gen so i did it and wrote a subroutine inside it without any logic since i thougt of doing it later and just saved it and came out out the event creation......Now when i want to go to same even the its pops up a Information error which says 'Function group  zxyz cannot be processed.' I cant open any thing from the main menu of the screen...like from environment or from utilities...for every thing it pops up the same message....is it bcoz of the event which i've just created......if i still want to delete it...its not allowing me to go into the event again..how to do it guys...suggest me
    Thanking you.........

    Hi Younus,
    Check whether the function group u created is ACTIVE or not.
    Go to se80. Give the FG name.. check it. Check all the includes in the Function Group whether they are ACTIVE or not.
    Try checking the Package in the TABLE MAINTANCE GENERATOR screen. Assign the Function Group to the correct package.
    I think this solves the issue.
    check the FG name in display mode in the TMG.
    Regards,
    Priyanka.

  • Reg : Table Maintanence Generator

    hi friends,
    After creating a  Z-Table,,we can create entries and diaplay the entries.
    But then Why do we go for Table Maintanence Generator.
    waiting for your answers
    Reagrds
    Vaja

    Hi,
    With the help of the table maintenance generator, you are able to maintain the ENTRIES of the table in SM30 transaction.
    It can be set in transaction SE11 - Tools - Table maintenance generator.
    Table maintanance Generator is used to manually input values using transaction sm30
    follow below steps
    1) go to se11 check table maintanance check box under attributes tab
    2) utilities-table maintanance Generator-> create function group and assign it under
    function group input box. Also assign authorization group default &NC& .
    3) select standard recording routine radio in table table mainitainence generator to move table
    contents to quality and production by assigning it to request.
    4) select maintaience type as single step.
    5) maintainence screen as system generated numbers this dialog box appears when you click on create button
    6) save and activate table
    One step, two step in Table Maintenance Generator
    Single step: Only overview screen is created i.e. the Table Maintenance Program will have only one screen where you can add, delete or edit records.
    Two step: Two screens namely the overview screen and Single screen are created. The user can see the key fields in the first screen and can further go on to edit further details.
    SM30 is used for table maintenance(addition or deletion of records),
    For all the tables in SE11 for which Table maintenance is selected , they can be maintained in SM30
    Sm30 is used to maintain the table ,i.e to delete ,insert or modify the field values and all..
    It creates the maintenance screen for u for the aprticular table as the maintenance is not allowed for the table..
    In the SE11 delivery and maintenance tab, keep the maintenance allowed..
    Then come to the SM30 and then enter the table name and press maintain..,
    Give the authorization group if necessary and give the function group and then select maintenance type as one step and give the screen numbers as system specified..
    Then create,,,
    Then u will able to see the maintenance view for the table in which u can able to insert and delete the table values...
    We use SM30 transaction for entering values into any DB table.
    First we create a table in SE11 and create the table maintenance generator for that Table using (utilities-> table maintenance generator) and create it.
    Then it will create a View.
    After that from SM30, enter the table name and Maintain, create new entries, change the existing entries for that table.
    For further help look into these links
    http://help.sap.com/saphelp_46c/helpdata/EN/cf/21eb6e446011d189700000e8322d00/frameset.htm
    http://help.sap.com/saphelp_bw30b/helpdata/en/69/c2516e4ba111d189750000e8322d00/content.htm
    Table
    Hope this resolves your query.
    Regards,
    Omkar.

  • How to hide/invisible a column in table maintanence generator????

    Hi,
    I have a table maintanence genarator of 5 fileds in which there are 2 primary fields. My requirement is to <b>HIDE/INVISIBLE</b> the first column (which is one of the primary key- SPRAS).
    How can i do this without coding???
    Thanks in advance.

    ya , i was in change mode...still it is inactive...
    Even i tried the same by code but it seems inactive but not getting invisible in the screen.....
    MODULE coulmn_modify OUTPUT.
      LOOP AT SCREEN.
        CASE screen-name.
          WHEN '*ZCCBTACT-SPRAS'.
            screen-input = 0.
            screen-output = 0.
            screen-active = 0.
            screen-invisible = 1.
            MODIFY SCREEN.
          WHEN 'ZCCBTACT-SPRAS'.
            screen-input = 0.
            screen-output = 0.
            screen-active = 0.
            screen-invisible = 1.
            MODIFY SCREEN.
        ENDCASE.
      ENDLOOP.
    ENDMODULE.                 " coulmn_modify  OUTPUT

  • I want complete information about table maintanence genarator?

    i want complete information about table maintanence genarator?

    hi there,,,,,,,
    The purpose of table maintainence generator is to enable the table maintenance through SM30, and to implement and validation etc on table field inputs.
    SE11->Utillities->table maintainence generator
    You need to enter the values of following fields:
    1. Table name
    2. Authorization group , and authorization object (select the suitable one )
    3. Function group and package
    4. Maintainence type : single or double screen maintainence view depending on the option selected.
    5. Maintain screen number : you may specify a value or let the system generate one for you.
    The validation code for the table entry is written in the flow logic of this screen. Even some of the fields may be made display only , by adding suitable code in the logic or directly disabling the input in table control in the layout.
    Table maintanance is for creating,adding datas to an existing table.
    it is for adding muiltiple records at a time in the table
    A table can be manipulated by a program or manually.
    When creating table, you will find a check box 'Table maintenance allowed'. If we
    check that option, we can manually enter entries using SE16 or table
    maintenance generator screen.
    SE16 is for data browser.
    Go to SE11, give the table name and click on change. Then Go to utilities--> Table
    maintenance generator.
    In the table maintenance generator screen, we should give Authorization Group,
    Function Group name (Function Group name can be same as table name),
    Maintenance type can be one step or two step, usually we will create with one
    step. we should give maintenance screen number. After clicking on create button,
    a table maintenance generator will be created.
    To check it go to SM30 . In SM30, we find display, Maintain options.
    We can view the table contents by choosing Display and we can create table
    entries by choosing Maintain.
    In the production system, end-users will not be having access to transaction
    codes like SE11 and SE16. Developers will not be having access to many
    transaction codes including the above two.
    To view the contents of the database table, we will use SE16n in Production
    system. Please find out the difference between SE16 and SE16n.
    All these authorizations will be maintained by BASIS team, by creating access
    profiles.
    So in order to edit or create the contents of a database table, we should go for
    table maintenance generator. In real time, authorizations will be maintained in
    production system. (even in development and Test systems to some extent).
    There is an audit like Sarbanes-Oxley Act for American clients, where every thing
    will be audited by government agency. To know more about SOX, use the links on
    the right hand side of this page.
    The second reason is, we can edit or create multiple entries at a time, using table
    maintenance generator.
    Apart from that we have options like 'Enter conditions' in table maintenance
    screen SM30. Please try to find out the use of those, by creating an example.
    Table Maintenance generator: Difference between one step and two steps.
    While creating table maintenance generator, we find below options:
    When we choose one step, we have to give the screen number in Overview Screen field.
    When we choose two step, we have to give both overview screen number and single screen number.
    You can give any number for screen. Don’t give 1000 screen number. As this
    number is reserved for selection screen.
    When we choose two step, two screens will be created for table maintenance. For
    single step only one screen will be created.
    When we choose two step, table maintenance will work as follows
    Go to SM30, give the table name for which you have created table maintenance-
    Overview screen will be displayed. To create entries, when you click on ‘new
    entries’. Another screen will be displayed, where you give input and save. You can
    enter one record at a time.
    Go to SM30; give table name for which you have created table maintenance-
    Overview screen will be displayed; To create entries click on ‘new entries’, you can
    enter the records on the same screen. You can enter multiple records at a time.
    We use single step generally, as it is user friendly.
    To completely understand the difference and above points please do exercise by
    creating table maintenance generator in both ways (using single step and two
    step).
    Link: http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ed2d446011d189700000e8322d00/content.htm
    Link: http://help.sap.com/saphelp_46c/helpdata/en/a7/5133ac407a11d1893b0000e8323c4f/frameset.htm
    Link: /message/2831202#2831202 [original link is broken]
    One step, two step in Table Maintenance Generator
    Single step: Only overview screen is created i.e. the Table Maintenance Program will have only one screen where you can add, delete or edit records.
    Two step: Two screens namely the overview screen and Single screen are created. The user can see the key fields in the first screen and can further go on to edit further details.
    pls reward if useful
    regards,
    rekha

  • Encountered error while Upgrade Table

    When weuse the upgrade table option in OWB deployment manager , we are encountering follwoing errors.
    Following is deplyment errors recorded from Runtime Audit Browser.
    1 Informational Upgrade log file Start of main script Executing script in direction: Proceed Executing as user DWTARGET -- *** There are WARNINGS in the script. *** -- Review the Impact Report. -- -- Script Generation for OdbCMUpgradeAdapter_1116623286492 -- Plan was last modified: 20-MAY-05 -- Target destination db : DWTARGET -- Generation started at: 20-MAY-05 -- Generation finished at: 20-MAY-05 ALTER TABLE "DWTARGET"."TEST" MODIFY("COL2" VARCHAR2(12 byte)) Script execution complete. Tcl_AppInit failed: Execution exit status: 0Execution succeeded
    2 Informational Upgrade log file Start of main script Executing script in direction: Clean Up Executing as user DWTARGET -- *** There are WARNINGS in the script. *** -- Review the Impact Report. -- -- Script Generation for OdbCMUpgradeAdapter_1116623286492 -- Plan was last modified: 20-MAY-05 -- Target destination db : DWTARGET -- Generation started at: 20-MAY-05 -- Generation finished at: 20-MAY-05 Starting cleanup of recovery tables... Completed cleanup of recovery tables. Script execution complete. Tcl_AppInit failed: Execution exit status: 0Execution succeeded
    3 Recovery RPE-01008: Recovery of this request is in progress.
    4 Informational Upgrade log file Start of main script Executing script in direction: Clean Up Executing as user DWTARGET -- *** There are WARNINGS in the script. *** -- Review the Impact Report. -- -- Script Generation for OdbCMUpgradeAdapter_1116623286492 -- Plan was last modified: 20-MAY-05 -- Target destination db : DWTARGET -- Generation started at: 20-MAY-05 -- Generation finished at: 20-MAY-05 Starting cleanup of recovery tables... Completed cleanup of recovery tables. Script execution complete. Tcl_AppInit failed: Execution exit status: 0Execution succeeded
    Please let us know of any ideas of how recover from this owb issue
    "RPE-01008: Recovery of this request is in progress. "

    Additional errors found in
    <OWB_HOME>/OWB/LOG DIRECTORY
    /***************Start of Log ***************/
    2005/05/20-17:24:40-EDT [1B8099A] DDLParserAdapter.updateStatusText: -- Script
    Generation for OdbCMUpgradeAdapter_1116624257836
    -- Plan was last modified: 20-MAY-05
    -- Target destination db : DWTARGET
    -- Generation started at: 20-MAY-05
    -- Generation finished at: 20-MAY-05
    2005/05/20-17:24:40-EDT [1B8099A] DDLParserAdapter.updateStatusText: Starting cl
    eanup of recovery tables...
    2005/05/20-17:24:40-EDT [1B8099A] DDLParserAdapter.updateStatusText: Completed c
    leanup of recovery tables.
    2005/05/20-17:24:40-EDT [1B8099A] DDLParserAdapter.updateStatusText: Script exe
    cution complete.
    2005/05/20-17:24:41-EDT [1B8099A] DDLParserAdapter.updateStatusText: Tcl_AppInit
    failed:
    2005/05/20-17:24:41-EDT [1B8099A] DDLParserAdapter.updateStatusText: Execution e
    xit status: 0
    2005/05/20-17:24:41-EDT [1B8099A] DDLParserAdapter.updateStatusText: Execution s
    ucceeded
    2005/05/20-17:24:41-EDT [1B8099A] DDLParserAdapter.updateCurrentStatus: 11
    2005/05/20-17:24:41-EDT [DEEEBD] java.lang.NullPointerException
    at oracle.wh.runtime.platform.adapter.odb.OdbCMUpgradeAdapter.getTargetC
    onnection(OdbCMUpgradeAdapter.java:723)
    at oracle.wh.runtime.platform.adapter.odb.OdbCMUpgradeAdapter.deployUnpa
    rsedScripts(OdbCMUpgradeAdapter.java:363)
    at oracle.wh.runtime.platform.adapter.odb.OdbCMUpgradeAdapter.finalize(O
    dbCMUpgradeAdapter.java:325)
    at oracle.wh.runtime.platform.service.controller.DeploymentController.fi
    nalize(DeploymentController.java:325)
    at oracle.wh.runtime.platform.service.controller.DeploymentController.fi
    nalize(DeploymentController.java:55)
    at oracle.wh.runtime.platform.service.DeploymentManager.run(DeploymentMa
    nager.java:61)
    at java.lang.Thread.run(Thread.java:534)
    2005/05/20-17:24:41-EDT [DEEEBD] oracle.wh.runtime.platform.service.controller.R
    ecoveryInProgress: RPE-01008: Recovery of this request is in progress.
    at oracle.wh.runtime.platform.service.controller.AdapterContextImpl.init
    ialize(AdapterContextImpl.java:1307)
    at oracle.wh.runtime.platform.service.controller.DeploymentContextImpl.i
    nitialize(DeploymentContextImpl.java:439)
    at oracle.wh.runtime.platform.service.controller.DeploymentController.in
    itialize(DeploymentController.java:69)
    at oracle.wh.runtime.platform.service.controller.DeploymentController.fi
    nalize(DeploymentController.java:319)
    at oracle.wh.runtime.platform.service.controller.DeploymentController.fi
    nalize(DeploymentController.java:338)
    at oracle.wh.runtime.platform.service.controller.DeploymentController.fi
    nalize(DeploymentController.java:55)
    at oracle.wh.runtime.platform.service.DeploymentManager.run(DeploymentMa
    nager.java:61)
    at java.lang.Thread.run(Thread.java:534)
    2005/05/20-17:24:41-EDT [DEEEBD] Attempting to create adapter 'class.Oracle Data
    base.9.2.CMUpgrade'
    2005/05/20-17:24:41-EDT [DEEEBD] OdbCMUpgradeAdapter.finalize
    2005/05/20-17:24:41-EDT [DBD794] DDLParserAdapter.updateStatusText: Start of mai
    n script
    2005/05/20-17:24:41-EDT [DBD794] DDLParserAdapter.updateStatusText: Executing
    script in direction: Clean Up
    Executing as user DWTARGET
    2005/05/20-17:24:41-EDT [DBD794] DDLParserAdapter.updateStatusText: -- Script G
    eneration for OdbCMUpgradeAdapter_1116624257836
    -- Plan was last modified: 20-MAY-05
    -- Target destination db : DWTARGET
    -- Generation started at: 20-MAY-05
    -- Generation finished at: 20-MAY-05
    2005/05/20-17:24:41-EDT [DBD794] DDLParserAdapter.updateStatusText: Starting cle
    anup of recovery tables...
    2005/05/20-17:24:41-EDT [DBD794] DDLParserAdapter.updateStatusText: Completed cl
    eanup of recovery tables.
    2005/05/20-17:24:41-EDT [DBD794] DDLParserAdapter.updateStatusText: Script exec
    ution complete.
    2005/05/20-17:24:41-EDT [DBD794] DDLParserAdapter.updateStatusText: Tcl_AppInit
    failed:
    2005/05/20-17:24:41-EDT [DBD794] DDLParserAdapter.updateStatusText: Execution ex
    it status: 0
    2005/05/20-17:24:41-EDT [DBD794] DDLParserAdapter.updateStatusText: Execution su
    cceeded
    2005/05/20-17:24:41-EDT [DBD794] DDLParserAdapter.updateCurrentStatus: 11
    2005/05/20-17:24:41-EDT [DEEEBD] java.lang.NullPointerException
    at oracle.wh.runtime.platform.adapter.odb.OdbCMUpgradeAdapter.getTargetC
    onnection(OdbCMUpgradeAdapter.java:723)
    at oracle.wh.runtime.platform.adapter.odb.OdbCMUpgradeAdapter.deployUnpa
    rsedScripts(OdbCMUpgradeAdapter.java:363)
    at oracle.wh.runtime.platform.adapter.odb.OdbCMUpgradeAdapter.finalize(O
    dbCMUpgradeAdapter.java:325)
    at oracle.wh.runtime.platform.service.controller.DeploymentController.fi
    nalize(DeploymentController.java:325)
    at oracle.wh.runtime.platform.service.controller.DeploymentController.fi
    nalize(DeploymentController.java:338)
    at oracle.wh.runtime.platform.service.controller.DeploymentController.fi
    nalize(DeploymentController.java:55)
    at oracle.wh.runtime.platform.service.DeploymentManager.run(DeploymentMa
    nager.java:61)
    at java.lang.Thread.run(Thread.java:534)
    2005/05/20-17:24:41-EDT [DEEEBD] finalize_unit_done auditId=77611
    2005/05/20-17:24:42-EDT [1BC887B] Free Memory(bytes)=59807752 Total Memory(bytes
    )=64946176 Used Memory(bytes)=5138424
    2005/05/20-17:24:42-EDT [1BC887B] AuditId=77611: Request completed
    /***************END of Log ***************/
    Thanks in advance for any help

  • Regarding Table maintanence generator

    Hi,
    I have a requirement were in i need to upload data in to this customisizing table using table maintanenece gen....My requirement is to hide the primary key which is of no use to end user instead when he enters data into this the i should generate the primary key by means of some FM which wud be unique for each record of the entry created in the table.....but the user should not see the first key which is primary key here in my case should be hidden in the table maintanence generator......Please response quickly its urgent...............
    Thanking you in Advance......

    here  is the   code  for that
    REPORT ZTAB_MAINT
           NO STANDARD PAGE HEADING
           MESSAGE-ID ZZ.
    *                   T Y P E  D E C L A R A T I O N S
    *--Types declaration for selection to be passed as parameter into
    *--VIEW_MAINTENANCE_CALL FM
    TYPES: BEGIN OF TP_RANGETAB.
            INCLUDE STRUCTURE VIMSELLIST.
    TYPES: END OF TP_RANGETAB.
    *                D A T A  D E C L A R A T I O N S
    DATA: V_MATNR TYPE MATNR,              " Material Number
          V_WERKS TYPE WERKS_D,              " Plant
          V_KONOB TYPE KONOB,              " Product allocation object
          V_ZCPLT(40) TYPE C.              " Message
    *        I N T E R N A L  T A B L E  D E C L A R A T I O N S
    * Internal table to subroutine code
    *Internal table used as selection for VIEW_MAINTENANCE_CALL FM
    DATA: IT_RANGETAB TYPE STANDARD TABLE OF TP_RANGETAB WITH HEADER LINE.
    *--Internal table used for getting the tablefields
    DATA: BEGIN OF IT_HEADER OCCURS 1.
            INCLUDE STRUCTURE VIMDESC.
    DATA: END   OF IT_HEADER.
    *--Name Tabel
    DATA: BEGIN OF IT_NAMTAB OCCURS 50.
            INCLUDE STRUCTURE VIMNAMTAB.
    DATA: END   OF IT_NAMTAB.
    *--Used for handling 'BT' option
    DATA: BEGIN OF IT_MATNR OCCURS 0,
            MATNR TYPE MATNR,
          END OF IT_MATNR.
    *--Used for handling 'BT' option
    DATA: BEGIN OF IT_WERKS OCCURS 0,
            WERKS TYPE WERKS,
          END OF IT_WERKS.
    *--Used for handling 'BT' option
    DATA: BEGIN OF IT_KONOB OCCURS 0,
            KONOB TYPE KONOB,
          END OF IT_KONOB.
    *--Used for handling 'BT' option
    DATA: BEGIN OF IT_ZCPLT OCCURS 0,
            ZCPLT(40) TYPE C,
          END OF IT_ZCPLT.
    *                    I N P U T  S C R E E N
    SELECTION-SCREEN BEGIN OF BLOCK SELSCR WITH FRAME TITLE TEXT-001.
    RANGES: R_MATNR FOR V_MATNR.
    RANGES: R_WERKS FOR V_WERKS.
    RANGES: R_KONOB FOR V_KONOB.
    RANGES: R_ZCPLT FOR V_ZCPLT.
    * Select Options
    SELECT-OPTIONS: S_MATNR FOR V_MATNR NO-EXTENSION,     " Material
                    S_WERKS FOR V_WERKS NO-EXTENSION,     " Plant
                    S_KONOB FOR V_KONOB NO-EXTENSION,
                                            " Product allocation object
                    S_ZCPLT FOR V_ZCPLT NO-EXTENSION.     " Plant
    SELECTION-SCREEN END OF BLOCK SELSCR.
    *              A T  S E L E C T I O N  S C R E E N
    AT SELECTION-SCREEN.
    * Validate user inputs
      PERFORM FRM_VALIDATIONS.
    *             S T A R T  O F  S E L E C T I O N
    START-OF-SELECTION.
    * Fetch Data from Data Base
      PERFORM FRM_GET_DATA.
    *                      S U B  R O U T I N E S
    *&      Form  frm_get_data
    *       Call the function module VIEW_MAINTENNACE_CALL to get data
    *       based on selection criteria
    FORM FRM_GET_DATA .
      CALL FUNCTION 'VIEW_GET_DDIC_INFO'
        EXPORTING
          VIEWNAME = 'ZTAB'
        TABLES
          X_HEADER = IT_HEADER
          X_NAMTAB = IT_NAMTAB
          SELLIST  = IT_RANGETAB
        EXCEPTIONS
          NO_TVDIR_ENTRY = 1
          TABLE_NOT_FOUND = 2.
      IF SY-SUBRC <> 0.
        MESSAGE E002 WITH 'Error in ZTAB table'(005).
      ENDIF.
      CLEAR: IT_RANGETAB,
             IT_RANGETAB[].
      LOOP AT IT_NAMTAB.
        CASE IT_NAMTAB-VIEWFIELD.
          WHEN 'MATNR'.
            CLEAR IT_RANGETAB.
            IT_RANGETAB-VIEWFIELD = 'MATNR'.
            IT_RANGETAB-TABIX     = SY-TABIX.
            IT_RANGETAB-DDIC      = IT_NAMTAB-READONLY.
            LOOP AT S_MATNR.
              CASE S_MATNR-OPTION.
                WHEN 'EQ'.
                  IT_RANGETAB-AND_OR    = 'AND'.
                  IT_RANGETAB-OPERATOR  = 'EQ'.
                  IT_RANGETAB-VALUE     = S_MATNR-LOW.
                  APPEND IT_RANGETAB.
                WHEN 'BT'.
                  IT_RANGETAB-AND_OR    = 'AND'.
                  IT_RANGETAB-OPERATOR = 'GE'.
                  IT_RANGETAB-VALUE     = S_MATNR-LOW.
                  APPEND IT_RANGETAB.
                  IT_RANGETAB-AND_OR    = 'AND'.
                  IT_RANGETAB-OPERATOR = 'LE'.
                  IT_RANGETAB-VALUE     = S_MATNR-HIGH.
                  APPEND IT_RANGETAB.
                WHEN 'NB'.
                  CLEAR: R_MATNR,
                         R_MATNR[].
                  R_MATNR-SIGN = 'I'.
                  R_MATNR-OPTION = 'BT'.
                  R_MATNR-LOW = S_MATNR-LOW.
                  R_MATNR-HIGH = S_MATNR-HIGH.
                  APPEND R_MATNR.
                  SELECT MATNR
                         INTO TABLE IT_MATNR
                         FROM ZTAB
                         WHERE MATNR IN R_MATNR.
                  DELETE ADJACENT DUPLICATES FROM IT_MATNR COMPARING MATNR
                  LOOP AT IT_MATNR.
                    IT_RANGETAB-AND_OR    = 'AND'.
                    IT_RANGETAB-OPERATOR = 'NE'.
                    IT_RANGETAB-VALUE    = IT_MATNR-MATNR.
                    APPEND IT_RANGETAB.
                  ENDLOOP.
                WHEN 'NE'.
                  IT_RANGETAB-AND_OR    = 'AND'.
                  IT_RANGETAB-OPERATOR  = 'NE'.
                  IT_RANGETAB-VALUE     = S_MATNR-LOW.
                  APPEND IT_RANGETAB.
                WHEN OTHERS.
                  IT_RANGETAB-AND_OR    = 'AND'.
                  IT_RANGETAB-OPERATOR = S_MATNR-OPTION.
                  IT_RANGETAB-VALUE    = S_MATNR-LOW.
                  APPEND IT_RANGETAB.
              ENDCASE.
            ENDLOOP.
          WHEN 'WERKS'.
            CLEAR IT_RANGETAB.
            IT_RANGETAB-VIEWFIELD = 'WERKS'.
            IT_RANGETAB-TABIX     = SY-TABIX.
            IT_RANGETAB-DDIC      = IT_NAMTAB-READONLY.
            LOOP AT S_WERKS.
              CASE S_WERKS-OPTION.
                WHEN 'EQ'.
                  IT_RANGETAB-AND_OR    = 'AND'.
                  IT_RANGETAB-OPERATOR  = 'EQ'.
                  IT_RANGETAB-VALUE     = S_WERKS-LOW.
                  APPEND IT_RANGETAB.
                WHEN 'BT'.
                  IT_RANGETAB-AND_OR    = 'AND'.
                  IT_RANGETAB-OPERATOR = 'GE'.
                  IT_RANGETAB-VALUE     = S_WERKS-LOW.
                  APPEND IT_RANGETAB.
                  IT_RANGETAB-AND_OR    = 'AND'.
                  IT_RANGETAB-OPERATOR = 'LE'.
                  IT_RANGETAB-VALUE     = S_WERKS-HIGH.
                  APPEND IT_RANGETAB.
                WHEN 'NB'.
                  CLEAR: R_WERKS,
                         R_WERKS[].
                  R_WERKS-SIGN = 'I'.
                  R_WERKS-OPTION = 'BT'.
                  R_WERKS-LOW = S_WERKS-LOW.
                  R_WERKS-HIGH = S_WERKS-HIGH.
                  APPEND R_WERKS.
                  SELECT WERKS
                         INTO TABLE IT_WERKS
                         FROM MARC
                         WHERE WERKS IN R_WERKS.
                  DELETE ADJACENT DUPLICATES FROM IT_WERKS COMPARING WERKS
                  LOOP AT IT_WERKS.
                    IT_RANGETAB-AND_OR    = 'AND'.
                    IT_RANGETAB-OPERATOR = 'NE'.
                    IT_RANGETAB-VALUE    = IT_WERKS-WERKS.
                    APPEND IT_RANGETAB.
                  ENDLOOP.
                WHEN 'NE'.
                  IT_RANGETAB-AND_OR    = 'AND'.
                  IT_RANGETAB-OPERATOR  = 'NE'.
                  IT_RANGETAB-VALUE     = S_WERKS-LOW.
                  APPEND IT_RANGETAB.
                WHEN OTHERS.
                  IT_RANGETAB-AND_OR    = 'AND'.
                  IT_RANGETAB-OPERATOR = S_WERKS-OPTION.
                  IT_RANGETAB-VALUE    = S_WERKS-LOW.
                  APPEND IT_RANGETAB.
              ENDCASE.
            ENDLOOP.
          WHEN 'KONOB'.
            CLEAR IT_RANGETAB.
            IT_RANGETAB-VIEWFIELD = 'KONOB'.
            IT_RANGETAB-TABIX     = SY-TABIX.
            IT_RANGETAB-DDIC      = IT_NAMTAB-READONLY.
            LOOP AT S_KONOB.
              CASE S_KONOB-OPTION.
                WHEN 'EQ'.
                  IT_RANGETAB-AND_OR    = 'AND'.
                  IT_RANGETAB-OPERATOR  = 'EQ'.
                  IT_RANGETAB-VALUE     = S_KONOB-LOW.
                  APPEND IT_RANGETAB.
                WHEN 'BT'.
                  IT_RANGETAB-AND_OR    = 'AND'.
                  IT_RANGETAB-OPERATOR = 'GE'.
                  IT_RANGETAB-VALUE     = S_KONOB-LOW.
                  APPEND IT_RANGETAB.
                  IT_RANGETAB-AND_OR    = 'AND'.
                  IT_RANGETAB-OPERATOR = 'LE'.
                  IT_RANGETAB-VALUE     = S_KONOB-HIGH.
                  APPEND IT_RANGETAB.
                WHEN 'NB'.
                  CLEAR: R_KONOB,
                         R_KONOB[].
                  R_KONOB-SIGN = 'I'.
                  R_KONOB-OPTION = 'BT'.
                  R_KONOB-LOW = S_KONOB-LOW.
                  R_KONOB-HIGH = S_KONOB-HIGH.
                  APPEND R_KONOB.
                  SELECT KONOB
                         INTO TABLE IT_KONOB
                         FROM T190
                         WHERE KONOB IN R_KONOB.
                  DELETE ADJACENT DUPLICATES FROM IT_KONOB COMPARING KONOB
                  LOOP AT IT_KONOB.
                    IT_RANGETAB-AND_OR    = 'AND'.
                    IT_RANGETAB-OPERATOR = 'NE'.
                    IT_RANGETAB-VALUE    = IT_KONOB-KONOB.
                    APPEND IT_RANGETAB.
                  ENDLOOP.
                WHEN 'NE'.
                  IT_RANGETAB-AND_OR    = 'AND'.
                  IT_RANGETAB-OPERATOR  = 'NE'.
                  IT_RANGETAB-VALUE     = S_KONOB-LOW.
                  APPEND IT_RANGETAB.
                WHEN OTHERS.
                  IT_RANGETAB-AND_OR    = 'AND'.
                  IT_RANGETAB-OPERATOR = S_KONOB-OPTION.
                  IT_RANGETAB-VALUE    = S_KONOB-LOW.
                  APPEND IT_RANGETAB.
              ENDCASE.
            ENDLOOP.
          WHEN 'ZCPLT'.
            CLEAR IT_RANGETAB.
            IT_RANGETAB-VIEWFIELD = 'ZCPLT'.
            IT_RANGETAB-TABIX     = SY-TABIX.
            IT_RANGETAB-DDIC      = IT_NAMTAB-READONLY.
            LOOP AT S_ZCPLT.
              CASE S_ZCPLT-OPTION.
                WHEN 'EQ'.
                  IT_RANGETAB-AND_OR    = 'AND'.
                  IT_RANGETAB-OPERATOR  = 'EQ'.
                  IT_RANGETAB-VALUE     = S_ZCPLT-LOW.
                  APPEND IT_RANGETAB.
                WHEN 'BT'.
                  IT_RANGETAB-AND_OR    = 'AND'.
                  IT_RANGETAB-OPERATOR = 'GE'.
                  IT_RANGETAB-VALUE     = S_ZCPLT-LOW.
                  APPEND IT_RANGETAB.
                  IT_RANGETAB-AND_OR    = 'AND'.
                  IT_RANGETAB-OPERATOR = 'LE'.
                  IT_RANGETAB-VALUE     = S_ZCPLT-HIGH.
                  APPEND IT_RANGETAB.
                WHEN 'NB'.
                  CLEAR: R_ZCPLT,
                         R_ZCPLT[].
                  R_ZCPLT-SIGN = 'I'.
                  R_ZCPLT-OPTION = 'BT'.
                  R_ZCPLT-LOW = S_ZCPLT-LOW.
                  R_ZCPLT-HIGH = S_ZCPLT-HIGH.
                  APPEND R_ZCPLT.
                  SELECT ZCPLT
                         INTO TABLE IT_ZCPLT
                         FROM ZTAB
                         WHERE ZCPLT IN R_ZCPLT.
                  DELETE ADJACENT DUPLICATES FROM IT_ZCPLT COMPARING ZCPLT
                  LOOP AT IT_ZCPLT.
                    IT_RANGETAB-AND_OR    = 'AND'.
                    IT_RANGETAB-OPERATOR = 'NE'.
                    IT_RANGETAB-VALUE    = IT_ZCPLT-ZCPLT.
                    APPEND IT_RANGETAB.
                  ENDLOOP.
                WHEN 'NE'.
                  IT_RANGETAB-AND_OR    = 'AND'.
                  IT_RANGETAB-OPERATOR  = 'NE'.
                  IT_RANGETAB-VALUE     = S_ZCPLT-LOW.
                  APPEND IT_RANGETAB.
                WHEN OTHERS.
                  IT_RANGETAB-AND_OR    = 'AND'.
                  IT_RANGETAB-OPERATOR = S_ZCPLT-OPTION.
                  IT_RANGETAB-VALUE    = S_ZCPLT-LOW.
                  APPEND IT_RANGETAB.
              ENDCASE.
            ENDLOOP.
        ENDCASE.
      ENDLOOP.
      IF S_ZCPLT[] IS INITIAL.
        CALL FUNCTION 'VIEW_MAINTENANCE_CALL'
          EXPORTING
            ACTION      = 'U'
            VIEW_NAME   = 'ZTAB'
          TABLES
            DBA_SELLIST = IT_RANGETAB
          EXCEPTIONS
            CLIENT_REFERENCE                     = 1
            FOREIGN_LOCK                         = 2
            INVALID_ACTION                       = 3
            NO_CLIENTINDEPENDENT_AUTH            = 4
            NO_DATABASE_FUNCTION                 = 5
            NO_EDITOR_FUNCTION                   = 6
            NO_SHOW_AUTH                         = 7
            NO_TVDIR_ENTRY                       = 8
            NO_UPD_AUTH                          = 9
            ONLY_SHOW_ALLOWED                    = 10
            SYSTEM_FAILURE                       = 11
            UNKNOWN_FIELD_IN_DBA_SELLIST         = 12
            VIEW_NOT_FOUND                       = 13
            MAINTENANCE_PROHIBITED               = 14
            OTHERS                               = 15.
        IF SY-SUBRC <> 0.
          MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        ENDIF.
      ELSE.
        CALL FUNCTION 'VIEW_MAINTENANCE_CALL'
          EXPORTING
            ACTION      = 'U'
            VIEW_NAME   = 'ZTAB_ZTEST'
          TABLES
            DBA_SELLIST = IT_RANGETAB
          EXCEPTIONS
            CLIENT_REFERENCE                     = 1
            FOREIGN_LOCK                         = 2
            INVALID_ACTION                       = 3
            NO_CLIENTINDEPENDENT_AUTH            = 4
            NO_DATABASE_FUNCTION                 = 5
            NO_EDITOR_FUNCTION                   = 6
            NO_SHOW_AUTH                         = 7
            NO_TVDIR_ENTRY                       = 8
            NO_UPD_AUTH                          = 9
            ONLY_SHOW_ALLOWED                    = 10
            SYSTEM_FAILURE                       = 11
            UNKNOWN_FIELD_IN_DBA_SELLIST         = 12
            VIEW_NOT_FOUND                       = 13
            MAINTENANCE_PROHIBITED               = 14
            OTHERS                               = 15.
        IF SY-SUBRC <> 0.
          MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        ENDIF.
      ENDIF.
    ENDFORM.                    " frm_get_data
    *&      Form  frm_validations
    *       Validating field values
    FORM FRM_VALIDATIONS .
    * Material number should not be validated (10/17/2005)
      CLEAR V_MATNR.
      SELECT SINGLE MATNR
                    INTO V_MATNR
                    FROM MARA
                    WHERE MATNR IN S_MATNR.
      IF SY-SUBRC <> 0.
        MESSAGE E002 WITH 'Material not found'.
      ENDIF.
      CLEAR V_WERKS.
      SELECT SINGLE WERKS
                    INTO V_WERKS
                    FROM ZTAB
                    WHERE WERKS IN S_WERKS.
      IF SY-SUBRC <> 0.
        MESSAGE E002 WITH 'Plant (WERKS) not found'(002).
      ENDIF.
      CLEAR V_KONOB.
      SELECT SINGLE KONOB
                    INTO V_KONOB
                    FROM ZTAB
                    WHERE KONOB IN S_KONOB.
      IF SY-SUBRC <> 0.
        MESSAGE E002 WITH ' Product allocation object not found'(003).
      ENDIF.
      CLEAR V_WERKS.
      SELECT SINGLE WERKS
                    INTO V_WERKS
                    FROM ZTAB
                    WHERE WERKS IN S_ZCPLT.
      IF SY-SUBRC <> 0.
        MESSAGE E002 WITH 'Plant (ZCPLT) not found'(004).
      ENDIF.
    ENDFORM.                    " frm_validations
    reward  points if it is usefull ...
    Girish

  • Table maintanence generator Events and BADI

    hi,
    We are in middle of creating technical design.  The scenario is given below.
    A BADI is implemented and the we are writing code for saving data in a table and we are writing events in table maintanence generator for this table to validate the data before saving.
    So if error occurs, we can't populate it as error message as this is done in between of BADI.  So how to capture these error messages and give to BADI.
    I am thinking to use EXPORT and IMPORT to memory.  Will this work?  Or is there any other method for this?  I am not able to check in SAP as the client doesnt want to create anything before signing off the TD.

    I answered the exact same question a few minutes back in another thread. Hope this works.
    read table new entry
    For the others who have answered this question:
    I tried referencing the table directly and whenever i enter multiple entries the validations where failing. I could not do a loop at table. My validations were supposed to be triggered only at the time of saving the entries and not at the time of entry. Anybody has a workaround besides what i have described in the post??

  • Table maintanence generator with events

    Hi ,
    I am having a custom table for which 2 new fields were added .
    Now the data for the two fields shold be populated depending on conditions using table maintanence generator .
    the two fields are : date and time.
    for every existing and new record the date and time shold be populated once the action is taken plae using SM30.
    can you please provide the sufficient info to achive the same .
    which events to be used and how the code should be ...
    thanks

    I answered the exact same question a few minutes back in another thread. Hope this works.
    read table new entry
    For the others who have answered this question:
    I tried referencing the table directly and whenever i enter multiple entries the validations where failing. I could not do a loop at table. My validations were supposed to be triggered only at the time of saving the entries and not at the time of entry. Anybody has a workaround besides what i have described in the post??

  • Regarding Table Maintanence

    Hi All,
    i created table maintanence for a Z table. i can able to enter data through the maintanece.
    but the end user is unable to enter data through it. what might be the reason.
    Thanks in advance.
    Moderator Message: Vague Question. Not enough effort by OP. Post locked.
    Edited by: kishan P on Mar 2, 2011 10:53 AM

    Does the end user has necessary authorizations for entering data through table maintanence

  • ....how to create table maintanence generator for a z table and how to use

    Hi...
    3....how to create table maintanence generator for a z table and how to use that for transfering a selected records to one server to another server.
    thanks and regards,
    k.swaminath reddy

    Hi,
    Table maintanance Generator is used to manually
    input values using transaction sm30.The Table Maintenance Generator is used to create table maintenance program to add, modify or delete records in the database table. This can be accessed using transaction SE54 or in SE11 using the menu Utilities->Table Maintenance Generator
    <b>
    Follow below steps</b>
    go to se11 check table maintanance check box under
    attributes tab
    utilities-table maintanance Generator->
    create function group and assign it under
    function group input box.
    also assign authorization group default &NC& .
    select standard recording routine radio in table
    table mainitainence generator to move table
    contents to quality and production by assigning
    it to request.
    select maintaience type as single step.
    maintainence screen as system generated numbers
    this dialog box appears when you click on create
    button
    save and activate table
    http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ed2d446011d189700000e8322d00/content.htm
    One step, two step in Table Maintenance Generator
    Single step: Only overview screen is created i.e. the Table Maintenance Program will have only one screen where you can add, delete or edit records.
    Two step: Two screens namely the overview screen and Single screen are created. The user can see the key fields in the first screen and can further go on to edit further details.
    please check the link for getting information about table maintenance generator !
    https://www.sdn.sap.com/irj/sdn/advancedsearch?query=use%20of%20table%20maintenance%20generator&cat=sdn_all
    http://www.sapdevelopment.co.uk/tips/tips_tabmaint_tcode.htm
    http://www.sap-img.com/abap/create-a-table-maintance-program-for-a-z-table.htm
    Regards,
    Priyanka.

  • SE14 Status-UPGRADE-Table does not exist in the database

    Folks,
    I have created a ztable with SPRAS and few Char fields and generated a table maintenance generator.In the Dev it is working fine but when I moved the TR to Q TR ended up with errrors "Generation of Programs and Screens".When I check in Q in SE11 I am able to see the table but with an error message "Table doesn't exist in the database".
    SE14 Status for this table is getting shown as UPGRADE in Q.
    Can anyone here throw some light on what exactly this status UPGRADE means and how it gets set in SE14.
    In DEV,I had checked the DATABASE OBJECT>>CHECK>DISPLAY and RUNTIME OBJECT>>CHECK>>DISPLAY and it is showing Database object is consistent but where as the same in Q is showing "Table is not created in the Database".
    K.Kiran.

    Hi.
    Is Q system is newly copied? Also please check the transport order of the table creation request. Also check whether pwd of the DB user is locked?
    Regards,
    Vimal

  • How to create a table with table maintanence

    Hi Friends,
    I want to create a table with the following fields.
    1. MANDT
    2. BUDAT
    3. WAERS
    4. KURSF
    And i need to maintain the table (User will maintain the table... like they'll add items to it)
    What are all the steps i should follow ???
    Thanks in advance.
    Cheers
    R.Kripa.

    I have solved the problem ..
    Sailatha thanks anyway
    The problem i faced was;
    I created the table ...... with all the fields as keys ..
    When i executed TCODE SM30 (Maintain Table) it said ... "View/table can be only maintained with  resrictions " and hence then it dint allow  me to maintain ... ;-(
    So then i changed the "Maintanence"  status to "Display/Maintance" allowed.
    thats how my problem of maintaining the table solved!!!
    Thanks
    Cheers
    R.Kripa.

  • 'Z' table maintanence generator

    Hi,
    I am having a 'Z' table with 7 fields. In this 'Z' table I also have a field whose data type is STRING, for which I've created a 'Z' data type and a 'Z' domain.
    I am not able to create:
    1) Maintainence view using Tale maintanence generator for this table.
    Error is get is 'Data type STRING not supported in field SMS'.
    2) Neither am I able to maintain/modify entries in table using SE16N and check maintain entries, even after changing attributes as 'Display/Maintenance Allowed'.
    Even if I change some entries and click SAVE I get a dump saying
    Runtime errors         ASSIGN_CASTING_ILLEGAL_CAST
    Exception              CX_SY_ASSIGN_CAST_ILLEGAL_CAST
           Occurred on     10.09.2009 at   11:34:41
    Error in an ASSIGN ... CASTING statement in program "SAPLSE16N".
    Is it because of my data elemene string or something else?
    Please help.
    Regards,
    Amit

    Hi Amit,
    Yes. You are right. Table maintenance generator does not support fields of type with string, raw, rawstring, internal table, object reference etc...
    One solution I think is to create a maintenance transaction on your own.
    Regards,
    Deepika.

  • Upgrading tables from OWB...

    I am trying to upgrade a table in OWB using the deployment action of Upgrade. The old table exists in the target schema.
    When I try to upgrade it I get this error:
    RPE-01008: Recovery of this request is in progress.
    RTC-5351: A serious error occured whilst generating the Impact Report. Please review the Runtime Service Log.
    Where can I find the Runtime Service Log? What could be causing this error?
    Thank you.
    Brian

    The runtime log is in:
    <oracle_home>\owb\log
    They are named after the runtime repos user... I'm guessing something went wrong in a previous deployment.
    You can try to stop the runtime service and restart it. Use the start and stop scripts in the owb\rtp\sql directory.
    Jean-Pierre

Maybe you are looking for

  • How do i get into a completely locked ipod touch?

    My dad wants me to try and help him fix his Ipod touch because he made a passcode,didnt use the ipod for a while and forgot it. My dad has several different emails and no longer has access to the email he set the ipod touch up with. Also, when he tri

  • Custom Pre Process Event Handler in OIM 11g for middle initials

    Hi, I am trying to congiure a Custom Pre Process Event Handler for generating middle name in OIM 11g and I am following the steps as given in metalink ID: *1262803.1* Even after successfully performing all the steps I am not able to get the middle in

  • [OSB]JMS Business Service sending message with a given JMSCorrelationID

    Hi, Is it possible to send jms message with a given JMSCorrelationID in OSB? Just like use javax.jms.Message.setJMSCorrelationID() before sending. If yes, how to change the payload accordingly? Any help? Thanks in advance.

  • Premiere Pro CC has no audio on imported MPEG2

    So I just recently upgraded to the Creative Cloud, running Premire Pro CC about half of my workflow consists of editing Mpeg2 transport stream files. After pushing a few projects through using other formats, I decided to drop one of my run of the mil

  • Is there a way to install OS X Snow Leopard on the 2014 MacBook Pro Retina?

    I have a 2014 MacBook Pro Retina that I purchased a few months ago. Is there a way to install OS X Snow Leopard on it? I do not have a DVD drive and do not own OS X Snow Leopard discs. I do have a retail copy .dmg file of it though. Can I copy it ove