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

Similar Messages

  • Using SQL Query for page item source does not insert populated value

    Hi All,
    Following are the attribute details of a certain page item on an edit form:
    Display As: Text Field
    Page Item Source Type: SQL Query
    Source value Expression: SELECT a from tab where id = 'ABC'
    Although the field appears populated on the screen, but the value is not inserted in the table.
    Can anyone help on this?
    Thanks in advance,
    Annie

    Annie:
    One solution is to define a pl/sql function that given a date will return the 'run-date'. Something like create or replace function get_prod_date(p_date in date) return date is
    retval date;
    begin
    select run_date into retval from tab_x where run_date=p_date;
    return retval;
    end;Change the Source Type for the page-item back to 'Database Column'
    Set Source value or expression to the 'database column name'
    Set 'Post calculation computation' to be
    get_prod_date(:pxx_date)
    Varad

  • Configure SQL Developer for use with SSL

    Having trouble getting this working, Can someone point me towards the necessary steps or things to check?

    Search for the other posts about "SSL" in this forum, useful info and tips there.
    Have fun,
    K.

  • Microsoft Home Office 2007 Used with Windows7 will not update

    I am new to HP support customer sold a bill of goods about the great support none found so far. I was put on hold forever and told by 3 techs they would call back to help or hung up on.. Some game they run to get you off the phone. Guess what nothing happened.... Not sure what I paid for so far except a lot of half baked not helpful BS..... As for the problem I fixed it myself Microsoft had a fix it software on the website. HP is asleep or needs to hire more people................

    I'm glad to hear that I'm not the only person struggling with exact issue.  I've rebooted, upgraded, re-installed, pulled all my hair out as nothing works.
    The biggest dissapointment with this thread is that nobody seems to have responded with a solution.
    And yes I've managed to pull together enough intellegence to tick the box "sync to outlook" in iTunes - still nothing man.
    Definately does not sync from phone to PC and is very hit and miss on PC to Phone.  In other words now running 2 seperate calendars - Not helpful Jan.

  • This driver is locked for use with embedded applications - SQL Server

    Hello guys,
    Background:
    I developed an application using JSC2 with MS SQL Server 2000 as the database and Sun Application Server PE 8 as App Server. During development, I am able to deploy and test it. But as soon as I've installed Sun Application Server PE 8 on our Production Server, exported my app there and tried to execute it, I get the error
    "This driver is locked for use with embedded applications".
    I just wanna ask, though I've seen other threads saying that the only solution is to buy the EE or SE of Sun App Server, isn't there really any work-around with this?
    Thanks very much for your help.

    OK, that is the same setup we have (Creator built application running with MS SQL Server).
    I wrote a tutorial talking about integrating Creator with Spring. In it you will find out how to use SQL Server with a Creator built app running on the Platform Edition. That tutorial can be found here: http://swforum.sun.com/jive/thread.jspa?threadID=52657&tstart=15
    In short, look to jTds.
    Hope this helps.

  • When will isis wallet be available for use with the iphone

    When will isis wallet be available for use with the iphone?

    I just found this information at https://www.paywithisis.com/help.html
    It says: Coming soon for iPhone® - To use the Isis Mobile Wallet on an iPhone 4, iPhone 4S or iPhone 5, you’ll need an Isis Ready case containing a Near Field Communication (NFC) antenna. Check with your mobile carrier for availability.

  • Will the iPhone 5c be abel for use with a Norvegian operator if I buy the phone in the US?

    Will the iPhone 5c be abel for use with a Norvegian operator if I buy the phone in the US? Im going on a vacation to USA in a few days, and i dont know when the phone will come to norway, so if it's possible, i would like to buy it in the US! Is it then possible for me to use it in Norway when i get back with a Norvegian operator?

    Jules Francis,
    The model numbers are different and each is carrier locked to their respective carriers.
    Even if they were not, the £269 price in the UK includes VAT. The price without VAT is £228.94
    The price in the U.S. Store does not include sales tax. Last time I checked sales tax in New York City is 8.375%.
    If you compare the pre-tax prices the difference is approximately £24. The rest of the difference is taxes.
    Hope this helps,
    Nathan C.

  • I am traveling to Italy from U.S. and bought American Tourister Worldwide Adaptor Plug for my iPhone 5 andiPad 2. The instructions saying is not for use with grounded plugs and can only be connected with non-grounding circuits. Will this adaptor work?

    I am traveling to Italy and bought an American Tourister Worldwide Adaptor a plug for my iPhone 5 and iPad 2. The instructions say it is not for grounding use and not for use with grounded plugs. Will this work?

    That adaptor should work.

  • Adobe Acrobat package built with CCP will not completely install

    Adobe Acrobat package built with CCP will not completely install.  It starts out fine as if it is installing then suddenly disappears with no errors.   I am installing it under the local administrator account and simply double clicking on the setup.exe created in the build folder.  Am I missing something??

    Hi rivera2u & TRU Software,
    I believe you are just double clicking on the Exception Deployer and not running the same from the command prompt . Mentioned below is the syntax that we need to use while using Exception Deployer on your machine(s).
    ExceptionDeployer  
        --workflow=install
        --mode=pre|post
        --INSTALLDIR=<path_of_installation directory>
        --installLanguage=<locale_code for Acrobat>
        --abortOnFail
        --help
    The same is mentioned in the link shared by Abhijit earlier.
    Please do let us know if this works for you or not.
    Cheers,
    Kartikay Sharma

  • Best drum loops for use with Logic? Ease of use, usability, etc.

    Hi,
    I have BFD2 but find it slow to load and sometimes clumsy auditioning loops within Logic. I love the Apple Loops library but I wondered if people are importing MIDI drum files for use with Logic. Do all drum files use the same MIDI mapping? If I drop a BFD2 loop into a Logic drum virtual instrument will it work? I bought a few packs from Groove Monkee but have yet to use them with Logic. I only use them within BFD2.
    I'm basically looking for a seamless way to stay within Logic to improve my workflow. It's taken me days sometimes to get a drum track right by going back and forth with BFD2. Is there a concept I'm missing that would make it easier?
    Thanks

    try Stylus RMX by Spectrasonics. http://www.youtube.com/watch?v=FlgP1q1HCj4

  • How can a type defined in a PL/SQL package be used by an object?

    How can a type defined in a PL/SQL package be used by an object?
    In the PL/SQL Reference manual it says that object attributes can be
    types defined inside a PL/SQL package: How do you make this work?
    Here is a sample that demonstrates what I am trying to do:
    CREATE OR REPLACE
    PACKAGE Phone IS
    TYPE Phone_rectype IS RECORD (
    Main VARCHAR2(12),
    Home VARCHAR2(12),
    Business VARCHAR2(12),
    Mobile VARCHAR2(12),
    Fax VARCHAR2(12),
    Pager VARCHAR2(12)
    END Phone;
    CREATE OR REPLACE
    TYPE customer_type
    AS OBJECT (
    CustNo NUMBER,
    CustName VARCHAR2(30),
    PhoneNumber Phone.Phone_rectype
    This is the error that i get:
    Warning: Type created with compilation errors.
    Errors for TYPE CUSTOMER_TYPE:
    LINE/COL ERROR
    0/0 PL/SQL: Compilation unit analysis terminated
    5/15 PLS-00201: identifier 'PHONE.PHONE_RECTYPE' must be declared
    null

    That's a good point, Justin - thanks for the advice. At the moment, our process of data validation isn't very well defined, so the table definitions aren't always the same beyond a core set. As we get more automated and able to develop table definitions flexible enough to accomodate all the quirks in client data, I may be able to consider moving to a single schema to take advantage of maintenance and performance improvements. My ultimate concern with doing that is that the datasets we're dealing with can be tens of millions of rows in size. Clearly, I'm no DBA, but I just assumed that we would be able to churn through these datasets faster if they were in a schema by themselves rather than lumped together into one huge half-a-billion row table?

  • [Oracle JDBC Driver]This driver is locked for use with embedded application

    Hi
    I installed Sun Java Studio Enterprise 8, and am trying to connect to my Oracle database using the attached tutorial code.
    The code compiles fine, but I get the following error whenever I run the file: [Oracle JDBC Driver]This driver is locked for use with embedded application
    I don't understand what is happening.
    Using the Runtime navigation panel on the upper left of the IDE screen, I can right-click and connect to the database, and navigate database files, using the Oracle JDBC Driver that came with JSE8.
    Name: Oracle Driver
    Driver: com.sun.sql.jdbc.oracle.OracleDriver
    Database URL: jdbc:sun:oracle://JAZZPUP:1521;SID=REPO
    If the driver is installed, and can be used to connect to a database by right-clicking on the database definition in the Runtime panel, why can't I connect to it just using java code in the IDE. I would expect both methods to work or to fail, not one of each using the same IDE.
    Many thanks and take care,
    Shayne
    import java.sql.*;
    public class CreateCoffees {
    public static void main(String args[]) {
    //String url = "jdbc:mySubprotocol:myDataSource";
    String url = "jdbc:sun:oracle://JAZZPUP:1521;SID=REPO";
    Connection con;
    String createString;
    createString = "create table COFFEES " +
    "(COF_NAME VARCHAR(32), " +
    "SUP_ID INTEGER, " +
    "PRICE FLOAT, " +
    "SALES INTEGER, " +
    "TOTAL INTEGER)";
    Statement stmt;
    try {
    //Class.forName("myDriver.ClassName");
    Class.forName("com.sun.sql.jdbc.oracle.OracleDriver");
    } catch(java.lang.ClassNotFoundException e) {
    System.err.print("ClassNotFoundException: ");
    System.err.println(e.getMessage());
    try {
    //con = DriverManager.getConnection(url, "myLogin", "myPassword");
    con = DriverManager.getConnection(url, "login", "password");
    stmt = con.createStatement();
    stmt.executeUpdate(createString);
    stmt.close();
    con.close();
    } catch(SQLException ex) {
    System.err.println("SQLException: " + ex.getMessage());
    } //end class CreateCoffees
    ---

    There are two similar threads:
    http://swforum.sun.com/jive/thread.jspa?threadID=61327&tstart=0
    http://swforum.sun.com/jive/thread.jspa?threadID=51057&messageID=188210
    To summarize - the DataDirectDriver that is shipped with the IDE seems to be locked to be used inside the IDE only because of some licensing issues etc..
    That's weird, I agree. I will raise a question on reasons for such a behavior.
    The solution would be to use Oracle's own driver, that is distributed at no charge from their web site - http://www.oracle.com/technology/software/tech/java/sqlj_jdbc/index.html
    HTH,
    Kirill

  • Many 3rd party apps that I have used before now will not open with the alert "XYZ application cannot be opened because the identity of the developer cannot be confirmed"  Why now?

    Many 3rd party apps that I have used before now will not open with the alert "XYZ application cannot be opened because the identity of the developer cannot be confirmed"  Why now since I updated Mavericks?

    The format in which a developer has to sign his application in order for it to be recognized as signed has changed. Update the applications, wherever possible.
    To make a one-time exception to the security policy, follow these instructions. They apply to Installer packages and other installable items as well as applications.

  • Does an upgrade to ilife 11 contain idvd for use with mountain lion (10.8.5)?

    Does an upgrade to ilife 11 contain iDVD for use with mountain lion (10.8.5)?  I received an advertisement about upgrading to iLife 11 and it discusses sharing via iDVD, which was disabled when I upgraded to Mountain Lion OS 10.8.5.  Would purchasing the iLife 11 download restore the functionality of iDVD, or is this just another way to get the sheep to upgrade iMovie with no way to export to iDVD or equivalent.  Why is there no Apple warning that Mountain Lion disables and does not support iDVD?  I used to think Microsoft was a trickster, but I'm of the opinion that Apple meets or exceeds their slippery machinations.  Am I just stuck with purchasing a 3rd party software to replace iDVD?

    If iDVD was not preinstalled on your Mac you'll have to obtain it by purchasing a copy of the iLife 09 disk from a 3rd party retailier like Amazon.com: ilife 09: Software or eBay.com.  Why, because iDVD (and iWeb) was discontinued by Apple over a year ago. 
    Why iLife 09 instead of 11?
    If you have to purchase an iLife disc in order to obtain the iDVD application remember that the iLife 11 disc only provides  themes from iDVD 5-7.  The Software Update no longer installs the earlier themes when starting from the iLIfe 11 disk nor do any of the iDVD 7 updaters available from the Apple Downloads website contain them. 
    Currently the only sure fire way to get all themes is to start with the iLife 09 disc:
    This shows the iDVD contents in the iLife 09 disc via Pacifist:
    You then can upgrade from iDVD 7.0.3 to iDVD 7.1.2 via the updaters at the Apple Downloads webpage.
    Export the slideshow out of iPhoto as a QT movie file via the Export button in the lower toolbar.  Select Size = Medium or Large.
    Open iDVD, select a theme and drag the exported QT movie file into the open iDVD window being careful to avoid any drop zones.
    Follow this workflow to help assure the best qualty video DVD:
    Once you have the project as you want it save it as a disk image via the File ➙ Save as Disk Image  menu option. This will separate the encoding process from the burn process. 
    To check the encoding mount the disk image, launch DVD Player and play it.  If it plays OK with DVD Player the encoding is good.
    Then burn to disk with Disk Utility or Toast at the slowest speed available (2x-4x) to assure the best burn quality.  Always use top quality media:  Verbatim, Maxell or Taiyo Yuden DVD-R are the most recommended in these forums.
    OT

  • I have an external hard drive that was formatted by a PC and has files and directories etc. I want to format it and use it on my IMAC for backup but I can't seem to write to it nor can I delete current content. How do I initialize it for use with the MAC?

    I have an external hard drive that was formatted by a PC and has files and directories copied to it etc. I want to use it on my IMAC for backup. I see it on my my IMAC . I can open files etc.  But I can't seem to write to it nor can I delete current content. I don't care if I lose current content. How do I initialize it for use with the MAC?

    You can't write to it because it's formatted as NTFS which OS X will read but not write to. If you want to continue using the drive with both a PC and OS X you will need to download and install NTFS-3G so you can then write to it from your Mac. You can get NTFS-3G at:
    http://www.macupdate.com/app/mac/24481/ntfs-3g
    If you want to use the drive exclusively with your Mac then move the data off it and reformat it in Disk Utility (Applications - Utilities - Disk Utilities) as Mac OS Extended (Journaled.)

Maybe you are looking for

  • HT204266 Hi, I have a problem with my app store. It doesn't open. Can you help please ?

    Hi, I have a problem with my app store. It doesn't open. Can you help please ?

  • The Mystery Of Free Public WiFi

    Almost everywhere I travel, I see a Computer-to-Computer network listed call 'Free Public Wi-Fi'. Clearly that's not what it is (oh, and I can see it now, in some hotel in the armpit of Ohio), so I guess it must be some bizarre PC phenomenon that has

  • USB 3.0 hub recommendation?

    I bought an Anker USpeed 7-port USB 3.0 hub that I thought would work great to allow me to connect 4 USB hard drives to my MacBook Pro (Retina, Mid 2012) and a few other USB devices (printer, keyboard, etc). It doesn't. Unfortunately this specific hu

  • No AAC audio in Premiere CC 2014.1? [bug - resolved]

    --- Original post for reference I just updated to Premiere CC 2014.1 today. I have a set of files that I regularly convert with Handbrake into MP4s with an AAC audio stream. I have had no problems at all with CS6, CC, and CC 2014. But now with CC 201

  • Sales order while MRP run

    Hello friends; My requirement is such that when i run mrp in MD02, system should not consider those sales order that are planned in previous MRP run. System should consider new sales orders that are created after MRP run. Waiting for reply. Thanks.