Table Maintenance: Modified or not?
Hi,
consider this situation: I appended a field to an existing customer DDIC table. There is an existing table maintenance. Before I just regenerate it to have the new field included i would like to check if there is any modification or extension of the maintenance dialogue.
What is the best way to find out?
Best regards,
Clemens
Hi,
Goto SM30 and give that table name. check whether ur new field reflects over there or not.
If not you need to regenerate table maintenance generater it seems.
Thanks.
If this helps you reward with points.
Similar Messages
-
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 GautamHello 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 -
Events in Table Maintenance, modify record and new record checking.
Hi,
I need to have a checking in the table maintenance for a custom Z table.
1.) First requirement is to check the changed data of an existing entry. An error must occur when pressing enter or when pressing the save button. What event should I use in order to accomplish this task?
2.) Second is when creating a new entry. An error must also occur when saving. I have already created the error message but my problem is that it does not return to the table maintenance screen but rather exits SAP.
Please advise on what to do regarding these matters.
Edited by: Al Vincent Bulacan on Mar 17, 2009 12:55 PMFollow the given path
go in se11 to the Table Maintenance generator.
Envireonment --> Modification --> Events.
Here you will find a number for events. You can choose the one that fits your requirement.
Then you can create an Perform in the selected event and get your requirements done.
Hope it helps,
- RJ -
Table Maintenance - Field Names not appearing
Hi,
I given table maintenace for 'Z' table.
When i went to SM30 transcation, the fields which are taken as Built-in type instead of Data elements are not having caption( Field names ) . It is showing '+' in the place of Fieldname .
What may be the reason. In table i given short description of the field . Even though it is not displaying.
Please suggest me.
Thanks in advance
Pavan.Hi Pavan,
If you used the built-in types, then that is how it appears in SM30. It will <b>not</b> take the field short descriptions you entered in the table.
Only way to get around it is to go to the screen of the table maintenance and change the field lables there. Caution though, is that whenever you change the table maintenance, you need to do this screen change again.
Let me know if you need more info on how to do it.
Srinivas -
Table Maintenance - Add field not in table for display
I have a Z table which has five fields of which one of them is the GL account field. I need to display the description of the account from SKAT-TXT20 also in SM30 so that In SM30 when the user looks at the table, they should be able to see six fields. I can code the PBO / PAI to pull data from the table, but am not sure how to enhance the table control that SAP generates automatically when you generate table maintenance from SE11's Table Maintenance generator so that the sixth field can be displayed.
ThanksHi,
I hope below solution will work for your problem:
to update field based on other fields of the same table follow below path and create a routine.
go to se11 open the Z-table in change mode > utilities> table maintenece generator- and then
environment> modification> events....
then creat routine based on your requirement.
regards,
munvar. -
Issue in table maintenance generator
Hi,
We have tranported a new table to Q from devlopement.
But the table maintenance generator is not tranported.
How can we tranport it again form the devlopement.Hello,
In this case you need to generate table maintenance object for the required table again.
Save that object in new transport request.
Now, You can either directly release this new request and import it in Q system or
merge the new request with existing released request and import new created request into Q system.
Check if this help,
Thanks,
Augustin. -
Table Maintenance(SM30) not working for a custom View..
Hi,
I have the below case which is not working at the moment.
we have standard table T024 and the requirement is to update the table directly in production. To update the standard table i have created a custom maintenance view on this table and created a table maintenance generator for custom view.
In maintenace status tab of view i have maintened below information:
Access read, change, delete and insert
Delivery class A
Data Browser/Table View Maint. Display/ Maintenance allowed
The table maintenace generator has been also created but when trying to modify it is giving below message
"Client 210 has status 'not modifiable"
We have two clients in dev server 200 -for development
210 - for development testing
In development it is working but in development testing client and in quality it is not working.
Can you please help me as to why we are getting the above message?
Best Regards,
RajeshHi Rajesh,
That is coming because of the Table Maintainance Generator Settings. You have to chose no, or user, recording routine then system will not generate any request and you can update the data. This is actually a BASIS settings in SCC4, so that for customizing tables system should not generate any request.
Thanks & Regards,
Faheem. -
Modify Key Field Values of a table through Table Maintenance Generator
Hi All,
I have created a z table with below structure. In this fields upto Valid To are all key fields. This is to ensure that consistant valid record get stored in the table.
MANDT MANDT CLNT 3 0 Client
VKORG VKORG CHAR 4 0 Sales Organization
VTWEG VTWEG CHAR 2 0 Distribution Channel
SPART SPART CHAR 2 0 Division
SKU MATNR CHAR 18 0 Material Number
LZONE LZONE CHAR 10 0 Transportation zone to or from which the goods are delivered
VALID_FROM ZVALID_FROM DATS 8 0 Valid From
VALID_TO ZVALID_TO DATS 8 0 Valid To
PLANT WERKS_D CHAR 4 0 Plant
SNP_TZONE ZSNP_TZONE CHAR 20 0 APO Transportation Zone
ERDAT ERDAT DATS 8 0 Date on Which Record Was Created
ERNAM ERNAM CHAR 12 0 Name of Person who Created the Object
AEDAT AEDAT DATS 8 0 Changed On
AENAME AENAME CHAR 12 0 Last changed by
I have created a Table Maintance program through the Table Maintenance Generator. And for that I have assigned a t code.
I can able to create new entires but i can not able to modify Valid_from and Valid_to entries of existing records.
Initially those two fields were in display mode but i went to its module pool program and made then as input enabled. But what the vales I was entering, its not getting saved in database. When we change the values of those fields and save it, the system is saying No Data Change.
Any inputs how to solve this issue. I can not make VALID_FROM and VALID_TO fields as non key.
Regards,Hi,
As you have already said that the value for valid to is a part of the key so you should not have any issues when this value is changed and the value is saved using the table maintainence generator, but in case you want to save values where the value for valid from has changed but the key is same we would not be able to save as there is already a value for the key, so if you want to save these values there are two ways 1 would either to delete the existing value value and create the new value or to have one more field as the key field like a counter so when the value is saved with a key the value is saved with counter as 1 and then ever next time for the new values increase the value of the counter.
In order to save these values use event 5 and put you code there.
You can also carry out checks for new aithorization in that event also.
Regards,
Himanshu -
Help req for check customer table maintenance with XD02 if not throw error
hello ABAP GURUS,
check customer of the table maintenance with XD02 if not throw error i have given the codition for passing the values in the table but before that it has to check whether the customer i am passing in to the table is a customer from xd02.Here whatever no i am passing it is accepting it should not happen, but when i give the customer which is not a customer it should not accept but it has to throw the message as 'customer does not exist.Its urgent please help me
TYPES: BEGIN OF TY_KNVI,
KUNNR TYPE KUNNR,
TATYP TYPE TATYP,
TAXKD TYPE TAKLD,
END OF TY_KNVI.
DATA : VALIDFROM TYPE GUEBG,
VALIDTO TYPE GUEEN.
DATA : IT_KNVI TYPE STANDARD TABLE OF TY_KNVI,
WA_KNVI TYPE TY_KNVI OCCURS 0 WITH HEADER LINE.
DATA : V_NAME TYPE SYUNAME.
SELECT KUNNR
TATYP
TAXKD
FROM KNVI
INTO TABLE WA_KNVI
WHERE KUNNR = YYV_CFORM-KUNNR
AND TATYP = 'ZCST'
AND TAXKD = '1'.
V_NAME = SY-UNAME.
YYV_CFORM-ENTEREDBY = V_NAME.
IF SY-SUBRC NE 0.
MESSAGE E000(E4) WITH 'Please change the tax classification of ZCST as' '1' ', in Sales Area Data'.
ENDIF.
I have used the following code to enter the data into the table maintenance it is working fine and throwing the error when the tax type is not the one which i have given in the select statements but the problem is when i have given the customer no which is not there in the XD02 tcode, it is accepting and showing the error message as MESSAGE E000(E4) WITH 'Please change the tax classification of ZCST as' '1' ', in Sales Area Data'. now i have to check the customer no from XD02 and if it is existing in that tcode it should allow to save in the table maintenance otherwise throw a message as the 'Customer no does not exist, this I am unable to write so how can i check please help me .
thankx in advance.
Edited by: soni khadary on Apr 22, 2008 7:55 AMHi Kelly,
I guess <wa_tab>-handle_style is of type lvc_t_styl therefore you can do the following:
ls_edit-style = cl_gui_alv_grid=>mc_style_enabled.
"I assume you know your non-key fields' names so you can use subrotuine to perform update on each of them
ls_edit-fieldname = 'First field name' .
PERFORM update ls_edit.
ls_edit-fieldname = 'Second field name'.
PERFORM update ls_edit.
ls_edit-fieldname = 'Third field name'.
PERFORM update ls_edit
FORM update USING fs_edit type lvc_s_styl.
field-symbols: <style_tab> type lvc_t_styl,
<style_wa> type lvc_s_styl.
LOOP AT <tab> ASSIGNING <wa_tab>.
if e_row = sy-tabix .
"get you style table
assign component 'HANDLE_STYLE' of structure <wa_tab> to <style_tab>.
"as <style_tab> is typed fully you can read the row you are interested in
read table <style_tab> assigning <style_wa> with key fieldname = fs_edit-fieldname
if sy-subrc = 0.
"update this entry
<style_wa> = fs_edit.
* modify table <style_tab> from <style_wa>.
endif.
endif.
endloop.
endform.
Note!
Though, this should work, the use of RTTI as Uwe suggested would be best practise approach as far as dynamic programming is concerned. Anyhow it is still up to you which one you pick.
Regards
Marcin
I noticed now that this line is not necessary
modify table <style_tab> from <style_wa>.
as we simply are working with field symbols, so changes made to <style_wa> are already visible in that table <style_tab>.
Edited by: Marcin Pciak on Mar 15, 2009 12:44 PM -
Fieldname in not being displayed in the table maintenance
Hi Experts,
I have created a table maintenance for a custom table.The table contains 10 fields out of which first 3 are key fields.
on the 3rd key field i have supplied F4 help so as to populate the 4th field automatically based on the selection of 3rd field.
everything is working fine but last 6 'fieldname' is not being displayed on the column bar.instead of fieldname there is '+' sign on the column. And i have checked in layout(screen) also only first four fields being displayed.
plz help.
Thanks n Regards,
MukeshHello Mukesh,
As you know, data element or pre-defined data type will be assigned as field type to the fields in a table. If you are assigning the data element, then the data element has the option to give the field label.
If you are assigning the data element and the field label is empty, then + sign will come. In other case - if you assigning the pre-defined data type also, the screeen column header will be shown as + sign.
In both the above cases, you can change the column header manually in the layout.
Regards,
Selva K. -
New field not reflecting in Table maintenance generator
Hi Experts,
I have added a new field in a ztable.I regenerated the table maintenance generator,so that the new field is reflecting in devlopment system , also a TR got created.When i moved this TR to pre-production system new fields are reflecting in the structure of table but not in table maintenance generator.
Please suggest solutions.
Regards,
NiranjanHi Experts ,
I have gone through the steps which is mentioned.But still issue is pending,the changes in TR are not reflecting in pre prod.
Error after moving the TR with "Definition of a Maintenance and Transport Object".
The current ABAP program "SAPLSVIM" had to be terminated because it has
come across a statement that unfortunately cannot be executed.
The following syntax error occurred in program "SAPLZFGL " in include "LZFGL$03
" in
line 13:
"Field "ZCHAR_FIXED_WIDTH" is unknown. It is neither in one of the spec"
"ified tables nor defined by a "DATA" statement. ." -
Table Maintenance Generator-Before Delete event not working with sort
Hi All,
I have requirement to sort the TMG for a custom table with non primary key and also to put condition for deleting entries, so that only specific entries can be deleted.
I did the sorting by adding MODULE SORT in the PBO of the Screen and providing the logic to sort EXTRACT and TOTAL tables with the required field. This is working correctly.
Also I used BEFORE_DELETE (Event 03) to unmark all entries selected, which is not satisfying the condition. This is also working as expected.
But, though they are working independently, these changes are not working together.
Please help me in resolving this issue.
Thanks,
SavithaHello,
Read my answer on this thread :
Maintenance View with Subset Fields
I think It can help you about finding examples for table maintenance events
and solution to your problem. -
Table maintenance dialog event to modify the screen
Hello All,
Can anyone tell the Event in table maintenance generator where I can grayout the few fields of the SM30 screen dynamically?
Thanks in advance.
Best Regards,
Sasidhar Reddy Matli.Hello Vijay,
If I change the properties of the fields as output only in the screen, when ever they regenerate the table maintenance screen, these properties will go off. Could you please suggest any other method for this?
Thanks in advance.
Best Regards,
Sasidhar Reddy Matli. -
Creating Customized Table and Modify Table Maintenance Screen
Hi,
I have already created customized table and generate the table maintenance screen, however i encountered 1 problem which is i cannot add new PAI and PBO module in the flow logic. Every time i wanna add new module, i will be getting error message saying that my user currently editing the screen. Any suggestion ?
Thanks.
JonHi <b>Jonathan</b>,
Please close all the windows and relogin
For making PAI and PBO modules, Please activate all the Table and its maintainence view.
Now first make emptu file with <main filename>_PAI and <main filename>_PBO save and activate them.
Now put the logic in them and then activate now call these in the main prog.. it should work...
While activation all the sub program modules should be activated already... i suggest select all the prog and sub progs and activate them all at once...so the system automatically takes care of inner activations first...
If u have some more quereies... please feel free to contact me...
Regards,,
<b>Abhishek</b> -
How to use the table maintenance events for validating the input entries..?
Hi,
I have created a Z table with 6 fields in which all are KEY fields. All are of CHAR type. I have created the Table Maintenance Generator for the same. While maintaining the entries in the table, even though I maintain a blank entry for a field it is saving the entry. But, I don't want that way. All the fields are mandatory in my table. One should enter all the fields. Otherwise it should not allow to save the entry. So, I think it can be done using the Table Maintenance Events. can someone tell me how to use the Table Maintenance Events. and which event to use for my reuqirement and what is the logic to be written.
Or Is there any other way to solve my problem.
Please share your inputs. Thanks in advance.
Best regards,
paddu.In the table maintenance generator, Environment --> Modifications --> Events then a screen will be appear here,we need to create the Events.In the EVENTS screen, press new Entries, there give 01(Before Saving the Data in the Database) and give a name(This will become a PERFORM), then click the Editor pushbutton, this will be there at the right side of the entry, then a popup will be appear, you can create an include program, there inside of the include program write ur code.
Here is documentation for Event 01(Before Saving the Data in the Database )
Event 01: Before Saving the Data in the Database
Use
This event occurs before new, changed or deleted entries are written to the database. Other activities can be performed, for example:
hidden entry processing
fill hidden fields
flag data to be written to hidden tables after the database change.
To have the changes saved by the central maintenance dialog routines, SY-SUBRC must be set to 0 at the end of the routine.
Realization
This event has no standard routine. The following global data is available for the realization of the user routine:
internal table TOTAL
field symbols
field symbols <ACTION> and <ACTION_TEXT>
<STATUS>-UPD_FLAG
If internal table data are to be changed before saving, t he changes should be made in both the internal table TOTAL and in the internal table EXTRACT.
FORM abc.
DATA: F_INDEX LIKE SY-TABIX. "Index to note the lines found
LOOP AT TOTAL.
IF <ACTION> = desired constant.
READ TABLE EXTRACT WITH KEY <vim_xtotal_key>.
IF SY-SUBRC EQ 0.
F_INDEX = SY-TABIX.
ELSE.
CLEAR F_INDX.
ENDIF.
(make desired changes to the line TOTAL)
MODIFY TOTAL.
CHECK F_INDX GT 0.
EXTRACT = TOTAL.
MODIFY EXTRACT INDEX F_INDX.
ENDIF.
ENDLOOP.
SY-SUBRC = 0.
ENDFORM.
Regards,
Joy.
Maybe you are looking for
-
My iPad mini suddenly stopped receiving incoming e-mail messages to my yahoo inbox this afternoon. I've tried turning it off for a decent amount of time and turning it back on, and that does not fix the problem. Other mailboxes seem to update and p
-
Using IMB Postal Code with LiveCycle Designer ES
I am trying to add an IMB postal code field to my form that auto-populates based on the 5 or 9 digit zip the user enters. I found the IMB filed and dragged it to the form. Gave it the same name as the zip code field the user keys. However, after I
-
Batch merging two TIFF files into one
I have a lot of portrait B5-size TIFF files that were scanned from paper documents and I plan to scan more. I want to merge every two of these files into landscape B4-size TIFF files. I want to do this by a batch job. What is the best way? Are there
-
Retrieving password for Time Machine
Hi all! For some time now, when I turn my computer on I get a pop up window asking me to log onto my Time Machine so my iMac can back up to it. The time Machine window has my name in it but every password I try does not work. I can see where you can
-
Xcode appears multiple times in the "Open With ..." list
This little problem has been bothering me for a while now. Whenever I right-click a source code file (c, java but also sh) in the Finder and select the "Open With ..." option, I am presented with a list of possible applications. The first one (defaul