06-14-2013 5:24 PM
Hi Friends,
I have a database table which can be maintained via SM30. This table has let's say 4 fields (Field1, Field2, Field3, Field4)
Field1 has a sequence 1,2,3,4,5.......
My question here is all the 4 fields (Field1, Field2, Field3, Field4) should show up as display(non-editable) if the sequence is <= 9.
If the sequence is >9 then, show only Field1 as display(non-editable). How can I achieve this? Appreciate if anybody could help me doing this.
Example:
Field1 | Field2 | Field3 | Field4 |
---|---|---|---|
1 (display) | A (display) | B (display) | C (display) |
2 (display) | D (display) | E (display) | F (display) |
3 (display) | G (display) | H (display) | I (display) |
. (display) | . (display) | . (display) | . (display) |
. (display) | . (display) | . (display) | . (display) |
9 (display) | J (display) | K (display) | L (display) |
10 (display) | M (Enable) | N (Enable) | O (enable) |
11 (display) | P (Enable) | Q (Enable) | R (enable) |
Thanks,
Nani
06-14-2013 5:28 PM
Honestly, the answer is to write your own screen and not use SM30.
Neal
06-14-2013 5:32 PM
Hi.
Create ur own program to do that and do not change the standard SM30.
Regards
06-14-2013 5:38 PM
Thanks Neal and Miguel for the replies. But, can you give me few ideas on how to achieve this instead of touching standard SM30.
06-14-2013 5:41 PM
06-14-2013 7:52 PM
Hi,
search EDIT ALV or EDITABLE ALV
sth like this:
http://abap-explorer.blogspot.com/2008/09/how-to-get-updated-data-from-editable.html
http://wiki.sdn.sap.com/wiki/display/ABAP/Editable+ALV+through+OOPS
Regards
Miguel
06-14-2013 8:05 PM
Even though the recommended Solution is to Create a separate program, The solution for Your Problem can be achieved as:
Hope that TMG has been generated for your table.
There are Events available in TMG which can be made used for achieving this functionality. There are various in built events available to handle the various situations like validations etc.
Go to Table ->TMG -> Environment -> Modifications -> Events specify the routine against the specific event and do the required screen customization in that routine.
reference Link :
http://wiki.sdn.sap.com/wiki/display/ABAP/TABLE+MAINTENANCE+GENERATOR+and+ITS+EVENTS
06-14-2013 8:22 PM
06-14-2013 8:32 PM
Hi Nani,
Your Basis/Security team has the capability to set what are called "Field status variants" that allow for certain fields to become editable/non-editable, visible/non-visible, required/not required.
As far as custom development goes, I recommend an SALV report -- try looking at the tutorials at
zevolving.com
06-14-2013 11:29 PM
Hi Nani,
your can to use Menu environment on TMG. Try Modification option, those 4 options can you allow get your aim.
I think that you worked with table control will be easy for you!!!
Regards,