DELETE_OLD_SNAP_RECORDS
Hello experts, I'm getting an error in this program!
form delete_old_snap_records.
data: reorg_date type d.
data: begin of delt occurs 20.
include structure snap_beg.
data: end of delt.
reorg_date = sy-datum - 28.
select distinct datum uzeit ahost uname modno mandt from snap_beg
up to 200 rows
into corresponding fields of table delt
where datum lt reorg_date and xhold <> 'X'
%_hints oracle 'INDEX("&TABLE&" "SNAP~DSX")'.
loop at delt.
<b>delete from snap</b>
where datum = delt-datum
and uzeit = delt-uzeit
and ahost = delt-ahost
and uname = delt-uname
and modno = delt-modno
and mandt = delt-mandt.
commit work.
endloop.
endform. "delete_old_snap_records
At the bolded area as delete from snap an error is occuring can you please help? This is a standard problem!
Thank you
Tatenda Chaibva
The Is as follows,
Database error 8102 at DEL access to table SNAP
Is this what you are asking?
In addition to this,
The termination is caused because exception "CX_SY_OPEN_SQL_DB" occurred in
procedure "DELETE_OLD_SNAP_RECORDS" "(FORM)", but it was neither handled
locally nor declared
in the RAISING clause of its signature.
The procedure is in program "SAPMS380 "; its source code begins in line
1031 of the (Include program "MS380F10 ".
null
Similar Messages
-
Dear All,
We have a Import PO where the currency of that vendor is JPY which is having 4 decimals. The strange thing is in PO we have 2500 qty while we received the first schedule system is allowing to do GRN for any no of qty.
But for second schedule system is not allowing GRN and throwing Dump error at the tme of 105.
For eg:
PO no: 45000023 has 2500 qty but we did grn only for 100 qty then there is no issue it allowed to do GRN
Second time for 100 qty if we try system is throwing dump error
We created new po there also only for one tme system is allowing to do gr other wise it is not allowing. We did debugging but could not able to find.
Please suggest.DEar Sir,
Please find the below dump error. I could not able to attach it as document
Category
ABAP Programming Error
Runtime Errors
MESSAGE_TYPE_X
ABAP Program
SAPMSSY0
Application Component BC-ABA-LA
Date and Time
27.03.2014 10:10:12
Short text
The current application triggered a termination with a short dump.
What happened?
The current application program detected a situation which really
should not occur. Therefore, a termination with a short dump was
triggered on purpose by the key word MESSAGE (type X).
What can you do?
Note down which actions and inputs caused the error.
To process the problem further, contact you SAP system
administrator.
Using Transaction ST22 for ABAP Dump Analysis, you can look
at and manage termination messages, and you can also
keep them for a long time.
Error analysis
Short text of error message:
COMMIT WORK during ON COMMIT or ON ROLLBACK
Long text of error message:
Technical information about the message:
Message class....... 00
Number.............. 085
Variable 1.......... " "
Variable 2.......... " "
Variable 3.......... " "
Variable 4.......... " "
How to correct the error
Probably the only way to eliminate the error is to correct the program.
If the error occures in a non-modified SAP program, you may be able to
find an interim solution in an SAP Note.
If you have access to SAP Notes, carry out a search with the following
keywords:
"MESSAGE_TYPE_X" " "
"SAPMSSY0" or "SAPMSSY0"
"%_BEFORE_COMMIT"
If you cannot solve the problem yourself and want to send an error
notification to SAP, include the following information:
1. The description of the current problem (short dump)
To save the description, choose "System->List->Save->Local File
(Unconverted)".
2. Corresponding system log
Display the system log by calling transaction SM21.
Restrict the time interval to 10 minutes before and five minutes
after the short dump. Then choose "System->List->Save->Local File
(Unconverted)".
3. If the problem occurs in a problem of your own or a modified SAP
program: The source code of the program
In the editor, choose "Utilities->More
Utilities->Upload/Download->Download".
4. Details about the conditions under which the error occurred or which
actions and input led to the error.
System environment
SAP Release..... 731
SAP Basis Level. 0006
Application server... "msqas"
Network address...... "192.168.140.89"
Operating system..... "Linux"
Release.............. "2.6.32-220.el6.x86_6"
Hardware type........ "x86_64"
Character length.... 16 Bits
Pointer length....... 64 Bits
Work process number.. 12
Shortdump setting.... "full"
Database server... "msqas"
Database type..... "ORACLE"
Database name..... "QAS"
Database user ID.. "SAPSR3"
Terminal.......... "C1031"
Char.set.... "C"
SAP kernel....... 720
created (date)... "Aug 15 2011 20:19:20"
create on........ "Linux GNU SLES-11 x86_64 cc4.3.4 use-pr101110"
Database version. "OCI_112, 11.2.0.3.0, V1, default"
Patch level. 100
Patch text.. " "
Database............. "ORACLE 10.1.0.*.*, ORACLE 10.2.0.*.*, ORACLE 11.2.*.*.*"
SAP database version. 720
Operating system..... "Linux 2.6"
Memory consumption
Roll.... 0
EM...... 37708272
Heap.... 0
Page.... 237568
MM Used. 1309640
MM Free. 2877528
User and Transaction
Client.............. 900
User................ "ADMIN"
Language key........ "E"
Transaction......... "MIGO "
Transaction ID...... "5331516F2A4E2866E1000000C0A88C59"
EPP Whole Context ID.... "5CF3FCE6DD4C1EE3ADABD70ED2D199C7"
EPP Connection ID....... 00000000000000000000000000000000
EPP Caller Counter...... 0
Program............. "SAPMSSY0"
Screen.............. "SAPMS380 0100"
Screen Line......... 3
Debugger Active..... "none"
Information on where terminated
Termination occurred in the ABAP program "SAPMSSY0" - in "%_BEFORE_COMMIT".
The main program was "SAPMS380 ".
In the source code you have the termination point in line 196
of the (Include) program "SAPMSSY0".
Source Code Extract
Line
SourceCde
166
rb_orders_wa-i_level = i_level.
167
insert rb_orders_wa into rb_orders index sy-tabix.
168
endif.
169
endif.
170
endform.
"%_order_form_for_rollback
171
172
173
174
* %_COMMIT_PREPARE
175
* Set date and time for aRFC
176
177
form %_commit_prepare using date time.
"#EC *
178
179
%_sys000-arfc-send_time = time.
180
%_sys000-arfc-send_date = date.
181
182
endform.
"%_commit_prepare
183
184
185
* FORM %_BEFORE_COMMIT
186
* called from RSYN commit.rs1
187
188
form %_before_commit.
"#EC *
189
data: l_oncom like sy-oncom.
190
data: txend type c.
191
192
* forbid COMMIT if already in ON ROLLBACK handling
193
* allow COMMIT during ON COMMIT for backward compatibilty
194
call 'GET_SWITCH_TXEND' id 'STATE' field txend.
195
if txend = 'R'.
>>>>>
message x085(00).
197
endif.
198
199
* COMMIT during CALL DIALOG/SUBMIT, POC, Update task
200
* or End Transaction event?
201
check sy-oncom <> 'N' and sy-oncom <> 'P' and
202
sy-oncom <> 'E' and sy-oncom <> 'V'.
203
* change sy-oncom to avoid recursion
204
l_oncom = sy-oncom.
205
sy-oncom = 'E'.
"E = Event Handling
206
207
* no escape out off this form other than ENDFORM
208
system-call state_limit set.
209
* Hook for Process Information Infrastructure
210
call function 'SPI_AGENT_COMMIT'.
211
* Raise event 'Commit Requested' for Object Manager
212
call method cl_os_transaction_end_notifier=>raise_commit_requested.
213
* restore sy-oncom
214
sy-oncom = l_oncom.
215
Contents of system fields
Name
Val.
SY-SUBRC
0
SY-INDEX
0
SY-TABIX
0
SY-DBCNT
0
SY-FDPOS
0
SY-LSIND
0
SY-PAGNO
0
SY-LINNO
1
SY-COLNO
1
SY-PFKEY
SY-UCOMM
SY-TITLE
ABAP Runtime Error
SY-MSGTY
X
SY-MSGID
00
SY-MSGNO
085
SY-MSGV1
SY-MSGV2
SY-MSGV3
SY-MSGV4
SY-MODNO
1
SY-DATUM
20140327
SY-UZEIT
101011
SY-XPROG
SY-XFORM
Active Calls/Events
No. Ty.
Program
Include
Line
Name
4 FORM
SAPMSSY0
SAPMSSY0
196
%_BEFORE_COMMIT
3 FORM
SAPMS380
MS380F10
1287
DELETE_OLD_SNAP_RECORDS
2 FORM
SAPMS380
MS380F10
15
INIT
1 MODULE (PBO) SAPMS380
MS380O10
14
PBO_100_MAIN
Chosen variables
Name
Val.
No.
4
Ty.
FORM
Name
%_BEFORE_COMMIT
DP_J2EE_INACTIVE
0
4
04
TXEND
R
5
2
0
0
5200
%_SYS000-ARFC-DONTSEND
2
0
0
0
2000
%_PRINT
000
0###
2222333222222222222222222222222222222222222222222222222222222222222222222222222222222222223000
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
2000200020002000300030003000200020002000200020002000200020002000200020002000200020002000200020
SY-REPID
SAPMSSY0
5454555322222222222222222222222222222222
310D339000000000000000000000000000000000
0000000000000000000000000000000000000000
0000000000000000000000000000000000000000
5300410050004D00530053005900300020002000200020002000200020002000200020002000200020002000200020
SY-MSGID
00
33222222222222222222
00000000000000000000
00000000000000000000
00000000000000000000
30003000200020002000200020002000200020002000200020002000200020002000200020002000
%_SYS000
00000000000000
2333333333333332222222222222222222222222
0000000000000000000000000000000000000000
0000000000000000000000000000000000000000
0000000000000000000000000000000000000000
2000300030003000300030003000300030003000300030003000300030002000200020002000200020002000200020
RST_VB_DISPATCHING_INFO
0
A
0A
SPACE
2
0
0
0
2000
SY-MSGNO
085
333
085
000
000
300038003500
%_TIME_CONFIRMED
001000
333333
001000
000000
000000
300030003100300030003000
SY-MSGV1
22222222222222222222222222222222222222222222222222
00000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000
2000200020002000200020002000200020002000200020002000200020002000200020002000200020002000200020
SY-MSGV2
22222222222222222222222222222222222222222222222222
00000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000
2000200020002000200020002000200020002000200020002000200020002000200020002000200020002000200020
SY-MSGV3
22222222222222222222222222222222222222222222222222
00000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000
2000200020002000200020002000200020002000200020002000200020002000200020002000200020002000200020
SY-MSGV4
22222222222222222222222222222222222222222222222222
00000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000
2000200020002000200020002000200020002000200020002000200020002000200020002000200020002000200020
SY-ONCOM
N
4
E
0
0
4E00
SYST-REPID
SAPMSSY0
5454555322222222222222222222222222222222
310D339000000000000000000000000000000000
0000000000000000000000000000000000000000
0000000000000000000000000000000000000000
5300410050004D00530053005900300020002000200020002000200020002000200020002000200020002000200020
TH_BOOL
0
0
00
%_DUMMY$$
2222
0000
0000
0000
2000200020002000
No.
3
Ty.
FORM
Name
DELETE_OLD_SNAP_RECORDS
DELT-DATUM
00000000
33333333
00000000
00000000
00000000
30003000300030003000300030003000
%_DUMMY$$
2222
0000
0000
0000
2000200020002000
DELT-UZEIT
000000
333333
000000
000000
000000
300030003000300030003000
SY-REPID
SAPMS380
5454533322222222222222222222222222222222
310D338000000000000000000000000000000000
0000000000000000000000000000000000000000
0000000000000000000000000000000000000000
5300410050004D00530033003800300020002000200020002000200020002000200020002000200020002000200020
DELT-AHOST
22222222222222222222222222222222
00000000000000000000000000000000
00000000000000000000000000000000
00000000000000000000000000000000
2000200020002000200020002000200020002000200020002000200020002000200020002000200020002000200020
SYST-REPID
SAPMS380
5454533322222222222222222222222222222222
Maybe you are looking for
-
Refresh database I need to automise the process
Hello All, I need to automise the process of refreshing the database. The scenario is: I have one database intance and I need to copy the database to another instance every day. How is the best way to do this? Regards
-
Updating the contents of a file fails
Hi, I am trying to modify the contents of a file and then write the modifications back to the same file but I keep getting an empty file . What am I doing wrong here? import java.io.*; import java.lang.String; public class UpdateFile{ public static v
-
Dear all, Kindly find below image,in this al the raw materials are showing in Planned order,but it has to display as Sch line,purreq,po items.I dont know what changes i have done.kindly please let me know Regards Rajasekaran
-
We have an action that at the end of a course the student clicks a Course Completion button and is navigated to a evaluation form. In our courses that were published from a CP5 project the new page opened in another window and presented the form. I
-
Java seem it not portalble !!!
Could you please run and compare demo between OS windows and linux. Demo code: import java.awt.event.*; import javax.swing.*; public class TestTheDialog1 extends JFrame implements ActionListener { JButton myButton = null; public TestTheDial