Maintenance View - update field on SAVE
Hi folks,
I need to create a maintenance view on top of a table. If a user modifies and saves one field I would like to set a time stamp in a further field of the same table. How do I have to do that?
Thanks for your help.
In the se11 -> table maintenance generator -> Environment -> Modification -> Events
Here you can create routine to add a time stamp to automatically add when some user will modify / update any table row.
Kuntal
Similar Messages
-
Maintenance view on the standard table
Hi,
We need to have a maintenance view on the standard XYZ table .
Since it is a std table. we would not be able to create a maintenance view since we need an access key.
So we have to :
1. Copy the table XYZ into a Z_table. (just the structure alone).
2. Create a table maintenance generator on this table.
3. When the data is being saved in the maintenance view, update the record in the XYZ.
How we can populate the XYZ when the Z_table is populated with data?
Can anyone help in this regard.
Thanks and regards,
KapilHi Rich,
Thanks for your reply.
I am referring to standard table "comc_settyp_attr" in SAP-CRM system . I have copied it and created a z_table. But its not allowing me to create a maintainance view. Its giving an error :
GUID in table key (Field name CUSTINFO) not supported.
But when i create the z_table without the GUID(char 32) as key field, it generates table maintenance. But the key field is required.
Can you help me in this regard.
Regards,
Kapil -
Maintenance View - Can you sort/Filter? How to create z transaction for it?
Hi,
I will be creating a maintenance view that will be used several times at the end of every month, eventually storing more than 500 entries.
Is there anyway for the user to be able to sort/filter the maintenance view by field? This would be helpful, since they would like to see what similar records are stored before adding others.
What are my options?
Also, how do you create a transaction code to go straight to the maintenance view instead of having to go through SM30?
Please help.
Thanks,
JohnHey John,
Is there anyway for the user to be able to sort/filter the maintenance view by field? This would be helpful, since they would like to see what similar records are stored before adding others.
What are my options?.
Option1:
We canu2019t give the sort button (as we give in the nomal reports). But if you know like - based on what field user want to see the sorted output(lets say field MATNR)? then we can create an Event for the table maintainance generator using SE11 and write the code. In this code we sort the output that will be displayed in SM30 as per the requirement.
Also, how do you create a transaction code to go straight to the maintenance view instead of having to go through SM30?.
Go-to SE93 and choose the option u201Ctransaction with parametersu201D and give the t.code as SM30 and Check Skip initial screen.
regards
Shyam. -
Add fields to maintenance view and update then using events
Hi experts:
I've created a table with 4 fields, one of them is userid. Also, there is a maintenance view to add new entries.
I want to display user name when typing userid using events (1 or 21). I know how to do it if username is one of the fields of the table, but there is a requirement to not store username in the table, just userid.
My question is: is possible to add a field into the maintenance view and update it using events but not store the value in DB?.
Thanks in advance for your help.
Regards,
Carlos.In the save event just clear the entries of the field(user name) in the internal table.
-
Updates through a maintenance view
Hi,
I'm having difficulty with maintenance views. I thought it ws possible to construct a maintenance view consisting of two or more tables and be able to update non-key fields in any table, provided the tables were linked via FK and had suitable cardinality of C:1.
However, this seems to be what I've found: you can only update non-key fields in the primary table. Although fields in the secondary tables appear as though you can update them (via SM30), any data changes you make are erased (as you look at it!) when you hit Save - the original value returns.
Is my assessment correct? SAP Help is vague and ambiguous on the matter.
Also, maybe someone could explain the cardinality requirements. SAP Help states the FKs must have N:1 cardinality, but as far as I can see it should be C:1.
Thanks,
T.Hello Tenchy
You are talking about view clusters (SE54) where you have hierarchical linked tables that can be maintained together.
Obviously, you cannot edit key fields of the primary table. Instead you need to use execute two operations:
- DELETE entry
- CREATE new entry
It goes without saying that the same operations are propagated to the dependent entries in secondary tables.
The cardinality between primary table and secondary table should be 1:N meaning
- for each entry in the primary table you can have none or multiple entries in the secondary table
- you cannot have secondary records for which the corresponding primary record does not exist
Regards
Uwe -
Problem regarding updation of Z-table through maintenance view
hi ,
I m facing problem in updation of Z-table through maintenance view (SM30).
The scenario is that I have one customizing field in my Z-table which is checkbox.
Now I need to populate 2 fields in Z-table on tick of this checkbox and clicking of SAVE button.
For this I have created one module ''change_field'' in PAI.
Actually my database table is being updated but as soon as the control left my module all the updation that take place vanishes away.....
So please help me in this matter.Thanks for ur previous effort it is updating the database but its effect is not shown immediately on screen.After i referesh the transaction it is dispalying the data.
So can u please suggest me any way....
Now i have one scenario infront of me....
I need to restrict the data shown in maintenance view.
I think it would be same as pop-up window displayed when we tick on 2nd radiobutton ("ENTER CONDITIONS")
of intial screen of t-code SM30.
Please suggest what shud i do....
Thanks and reagrds,
Amit
Edited by: amit gupta on Jul 18, 2008 1:35 PM -
Using an event in table maintenance view to populate a field
I have a table maintenance view, and I would like to populate one field of the table with derived data. I am trying to do this by coding a routine for one of the events, but so far no luck. I have been able to chege the data in the TOTAL table, but still it does not populate the field on the screen.
Note this is not for one row as it is entered, but I want all rows of the table displayed to show this field with derived data.
So the question is: what is the correct event to use, and what is the correct internal table to update? Can I make changes to EXTRACT or TOTAL to do this?
Kind Regards,
Tony.Hi Rob,
Sorry for being lazy; I'll close this and off and search :-}
BR,
Tony. -
Very urgent : Update maintenance view
Hi
I would like to know if i update a maintenance view ,will that change be included
in the correction instruction or do i need to do anything special for the same.
Regards
LeonHi,
it should update the data in views( and corresponding tables ) .
and we need these changes should be stored in change request also .
you can use FM
VIEW_MAINTENANCE_NO_DIALOG
with action parameter = 'SAVE'
just do a where used list of this FM to check how this can be used
<b>Reward points</b>
Regards -
Update maintenance view data by FM .
Hi friends,
I want to update Maintenance view data not by using sm30,sm34,transactions . i want to update by FM . i will pass the data and view name so that it should update the data in views( and corresponding tables ) .
and we need these changes should be stored in change request also .
Regards,
Shiva.you can use FM
VIEW_MAINTENANCE_NO_DIALOG
with action parameter = 'SAVE'
just do a where used list of this FM to check how this can be used
Regards
Raja -
Maintenance view field check.
Hi,
I want to insert new record into maintenance view and check some field that must be inserted.
If i make them required so when i press "New Entries" all the redcord are ready for new entries and all the fields in each record are required so if the user insert only one record so he get msg that there are still required fields to enter.
Other problem is that i can save blank record in the maintenance view.
Hope there is any good solution for those problem.
I've tried coding abap in the flow logic of the screen but still it run on all the records.
Thanks in advance.HI it very simple.
Generate table maintanance generator screen for you maintanance view and wirte your validation in table maintance generator event. create event new entry(05).
*first create 05 event and give suroutine name as new_entry.
form new_entry.
*----here you have to put your validtion
if ztable-f1 is not initial and
ztable-f2 is initial and
ztable-f3 is initial.
message 'Enter value in all the fields' type 'E".
endif.
endform.
for creating events in TMG refer below link
To change top of page in Block ALV list display
Regards,
Peranandam
Edited by: peranandam chinnathambi on Apr 2, 2009 11:18 AM
Edited by: peranandam chinnathambi on Apr 2, 2009 11:19 AM -
Update a maintenance view.
Hi ,
I want to update a maintenance view.
Data is coming from a text file which i am uplaoding.
Which function module should I use to update the maintenence view.
Thanks,
Ram.hi,
use this FM VIEW_MAINTENANCE_CALL
hope it will work.
use this code .
&----& Report Z_TEST_PROGRAM&--*& Demo program for blog http://abap-explorer.blogspot.com/&--
REPORT z_test_program.DATA:i_sellist TYPE STANDARD TABLE OF vimsellist INITIAL SIZE 0,i_header TYPE STANDARD TABLE OF vimdesc INITIAL SIZE 0,i_namtab TYPE STANDARD TABLE OF vimnamtab INITIAL SIZE 0.PARAMETERS: p_view TYPE viewname MATCHCODE OBJECT viewmaint OBLIGATORY.AT SELECTION-SCREEN.CALL FUNCTION 'VIEW_GET_DDIC_INFO' EXPORTING viewname = p_view VARIANT_FOR_SELECTION = ' ' TABLES sellist = i_sellist x_header = i_header x_namtab = i_namtabEXCEPTIONS no_tvdir_entry = 1 table_not_found = 2 OTHERS = 3 .IF sy-subrc <> 0. data: l_message type NATXT. CONCATENATE 'Table/View' p_view INTO l_message SEPARATED BY space. MESSAGE e001(00) WITH l_message ' not in the Dictonary'.ENDIF.START-OF-SELECTION.CALL FUNCTION 'VIEW_MAINTENANCE_CALL' EXPORTING action = 'S' view_name = p_viewEXCEPTIONS 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 i001(00) WITH 'Error while calling the view'. LEAVE LIST-PROCESSING.ENDIF.
Edited by: katigiri linganna on Apr 20, 2009 4:31 PM -
Obligatory fields in a Maintenance View
Hi All,
I have a Z table. I have created a Maintenance View for this table. My requirement is to have a few fields as mandatory in this view so that when the user enters data, these fields should appear with the Obligatory symbol in the grid.
Regards,
MadhurHi Madhur,
Whenever u craete a table maintainence view one or two screens are generated depending upon the option u have selected.
goto SE11 ->utilities ->table maintainence .
there find ur screen no ( 1 by default)
click on that u will enter into screen painter.
There find ur field and specify its attribute as required. Dont forget to activate the screen onece done.
Thanks & Regards,
Ankur -
How to hide a field in the maintenance view (URGENT) ???
I have created a custom table with following fields:-
MANDT (mandatory)
KOKRS (mandatory)
KHINR (mandatory)
KHINRNAME
KOSTL (mandatory)
KOSTLKHINR
I have a requirement that i should get a pop-up to fill the value of KOKRS but user should not be able to see its value in the maintenance view.
I have given the maintenance attribute 'S' to KOKRS field so that pop-up should be there , now please advice on how to prevent KOKRS field to be shown in the maintenance view.in SE51 try to change the attributes of the field in the screen. Either visible length to be 0 or check and see if any other attribute would be of help.
-
Additional Field in standard maintenance view
Hi Experts,
I would like to add an additional field plant in maintenance view V_TKZU3_CO (SPRO PATH: Controlling --> Product cost controlling -->Product cost planning --> Basic settings for material costing -->Overhead -->Define costing sheets ).
What I'm planning to do is to modify the standard maintenance view V_TKZU3_CO and regenerate the table maintenance generator so that the new field will be added and populate a ztable a copy of table TKZU3 + plant...
However what I'm afraid of is when I regenerated the table maintenance generator using the standard function group OCOE, it might impact some other standard object included..
Do you have any idea on how can I add the additional field without modifying the standard? Or if I will apply the standard modification I'm planning.. what are the possible impacts?
Thanks in advance!Hi
U can create a new table view like V_TKZU3_CO, insert your new fields and create the maintenance view program for it.
Max -
Very urgent:Updating maintenance view
Hi
I would like to know that if i update a maintenance view and attach the same to the
request,will it be included in the correction instructions ?
Or do i need to do anything special for the same?
Please let me know
Regards
LeonAny relavance to Oracle?
Maybe you are looking for
-
Connect to a printer that connected to a PC running Windows 7
Hello I'm using an iMac running Snow Leopard, and a PC running Windows 7. I have a Brother DCP 130-C printer/scanner connected to the PC. I want the printer to be shared between both computers to be able to print wirelessly from my mac. How can I do
-
Item/lot Reservation against blanket sales agreement
Hi all. my client has a requirement (in warehousing environment 11.5.10 CU2) to reserve the entire lot for a customer (preferably against a blanket sales agreement) and release the BSA in small quantities over a period of time. The lot is has to be r
-
GB Searching For Sampler Instruments
How do I get GB to search for (or, better yet, FIND) all my sampler instruments? When I double click on one of the instruments to get the track info, GB says, for example "Grand Piano.exs": Audio file "024C0KM56M.wav" not found! Yet I know the exact
-
Table Filters using webdynpro Java
Hi Experts, I am trying to implement Table Filter i did every thing mentioned in this Generic Web Dynpro Java Table Filter still am not getting the filter values all the table columns remains same it is not doing any filtering , please help me in sol
-
Java version 1.5.0_06 I have a column in a table that contains check boxes. Using the Windows look and feel the spacing (insets) around the check box in each cell is not proportionally the same for 96 DPI as it is for 120 DPI. Using the default look