Deleting scheduled document instance

Hi! I need to schedule an instance of Webi document and delete it in case if shcedule time is greater than predefined value or instance failed. Now the main problem is how to get last instance ID
I'm trying to  do the following
String sql = "select * from CI_INFOOBJECTS where SI_KIND='"
               + CeKind.WEBI + "' and SI_ID="; + InfoObject().getID(); 
IInfoStore.schedule(  InfoStore.getUnderlying().query(sql)   );
String newInstanceRef = infoObject.properties().getProperty("SI_NEW_JOB_ID").getValue().toString();
last string cause NullPointerEx because there are no such property.. may be I'm going the wrong way and It is possible to schedule document and get new instance ID with any other way?
Thanks
Oleg

Thanks! Casting to IWebi solved my problem with getting the latest instance, then analyze its status.
        // obj - is document IInfoObject
        // last instance
        IWebi webidoc = (IWebi)obj;
        int oldLastInstanceId = webidoc.getLatestInstance().getID();
        // scheduling a new instance
        InfoStore.getUnderlying().schedule(InfoObjects);
        // latest instance
        int lastInstanceId = webidoc.getLatestInstance().getID();

Similar Messages

  • How to delete schedule line item

    Hi All,
    I want to delete schedule line entry for an item in R/3.
    How can i do this?
    Thanks,
    Nabha

    Hi,
    For some of the business documents schedule line item deletion would be partially which means mark for deletion-specially when the case of POs and so on
    other in general you need to goto the change document t-code and select the line item and you find the delete row mark in the same screen and select..
    Hope this helps..
    assign points if useful.
    cheers
    Pattan.

  • [BO XI 3.0] view document instances count is wrong

    If a user does not have the "View document instances" right and there are schedules set up for a particular report to go to other users then the count showing in InfoView is not zero, it counts all the recurring and successful instances even though that user cannot see them!
    I can't see this mentioned in fixed issues manuals for FP1, FP2 or FP3, and I can't find a fixed issues manual for BO XI 3.1
    What we want to happen is when a report is scheduled back to default destination ( i.e. public folders ) then we give the users the "View document instances" right and then the instances count would alert them to click the "view latest instance" option rather than just double clicking as they used to do in V5.1.9, but given that it counts other users schedules as well then that does not seem to be much use to alert users
    I know there is a global option to "open latest instance" but that fails because if there is not a latest instance then it does nothing when you double click
    anybody got any ideas about this?
    regards
    Andrew Dale

    tech support have logged an enhancement request for this for me

  • Documents Search - Delete Attached Documents

    Hi,
    I am trying to figure out a way to delete attached documents from CRM tickets. There are instances where the user is attaching the wrong document to an interaction record. There is currently no known way to delete this attachment. Is there a way to do this? We want to be able to delete attachment totally...not just archive.
    We are using CRM 5.0
    Thanks,
    John.

    Class CL_CRM_DOCUMENTS Static Method DELETE
    BUSINESS_OBJECT-instid =   Business Object Number / CRM Transaction Number
    BUSINESS_OBJECT-typeid = Business Object i.e BUS200126
    BUSINESS_OBJECT-catid  = 'BO'.

  • On 10.4.11 Mac Mail I get this: Mail cannot update your mailboxes because your home directory is full. You must free up space in your home folder before using Mail. Delete unnedded documents or move documents to another volume. I can't open mail.

    On 10.4.11 iMac Mac Mail I get this message: "Mail cannot update your mailboxes because your home directory is full. You must free up space in your home folder before using Mail. Delete unneeded documents or move documents to another volume." I can't open mail to do this. I have reinstalled software but no effect. How do I get into Mail to delete?

    Found this on the "more like this" Worked like a charm!
    With the Mail.app quit and using the Finder, go to Home > Library > Mail. Copy the Mail folder and place the copy on the Desktop for backup purposes.
    Go to Home > Library > Mail > Envelope Index. Move the Envelope Index file to the Desktop.
    Launch Mail and you will be prompted to import mailboxes. Select OK and allow the import process to complete.
    After confirming all mailboxes were successfully imported and available, you can delete the copy of the Mail folder and old Envelope Index file from the Desktop and this should resolve the problem.

  • How can I delete the documents in my icloud. Thanks !

    How can I delete the documents in my icloud. Thanks !

    Welcome to the Apple Community.
    iCloud.com > iWork, click to select and delete.

  • How to Delete Unreaded Document  available in Inbox .  SBWP  (T-Code).

    Dear All,
    in SBWP (T-Code) i want to delete Unreaded Documents Please guide me the process. because in unread document 9000 mails are available due to this i am not able to open this screen. and it finally result to Shot dump : Time_out Error.
    Please Guide to resolve the Issue.
    Thanks in Advance.
    Regards
    SNB.

    Dear All,
    Thanks for updating the information. But we are not able to open the Screen only  after Clicking on INBOX and then UNread document to do the further process. Do you have any Report or T-code so that i can delete it.
    Regards
    SNB.

  • How to Delete Unreaded Document  available in SBWP  (T-Code).

    Dear All,
    in SBWP (T-Code)  i want to delete Unreaded Documents Please guide me the process. because in unread document 9000 mails are available due to this i am not able to open this screen. and it finally result to  Shot dump : Time_out Error.
    Please Guide to resolve the Issue.
    Thanks in Advance.
    Regards
    SNB.

    Dear All,
    Thanks for updating the information. But we are not able to open the Screen only  after Clicking on INBOX and then UNread document to do the further process. Do you have any Report or T-code so that i can delete it.
    Regards
    SNB.

  • How to delete the BPEL instance in Java code

    Hi all,
    How to delete the BPEL instance which I initiate in Java code?
    Thanks
    Jayson

    Hi,
    take a look here
    http://download-uk.oracle.com/docs/cd/B31017_01/integrate.1013/b28986/toc.htm
    Interface IInstanceHandle
    void      delete()
    Delete the instance from the process domain.

  • ICloud Deleted a document from all my devices and I didn't want it to. Help!?

    I just upgraded my ipad and my mom's ipad to IOS5 a few days ago and I linked them both the the iCloud. What I didn't anticipate is that when I chose to allow the iCloud to work for my documents in pages, it suddenly transfered the files from my mom's ipad to mine and vise versa. Seeing these unwanted documents and not knowing what she was doing, my mom promptly deleted the documents that had been mine from her ipad and suddenly they all disappeared from mine too! I cannot find them anywhere! Can anyone help me??? I had three very important documents in there! I only have hope because my ipad says that it last backed up to the icloud yesterday at 10 PM so shouldn't that mean that my documents are floating around somewhere? I tried going into the settings for the icloud and into the files it has saved for pages but all that I found was a list of all the documents that were my moms which did not get deleted. Is there any way for me to restore my ipad to the last backup from the icloud? I assume that that should restore the documents somehow since they were there at the last restore but I could be wrong. The reason they suddenly synced together was because my mom and I just now opened our newly updated versions of pages for the first time and they asked us if we wanted to use icloud and when we chose yes they synced everything because I have my moms ipad set up with the same apple ID as mine. Any help?? If it is not possible to restore my documents can anyone at least give me some advice on how to stop this from happening again in the future? Thanks for any help!

    Sounds like you're both sharing the same iCloud account.  Don't.

  • I made a new Apple ID and I want to delete my iCloud account on my iPhone, will it delete only documents or data or it will reset my whole iPhone?

    I made a new Apple ID and I want to delete my iCloud account on my iPhone, will it delete only documents or data or it will reset my whole iPhone, like deleting my apps, contacts. Please I need your help.

    All you have to do is this: Sync your 3GS to create a current backup. Then either: Settings>General>Reset>Erase All Content & Settings or restore it as a "New" device in iTunes. Both accomplish the same thing, erasing all of your data & settings from the phone. You can now give it to your sister, she can plug it into her computer, name it what she wants & sync her content to it. You then restore your 4S from the backup of the 3GS you created when you started. Follow this by syncing your content to your new phone & your 4S will look just like your 3GS.

  • Deleting a single instance of a repeating event deletes the series

    Has anyone noticed that deleting a single instance of a repeating event (e.g. deleting tomorrow's occurrence of a regular, weekly meeting) deletes the entire series? This is when using the calendar via the iCloud.com website. I've had this happen at least 3 times.
    Configuration:
         Ubuntu Linux 10.10
         Google Chrome 12.0.742.91
    Andrew

    This happens without iCloud when you sync your calendar to MS Outlook/Exchange - it always deletes the whole series and makes it so I can never delete items from iPhone or iPad.  IOS calendar is pretty lousy - won't let you edit things like the reminder time or location of the meeting, etc.  when it comes through sync with Outlook/Exchange.
    Wish Apple would actually make their calendar app useful or let a third party release a better one.  Same goes for managing Tasks. E-mail is pretty good, but Calendar and Task management is lousy.  And we don't even get to rate these apps like we do 3rd party apps.

  • How can I delete only shared instance of a member from Hyperion Planning

    Hello,
    Can anyone tell me how I can instruct the Hyperion Planning IKM to delete a only specific instance of a shared member from Hyperion Planning? I've tried specifying the shared member, the parent of the shared instance, 'Shared' as the data storage type, and 'Delete level 0' as the operation. Instead of deleting just the shared instance under the specified parent, however, the IKM deleted the base member, which in turn deleted all shared instances of the member and all the data for the member (lucky thing I'm working in a development environment!). At one point I thought I had things working as I wanted, but now I think I must have mistaken.
    Does anyone know definitively whether only a specific instance of a shared member can be deleted from Planning and, if so, exactly how to do it?
    Thanks very much.

    Well, with a careful review of my ODI interfaces and some additional testing I found my problem. My interface for one dimension was defined exactly as it should be and it worked as expected, whereas I found I had failed to activate the mapping for the data storage property in my interface for another dimension (DOH!). Naturally, the latter interface deleted the base member because the default data storage property value is 'Store'.
    Thanks for testing and confirming that deleting only a specific shared instance of a member from Hyperion Planning does work, John.
    (P.S. to John: I can't see how to change my "Helpful" tag on your first reply to "Correct", so if you want to post another reply, I'll mark it "Correct" (for more points!). Or, if you can tell me how to modify the "Helpful" tag to "Correct" I'll do that instead.)
    Edited by: Mark on May 25, 2012 3:33 PM

  • Need to delete multiple documents at the same time from micro soft word

    I am trying to delete multiple documents  at one time from my word ??

    one way would be to click on "documents" in the sidebar of finder.  Select multiple documents by holding the shify key while you click and drag them to the trash.

  • Can't delete a document in Word 2007

    I have Windows 7 and Office 2007.  I want to delete a 6 page document which I created.
    When I attempt this action, I get the following message:
    "This action can't be completed because the file is open in MS Office Word."
    I am quite sure the file is not open.  I can delete other documents.

    Check if any other application is running and is using this doc.
    check task manager
    check opened sessions /files
    Work around.
    Modify the document and save it as another name for example  file1 save as file2, rename file1 and delete it.

Maybe you are looking for