Table maintenance generator problem

Hi Experts,
    I a table maintenance  generator I have to check for authorization in plant level before deleting an entry. I have created a routine which is of "03-Before deleting the data displayed". But in that if I read ytable-plant it has null. It doesn't point out which row I have selected. But for updation, it takes the exact row values which I have selected.
   How can I read the line which I have selected.
Thanks and regards,
Venkat

Hello Venat
It will be very confusing for users if there are deletable and non-deletable entries side by side in your maintenance view. Instead, you should do the AUTH-CHECK at the beginning and restrict the selectable data accordingly. All data that are now displayed can be treated the same way (including DELETION).
Regards
  Uwe

Similar Messages

  • EVENT problem in Table maintenance generator

    Hello all
                 I m working on 4.6C sytem. I m facing  2 problems in events in table maintenance generator
    (1) I am using 04 event (After deleting records from table)   I have written BREAK-POINT in the Form .....ENDFORM... But the control doesnt stop there , when i select  an existing record and press delete record button? not able to understand  this
    (2) When i implement even t 03( Before deleting records from table) , and select  an existing record and press delete record button . Control successfully Go  to corresponding FORM ...   BREAK-POINT ENDFORM . 
    But now the problem is.. in debuggin i can see the contents in TOTAL table  but when i try to code LOOP at TOTAL ..ENDLOOP...it gives me syntax error saying "  table TOTAL doesnot exists or not defined..but similar field TOTAL_S , TOTAL_M , TOTAL_L  exists.. ???
      how come i can see the same during debugging but cannot code it ?
    Plese help
    Nilesh

    Hi Nilesh,
    (1)  I think the control will stop there after you delete AND save. Not sure about that but give it a try.
    (2) I believe you are trying to access fields inside table TOTAL, is that right?
    Actually you have to declare a work area with your Z table type.
    DATA: w_workarea type ztable.
    LOOP at total.
      w_workarea = total.
    endoop.
    Then you can work with w_workarea.
    Best regards.

  • Problem with table maintenance generator overview screen

    I added a field in a custom table and then used table maintenance generator to regenerate the table maintenance screen.
    I used 2 step to generate. The problem that I have is the field not displayed in the overview screen though it is visible in the single screen ( ie the second screen).
    I am not sure where the problem is as the field is not visible at all in the table control of overview screen.
    Please help me on this as to what could be the problem.

    Usually it is enough to regenerate both screens and the modules, but sometimes it doesn't pick up all the changes. In that case just delete the maintenance dialog and recreate it. That should do it.
    Regards,
    Michael

  • Table maintenance generator is not saving entries.

    Hi All,
    I am facing problem in table maintenance generator.
    I created a table maintenance for Z-Table.
    In my table last 2 fields are a checkbox.
    When we go to Sm30 and check/uncheck the boxes then save , message comes tht data saved , but when we come out and go back to maintenance generator , it's not saved.
    while table maintenance in 2 step , then on detail screen it is working perfectly but on primary screen it's not.
    when TM is single step , it's show entries saved but not saving in data.
    I tried to delete and regenerate table maintenance but still not working .
    Please guide me to ractify this.
    Thanks in advance,
    Ashish Gautam

    Hello Friend,
    Check with th etechnical settings of the ztable:
    see if your buffereing is allowed, and log data chnages is checked.
    If so :
    Then select buffereing is not allowed and uncheck the Log Data Changes:
    Also go to TMG:
    Check if standard recording routine is selected, then select the no, or user recording routine.
    After making these changes, delete the TMG and create a new one once again. You can check it will work fine now.
    Thanks and regards,
    Uttam Agrawal
    [http://uttambpt.blogspot.com|http://uttambpt.blogspot.com]
    Edited by: uttamagrawal on Jan 31, 2011 12:42 PM

  • Add field in table maintenance generator screen of maintenance view

    Hi,
    I am having a table with field user-id. I want to generate a maintenance view which will have corresponding user name as input disabled field. Since there are two tables USR21 and ADRP I need to access(not a direct check table) I will have to modify the code generated by the table maintenance generator.
    Problem is that it is having one internal table EXTRACT at table control loop. That internal table cannot be accessed if you write a module inside the table control loop and try to catch. The error coming as EXTRACT is not object of structure and therefore no component. I tried to capture the value of the Loop but could not be successful. Any suggestion please.
    Thanks,
    Atanu

    Hi,
    sample:
          MODULE LISTE_UPDATE_LISTE.
        ENDCHAIN.
    *--->begin of your change
        CHAIN.
          FIELD YTAB1-BILKS .
          FIELD YTAB1-BILKH .
           module check_bewar  ON CHAIN-input. "your checks
        ENDCHAIN.
    *-----> end of your change
      ENDLOOP.
      MODULE LISTE_AFTER_LOOP.
    ->  module check_bewar  is in an includ z123_INCL
    Regards Andreas

  • Doubt in Table maintenance  Generator

    Hi all
    I have created one table.  That table contains following fields
    MANDT     MANDT
    ALERTID     CHAR6
    COUNTRY     LAND1_GP
    IDNO     INT1
    ROLE     CHAR30
    MODUL     CHAR2
    LASTCREATEDON     DATE
    LASTCREATEDBY     CHAR12
    LASTCHANGEDON     DATE
    LASTCHANGEDBY     CHAR12
    when i creating table maintenance generator, the following log occured
    " Field ZMMIN_ALERT_ROLE-ROLE shortened (new visible length: 000015)"
    System Response
    The generation continues, but field ZMMIN_ALERT_ROLE-ROLE is a rollable field with visible length 000015 on screen 0110.
    meanwhile, i want to change field caption in sm30 for that table?

    Hi,
    Delete the table maintance generator once and regenerate the same.
    for changing caption: you have to follow the below procedure:
    In the table maintanance screen:
      click on 'OVER VIEW CREEN'.
                       click on ELEMENT LIST
                             click on 'TEXT I/O TEMPLATES'
                  here enter the title what ever you want. this will be reflected in the SM30.
    i hope your problem will be solved,
    Reward me if i gave right solution.
    Thanks
    Murali

  • Include a field in the table maintenance generator

    Hi All,
    There is a Z table with MATNR and another numeric field and the table maintenance generator exists for the table. The requirement is to include another field for MAKTX ( Material description) in the table maintenance generator with input disabled. Is it possible to do the same in the table maintenance generator else please suggest me the best solution.
    Thanks in Advance.

    Hi Srinivasa,
    This is quite simple, first add the field MAKTX into the Table and activate it .
    Now again generate the Table maintainence for the table.
    from Table maintainence generator go to the main program
    there click the screen maintained for Table maintainence generator .
    in the Pbo of the screen write the following code.
    assume table name is table1.
    Loop at screen.
    if screen-name = table1-maktx.
    screen-input = '0'.
    modify screen.
    endif.
    endloop.
    this will automatically disable the material description field in the Table Maintainence Generator.
    This is will solve your problem
    Regards,
    Madhavi

  • Junk Amount Values in Table Maintenance Generator

    Hello All,
    I have created an event (01) in table maintenance generator. In this i am triggering a workflow.
    The problem here is, in my table there is a fields of type CURR and CUKY. I am inserting new values by using SM30. I am entering some 100 dollars against CURR filed. In the bebugging, i have observed there is Junk values against CURR field in TOTAL & EXTRACT tables. Becuase of that i am getting short dump. I just want to pass the amount value to my workflow not a Junk amount value.
    Is there any way to avoid the junk values for CURR fields in Table Maintenance Generator.
    Regards,
    Pati

    Hi Pati! Do you've solve this? Any help? I see junk amont value too, and I cannot understand this.
    Thanks on advance.
    Regards,
    Emanuel

  • Table maintenance generator - + symbol instead of field label

    Hi All,
    I have created the table maintenance generator for the table and I have created theh transaction code the same as like SM30 and if I execute that transaction ocde, I can see all the fields with the correct description at the initial screen level. If I say New entries... Here I could not able to see the field description for the table fields for which the data element is not maintained.
    Is there any solution to resolve this problem without maitaining the data elements for that fields.
    Thanks in advance.
    Regards
    Ramesh.

    >
    ramesh mavilla wrote:
    > Hi All,
    >
    > I have created the table maintenance generator for the table and I have created theh transaction code the same as like SM30 and if I execute that transaction ocde, I can see all the fields with the correct description at the initial screen level. If I say New entries... Here I could not able to see the field description for the table fields for which the data element is not maintained.
    >
    > Is there any solution to resolve this problem without maitaining the data elements for that fields.
    >
    > Thanks in advance.
    >
    > Regards
    > Ramesh.
    By far the easiest way of doing this is to maintain the description on the data elements.  Why don't you want to do this?

  • Table maintenance generator events

    Hi,
    I have created a table maintenance generator and want to populate sy-uname and sy-datum into two fields during SAVE. So I went to Environment -> Modification -> Events and selected "01" event i.e. "Before saving the data in the database" and entered Form routine as "F_UPDATE_UNAME_UDATE". Then if I go to SM30 transaction it goes to dump.
    Could you please tell whether I am missing any point?
    Regards,
    Balaji Viswanath.

    Hi,
    Pasted it below.
    Runtime Error          PERFORM_NOT_FOUND
    Except.                CX_SY_DYN_CALL_ILLEGAL_FORM
    Date and Time          01/31/2008 09:26:52
    ShrtText
         Call (PERFORM) to a non-existent routine.
    What happened?
         The current program attempted to call an externally defined routine
         that does not exist.
         Error in ABAP application program.
         The current ABAP program "SAPLZTEST321" had to be terminated because one of the
         statements could not be executed.
         This is probably due to an error in the ABAP program.
         The current ABAP program had to be terminated because the
         ABAP processor detected an internal system error.
         The current ABAP program "SAPLZTEST321" had to be terminated because the ABAP
         processor discovered an invalid system state.
    What can you do?
         Print out the error message (using the "Print" function)
         and make a note of the actions and input that caused the
         error.
         To resolve the problem, contact your SAP system administrator.
         You can use transaction ST22 (ABAP Dump Analysis) to view and administer
          termination messages, especially those beyond their normal deletion
         date.
        is especially useful if you want to keep a particular message.
    Error analysis
        An exception occurred. This exception is dealt with in more detail below
        . The exception, which is assigned to the class 'CX_SY_DYN_CALL_ILLEGAL_FORM',
         was neither
        caught nor passed along using a RAISING clause, in the procedure
         "PREPARE_SAVING" "(FORM)"
        Since the caller of the procedure could not have expected this exception
         to occur, the running program was terminated.
        The reason for the exception is:
        The program "SAPLZTEST321" is meant to execute an external PERFORM,
        namely the routine "F_UPDATE_UNAME_UDATE " of the program "SAPLZTEST321 ", but
        this routine does not exist.
        This may be due to any of the following reasons:
        1. One of the programs "SAPLZTEST321" or "SAPLZTEST321 " is currently being
         developed.
        The name "F_UPDATE_UNAME_UDATE " of the called routine may be incorrect, or
        the routine "F_UPDATE_UNAME_UDATE " is not yet implemented in the program
         "SAPLZTEST321 ".
        2. If the program SAPMSSY1 is involved in the runtime error, one of
        the function modules called via RFC is not flagged as remote-capable.
        (see Transaction SE37  Goto->Administration->RFC flag)
        3. There is an inconsistency in the system. The versions of the
        programs "SAPLZTEST321" and "SAPLZTEST321 " do not match.
    How to correct the error
        - Check that transports to the system are complete.
        - Conclude any developments already begun ("SAPLZTEST321" and/or "SAPLZTEST321
        - Check routine names
        You may able to find an interim solution to the problem
        in the SAP note system. If you have access to the note system yourself,
        use the following search criteria:
        "PERFORM_NOT_FOUND" CX_SY_DYN_CALL_ILLEGAL_FORMC
        "SAPLZTEST321" or "LSVIMF14"
        "PREPARE_SAVING"
        If you cannot solve the problem yourself and you wish to send
        an error message to SAP, include the following documents:
        1. A printout of the problem description (short dump)
           To obtain this, select in the current display "System->List->
           Save->Local File (unconverted)".
        2. A suitable printout of the system log
           To obtain this, call the system log through transaction SM21.
           Limit the time interval to 10 minutes before and 5 minutes
           after the short dump. In the display, then select the function
           "System->List->Save->Local File (unconverted)".

  • Table maintenance generator updation

    Hi,
    I created a table maintenance generator, in that table maintenace generator when ever a record was created, a idoc will be generated, in that idoc,  a field will be updated with
    value 'C'.
    Simultaniously when I change the existing record 'U' will be updated in IDOC field.
    Problem is how to know whether it is ia created record or update record?
    Please
    Thaks in advance.

    Check CDHDR and CDPOS tables . So whenever you do changes for a particular record or insert a new record . all the changes will be tracked in these tables.
    In these table you have one field to identify wether it is updated or createe record .
    That field will hold the values I(fir insert) U (for update)
    Reward Points if useful
    Regards,
    Nageswar

  • Table Maintenance Generator giving Error in PRD.

    Hello Experts,
    I am receiving below error in PRD for a Table Maintenance generator for Z-Table. PFA Screen Shot.
    My Query is that though the information icon narrates to goto T-code SE54 & Re-generate TMG for the specified Function group. Which Option should 1 select after i had selection the option for Edit Function group->Re-generate group specific program.
    The info icon in the first pic says to do the following.
    Choose 'Edit Function Group' in the transaction SE54, enter the function group name 'ZOTMTRDPROFITSEG' and choose 'Regenerate Group-Specific Programs'. Choose 'Refresh Structure-Spec. Data Declarations' in the next selection window.
    Would like to add a point that this Function grp also contains TMG for other tables as well, will it impact other TMG's.
    Best Regards
    Priyesh Shah

    regenerate the TM object via SE11 - Table maintenance.
    normally should do the trick.
    However, keep the func groups & tables 1:1 saves a lot of this kind of problem.
    Don't mix them up i.e. more than 1 tab maint for a func group - never ending hassle you will get!!!
    go into Expert mode and regen it again. Remove the maint from this func group and create new func group for the table.

  • Search help in table maintenance generator

    Hello,
    I have the following problem with the table maintenance generator:
    I created a maintenance view and generated a maintenance dialog using the generator.
    Some of the fields in this view are marked to be used as selection criteria in an additional dialog box which appears just before the system displays the data to be maintained (fields used for subsets).
    The problem is that I cannot attach my own serach help for the fields displayed in this additional dialog window.
    I created a search help, attached it to the data element of that field, reactivated the view, the maintenance dialog - and the result is nothing: my search help does not appear for that field, instead of it there's still a list of values stored in a table defined as a table of values for the domain asociated with the data element.
    Has anyone solved that somehow ?
    Thanks in advance

    Thanks but it would be very nice if it was so easy.
    The screen on which I want the search help to appear is not a screen created by the generator which I could just modify.
    This is a standard dialog box window which appears <u>before</u> the system displays the screen created by the generator. It is screen number 0100 of program SAPLSVIX.
    This screen is used in all transactions created with the generator (see for example OMJJ) so it cannot be modified this way.
    regards

  • In table maintaince generator problem facing in modification - events

    Hello,
    My requirement is I created table maintenance generator and transaction code for table. So after filling values in table using transaction code. Now i need to delete multiple values by selecting records but problem is before deleting those values i need to check weather those values exists in intermediate table if those values exists in intermediate table then i need to delete only those records otherwise i should delete those records. Which event i need to u if you use event 03 how to capture the select records here i can see only one records selected.

    HI santhish,
    you need to use event 3. in the form routine of event 3.
    you have to check the records which needs to be deleted. once you are decided which records to be deleted. ask the user through pop-up window using FM popup_to_confirm . if the user says yes delete it other wise leave the screen.
    hope this will helps you.
    Regards,
    Kiran

  • Reagarding table maintenance generator

    hi abapers,
                   my problem iam unable to creater table maintenance generator for my ztable
    i careted ztable ,then i go for table maintenance generator give the authorization group&nc&
    my function group zXX.package .two step screen no's.no recording routinee
    i go se93 ->parmeter transaction ,in tcode-sm30,in bootom screen viewname = ztable
                                                                                    update   = x.
    but iam gtting messge
                'The maintenance dialog for ZLOCATION is incom
    or not defined'.

    Hi Ajay,
    Try to regenerate the maintaineance generator for the table once again.
    Use tcode SE11, enter the table name click change. In the next screen, click Utitlies-->table maintenance generator.
    Enter &NC& as the auth group.
    Enter the function group to use (ex. Z_TABMAINT)
    click One Step, enter '1' as the screen number. Click the create button.
    i think you are using the Two Step..
    did you mentioned the Display/Maintanance Allowed  for that table in the tab Delivary and Maintanance..
    Regards

Maybe you are looking for

  • File not found error in SFTP channel

    Hi All, We are getting a "file not found error " while using a SFTP sender channel . Our Scenario : We are using SFTP as the source adapter .Presently we are using  two nodes for load balancing for all the sender channels. One of the node's of the  S

  • Resetting a PB 17" 1GHz Battery that "thinks" it's dead?

    I have a PB 17" 1GHz that just turned 3 years old. I have 2 batteries that I purchased with the CPU, and have rotated them through it's life. Neither of the batteries have gone more than about 3 months dormant (with a full charge), but recently, one

  • FCP6 troubles with wrong timeline settings

    I have several timelines and one of them is set up all wrong. The aspect ratio is wrong. If i copy the video from the timeline (apple+c and paste) and throw them in the timeline which is set up in the right way why the video files are still in the wr

  • Reference Objects and Pooling

    I am trying to create a Pool class that does not require the caller to explictly return the objects. I thought I might be able to use Phantomreference or WeakReference to detect when the user no longer had reference to the object and thus reclaim it

  • Queue data sharing between multiple LabVIEW Executables

    I have 2 LabVIEW Executables(Exe) where one Exe produces data and other one consumes the same. Is there anyway I can use a single queue reference for the same ? First Exe obtains the queue reference number and stores the reference number in V.I.G whe