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.
Similar Messages
-
Event 03 in table maintenance generator
Hello All,
I have created a event 03 in table maintenance generator. Because I need to check if the deleted key is still referenced in an other table.
I tried the following code, but only if I use the message the entry will not be deleted.
MOVE uebergehen TO <mark>.
MODIFY total INDEX sy-tabix.
<xmark> = <mark>.
MODIFY extract INDEX nextline.
IGNORED_ENTRIES_EXIST = abap_true.
* MESSAGE e000 WITH 'Entry not allowed to delete'.
Thanks in advance.
Marcushad to put it in a generic form, hope it still works:
FORM event_03.
TYPES: BEGIN OF typ_extract,
zview TYPE zview, "or ztable, the one with the maintenance dialog!
flags TYPE vimtbflags,
END OF typ_extract.
DATA: ls_extract TYPE typ_extract.
* loop at marked lines
LOOP AT extract INTO ls_extract.
CHECK ls_extract-flags-vim_mark EQ 'M'.
* place existence check here!
* using the values in ls_extract-zview-...
* if value still being used, send message
IF sy-dbcnt > 0.
MESSAGE i...
ls_extract-flags-vim_mark = '*'.
MODIFY extract FROM ls_extract.
ENDIF.
ENDLOOP.
ENDFORM. -
Event code in table maintenance generator
Hi All, Need to call event in Table maintenance generator of the z table. I have to use 1st event (Select ’01’ – Before saving data in the database). Need to do fallowing job: Table cleaning : Delete all records with value year =< 2011 -New rule : No save can be done with value (Pst Var, PA,PSA, Cost = ‘ *,*,*,*’). I am attaching table entry with this mail, I have written the code for this but not sure please suggest me modification if required for this.Because i have never done this before. Thanks and Regards Sankil
hi Sankil
Some variable is not available in your code and you did not modify EXTRACT table.
Try to modify your code as blow:
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
refer event 01: http://help.sap.com/saphelp_nw04/helpdata/en/91/ca9f0ea9d111d1a5690000e82deaaa/frameset.htm
regards,
Archer -
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 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. -
Using Event 21 in Table maintenance generator
Hi,
How can i get the updated record when using event 21 in maintenance generator.>
ABINASH VERMA wrote:
> Hi,
>
> How can i get the updated record when using event 21 in maintenance generator.
Can You give Us any Idea what is Event 21 in Maintenance Generator.
Regards,
Suneel G -
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 -
Events problem in Table Maintainance Generator.
Hi,
I had created the custom table having three field in it Namely (Pernr,Begda,Endda).Here Pernr is Primary key.
So by using the TMG events '05' i had written the program as below
1) when pernr is intial Display the Error message.
2)When Begda is Greater than Ennda display the error message.
By using the above event '05' five i can able to achieve above conditions.But i got an issue after saving pernr,Begda,Enda.
so after saving the data 'pernr' becomes non editable and begda and enda is still in edit mode.If i once again change the Endda and Begda (As Begda is greater than Endda) it is saving without showing any error.So please help me to check the Begda And endda after saving also.it should only allow when Enda is Greater than Begda.
Thanks and regards
D vishnuHi vishnu vardhan
To do this, You have to use event '21'!
Keep in your mind:
Event 05 - On create new entry(ies)
Event 21 - On change already entry(ies)
Best regards,
Alexandre B. Dambrowski -
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,
PatiHi 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 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 -
How to forbid some deletes in table maintenance generator
Hey gurus,
I'm using table maintenance generator on my table and I would like to achieve that I could check whether to allow or not allow the delete action.
In other words I would like to forbid to delete those entries, which are referenced in some other tables, but I have no idea how to do it. I don't know where in the code is the Delete button is handled, or what to write in the right event to achieve my goal.
Can you tell me how. In details would be the best Thank you very much.
Best regards,
RobertDid you add some foreign key relation between the maintained table and the dependant one, not a bad idea to add some...
You can also use Event 03: Before Deleting the Display Data create a form in your dialog. (Look for samples with search tool, e.g. Thomas's answer at thread event 03 in table maintenance generator)
Regards,
Raymond -
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)". -
How to create event in table maintenance generator
Hi guys,
I need to create an event for my table maintenace generator such that when the field land1 is filled, the landx field should take its data from t005t table. and the ladnx field should be display only, it can not be modified in table maintenance.
How can i create an event in table maint. gen? How am i going to do it?
thanks always,
markHi,
As mentioned in the last post go to the event screen by
Environment --> Modifications --> Events.
There you click on new entries and try writing your logic for event 21 i.e. after selecting 21 give some name of your event and write down the logic how you want to do this.
If event number 21 does not work then try 1. One of these two should work.
Hope this helps!!!
Regards,
Lalit -
EVENTS in table maintenance Generator
Hi, can u people help me while using EVENTS in Table Maintenance Generator. Means how can I perform different task using events.
Hi,
Using events in table maintenace generator, you can validate the fields, update the fields etc..There are events(01-New Entry), (02-Before Save); (03-After Save) etc... The respective events trigger on the action performed.
To create events : Goto table maintenace generator screen->Enviorement->Modifications->Events.
Select the from the list of events and peform based on ur requirement
Regards
Shiva -
Events in table maintenance generator 01
Hi all,
I have an urgent requirement regarding the events in table maintenance generator.The requirement is i have a qty field in table i want to change the existing value it should allow only a lesser value.How to use TOTAL and EXTRACT structures.
it is urgent.please help me out.
Thanks & regards,
KranthiFollow the example below:
form get_vendor_name.
data w_extract type z_table.
data begin of w_total.
include structure z_table.
data: action,
mark,
end of w_total.
loop at extract into w_extract.
check not w_extract-z_vend_no is initial.
select single name1 from lfa1
into w_extract-z_vend_name
where lifnr = w_extract-z_vend_no.
modify extract from w_extract.
endloop.
loop at total into w_total.
check not w_total-z_vend_no is initial.
select single name1 from lfa1
into w_total-z_vend_name
where lifnr eq w_total-z_vend_no.
modify total from w_total.
endloop.
endform.
Reward points if useful.
Regards.
Maybe you are looking for
-
ITunes Match is extremely unpredictable- in the same room of my house on the same WiFi- all my devices are up to date (software wise). I will add a song on my iMac 27". To a playlist I created- Instantly the song shows in the playlist on my IPad Ai
-
Since I got the latest update, I can no longer get my Upromise Toolbar.
Last week, I downloaded the latest update for Firefox. Since then, I cannot get my Upromise toolbar to show up. I have re-downloaded the toolbar, but it still won't show up.
-
SA 540 INBOUND FIREWALL RULES NOT WORKING
Hi all, I am having trouble configuring the firewall for the SA 540. client 1 (160.222.46.154) ----- switch ------ sa 540 ------ cisco 887 W ------ client 2 (50.0.0.10). client 1 can ping client 2, however client 2 cannot ping client 1. The default o
-
Hello, I have a newly installed LMS 4.1 that had the Syslog feature working for a while. Recently, the Syslog is no longer displaying any records (neither new or old messages). Below are the steps I have tried to troubleshoot the problem: - Installed
-
I was wondering if there were any good JSP 2.0 books available in the market - I am looking for ones covering the new features like tag files, simple tags, JSP fragments, dynamic attributes, etc. Thanks.