Rule Result not returned back to Workflow container

Hi ,
We have a workflow where the approver for a Process is Manager of  any Orgunit .
Now the manager is determined using a Rule with Category u201CFunction To be executedu201D .
The Business requirement is so that If the immediate manager for any Orgunit is not maintained it will traverse through the entire Org structure unless the Manager is determined.  So the Level of the First approver could be of any value starting from 01.
We also have Deadline  monitoring active .
Incase the first approver  doesnu2019t act within 7 days  the Work item should go to the next level Manager ( second  approver ).
The level of the second  approver depends on the level of the First approver .
Example : If  the level of the First approver   is 3 then the level of the second approver  would be 4 or more.
              : If  the level of the First approver   is 2 then the level of the second approver  would be 3 or more.
Hence to achieve the Level dynamically we need to pass the Level of the first  approver  from the Rule to the Workflow  so that it can be used for determining  the next level manager in the next task.
In the Function Module which determines the first approver  I have got the Value for the Level .
I also have assigned that value to the Rule Container (_WI_RESULT , this is the only parameter which can be used for the Export )  using the Macro SWC_SET_ELEMENT  .
I also have done the  binding from the Rule to the Workflow. But the value is not populated in the Workflow container .
Could any one please help me  on solving this ??  Any other idea to achieve this is functionality is welcome too.
Regards,
Raka

Hi  Arghadip,
First of all thanks for the reply .
We alreday have some logic  like this in place .
But we want to imporve the system performance .
We get the agent in one task from the Rule .
Now again if we try to get the same agent in a method ,won't it be doing the same task twice.
So we are trying to return the manager Counter value from the Rule container itself to the Workflow container so that it can be used to get the escalation manager.
Regards,
Raka

Similar Messages

  • Remove_column( ) of cl_wd_table not returning back the column reference

    Am using the remove_column( ) of cl_wd_table to remove a particular table column & also get the reference of a the same for inserting at a different position. But the system doesn't return back any value. I tried doing a get_column( ) before doing the remove_column( ) but even that wasn't able to get the reference to that column. I debugged & observed that the system was internally reading an internal table ME->ch_COLUMNS to get the list of columns but this table was empty and so the READ was failing.
    method GET_COLUMN.
      CLEAR the_COLUMN.
      IF index > 0.
       READ TABLE ME->ch_COLUMNS INDEX index INTO the_COLUMN.
      ELSE.
       READ TABLE ME->CH_COLUMNS WITH KEY TABLE_LINE->ID = ID INTO
       THE_COLUMN.
      ENDIF.
    endmethod.
    I had bound the TABLE to a context node based on dictionary structure SCARR & 3 fields CARRNAME, CARRCODE & URL.  Please advise as to why the column references aren't available.
    Uday

    Hi Suman,
    Thanks for the reply.
    In WDDOMODIFYVIEW I have put the below coding:
    method WDDOMODIFYVIEW .
      check first_time = abap_true.
      wd_this->gr_table ?= view->get_element( id = 'TABLE' ).
    endmethod.
    I need to change the table column position when the user clicks on a pushbutton. The attribute context_element is an importing parameter of type if_wd_context_element and have declared gr_table in view attributes as of type CL_WD_TABLE.  The coding is as below:
    method ONACTIONMOVE_DOWN .
      data: old_index type i,
            new_index type i,
            lr_column type ref to cl_wd_table_column.
      old_index = context_element->get_index( ).
      check old_index < 3.
      lr_column = wd_this->gr_table->get_column( index = old_index ).
      wd_this->gr_table->remove_column( index = old_index ).
      new_index = old_index + 1.
      wd_this->gr_table->add_column( the_column  = lr_column
                                     index       = new_index ).
    endmethod.
    By the way I have noticed something else while debugging inside the standard code for get_column( ). The ME->CH_COLUMNS is empty but there is another attribute ME->CH_GROUPED_COLUMNS which has the type ref info for the 3 columns which am displaying in the TABLE. I haven't set anything specific properties for the table either. Any inputs from your side would be very useful.
    Edited by: Uday on Aug 29, 2008 11:09 AM

  • F4 values in POP UP not returning back to Grid

    Halo
    I  have an ALV Grid with some columns. When I click on f4 value on a column it shows the popup from the Domain values . When I double click on the POpup value . its not returning any values to screen grid and My grid is in edit mode only.Couls you please help

    have you kept I_SAVE = 'X' ?
    keep this in the ALV FM.
    like :
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
      EXPORTING
        i_callback_program       = sy-repid "make sure you add this
        i_grid_title             = 'TEST OUTPUT'
        it_fieldcat              = fcat
        i_save                   = 'X' " and this
        it_events                = gte
      TABLES
        t_outtab                 = gt_sc_head.

  • Return order BUS2102 Workflow container data not populated

    Hi All,
    Please requesting you to provide your advise on the below issue.
    I have created a custom workflow with business object BUS2102
    In the Workflowtemplate (E.g. WS90000XXX)
    i have included the triggering event for BUS2102 with EVENT "CREATED" and
    added a container element SDReturnCN of type BUS2102
    Once the Return Order is created the Workflow is getting triggered successfully
    but data is not populated into the container SDReturnCN.
    Do i need to write and EXIT to populate container UNLIKE as in Credit memo bussiness object :BUS2094
    if yes please let me know which part i am missing.
    Thanks & Regards,
    Veeru.

    Hello,
    "but data is not populated into the container SDReturnCN."
    Check the bindings. Where is the value coming from?
    regards
    Rick Bakker
    hanabi technology

  • Search results not returning file names correctly

    Have an onsite SharePoint Server 2010 Enterprise that contains a number of documents in a document library all containing the word "south" in their title. When a search is run with the keyword "south" all 3 files are shown in the results but only one displays
    the correct title. The other 2 display alternate text (in this case the company name). The links all 3 results are correct, however the title of results is incorrect for 2 out of the 3.
    I have duplicated these results using Office 365 and another on site SharePoint 2010 server.
    I have duplicated these results converting the documents to DOCX format under Word 2007 and Word 2010.
    Obviously, this is an issue with the files, however any ideas where to start looking to uncover where the SharePoint Server is pulling the information from? 
    In the end I need all 3 results to display the current name of the files it finds, not simply some random text with the files from 2 out of 3 of the results.
    Thanks
    Robert Crane
    www.ciaops.com 

    Could it be because of this?
    Pasted from here:
    http://bpostutor.com/post/Hidden-SharePoint-2010-Feature-Changes-Document-Titles-in-Search-Results.aspx
    Hidden SharePoint 2010 Feature Changes Document Titles in Search Results
    SharePoint 2010 has a interesting feature which you may not know about.  It's called Optimistic Title.  It's part of the Office Search engine within SharePoint.  What it does is determine a new, hopefully more relevant title for your documents
    to be displayed in your search results based on document properties or the actual contents of the document (i.e. Text within the file).  As you might expect this is closely tied to the Office document formats such as Word, PowerPoint, Excel, OneNote,
    and Visio.  Your end users may report that the titles that they see for search results differ greatly from the file name or the actual title of the document.  This is particularly evident with PowerPoint files where the name of the first slide
    is often used. The behavior is not entirely predictable.  Different results can be expected from Office 2007 and Office 2010 created files and even those created in earlier versions of Microsoft Office. 
    If you want to change this functionality you need to actually go and edit the registry on your Search role server(s) within your SharePoint farm, restart the osearch14 service and then do a full crawl.  The key you want to modify is the EnableOptimisticTitleOverride.
    The default setting is 1. Change it to 0 to disable the feature.

  • My shipping items had been canceled as per apple store delivery status message, however my money still not return back to my visa account, and as per the visa bank the money already taken by apple store and purchasing had been approved

    Order Number: W412401371
    had been canceled as per the below massege:
    our item(s) have been canceled. You won't be charged and all authorizations placed on your credit card are removed.
    but since 2/18/2013 till today date 3/3/2013 i dindt received the moany and visa bank informed me that money had been burchased to Apple Store, so please your support is highly required to clirify this issue.

    As this is a User to User Forum... you will need to Contact whomever you were dealing with.

  • Values of F4 help are not returned.

    Hi,
    I had a requirement to add a F4 help  for batches in VL02n transaction.
    It is using a collective search help MCH1for the F4 help .
    I created 1 elemntary search help ,with a necessary view.
    I then added my elementary search help to the collective helpp MCH1.I dint write any search help exit for this.
    Everything is working fine ,but the F4 help values does not return back.
    I do F4 on batches , it gives me  the dialog screen and returns the batches,I select the batch and the pop up goes off.
    The batch selected doed not return.
    Please suggest.
    Thanks,
    Suchi.

    You must link the parameter of your elementary search help to those of the collective search help, the minimal action is to link the exported parameter of the collective search help - map at least MCH1 CHARG parameter to the batch number exported in your Z_STOCK_SERHLP search help.
    Read the documentation
    - [Creating Elementary Search Helps|http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ee5f446011d189700000e8322d00/frameset.htm] to define export parameter
    - [Creating Collective Search Helps|http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ee86446011d189700000e8322d00/frameset.htm] to link export parameter in elementary and collective search help
    Position the cursor one after the other on each allocated search help and choose Parameter assignment.
    In the next screen, enter the parameter names of the elementary search helps to which the corresponding parameters of the collective search help should be assigned in the field Reference parameter.
    You can select the parameters contained in the included search help using the input help. Create a proposal for the assignment with Proposal.
    Regards,
    Raymond

  • MSCS failover to B node does not return to normal

    Good morning!
    We click "move group" on MSCS A node, and the resources go to the B node
    successfully.
    However, above resources does not return back to A node after the specified
    time in the cluster configuration.
    There is no error log.
    Could you please tell how to fix this?
    Thanks!

    Hi,
    It will not come automatically to normal automatically. You have to move resources to node A manually.
    Thanks
    Sunny

  • TimesTen Queries not returning

    We are evaluating TimesTen IMDB Cache as an option to improve our performance of queries that do aggregate operations across millions of rows.
    My environment is a Windows Server 2003 R2 X64 with Intel Xeon X5660 16 CPU cores, and 50G of RAM. The database is Oracle Enterprise 11.2.0.2.
    I have the following DSN parameters.
    DataStore Path + Name : H:\ttdata\database\my_ttdb
    Transaction Log Directory : H:\ttdata\logs
    Database Character Set: WE8MSWIN1252
    First Connection:
    Permanent Data Size: 26000
    Temporary Data Size: 1600
    IMDB Cache:
    PassThrough :1
    Rest of the parameters are default.
    I have created 2 read only cache groups and 1 asynchronous write-through cache group.
    The first read only cache group is on a table A with 108 rows , the second read only cache group is on table B with 878689 rows and table C is the fact table with 20.5 million rows.
    I have loaded these cache groups. Now I am trying to do join queries across these tables that do aggregation and group by on some measures in table C.
    I have seen using dssize that the data has been loaded in permanent data area.
    These queries execute in Oracle in around 5s and my expectation was that these would return in sub-seconds.
    But these queries are not returning back at all even after hours. I have looked at the query plan and I do not have any lookups which say that they are not indexed.
    I have even tried simpler join queries without any aggregation. Even those get stuck. The only queries that I have been able to run are select * from tables.
    What may be wrong in this setup/configuration ? How do I debug what is causing the problem.
    Thanks,
    Mehta

    Dear user2057059,
    Could you specify more details about your question:
    - Tables structure (columns, indexes, constraints)
    - Could you post your query with execution plan
    20 M rows it is not a big database especially for your hardware.
    In my example:
    CPU: Intel Core 2 Duo CPU 2.33 GHz,
    RAM: 4 GB DDR2
    HDD: 100 Gb SATA-II
    OS: Fedora 8 x64 (Linux 2.6.23.1-42.fcb)
    +
    Oracle TimesTen 7.0.5.0.0 (64 bit Linux)
    Command> select count(*) from accounts;
    Query Optimizer Plan:
      STEP:                1
      LEVEL:               1
      OPERATION:           TblLkSerialScan
      TBLNAME:             ACCOUNTS
      IXNAME:              <NULL>
      INDEXED CONDITION:   <NULL>
      NOT INDEXED:         <NULL>
    < 30000000 >
    1 row found.
    average time - 1,920321 sec, direct connection. Regards,
    Gennady

  • Scanjet 4890 light bar travels to end of scanning glass and will not return to beginning

    My ScanJet 4890 sometimes does not work properly.  In the preview mode, the light bar will sometimes travel to the end of the scanner with light on and not return back.  The motor gets a high pitched whine.  I have to turn the scanner off and back on the get the light bar to return to the starting position.  Sometimes it does work properly.    How do I fix my scanner?
    This question was solved.
    View Solution.

    I found an unusual solution to my own problem.  I drilled a hole in the front of the scanner case.  Then when the light bar gets stuck, I poke a pencil through the hold and give the light bar a shove.  The bar moves on it's own and returns to it's parked position. Then,  I can continute without turning the scanner on and off.  I suspect that the motor needs to be replaced, which I may eventually do if I can find the right one.

  • Windows 8.1 PC, using reader, when searching a folder containing approx 100 doc's. If i search for a word, no results are returned. only the doc names can be found but nothing from within the doc. This is a new problem and was not the case before.

    Windows 8.1 PC, using reader, when searching a folder containing approx 100 doc's. If i search for a word, no results are returned. only the doc names can be found but nothing from within the doc.
    This is a new problem and was not the case before.

    Works perfectly fine for me with the latest Reader version (11.0.09).
    You write that it worked "before"; before what?  An update?  Update from what version to what version?

  • XQuery not returning any results when doc contains ENTITY refs

    Dear Forum members,
    I am a bdbxml newbie so please be gentle.
    I am trying to run xqueries against a TEI P5 document on bdxml 2.4.13 using Oxygen 9 (I'm also using Python and the API - it's not working either)
    My XML contains transcripts of poems written in medieval Welsh. There are a lot of Entity references which I am including at the start of the document as:
    <?oxygen RNGSchema="http://www.tei-c.org/release/xml/tei/custom/schema/relaxng/teilite.rng" type="xml"?>
    <!DOCTYPE TEI [
    <!ENTITY aacute     "&#x00E1;"> <!-- LATIN SMALL LETTER A WITH ACUTE -->
    <!ENTITY Aacute     "&#x00C1;"> <!-- LATIN CAPITAL LETTER A WITH ACUTE -->
    <!ENTITY acirc     "&#x00E2;"> <!-- LATIN SMALL LETTER A WITH CIRCUMFLEX -->
    <!ENTITY Acirc     "&#x00C2;"> <!-- LATIN CAPITAL LETTER A WITH CIRCUMFLEX -->
    <!ENTITY agrave     "&#x00E0;"> <!-- LATIN SMALL LETTER A WITH GRAVE -->
    <!ENTITY Agrave     "&#x00C0;"> <!-- LATIN CAPITAL LETTER A WITH GRAVE -->
    <!ENTITY aring     "&#x00E5;"> <!-- LATIN SMALL LETTER A WITH RING ABOVE -->
    <!ENTITY Aring     "&#x00C5;"> <!-- LATIN CAPITAL LETTER A WITH RING ABOVE -->
    <!ENTITY atilde     "&#x00E3;"> <!-- LATIN SMALL LETTER A WITH TILDE -->
    <!ENTITY Atilde     "&#x00C3;"> <!-- LATIN CAPITAL LETTER A WITH TILDE -->
    <!ENTITY auml     "&#x00E4;"> <!-- LATIN SMALL LETTER A WITH DIAERESIS -->
    <!ENTITY Auml     "&#x00C4;"> <!-- LATIN CAPITAL LETTER A WITH DIAdERESIS -->
    <!ENTITY aelig     "&#x00E6;"> <!-- LATIN SMALL LETTER AE -->
    <!ENTITY AElig     "&#x00C6;"> <!-- LATIN CAPITAL LETTER AE -->
    <!ENTITY ccedil     "&#x00E7;"> <!-- LATIN SMALL LETTER C WITH CEDILLA -->
    <!ENTITY Ccedil     "&#x00C7;"> <!-- LATIN CAPITAL LETTER C WITH CEDILLA -->
    <!ENTITY eth     "&#x00F0;"> <!-- LATIN SMALL LETTER ETH -->
    <!ENTITY ETH     "&#x00D0;"> <!-- LATIN CAPITAL LETTER ETH -->
    <!ENTITY eacute     "&#x00E9;"> <!-- LATIN SMALL LETTER E WITH ACUTE -->
    <!ENTITY Eacute     "&#x00C9;"> <!-- LATIN CAPITAL LETTER E WITH ACUTE -->
    <!ENTITY ecirc     "&#x00EA;"> <!-- LATIN SMALL LETTER E WITH CIRCUMFLEX -->
    <!ENTITY Ecirc     "&#x00CA;"> <!-- LATIN CAPITAL LETTER E WITH CIRCUMFLEX -->
    <!ENTITY egrave     "&#x00E8;"> <!-- LATIN SMALL LETTER E WITH GRAVE -->
    <!ENTITY Egrave     "&#x00C8;"> <!-- LATIN CAPITAL LETTER E WITH GRAVE -->
    <!ENTITY euml     "&#x00EB;"> <!-- LATIN SMALL LETTER E WITH DIAERESIS -->
    <!ENTITY Euml     "&#x00CB;"> <!-- LATIN CAPITAL LETTER E WITH DIAERESIS -->
    <!ENTITY iacute     "&#x00ED;"> <!-- LATIN SMALL LETTER I WITH ACUTE -->
    <!ENTITY Iacute     "&#x00CD;"> <!-- LATIN CAPITAL LETTER I WITH ACUTE -->
    <!ENTITY icirc     "&#x00EE;"> <!-- LATIN SMALL LETTER I WITH CIRCUMFLEX -->
    <!ENTITY Icirc     "&#x00CE;"> <!-- LATIN CAPITAL LETTER I WITH CIRCUMFLEX -->
    <!ENTITY igrave     "&#x00EC;"> <!-- LATIN SMALL LETTER I WITH GRAVE -->
    <!ENTITY Igrave     "&#x00CC;"> <!-- LATIN CAPITAL LETTER I WITH GRAVE -->
    <!ENTITY iuml     "&#x00EF;"> <!-- LATIN SMALL LETTER I WITH DIAERESIS -->
    <!ENTITY Iuml     "&#x00CF;"> <!-- LATIN CAPITAL LETTER I WITH DIAERESIS -->
    <!ENTITY ntilde     "&#x00F1;"> <!-- LATIN SMALL LETTER N WITH TILDE -->
    <!ENTITY Ntilde     "&#x00D1;"> <!-- LATIN CAPITAL LETTER N WITH TILDE -->
    <!ENTITY oacute     "&#x00F3;"> <!-- LATIN SMALL LETTER O WITH ACUTE -->
    <!ENTITY Oacute     "&#x00D3;"> <!-- LATIN CAPITAL LETTER O WITH ACUTE -->
    <!ENTITY ocirc     "&#x00F4;"> <!-- LATIN SMALL LETTER O WITH CIRCUMFLEX -->
    <!ENTITY Ocirc     "&#x00D4;"> <!-- LATIN CAPITAL LETTER O WITH CIRCUMFLEX -->
    <!ENTITY ograve     "&#x00F2;"> <!-- LATIN SMALL LETTER O WITH GRAVE -->
    <!ENTITY Ograve     "&#x00D2;"> <!-- LATIN CAPITAL LETTER O WITH GRAVE -->
    <!ENTITY oslash     "&#x00F8;"> <!-- CIRCLED DIVISION SLASH -->
    <!ENTITY Oslash     "&#x00D8;"> <!-- LATIN CAPITAL LETTER O WITH STROKE -->
    <!ENTITY otilde     "&#x00F5;"> <!-- LATIN SMALL LETTER O WITH TILDE -->
    <!ENTITY Otilde     "&#x00D5;"> <!-- LATIN CAPITAL LETTER O WITH TILDE -->
    <!ENTITY ouml     "&#x00F6;"> <!-- LATIN SMALL LETTER O WITH DIAERESIS -->
    <!ENTITY Ouml     "&#x00D6;"> <!-- LATIN CAPITAL LETTER O WITH DIAERESIS -->
    <!ENTITY szlig     "&#x00DF;"> <!-- LATIN SMALL LETTER SHARP S -->
    <!ENTITY thorn     "&#x00FE;"> <!-- LATIN SMALL LETTER THORN -->
    <!ENTITY THORN     "&#x00DE;"> <!-- LATIN CAPITAL LETTER THORN -->
    <!ENTITY uacute     "&#x00FA;"> <!-- LATIN SMALL LETTER U WITH ACUTE -->
    <!ENTITY Uacute     "&#x00DA;"> <!-- LATIN CAPITAL LETTER U WITH ACUTE -->
    <!ENTITY ucirc     "&#x00FB;"> <!-- LATIN SMALL LETTER U WITH CIRCUMFLEX -->
    <!ENTITY Ucirc     "&#x00DB;"> <!-- LATIN CAPITAL LETTER U WITH CIRCUMFLEX -->
    <!ENTITY ugrave     "&#x00F9;"> <!-- LATIN SMALL LETTER U WITH GRAVE -->
    <!ENTITY Ugrave     "&#x00D9;"> <!-- LATIN CAPITAL LETTER U WITH GRAVE -->
    <!ENTITY uuml     "&#x00FC;"> <!-- LATIN SMALL LETTER U WITH DIAERESIS -->
    <!ENTITY Uuml     "&#x00DC;"> <!-- LATIN CAPITAL LETTER U WITH DIAERESIS -->
    <!ENTITY yacute     "&#x00FD;"> <!-- LATIN SMALL LETTER Y WITH ACUTE -->
    <!ENTITY Yacute     "&#x00DD;"> <!-- LATIN CAPITAL LETTER Y WITH ACUTE -->
    <!ENTITY yuml     "&#x00FF;"> <!-- LATIN SMALL LETTER Y WITH DIAERESIS -->
    <!ENTITY lab "<">
    <!ENTITY rab ">">
    <!ENTITY amp "&amp;">
    <!ENTITY dash "-">
    <!ENTITY delta "d">
    <!ENTITY macron "-">
    <!ENTITY mdash "-">
    <!ENTITY nbsp "">
    <!ENTITY pound "">
    <!ENTITY cdb "c">
    <!ENTITY ddb "d">
    <!ENTITY ldb "l">
    <!ENTITY rdb "r">
    <!ENTITY udb "u">
    <!ENTITY umac "u">
    <!ENTITY wacute "w">
    <!ENTITY wcirc "w">
    <!ENTITY Wcirc "W">
    <!ENTITY ycirc "y">
    <!ENTITY Ycirc "Y">
    <!ENTITY vbar "vbar">
    ]>
    <TEI xmlns="http://www.tei-c.org/ns/1.0">
    <teiHeader>
    <fileDesc>
    <titleStmt>
    <title>...
    When I try an run a simple xquery like //TEI I'm not get any results. However, if I hack the XML source to remove all entity references, remove the ENTITY declarations and reload the document into bdbxml then the xqueries work. Can anyone offer any insght into why this situation may have arisen and how I might get around it? It seems as if the presence of the ENTITY declarations is somehow effecting the internal index...
    all help appreciated,
    AL

    Big thanks to John,
    I've been a typical newbie and not really understood everything implied by John's very helpful answer in this thread. Now that I now understand how to reference namespaces correctly, John's previous answer really does hit the mark.
    Big thanks
    Here is the working code. The important thing to remember for any other newbies is to always preface the query with the namespace - which I was not doing.
    declare namespace tei="http://www.tei-c.org/ns/1.0";
    doc("source.xml")//tei:body
    or
    declare namespace tei="http://www.tei-c.org/ns/1.0";
    doc("source.xml")//tei:head
    etc.

  • Pl/sql package for use with workflow will not return a value

    hi all,
    just trying to intercept a requisition being turned into an order if it uses a certain cost code. so i have amended the workflow and created a package to check what cost centre a requisition is using. how over the workflow stops on the function that calls the package witha a status of complete as if the package is not returning any values.
    the package is as below:
    CREATE OR REPLACE PACKAGE APPS.xxhccWFcapitalcheck AS
    procedure XXHCC_CHECK_CAPITAL(itemtype in varchar2,
    itemkey in varchar2,
    actid in number,
    funcmode in varchar2,
    resultout out NOCOPY vARCHAR2);
    END xxhccWFcapitalcheck;
    CREATE OR REPLACE PACKAGE BODY APPS.xxhccWFcapitalcheck AS
    procedure XXHCC_CHECK_CAPITAL(itemtype in varchar2,
    itemkey in varchar2,
    actid in number,
    funcmode in varchar2,
    resultout out NOCOPY varchar2 ) is
    x_progress varchar2(100);
    x_resultout varchar2(30);
    l_doc_mgr_return_val VARCHAR2(1);
    l_doc_string varchar2(200);
    l_preparer_user_name varchar2(100);
    doc_manager_exception exception;
    p_test varchar2(100);
    l_req_id varchar2(30);
    CURSOR p_line_id IS
    SELECT
    codes.segment2 cost_center
    FROM
    po_requisition_headers_all headers,
    po_requisition_lines_all lines,
    po_req_distributions_all dist,
    gl_code_combinations_v codes
    WHERE
    headers.requisition_header_id = lines.requisition_header_id
    AND
    lines.requisition_line_id = dist.requisition_line_id
    AND
    dist.code_combination_id = codes.code_combination_id
    AND
    headers.segment1 = l_req_id;
    line_rec p_line_id%rowtype;
    BEGIN
    -- Do nothing in cancel or timeout mode
    --if (funcmode <> wf_engine.eng_run) then
    -- resultout := wf_engine.eng_null;
    -- return;
    -- end if;
    l_req_id := wf_engine.GetItemAttrNumber (itemtype => itemtype,
    itemkey => itemkey,
    aname => 'DOCUMENT_NUMBER');
    --FOR line_rec in p_line_id
    ---loop
    open p_line_id;
    fetch p_line_id into l_doc_string;
    close p_line_id;
    IF p_line_id= 'Q9DEF'
    dbms_output.put_line p_line_id;
    Then resultout := 'COMPLETE:F';
    return;
    p_test := 'USE DIFFERENT CODE';
    ELSE
    resultout := 'COMPLETE:T';
    return;
    END IF;
    END LOOP;
    end;
    END xxhccWFcapitalcheck;
    any help would be great!

    Hi Community,  first of all, english is not my native language and im not sure to use the correct terms for PowerCenter - so if im wrong please help me correct and make clear what we need. We have a kind of 3-steps ToDo. First step: Load data from an external source into a "local" datastore (its an oracle db on a server in our "hands")Second step: Check data against several verifications, this is done with a PL/SQL Package. The PL/SQL Package shall be called with an Interfacename who is set in the First PowerCenter Mapping. Our current thoghts are to do this via a stored procedure, which runs as "Target Post Load" and gets a variable "Interface Name".Is that possible? Im not quite sure about it. About the last part its even more unclear how we can solve it:Third part should be switch back to PowerCenter now - and the package (or to be correct a function in the package) should return a value for "okay everything fine => workflow continue" or "something happened => workflow is stopped" Im not sure how i can handle this. I hope my explanations are good enough so you can provide some help?!If there are any questions please ask!  Thank you alot, best regards, Christian

  • Fuzzy search not returning results?

    I'm executing a phonetic search on the nm_resource column. my application allows a call center employee to search on the resource name (nm_resource), if the resource is not found then they will enter a new one. The problem is someone may have already entered the resource name but spelled it incorrectly resulting in duplicate records for the same resource name. To enable the call center to retrieve records that may have the same sound but are spelled differently we have implemented the fuzzy search capability of Oracle text. Things have been going very nicely for the most part with the exception of this one issue we're trying to understand.
    Using the query below we're searching for the resource name "rosies" the actual record in the database was entered as "rosy's". the search returns (rosies,rosie's,rosys) and does not return ---> rosy's <--- the record i'm interested in
    it is reasonable to expect rosy's to be returned in the result set? my query should retunn the max fuzzy expansions and all fuzzy scores.
    select score(1), nm_resource, ADDR_RSRC_ST_LN_1, id_resource, ADDR_RSRC_CITY FROM caps_resource where
    CONTAINS (nm_resource,'fuzzy(rosies, 0, 5000, weight)',1)>0
    union
    select /*+index(caps_resource ind_caps_resource_8)*/ 10, nm_resource, ADDR_RSRC_ST_LN_1, id_resource, ADDR_RSRC_CITY from caps_resource 
    where NM_RESOURCE_UPPER like upper(replace(replace('%' || 'rosies' || '%',' '), '-'))
    and rownum<500 order by 1 DESC;
    any help explaining this is much appriciated.
    Regards,

    When you index "Rosy's", by default it sees the apostropohe as a delimiter and tokenizes and indexes "Rosy" and "s" separately. So, you could only find it by searching the singular form or the singular form obtained by using stemming. However, if you set the apostrophoe as a skipjoin, then it tokenizes and indexes "Rosys" as one token that you can then search for that using "rosies":. Please see the demonstration below. You might also be interested in soundex, which can be used with Oracle Text, or the functions in the utl_match package or metaphone.
    SCOTT@orcl_11g> CREATE TABLE caps_resource
      2    (nm_resource  VARCHAR2 (30))
      3  /
    Table created.
    SCOTT@orcl_11g> INSERT ALL
      2  INTO caps_resource VALUES ('Rosy''s')
      3  SELECT * FROM DUAL
      4  /
    1 row created.
    SCOTT@orcl_11g> SELECT * FROM caps_resource
      2  /
    NM_RESOURCE
    Rosy's
    SCOTT@orcl_11g> CREATE INDEX your_text_idx ON caps_resource (nm_resource)
      2  INDEXTYPE IS CTXSYS.CONTEXT
      3  PARAMETERS
      4       ('STOPLIST CTXSYS.EMPTY_STOPLIST')
      5  /
    Index created.
    SCOTT@orcl_11g> SELECT token_text FROM dr$your_text_idx$i
      2  /
    TOKEN_TEXT
    ROSY
    S
    SCOTT@orcl_11g> SELECT * FROM caps_resource
      2  WHERE  CONTAINS (nm_resource, 'FUZZY (rosies, 0, 5000, weight)') > 0
      3  /
    no rows selected
    SCOTT@orcl_11g> DROP INDEX your_text_idx
      2  /
    Index dropped.
    SCOTT@orcl_11g> BEGIN
      2    CTX_DDL.CREATE_PREFERENCE ('your_lexer', 'BASIC_LEXER');
      3    CTX_DDL.SET_ATTRIBUTE ('your_lexer', 'SKIPJOINS', '''');
      4  END;
      5  /
    PL/SQL procedure successfully completed.
    SCOTT@orcl_11g> CREATE INDEX your_text_idx ON caps_resource (nm_resource)
      2  INDEXTYPE IS CTXSYS.CONTEXT
      3  PARAMETERS
      4    ('STOPLIST CTXSYS.EMPTY_STOPLIST
      5        LEXER       your_lexer')
      6  /
    Index created.
    SCOTT@orcl_11g> SELECT token_text FROM dr$your_text_idx$i
      2  /
    TOKEN_TEXT
    ROSYS
    SCOTT@orcl_11g> SELECT * FROM caps_resource
      2  WHERE  CONTAINS (nm_resource, 'FUZZY (rosies, 0, 5000, weight)') > 0
      3  /
    NM_RESOURCE
    Rosy's
    SCOTT@orcl_11g>

  • Office Telemetry Agent Last Run Result 0x800700005 and machines not reporting back in the Telemetry Dashboard

    We have had the Office Telemetry Dashboard setup for a while now as part of our Office 2013 evaluation and it currently reports back on 117 Computers which roughly matches up with the number of agents we have deployed. However, I have recently discovered
    that some computers do not show up on the dashboard when searching under either their computer name or username. Having looked locally at these machines they report a Last Run Result code of 0x800700005 on the Task Scheduler. Not exactly sure what this
    means as I know its a fairly generic code. I can run the telemetry dashboard locally on the effected machines and all appears ok. I have looked at the main Telemetry Processor Log file on our server (%windows%\ServiceProfiles\NetworkService\AppData\Local\Temp\dperrorlog.txt)
    and can see there are quite a few machines reporting that Office Telemetry Processor deleted the folder \\ServerName\SharedFolderName\ComputerNameReference because the files in the folder haven't been uploaded for more than 2 hours. I tried googling this error
    but got nothing back.
    The machines in question are running Windows 7 Enterprise SP1, Office 2013 and the telemetry agent is configured through Group Policy. We also have a number of Office 2007 clients
    running the agent but I have not yet checked to see if any of these ones are not reporting back.
    Can anyone help troubleshoot this issue further to try and establish why some machines are not showing up in the dashboard logs. I have gone through the troubleshooting info here http://technet.microsoft.com/en-us/library/jj219431.aspx#tshooting
    but so far can't find a solution.
    Thanks.

    I tried running the agent as admin and it returned a last run result of 0x41301 which I believe means the Task is currently running but its been like this for several days with nothing being reported back yet.
    For all the other agents that appear to be running fine they show up on the dashboard with each non-admin username which is what we need to run reports based on individual users so I cant understand why this would be a permissions problem. The permissions
    on the shared folder were setup using the automated option when installing the telemetry processor on the server. I have tried just adding in one of the problem users to have full control to see if this makes a difference but have not tested this yet.
    Anyone have any tips on troubleshooting the DPErrorLog file? There doesn't appear to be much out there in the way of documentation for this stuff. Is anyone else using the Telemetry Dashboard successfully as part of their Office 2013 evaluation? 
    Thanks.

Maybe you are looking for

  • Notes not mirroring in Mail on Mac and iPhone

    Hi, I've had a problem with accessing/viewing/syncing Notes created on my iPhone, both viewing and syncing on my mac in Mail. Every time I click on a note in Mail on my mac, I get a 'loading' graphic and spinning ball, but no note appears. Ever. Not

  • User Wise Vendor/Customer Master

    Hi All Scenario Business is having 4 location, all 4 location is having 4 sales person(User) . Now E.g Location A is having 100 Customer which handling by Sales Person A  and  Location B is having 200 Customer which handling by Sales Person B   I don

  • Have itunes on seagate harddrive..want to transfer to windows 7 laptop

    I transferred my itunes library to seagate hard drive when travelling - now want it all on a new laptop - running windows 7. Tried drag & drop but it wont play the songs - only works with hard drive plugged in :-( what do i need to do to get the song

  • Get ORA-32157 when dml on multiple rows using iterations

    I've used setMaxIterations() of oracle::occi::Statement to insert 50 rows successfully but sometimes throws exception: "ORA-32157: Infinity not supported". I don't know clauses. Please help me to fix it.

  • Print Web Addresses on Safari v1.3.2

    I am using an older version of Safari (1.3.2) and would like to know if there is a way to print the address of the web site on the page when I print? MiniMac   Mac OS X (10.3.9)