How to search for tasks that are in a given state for a given Process

Hi,
I want to write a schedule task to pick up all tasks that are in Pending state and retry those tasks one by one, for all users on a given process definition. Can you please tell me if there is a way to do this and how?
Thanks

Hi,
you could use one of following and get more help by searching oracle docs or web search.
select * from test_tab where REGEXP_LIKE(test_column, '^T[[:digit:]]');
select * from t1 where regexp_like(a1, '^(t+[0-9]+)$');
select * from t1 where regexp_like(a1, '^([t]+[0-9]+)$');
select * from t1 where regexp_like(a1, 't[[:digit:]]{6}') or regexp_like(a1, 'T[[:digit:]]{6}');
select * from t1 where regexp_like(a1, 't[[:digit:]]{6}') or regexp_like(a1, 'T[[:digit:]]{6}');
select * from t1 where regexp_like(a1, '^(t+[0-9]+)$');
Hope this helps!
-Chan.

Similar Messages

  • How to search for the list of portal components that use a certain LOV?

    hi,
    does anyone know how to search for all of those portal components which use a certain other component?
    let's make it specific. how can i know which of the portal components (portal reports and forms, content folders, etc) are using any certain LOV?
    will really appreciate any hints.
    naqvi

    Please ask this question in the Oracle Text forum (formerly interMedia text). You will get the experts that work with it every day there.

  • HT4623 How do I close apps that are running in the background.  If you double click button you used to be able to press and hold for the "x" to come up to allow you to close, but now I can't .

    How do I close apps that are running in the background.  You used to double press the button, and then press and hold to allow the "x" to come up, so you could close them down.

    Close all apps in multi-task window
    1. Double tap the home button to bring up the multi-tasking view
    2. Swipe the app's windows upwards to close
    3. The app will fly off the screen

  • How to search for packages that Names including "'" [solved]

    Hi everyone
    first ,forgive my english lvevel
    and I want to know
    How to search for packages that Names including "'"
    for instance
    $ pacman -Ss America's Army
    it returned
    >
    Please help me ,many thanks!
    Last edited by icywalk (2010-04-05 13:09:26)

    fyi America's Army in the AUR as armyops if you're looking for it.

  • How can I find photos that are not assigned to any collection?

    Hi !
    I'm using LR 5.7.1 on a Mac.
    When I've retouched raw pictures with PS CC (and do not need the PSD file any longer) I export the PSD (that is in my catalog) as JPG and let it add to my catalog automatically. After that I delete the PSD file. That works fine.
    But .... the new JPG file is not assigned to any collection. That's no problem unless I forget to do it manually after that export (and import).
    That brings me to my question.
    How can I find photos that are not assigned to any collection?
    I tried it with a smart collection after I found nothing suitable in library filter. The search criteria I tried are Source -> Collection with any of the conditions. One with an empty value field, then with just a space and so on.
    Has anybody a good hint for me?
    Thomas

    You can also add numbers if you have collections that don't use alphabet characters.

  • How to search for a BADI in a transaction

    Hi All,
    Please let me know the steps to find a BADI for a transaction.
    Thanks,
    Jaffer Ali.S

    check this.
    u can find BADI's in different ways...
    1>First go to any transaction->iN THE menu bar SYSTEM->STATUS->Get the program name ->double click->u will go to the program attached to the tcode.Now search term will be CALL CL_EXITHANDLER.Now u will get list of BADI'S available..
    2>Goto SE24->Give class name as CL_EXITHANDLER->Display->double click on get_instance mathod->Now u will go inside the method->Now put break point on the cl_exithandler.Now go to any transaction code and pass dat..U will see that it will be stopped on the break point which u set on the cl_exithandler...In the exit name u can find list of badi's attached to the tcode..
    There are multiple ways of searching for BADI.
    • Finding BADI Using CL_EXITHANDLER=>GET_INSTANCE
    • Finding BADI Using SQL Trace (TCODE-ST05).
    • Finding BADI Using Repository Information System (TCODE- SE84).
    1. Go to the Transaction, for which we want to find the BADI, take the example of Transaction VD02. Click on System->Status. Double click on the program name. Once inside the program search for ‘CL_EXITHANDLER=>GET_INSTANCE’.
    Make sure the radio button “In main program” is checked. A list of all the programs with call to the BADI’s will be listed.
    The export parameter ‘EXIT_NAME’ for the method GET_INSTANCE of class CL_EXITHANDLER will have the user exit assigned to it. The changing parameter ‘INSTANCE’ will have the interface assigned to it. Double click on the method to enter the source code.Definition of Instance would give you the Interface name.
    2. Start transaction ST05 (Performance Analysis).
    /people/alwin.vandeput2/blog/2006/04/13/how-to-search-for-badis-trace-it
    3. Go to “Maintain Transaction” (TCODE- SE93).
    Enter the Transaction VD02 for which you want to find BADI.
    Click on the Display push buttons.
    Get the Package Name. (Package VS in this case)
    Go to TCode: SE84->Enhancements->Business Add-inns->Definition
    Enter the Package Name and Execute.
    Here you get a list of all the Enhancement BADI’s for the given package MB.
    The simplese way for finding BADI is
    1. chooes Tcode Program & package for that Tcode.
    2. Go to Tcode se18
    3. Press F4
    4. search by package or by program.
    Regards
    Kiran Sure

  • How to search for a badi

    how to search for a badi
    srinivas.

    Hi Srinivas,
    Good
    Check this link
    /people/alwin.vandeput2/blog/2006/04/13/how-to-search-for-badis-trace-it
    Run this program
    *& Report ZNEGI16 *
    REPORT ZNEGI16 .
    TABLES : TSTC,
    TADIR,
    MODSAPT,
    MODACT,
    TRDIR,
    TFDIR,
    ENLFDIR,
    SXS_ATTRT ,
    TSTCT.
    DATA : JTAB LIKE TADIR OCCURS 0 WITH HEADER LINE.
    DATA : FIELD1(30).
    DATA : V_DEVCLASS LIKE TADIR-DEVCLASS.
    PARAMETERS : P_TCODE LIKE TSTC-TCODE,
    P_PGMNA LIKE TSTC-PGMNA .
    DATA wa_tadir type tadir.
    START-OF-SELECTION.
    IF NOT P_TCODE IS INITIAL.
    SELECT SINGLE * FROM TSTC WHERE TCODE EQ P_TCODE.
    ELSEIF NOT P_PGMNA IS INITIAL.
    TSTC-PGMNA = P_PGMNA.
    ENDIF.
    IF SY-SUBRC EQ 0.
    SELECT SINGLE * FROM TADIR
    WHERE PGMID = 'R3TR'
    AND OBJECT = 'PROG'
    AND OBJ_NAME = TSTC-PGMNA.
    MOVE : TADIR-DEVCLASS TO V_DEVCLASS.
    IF SY-SUBRC NE 0.
    SELECT SINGLE * FROM TRDIR
    WHERE NAME = TSTC-PGMNA.
    IF TRDIR-SUBC EQ 'F'.
    SELECT SINGLE * FROM TFDIR
    WHERE PNAME = TSTC-PGMNA.
    SELECT SINGLE * FROM ENLFDIR
    WHERE FUNCNAME = TFDIR-FUNCNAME.
    SELECT SINGLE * FROM TADIR
    WHERE PGMID = 'R3TR'
    AND OBJECT = 'FUGR'
    AND OBJ_NAME EQ ENLFDIR-AREA.
    MOVE : TADIR-DEVCLASS TO V_DEVCLASS.
    ENDIF.
    ENDIF.
    SELECT * FROM TADIR INTO TABLE JTAB
    WHERE PGMID = 'R3TR'
    AND OBJECT in ('SMOD', 'SXSD')
    AND DEVCLASS = V_DEVCLASS.
    SELECT SINGLE * FROM TSTCT
    WHERE SPRSL EQ SY-LANGU
    AND TCODE EQ P_TCODE.
    FORMAT COLOR COL_POSITIVE INTENSIFIED OFF.
    WRITE:/(19) 'Transaction Code - ',
    20(20) P_TCODE,
    45(50) TSTCT-TTEXT.
    SKIP.
    IF NOT JTAB[] IS INITIAL.
    WRITE:/(105) SY-ULINE.
    FORMAT COLOR COL_HEADING INTENSIFIED ON.
    Sorting the internal Table
    sort jtab by OBJECT.
    data : wf_txt(60) type c,
    wf_smod type i ,
    wf_badi type i ,
    wf_object2(30) type C.
    clear : wf_smod, wf_badi , wf_object2.
    Get the total SMOD.
    LOOP AT JTAB into wa_tadir.
    at first.
    FORMAT COLOR COL_HEADING INTENSIFIED ON.
    WRITE:/1 SY-VLINE,
    2 'Enhancement/ Business Add-in',
    41 SY-VLINE ,
    42 'Description',
    105 SY-VLINE.
    WRITE:/(105) SY-ULINE.
    endat.
    clear wf_txt.
    at new object.
    if wa_tadir-object = 'SMOD'.
    wf_object2 = 'Enhancement' .
    elseif wa_tadir-object = 'SXSD'.
    wf_object2 = ' Business Add-in'.
    endif.
    FORMAT COLOR COL_GROUP INTENSIFIED ON.
    WRITE:/1 SY-VLINE,
    2 wf_object2,
    105 SY-VLINE.
    endat.
    case wa_tadir-object.
    when 'SMOD'.
    wf_smod = wf_smod + 1.
    SELECT SINGLE MODTEXT into wf_txt
    FROM MODSAPT
    WHERE SPRSL = SY-LANGU
    AND NAME = wa_tadir-OBJ_NAME.
    FORMAT COLOR COL_NORMAL INTENSIFIED OFF.
    when 'SXSD'.
    For BADis
    wf_badi = wf_badi + 1 .
    select single TEXT into wf_txt
    from SXS_ATTRT
    where sprsl = sy-langu
    and EXIT_NAME = wa_tadir-OBJ_NAME.
    FORMAT COLOR COL_NORMAL INTENSIFIED ON.
    endcase.
    WRITE:/1 SY-VLINE,
    2 wa_tadir-OBJ_NAME hotspot on,
    41 SY-VLINE ,
    42 wf_txt,
    105 SY-VLINE.
    AT END OF object.
    write : /(105) sy-ULINE.
    ENDAT.
    ENDLOOP.
    WRITE:/(105) SY-ULINE.
    SKIP.
    FORMAT COLOR COL_TOTAL INTENSIFIED ON.
    WRITE:/ 'No.of Exits:' , wf_smod.
    WRITE:/ 'No.of BADis:' , wf_badi.
    ELSE.
    FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
    WRITE:/(105) 'No userexits or BADis exist'.
    ENDIF.
    ELSE.
    FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
    WRITE:/(105) 'Transaction does not exist'.
    ENDIF.
    AT LINE-SELECTION.
    data : wf_object type tadir-object.
    clear wf_object.
    GET CURSOR FIELD FIELD1.
    CHECK FIELD1(8) EQ 'WA_TADIR'.
    read table jtab with key obj_name = sy-lisel+1(20).
    move jtab-object to wf_object.
    case wf_object.
    when 'SMOD'.
    SET PARAMETER ID 'MON' FIELD SY-LISEL+1(10).
    CALL TRANSACTION 'SMOD' AND SKIP FIRST SCREEN.
    when 'SXSD'.
    SET PARAMETER ID 'EXN' FIELD SY-LISEL+1(20).
    CALL TRANSACTION 'SE18' AND SKIP FIRST SCREEN.
    endcase.
    Solution 2
    1.Get the Package of the program name of the transaction.
    2.Go to Transaction SE18.
    3.Press F4 on the badi definition name.
    4.Click the information systems button.
    5.Give the Package name and press enter.
    6.Select the BADI that is relevant to the application.
    Good Luck and thanks
    AK

  • How can I watch presentations that are devedores by the Adobe Flash Player program in the IPad?

    How can I watch presentations that are devedores by the Adobe Flash Player program in the IPad?

    Search any of the iPad, iPhone or iPod touch forums for "flash". You'll find a number of threads on the issue with suggestions for alternative app/service combinations that allow viewing of some Flash content.
    Regards.

  • AMs and PMs - how to search for small-caps?

    In my book I'm proofreading I have a mixture of (because I was undecided when I was putting it together):
    i 7.00 a.m.
    i 7.00 am
    i 7.00am
    I ran these three options past about twenty people this morning, 6 voted for the first, 8 voted for the second, 3 voted for the third, and 1 person and myself voted for the option I can't show properly here: small-caps: 7.00 AM. Then of course there was the wag who told me: "Why don't you just say '7 o'clock in the morning' "? And the complete ratbag who suggested, in the interests of avoiding confusion: "7.00 am o'clock in the morning before lunch at 0700 hours."
    Before I make them all the same format, which will very likely be small-caps, I want to make sure I can easily search for them so I can replace with an alternative style if I change my mind again later on.
    QUES: How do I search for "AM" and "PM" (spaces before and after) if they are formatted in small-caps? I can't use paragraph styles because the AMs and PMs appear in a variety of styles already.

    Thanks for all the hints. I'm going to try some of them to see how they work. I should make it clear though (my original post may have been unclear about this) that I was asking how to search for AM in small caps AFTER I had changed all time-formats to that form.
    As for why I asked for input: I treat my book a bit like a democracy and give people a chance to vote on certain aspects and make comments just in case they have a good idea that I hadn't thought of; but yes, I'm the boss, and in terms of votes mine counts for 95%. In this case, someone suggested using a colon -- which I have taken on board. So I will be using the time format 7:30 AM to see how it looks. But if I don't like it, I want to be able to find all the small-cap AMs and change them to something else in one go.
    My interest in time-formats has stirred some interest locally. My partner proof reads a walking club magazine and she received the latest edition lat night. She has never concerned about time formats before, but after my foray into different options, she came up with the following variety (the club has lots of reports that include times when walking trips start and end), even though she thought she had done a thorough job of proof reading:
    9 am
    9.00am
    9:00 am
    9:00am
    9.am
    9 AM
    9.00a.m.
    9.00 a.m.

  • Please answer. how to search for files

    Hi,
    We need an integration with SAP. They send us files in the format: yyyymmddhhmiss.atv
    For example we receive following files:
    20050503101115.atv
    20050504101115.atv
    20050505101115.atv
    So, we dont know how to search for all files with extensions ".atv" in the directory.
    We are using PLSQL. Is there some way to resolve with UTL_FILE?
    Any other suggestion?

    A possibility:
    In sqlplus, issue a HOST command to list the files to a file:
    ls *.atv > atv_dir.txt
    Then use utl_file to read atv_dir.txt and parse it for the file names.
    You could put the filenames in a pl/sql table and use that as loop control.

  • Configuring UWL tasks that are created by a GP process

    Hello,
    We need help with configuring UWL tasks that are created by a GP process.
    In the portal (NW04s SP7), we went to System Admin > System Config > Universal Worklist Administration and then added a System called "GuidedProcedures" with the connector type "GuidedProceduresConnector".  But when we goto "Click to Administrate Item Types and View Definitions", the only gp system that we see is "uwl.gp.config".  So we have a few questions about this:
    1)     Should we be editing this XML file (uwl.gp.config)?  We were thinking that we should get another config file named uwl.GuidedProceduresConnector.<systemalias>.
    2)     Does each GP process have a unique ID? If yes, then how do we find that ID?
    Any help on this would be much appreciated…
    Thanks,
    Harman

    Hi Harman,
    There is no button to start a process directly from the UWL for ths simple reason that it is impossible to see a process template in the UWL (but in the GP Design Time).
    In the UWL, you can only display an overview of the Work Item. If you want display the form, I guess you use a Callable Object. There is unfortunetaly no possibility to do the thing differently. But, you could in the approval callable object display the input form (or a copie of it) as well as more information. For that, you could have a look at the time-off process delivered with the standard installation.
    Hope this helps you.
    Regards,
    David

  • How to remove the tasks which are not manually recoverable?

    How to remove the tasks which are not manually recoverable?
    I tried performing manual recovery for the BPEL processes but there are few tasks which cant be manually recoverable..
    Could you please tell me how to remove those tasks and also tell me which information in the console is the task_id in the database?

    This article explains how to cleanup bpel process instances, you can find task instance id by searching for data in payload using api.
    Managing a BPEL Production Environment
    http://www.oracle.com/technology/pub/articles/bpel_cookbook/blanvalet.html
    Cheers,
    Rad

  • I have lost my iPhone 5. How can I get photos that are backed up on iCloud?

    Hello,
    I have lost my iPhone 5. How can I get photos that are backed up on iCloud?
    Thanks!

    I wish, essentially you have an image file of your personal information integrated with parts of IOS in the cloud server. If you had it on your computer - you could use one of the software extractors (bunch with google search, paid and free). From icloud server it can be restored to other iphone, ipod touch, ipad - then backed up or imported to computer for you. Then that other device can return to your friend or family member. That is the only way I can think of.

  • How to search for (new) BAdIs?

    Hi,
    I found some forum threads, blogs, and wikis in sdn about "How to search for BAdIs".
    Here the list I found:
    1. SE18 u2013 BADI Definition
    2. SE81 u2013 Application Hierarchy
    3. SPRO u2013 SAP IMG Reference
    4. SE84 u2013 Object Navigator u2013 Repository Information System
    5. SPAU_ENH (ECC6.0) u2013 Enhancements -> Simple or Composite (spots, implementations, sections, upgrades)
    6. ST05 u2013 SQL Trace -> Buffer Trace
    7. SE24 -> CL_EXITHANDLER -> Breakpoint at Method GET_INSTANCE -> Run Transaction -> Exit_name -> BADI name
    The fastest ways are ST05 and SE24, I think. Are there such effective ways for the new, kernel based BAdIs? ST05 and CL_EXITHANDLER with debugger donu2019t work.
    thanks in adavance,
    Michael

    Hi,
        Missed one more method
    The below steps should enable you to find any BADI related to any transaction in a matter of minutes.
      Go to the transaction SE37 to find your function module.
      Locate the function SXV_GET_CLIF_BY_NAME.
      Put a breakpoint there.
      Now open a new session.
      Go to your transaction.
      Goto the screen where you want to find any BADI available, it will stop in this function.
      Double click on the function field EXIT_NAME.
      That will give you name of the BADI that is provided in your transaction.
      Again execute and it stop again and fill with new BADI name if any
      Repeat the same step and you come to know how many BADI exist
    Regards
    Bala Krishna

  • How to search for a particular word in a long document?

    How to search for a particular word in a long document?

    What program are you using to read the document?
    Good luck.

Maybe you are looking for

  • How to install Oracle 11g R2 Express Edition in Arch 64?

    Does anybody know how to do that? The AUR website has a package for the beta version of Oracle 11g R2 Express Edition (https://aur.archlinux.org/packages.php?ID=48366), but somebody commented that it had some problem. After a few months, I think it's

  • With multiple tabs open, crashing with no warning to close tabs and no crash report. Just bye-bye.

    I have the option to warn me before closing multiple tabs selected. I left my desk for an hour with multiple windows open. When I returned, all but 1 window disappeared. I was typing on Facebook with multiple tabs open and instantly all tabs and wind

  • I cannot get any photos into Photo Stream

    I have a MacBook Pro late 2011 updated to Mountain lion, an iPad 2 and the latest Apple TV.  I have followed the instructions on all devices to the letter and followed the help instructions in the Apple Support Section, but I cannot get a single phot

  • Itunes store is currently unavailable

    My 3rd generation apple tv will play every purchased tv show I have except one series. When I click on it, I get "itunes store is currently unavailable. try again later." If I select it from my computer via home sharing, it plays no problem. Apple TV

  • Rowspan in Grid Layout

    Hi, I am using Apex 4.2.1.00.08 and trying to do some basic design on a form. I have a couple of items and one of them is Shuttle item. I would like to position it on right side of form. I do this by setting Start New Row in Grid Layout to NO. Up to