BAPI_CATIMESHEETMGR_DELETE exception? no deletion?
Hi,
i am witting an generic sync MI application to transfer the working time of an employee to the SAP Backend(CATS).
All works fine, excepting the usage of BAPI_CATIMESHEETMGR_DELETE.
The problem looks a little bit crazy for me, because i can test the parameters with the written code in the backend and all works fine, but if i started the function from the MI i get the following failure, with the same data as it works in the backend:
E | LR | 906 | Meldungstext in Detailansicht fehlt! ...
Has anybody some advice or may have an idea?
Thanx
Tony
Marking this question as answered. We found another alternative..did not use the SHORTETEXT field.
Similar Messages
-
System exception while deleting the file from app server in background job
Hi All,
I have a issue while the deleting the file from application server.
I am using the statement DELETE DATASET in my program to delete the file from app server.
I am able to delete the file from the app server when i run the program from app server.
When i run the same report from background job i am getting the message called System exception.
Is there any secuirity which i need to get the issue.
Thank You,
TaraginiHi All,
I get all the authorization sto delete the file from application serever.
Thing is i am able to run the program sucessfully in foreground but not in the background .
It i snot giving any short dump also just JOB is cancelled with the exception 'Job cancelled after system exception ERROR_MESSAGE'.
Can anybody please give me suggestion
Thanks,
Taragini -
BAPI_CATIMESHEETMGR_DELETE exception?
Hi,
i am witting an MI application to transfer the working time of an employee to the SAP Backend.
All works fine, excepting the usage of BAPI_CATIMESHEETMGR_DELETE.
The problem looks a little bit crazy for me, because i can test the written code in the backend and all works fine, but if i started the function from the MI i get the following failure, with the same data as it works in the backend:
E | LR | 906 | Meldungstext in Detailansicht fehlt! ...
Has anybody some advice or may have an idea?
Thanx
Tony>>Or is there an easy way to disable this validation?
Iguess not.. this check is inside the standarda function pool SAPLCATS for the Time sheet. You don't have any parameters in the BAPI to disable this check.
>>>Should I try to temporarily change PA0000-stat2 from status 0 to 1, then run the BAPI and change it back to original stat2?
Why not ? as you are only playing with an terminated employee
Regards,
Suresh Datti -
Capture exceptions when deleting a file
Hello All:
I am using File.delete to delete a particular file, however this method only return a boolean to indicate the operation is succeeded or failed. In a scenario such as a file is in use and can't be deleted, this method can't give more details.
I did some search and found in the new nio2 package, the new method, Files.delete(Path) gives out more details thus satisfies me. A snippet is found here: http://download.oracle.com/javase/tutorial/essential/io/delete.html
however, this method is not available until JDK 1.7. Question, is there any APIs before 1.7 able to do the same job?
Thanks,
John
Edited by: Johnny_hunter on Apr 6, 2011 6:29 PMJohnny_hunter wrote:
however, this method is not available until JDK 1.7. Question, is there any APIs before 1.7 able to do the same job?As others have said: no; but couldn't you write your own delete utility in the meantime that provides similar information? Then all you'd need to do is change it to use the new method when it becomes available.
Winston -
Exceptions for deleting a payroll result
Hello Experts,
Is there any situation when system does not allow us to delete a payroll result????
If yes.... in what all situations will the system not allow us to delete payroll result???
All inputs are appreciated.........
Thanks,
Janga K.Hi,
You can only delete a payroll result in the following cases:
1. The employeeu2019s master data are no longer processed.
2. Payment was not yet arranged for the employee.
3. If you are working in a live system, the payroll control record for the payroll area to which the employee belongs should not yet have the status End of payroll.
Source: help.sap.com
Donnie -
Exception Thrown when deleting an object
Hello,
I am getting the following exception when deleting an object and then
creating a new one with the same application identity within the same
transaction. Why is this exception being thrown and how can I avoid this?
Thanks!
kodo.util.UserException: Operation attempted on a deleted instance.
FailedObject:[email protected]a
at kodo.runtime.JDOState.error(JDOState.java:422)
at kodo.runtime.PDeletedState.beforeOptimisticRead(PDeletedState.java:80)
at kodo.runtime.StateManagerImpl.isLoaded(StateManagerImpl.java:1343)
at
ca.chubbinsurance.pls.model.impl.EndorsementDetailItemImpl.jdoGetchangeType(EndorsementDetailItemImpl.java)
at
ca.chubbinsurance.pls.model.impl.EndorsementDetailItemImpl.getChangeType(EndorsementDetailItemImpl.java:150)
at
ca.chubbinsurance.pls.endorsement.rule.AbstractRuleTest.getDetailItem(AbstractRuleTest.java:117)
at
ca.chubbinsurance.pls.endorsement.rule.WatercraftRuleTest.testActionForIsAddressChanged(WatercraftRuleTest.java:68)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at junit.framework.TestCase.runTest(TestCase.java:154)
at junit.framework.TestCase.runBare(TestCase.java:127)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:118)
at junit.framework.TestSuite.runTest(TestSuite.java:208)
at junit.framework.TestSuite.run(TestSuite.java:203)
at com.borland.jbuilder.unittest.JBTestRunner.run(JBTestRunner.java:210)
at
com.borland.jbuilder.unittest.JBTestRunner.initiateTest(JBTestRunner.java:252)
at com.borland.jbuilder.unittest.JBTestRunner.main(JBTestRunner.java:558)You can't access persistent fields of deleted objects.
-
My list of exceptions is being deleted
Each time I put my computer to sleep or quit Firefox, my list of sites for which cookies are to be blocked or allowed (Exceptions) gets deleted.
What do I need to do to to keep this list?The file "permissions.sqlite" stores 'allow' and 'block' exceptions for cookies, images, pop-up windows, and extensions (software) installation.
Rename the file "permissions.sqlite" to permissions.sqlite.sav in the Firefox Profile Folder in case the file is corrupted.
*Help > Troubleshooting Information > Profile Directory: Open Containing Folder
This will remove all exceptions (cookies, images, pop-ups, software).<br />
If renaming didn't help then you can undo and rename the file permissions.sqlite.sav to permissions.sqlite to get back the old exceptions. -
How to delete the photos in network folder while deleting photos in iPhoto?
Hi,
How to delete the photos in network folder while deleting photos in iPhoto?
I have emptied the iPhoto Trash but the photos in network folder are still not deleted.
In iPhoto Preferences, Advance, Importing, I have UNCHECKED "Copy Items to iPhoto Library."
http://img.photobucket.com/albums/v432/philipcs/Screenshot2009-10-26at120221AM.p ng
Please help. Thanks.iPhoto is a relational database management program and manages only items that it controls - items within its library - it does not and will not do anything with any photo that is not in the library except to delete photos from cameras after import - and this is not recommended
You are running a referenced library and it is not recommended - it makes deleting photos more difficult as you are seeing, it makes importing photos more difficult and it makes replacing or upgrading hardware much more difficult
LN -
How do I improve performance while doing pull, push and delete from Azure Storage Queue
Hi,
I am working on a distributed application with Azure Storage Queue for message queuing. queue will be used by multiple clients across the clock and thus it is expected that it would be heavily loaded most on the time in usage. business case is typical as in
it pulls message from queue, process the message then deletes the message from queue. this module also sends back a notification to user indicating process is complete. functions/modules work fine as in they meet the logical requirement. pretty typical queue
scenario.
Now, coming to the problem statement. since it is envisaged that the queue would be heavily loaded most of the time, I am pushing towards to speed up processing of the overall message lifetime. the faster I can clear messages, the better overall experience
it would be for everyone, system and users.
To improve on performance I did multiple cycles for performance profiling and then improving on the identified "HOT" path/function.
It all came down to a point where only the Azure Queue pull and delete are the only two most time consuming calls outside. I can further improve on pull, which i did by batch pulling 32 message at a time (which is the max message count i can pull from Azure
queue at once at the time of writing this question.), this returned me a favor as in by reducing processing time to a big margin. all good till this as well.
i am processing these messages in parallel so as to improve on overall performance.
pseudo code:
//AzureQueue Class is encapsulating calls to Azure Storage Queue.
//assume nothing fancy inside, vanila calls to queue for pull/push/delete
var batchMessages = AzureQueue.Pull(32); Parallel.ForEach(batchMessages, bMessage =>
//DoSomething does some background processing;
try{DoSomething(bMessage);}
catch()
//Log exception
AzureQueue.Delete(bMessage);
With this change now, profiling results show that up-to 90% of time is only taken by the Azure Message delete calls. As it is good to delete message as soon as processing is done, i remove it just after "DoSomething" is finished.
what i need now is suggestions on how to further improve performance of this function when 90% of the time is being eaten up by the Azure Queue Delete call itself? is there a better faster way to perform delete/bulk delete etc?
with the implementation mentioned here, i get speed of close to 25 messages/sec. Right now Azure queue delete calls are choking application performance. so is there any hope to push it further.
Does it also makes difference in performance which queue delete call am making? as of now queue has overloaded method for deleting message, one which except message object and another which accepts message identifier and pop receipt. i am using the later
one here with message identifier nad pop receipt to delete message from queue.
Let me know if you need any additional information or any clarification in question.
Inputs/suggestions are welcome.
Many thanks.The first thing that came to mind was to use a parallel delete at the same time you run the work in DoSomething. If DoSomething fails, add the message back into the queue. This won't work for every application, and work that was in the queue
near the head could be pushed back to the tail, so you'd have to think about how that may effect your workload.
Or, make a threadpool queued delete after the work was successful. Fire and forget. However, if you're loading the processing at 25/sec, and 90% of time sits on the delete, you'd quickly accumulate delete calls for the threadpool until you'd
never catch up. At 70-80% duty cycle this may work, but the closer you get to always being busy could make this dangerous.
I wonder if calling the delete REST API yourself may offer any improvements. If you find the delete sets up a TCP connection each time, this may be all you need. Try to keep the connection open, or see if the REST API can delete more at a time
than the SDK API can.
Or, if you have the funds, just have more VM instances doing the work in parallel, so the first machine handles 25/sec, the second at 25/sec also - and you just live with the slow delete. If that's still not good enough, add more instances.
Darin R. -
VM Error when starting up or deleting
Hi,
we got a virtual machine which can not be started neither deleted (for reinstallation). Our current OVS version is 2.2.1. Trying to startup or delete this virtual machine from the OVS Manager is giving the following error:
##### STARTING UP
Start - /OVS/running_pool/lfc02_test
PowerOff failed. Result -failed:<Exception: vm('/OVS/running_pool/lfc02_test') status ('PROCESSING') not in ('DOWN', 'RUNNING', 'SUSPEND', 'ERROR')>
StackTrace:
File "/opt/ovs-agent-2.3/OVSSiteVM.py", line 155, in stop_vm
db_chkset_vm_status(vm_path, ("DOWN", "RUNNING", "SUSPEND", "ERROR"), "PROCESSING")
File "/opt/ovs-agent-2.3/OVSDB.py", line 107, in db_chkset_vm_status
raise Exception(errmsg)
##### DELETING VM
Start - /OVS/running_pool/lfc02_test
Delete failed. Result -failed:<Exception: vm('/OVS/running_pool/lfc02_test') status ('PROCESSING') not in ('ERROR', 'DOWN')>
StackTrace:
File "/opt/ovs-agent-2.3/OVSSiteUtility.py", line 247, in rm_vm
db_chkset_vm_status(vm_path, ("ERROR", "DOWN"), "PROCESSING")
File "/opt/ovs-agent-2.3/OVSDB.py", line 107, in db_chkset_vm_status
raise Exception(errmsg)
Update VM Status - Error
Any ideas?
Best regards and thanks in advance,
Marc Caubeth5. Could you please provide details about the guest, i.e. OS and virtualization mode? Please paste the vm.cfg file for us to review. Also, how much memory is in the Oracle VM server?
Guest OS - Cent OS 5.3 (~ Red Hat 5.3)
Paravirtualization Mode
bootargs = 'bridge=vlan400,mac=00:16:3E:7E:49:C5,type=netfront'
bootloader = '/usr/bin/pypxeboot'
disk = ['file:/var/ovs/mount/8537A87D5E5E4F6885CFBE475251E819/running_pool/lfc02_test/System.img,xvda,w']
memory = 8192
name = 'lfc02_test'
on_crash = 'restart'
on_reboot = 'restart'
uuid = '9003f9b3-be4f-424a-ba53-bdf7e3fd281d'
vcpus = 2
vfb = ['type=vnc,vncunused=1,vnclisten=0.0.0.0,vncpasswd=cebolla92']
vif = ['bridge=vlan400,mac=00:16:3E:7E:49:C5,type=netfront']
vif_other_config = []
h5. Also, please try to start the vm using xm create, i.e. from dom0 cd in to the virtual machine's directory in /OVS/running_pool/vm-name and then type xm create vm.cfg. Does the vm start?
I tried to start with xm create and it was started correctly, but Error status was not changed on the Manager unless forcing it first with a manual update to the DB. Enough RAM in the cluster was available to run this machine. -
Deleted calendar entries are not sync to the serve...
I'm using a E71 with MfE. The synchronization works fine except when deleting an item of the E71 calendar. The deleted item on the mobile is not deleted on the server. If I delete an item on the server the sync works correctly and the item is deleted also on the E71.
I'm using as well a Windows Mobile 6 device and there the sync with the server works correctly. Deleted items on the mobile calendar are deleted on the server too. That shows me, that the Exchange-Server is set up correctly.
Any idea what it could be?
Thx.Hello venkat,
Please check this link, It might be helpful to you. I believe you have written the code for custom button in the events.
http://help-abap.blogspot.com/2008/09/add-custom-button-on-maintianence-view.html
try to use insert statement in the event for the custom button. Let me know the peice of code you have written for this custom button.
Thanks & Regards,
Nagaraj Kalbavi -
Powershell to add/delete content type to particular library alone in a site collection
Hi,
I am trying to add and delete content type from a particular picture library (site collection) using powershell.
I have tried the below, but it is not working.
Below scenarios are not working:
1) If the content type to be added is there in library, then the loop is still moving to "No content type exists".
2) Content type is not getting deleted from library
3) Set the newly added content type as default content type.
Below is the powershell, which I am trying:
function ChangeContentType($url)
$site = Get-SPSite($url);
$web =$site.RootWeb
$lookForList = "PicLibrary"
$lookForCT = "Img1ContentType"
$lookForRemoveCT = "Image2CT"
write-host "Checking site:"$web.Title
#Make sure content types are allowed on the list specified
$docLibrary = $web.Lists[$lookForList]
if ($docLibrary -ne $null)
$docLibrary.ContentTypesEnabled = $true
$docLibrary.Update()
if (($web.ContentTypes | where { $web.Name -eq $lookForCT }) -eq $null)
write-host "No content type exists with the name" $lookForCT "on list" $docLibrary.Title
#Add site content types to the list
write-host "Adding content type " $lookForCT "on list" $docLibrary.Title
$ctToAdd = $web.ContentTypes[$lookForCT]
$ct = $docLibrary.ContentTypes.Add($ctToAdd)
write-host "Content type" $ct.Name "added to list" $docLibrary.Title
$docLibrary.Update();
else
write-host "content type exists with the name" $lookForCT "on list" $docLibrary.Title
#Remove Content type
if (($web.ContentTypes | where { $web.Name -eq $lookForRemoveCT }) -eq $null)
write-host "No content type exists with the name" $lookForRemoveCT "on list" $docLibrary.Title
else
$ctToRemove = $web.ContentTypes[$lookForRemoveCT]
write-host "Removing content type" $ctToRemove.Name "from list" $docLibrary.Title
$docLibrary.ContentTypes.Delete($ctToRemove.Id)
$docLibrary.Update()
else
write-host "The list" $lookForList "does not exist in site" $web.Title
#Dispose object
$site.Dispose()
$web.Dispose()
How to fix this?
ThanksHi,
Thanks for the reply.
I checked it. If the script is run multiple times, the add and delete content type will throw error.
How to delete content type? I have tried the below:
$docLibrary = $web.Lists[$lookForList]
if ($docLibrary -ne $null)
$docLibrary.ContentTypesEnabled = $true
$docLibrary.Update()
#get the content Type
Write-host "Getting content type $lookForCT in site $web"
#Confirm that the content type exists.
$contentType = $web.ContentTypes | where {$web.ContentTypes.Name -eq $lookForCT}
##Abort if not found.
if ($contentType -eq $null)
Write-host "$lookForCT not found in site collection."
else
if ($web.ContentTypes.Name -eq $lookForCT)
Write-host $docLibrary.ContentTypes.Name
if($docLibrary.ContentTypes.Name -eq $lookForCT)
write-host "Content type $lookForCT is already added to list" $docLibrary.Title
else
write-host "No content type exists with the name" $lookForCT "on list" $docLibrary.Title
write-host "Adding Content Type"
$ctToAdd = $web.ContentTypes[$lookForCT]
$ct = $docLibrary.ContentTypes.Add($ctToAdd)
$docLibrary.Update()
write-host "Content type" $ct.Name "added to list" $docLibrary.Title
#get the content Type
Write-host "Getting content type $lookForRemoveCT in site $web"
#Confirm that the content type exists.
$contentType = $web.ContentTypes | where {$web.ContentTypes.Name -eq $lookForRemoveCT}
##Abort if not found.
if ($contentType -eq $null)
Write-host "$lookForRemoveCT not found in site collection."
else
if ($web.ContentTypes.Name -eq $lookForRemoveCT)
Write-host $docLibrary.ContentTypes.Name
if($docLibrary.ContentTypes.Name -eq $lookForRemoveCT)
write-host "Content type $lookForRemoveCT is added to list" $docLibrary.Title.
write-host "Removing Content type $lookForRemoveCT"
$ctToRemove = $web.ContentTypes[$lookForRemoveCT]
$docLibrary.ContentTypes.Delete($ctToRemove.Id)
$docLibrary.Update()
else
write-host "No content type exists with the name" $lookForRemoveCT "on list" $docLibrary.Title
I am getting error in delete now. Error is "Exception calling "Delete" with "1" argument(s): "Specified argument was out of the range of valid values.
Parameter name: id"
Thanks -
when iam trying to delete the user from subone directory server
it is giving the following exception
Insufficient 'delete' privilege to delete the entry
how to set the privileges in sunone directory server.please send as it is very urgent for meWhat is the ID you were using to remove the user? If regular user, maybe it's the ACI of that entry prevented you from removing that entry.
-
Getting Problem after Deleting a record from Record Store
I am trying to create a simple application for mobile device. This application storing some records. I used RMS for this. These records i show in a list. But i tried to show list of records after deleting any record then list shows only prior records of deleted records n then shows exception as
Recordsjavax.microedition.rms.InvalidRecordIDException
The code i written as follows
For storing data
public void storeExercise(String EName, String Etime)
try
//System.out.println("AAAA");
recordstore = RecordStore.openRecordStore("Test3",true);
catch (Exception error)
//System.out.println("EEEE");
System.out.println("Exception"+error);
try
byte[] outputRecord;
ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
DataOutputStream outputdataStream = new DataOutputStream(outputStream);
outputdataStream.writeUTF(EName);
outputdataStream.writeUTF(Etime);
outputdataStream.flush();
outputRecord = outputStream.toByteArray();
recordstore.addRecord(outputRecord, 0, outputRecord.length);
outputStream.reset();
outputStream.close();
outputdataStream.close();
zlist.append(EName+Etime, null);
display.setCurrent(zlist);
catch (Exception error)
System.out.println("Exception in writing Records"+error);
for getting records
public void getExercise(ZimList zlist)
this.zlist = zlist;
try
//System.out.println("AAAA");
recordstore = RecordStore.openRecordStore("Test3",true);
//recordstore.closeRecordStore();
catch (Exception error)
//System.out.println("EEEE");
System.out.println("Exception"+error);
try
//System.out.println("Hello");
String Ename = null;
String Etime = null;
byte[] byteInputData = new byte[100];
ByteArrayInputStream inputStream = new ByteArrayInputStream(byteInputData);
DataInputStream inputDataStream = new DataInputStream(inputStream);
for (int x=1; x<= recordstore.getNumRecords() ; x++ )
System.out.println("Record Id ="+x);
//if (x != InvalidRecordID)
recordstore.getRecord(x, byteInputData, 0);
Ename = inputDataStream.readUTF();
Etime = inputDataStream.readUTF();
inputStream.reset();
Final = Ename + Etime;
System.out.println("Insert" + Final);
zlist.insert(x-1,Final,null);
inputStream.close();
inputDataStream.close();
//recordstore.closeRecordStore();
catch (Exception error)
System.out.println("Exception in Reading Records"+error);
/*if (recordstore.listRecordStores() != null)
try
recordstore.deleteRecordStore("My Record Store");
catch (Exception error)
System.out.println("Exception"+error);
And for deleting records I write
public void deleteExercise(int index)
try
//System.out.println("AAAA");
recordstore = RecordStore.openRecordStore("Test3",true);
//recordstore.closeRecordStore();
catch (Exception error)
//System.out.println("EEEE");
System.out.println("Exception"+error);
if (recordstore.listRecordStores() != null)
try
byte[] byteInputData = new byte[100];
ByteArrayInputStream inputStream = new ByteArrayInputStream(byteInputData);
DataInputStream inputDataStream = new DataInputStream(inputStream);
for (int x=1; x<= recordstore.getNumRecords() ; x++ )
recordstore.getRecord(x, byteInputData, 0);
if (x == index)
recordstore.deleteRecord(index);
//x--;
inputStream.reset();
break;
inputStream.close();
inputDataStream.close();
catch (Exception error)
System.out.println("Exception in Deleting Records"+error);
Please Help me bcz i am new in j2me development n having no experienceOk ...
When you add records in you store, the J2ME implementation create an ID.
In the database, there is a list like that with ID <--> ]byte[ ]
You can get back a record with a this ID.
When you delete a record, it deletes the row. Lets say you have stored 3 records and that the ID are 1, 2, 3 ... if you delete the second one, then you have still in the database IDs 1 and 3.
That's why you have this exception : you are iterating with an ID 1, 2, 3, 4, 5 ... if one is delete there is no reorganization. (If you add an other record, it could be stored with ID 2).
To read all the records, you should get a list of existing IDs. Take a look at the API. Here is a piece of code, that you work but I have not tested :
RecordStore rs;
RecordEnumeration re = rs.enumerateRecords(null, null, false);
while (re.hasNextElement()) {
String str = new String(re.nextRecord());
System.out.println("Record: " + str);
} Hope it will help you.
Regards -
After downloading photos from my camera to iPhoto I go through them and move them to their proper albums.
After that when I delete them from the "last roll" they are also deleted from the albums to which I moved them.
Thanks.
intel imac 17" Mac OS X (10.4.8) PTP225/G3/350/OS9 - powermac B&W/G4/450/OS9&10Yes, this is correct. Delete from a roll, and you delete from your library...gone forever. Delete from an album, and it remains in your library. Except that deleting from a Smart Album also deletes from your library.
Solution - don't delete from Last Roll.
Maybe you are looking for
-
After uprading to iOS 5.1 I can no longer play videos in my camera roll. I just get the following error "The requested URL was not found on this server". Anyone have any ideas?
-
Hide Command box in transactional iview
hi, I have imported the <b>Best practices for EP</b> package. In the package we have webgui transactional iviews. my concern is when i run the iview i can see the command box and from that i can run other transactions. I want to hide the command bo
-
Retreiving playlists from ipod classic
i have ipod classic from 2005 which stopped working suddenly.i couldnot save and backup my playlists.the apple store guy tells that it can't work anymore coz of the dead battery and i better throw that away..i need suggestions on how to retreive my p
-
Hello, how do I set up the print of a label when a material has been created with MM01? No goods receipt is done at this time. thank you!!
-
how to upgrade firmware on 7921g wireless phone from 1.0.2 to 1.0.4 via USB? The 7921g is connected via USB to a PC. I am using a browser to access the phone. Documentation says "Click the Phone Upgrade hyperlink under SYSTEM options. " but that opti