Problem with table maintenance event
Hi Experts,
In the table maintenance event 05 for a ztable, I have written logic to validate if few key fields and non key fields are not initial.
If they are initial,need to throw an error message and it has to stay in the same screen.But right now it grays out the non key field.
Tried the combination of events 01 and 05 it grays out the key field.
Please let me know if there are any ways to achieve this without making modifications in the PBO or PAI of the ztable.
Regards,
Sridevi
I have this exact problem, why is this thread 'closed'? Is there an answer provided somewhere?
I have found a topic which shows an information message, which claims that the data is not saved.
But it does save the data if you use an information message and blocks non-key fields when using an error message
so this problem is still open for me.
Does anybody have a solution?
Ah an answer was indeed provided in another topic:
Issuing an Error in Table Maintenance Event
Edited by: Arno ter Horst on May 5, 2011 4:12 PM
Similar Messages
-
Problem with table maintenance allowed
hi,
here my problem is table is genarated and stored under local object that time i m creating function group is zabc. afterwards i m storing my table in my development class that time it is not possible to change function group in table maintenance genarator plz help me any one knows.
what is the exact use of table maintenance generator i m using this for ztables and i m going to screen painter i m adjesting the fields.what is the exact use of it.Hi,
1) You may delete the function group assignment and re-assign another one in change mode
2) The use of table maintenance generator is to provide users with a screen to maintain data in the table. If the data is not going to be populated by any users then there is no need for it. Transactions will automatically populate the data in the background
3) One can access the maintenance screen by going to SM30 or can assign your own transaction code to access it
Hope it helps.
Raj
Reward points if helpful -
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 -
Problem with table maintenance generator
Hye,
When i do create entries in table contents, the column name is shown as (+)....
where the problem is ?? how to get resolved....tried recreating the TMG but not use.
Thanx & Regards,
Manisha Suvarna.Hi Manisha Suvarna.
You can edit this information editing Maintenance view following steps below:
- Transaction Se55
- Environment -> Modification -> Modification Screens
There you can edit this information and Add the right value.
Kind regards -
Problem with table maintenance and screen
Hi,
I modified the screen for a maintenance view table and added new fields. I went to SE11 to add the new fields in the table and then to SE51 to change the layout. My problem is when I edit the new field that I added, a message(Data was saved) at the bottom of the screen will appear but the value that I put in the field is gone. When i checked the contents of the table, the values were not also updated. Please let me know if there are other things that I forgot to activate or change.
Thanks in advance,
EricHi
Its the other way.
First you modify the table to add new fields. Goto sm30, delete the already generated maintenance screens and then regenerate them.
Regards,
Raj -
Problem with table maintenance
hello there,
when iam tring to edit this custom table it says transport has been locked and not allowing me to change ..anybody know how to solve this issue ..
thanksHi,
In SE10 (or similar) you can lock or unlock a transport.
On the menu choose Request/Task -> Request -> Protect or Remove Protection, if the message is coming up with a transport that is not in you user id, check with the transport's owner.
Regards,
Nick -
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. -
Hello,
Does anyone has a code example of table maintenance events?
I have a custom table ( zitab ) , with a maintenance view in SM30. I would like to use the table maintenance events for some authorisation check before the data is displayed, then, depending on the authorisation, display what the user is authorised to see. After data input, perform validation, if errors occur, inform the user what the problem is, if not, save in tha z table.
Can this be done in sm30 or I need to write a new program?
Thank you!Can someone please explain me why I have this short dump (before save event)?
Error analysis
The statement
"MOVE src TO dst"
requires the operands "dst" and "src" to be comvertible.
Since this statement occurs in a Unicode program, the special
convertibility rules for Unicode programs apply. In this case, the
following rules have been broken:
Source Code Extract
Line SourceCde
1 ----
2 ***INCLUDE LYTableF04 .
3 ----
4
5 form before_save.
6
7 DATA: l_field_is_blank.
8 DATA: BEGIN OF s_ytable.
9 INCLUDE STRUCTURE ytable.
10 INCLUDE STRUCTURE vimtbflags.
11 DATA: END OF s_ytable.
12
13 LOOP AT total.
14 CLEAR s_ytable.
>>>>> MOVE total TO s_table.
16
17 ENDLOOP.
18
19 endform.
In all examples that i read on this forum this code works, I don't know why it fails for me. -
Problem in Table Maintenance Generator
Hi All,
We have a TMG which have 11 fields with below fields as primary key.
CONTRACT_NO
ITEM_NO
PRODUCT
WAREHOUSE
VALIDITY_START
VALIDITY_END
As per standard , during Change Mode these keys will be disable.
My requirment is to enable the VALIDITY_END in change mode also. I have done that by changing the attribute in SE51(Input Possible).
Now Problem is When I change the VALIDITY_END and saves it, In TMG it shows message "Data Saved" but when I check the
database table , Changes not reflected.
Please help.
Thanks
JitendraHi Jitu,
I agree this is not the right way to do this. You should keep the following in your key fields. And validity_end as normal field. Use the table maintenance events to make validity_end as a mandatory field. Using this events you can pass error messages to user if they keep it blank.
CONTRACT_NO
ITEM_NO
PRODUCT
WAREHOUSE
VALIDITY_START
Best Regards,
Tapodipta Khan. -
I'm having a lot of problems with tables not reflecting their formatting when I open them in a browser. I've tried opening in Safari, Firefox & Camino with the same results. For example, a row with the following html content has a much larger height & aligns the text to the top when opened in a browser:
<tr>
<td height="15" colspan="3" valign="middle"><h6 align="center">Summer 2009</h6>
</td>
</tr>
If it matters, this is a row in a table nested in another table. Here's the code down to the row in question (all tags are closed properly in the remaining code):
<table width="600" border="2" align="center" cellpadding="0" cellspacing="0">
<tr>
<td align="center" valign="top"><img src="images/events.jpg" width="250" height="35"></td>
</tr>
<tr>
<td align="left" valign="top">
<table width="100%" border="0" align="center" cellpadding="1" cellspacing="0">
<tr>
<td height="15" colspan="3" valign="middle"><h6 align="center">Summer 2009</h6>
</td>
</tr>
I am using a style sheet for text. Here's the code for "h6" if that matters:
h6 {
font-family: Verdana, Geneva, Arial;
font-size: 14px;
font-weight: bold;
color: #660099;
Any ideas is appreciated. This is driving me nuts. Spacing and alignment sometimes work and sometimes don't work. Dreamweaver is supposed to make such things easier!
KevinHeader tags are usually used round a bit of text, not parts of a table, and if you don't specify the margins on them, can force different amounts of space below in different browsers. Try making the bottom margin on h6 zero, and confine it to text within a cell.
Also, if you can upload your page somewhere and let us have the url it will be easier to troubleshoot. -
Issuing an Error in Table Maintenance Event
Hi,
How can I issue an error in the table maintenance event without exiting the screen.
When an event is triggered (Before Save), it will perform a check in the data changed or created. It will issue an error when the changes are not correct. But when I press enter or click on the check button, it will exit the table maintenance screen.
What do I have to do in order to issue an error but will still go back to the table maintenance view.
Making the message as information or type I, will not work because it will still save.Hi,
I came to the same problem, maybe this will help someone.
You can move check into view cluster event.
1. load the view
PERFORM vcl_set_table_access_for_obj
USING 'view'
CHANGING error_flag.
2. assing to structure
LOOP AT <vcl_total> INTO ls_view
3. perform check, set VCL_STOP which will stop saving and will display message
VCL_STOP = 'X'.
MESSAGE .... -
Problem in Table maintenance view
Hi all,
i am getting some problem in table maintenance view.
In my table i have some fields and when i created my table maintenance view , it is created , but when i try to see it in SM30 its not showing my fields and even i am unable to create a new entry. when i click
new entries its going back to the sm30 screen..
How to go abt it
please help meHello,
Have you created the table maintanence view the right way.
You can get good help from below link: [[http://www.****************/Tutorials/ABAP/TableMaintenance/demo.htm]]
Also, please check the Delivery Class and Data Browser/Table View Maint. in the Delivery and Maintanence tab of the table.
Thanks,
Jayant
Edited by: Jayant Sahu on Nov 24, 2008 3:00 PM -
Problem with tables -- need help!
I am having problems with table formatting, when using
Preformatted text. The tables look fine in the WYSIWYG editor, but
have lots of extra space above and below the text when looking at
the output files.
I will attach the code from one of the HTML files from my
project, so you can see what I'm talking about.
Thanks.Well, if you're talking about the single-celled table with
the line:
<p class=Preformatted>[assembly:
Ace.AceAssembly]</p>
</pre>
... you can eliminate the <P> tags. that will give you
one line less. Otherwise, your remaining space is the result of the
<PRE> tag. It, like the <XMP> tag, gives it one line of
space beneath as well.
Your alternative beyond that would be to, when needed, wrap
up the script in Javascript. That line, for instance, wouldn't need
it. -
What could be the problem with table REGUH
Hi exprts
i developed a report . its wrking ok in developemt system
but in Quality system ,
the below query is taking more time.
in quality even i have taken slection criteria which is very less than devlopment selection.
please tell me the below query is performance wise not good or
is there any problem with table REGUH in quality system?
IF NOT ( t_bsak_aux[] IS INITIAL ).
SELECT laufd laufi xvorl zbukr lifnr rwbtr kunnr empfg"
vblnr ausfd rzawe
FROM reguh
INTO TABLE t_reguh
FOR ALL ENTRIES IN t_bsak_aux
WHERE laufd <> space
AND laufi <> space
AND zbukr = t_bsak_aux-bukrs
AND lifnr = t_bsak_aux-lifnr
AND vblnr = t_bsak_aux-augbl.
thanks in advance
regards
neeruHi,
Using SPACE against the keys (LAUFI, LAUFD - specifically LAUFD) will most likely return no results. LAUFD, being one of the keys and the date which the program is supposed to run (considering that this is settlement data - it has already run) - implies that this field will be populated. Putting " = SPACE" in your where clause is saying that you want to find records from the table where those fields are not populated. That is fine for LAUFI, considering it is the indicator for a proposal only. In my requirement, my client did not want to see proposals but only real payment runs - therefore, LAUFI = SPACE is correct.
The reason you are having poor performance while selecting form this table is because it is a cluster table like bseg. This thread explains a little bit of why cluster tables are a performance nightmare when trying to select - although it is about bseg, you will get the idea:
http://blogs.ittoolbox.com/sap/db2/archives/select-from-bsegrfblg-performance-problem-14247
I'm trying to find an alternative to get bank account information regarding payments - I will post a reply if I am lucky to find one!
Good luck -
I have problems with syncing my events folders från MacBookAir to Ipad2. Some pictures show and not others?
Anyone else having this problem?Try deleting the photo cache from your computer and then re-try the photo sync and see if they then copy over - the location of the cache, and how to delete it, is on this page http://support.apple.com/kb/TS1314
Maybe you are looking for
-
Hello. Just for couriosity I'd like to calculate the length of an int and by that I mean return the number of digits. I know how to do this 'manually', but is there a method somewhere that looks a bit like this: object.calcInt(47653);//returns 5Thank
-
Configuration setting for Message type to take OA print out put
Hi All, Please let us know how to configure setting for Message type for OA in SD to take print or to get print preview. Pls let me know . Regards, Nagaraj S
-
How to crop multiple images to the exact same pixel size?
I have hundreds of scans all from one book and I am trying to straighten and crop them all out to the same pixel amounts. For example, I have a bunch of scans that are 1000x1000 pixels with overscan on all sides, they are also all at an angle. In the
-
Using animated Keynote graphs and charts in FCE
Hello all-- Question that I've not really seen answered. I'm trying to create an animated bar chart, which looks great in Keynote. I've given it a green background so I can chromakey it out, and saved the animation as a QuickTime movie, with compress
-
Cannot start OracleDBConsole service on Windows 2003 Server
Hello: All of a sudden, the above service does not start on a Windows 2003 server. The event log has this message: Agent process exited abnormally during initialization. Please help! Venkat