How to show execution error message from a Process

hi
i have a requirement like to display the error messsage returned by the proceure.
I have a process with point After Submit and validations, where i am calling a procedure which returns the execution status with SUCCESS or FAILURE;
and if it FAILURE, it will return the error_message also, how can i show this message to the user just like how we are showing the process success message/validation message.
And i need to stop the process execution there itself once its got failed;
how can i achieve these two? anyone can give some inputs....
thanks in advance
renjish

paul and denes, thanks for the quick reply...
i tried the both option the message is coming properly. but the thing is i want to stop the execution there itself where i got the error from the procedure and the page should be remained in the same page.
currently i have a page 10(customer search screen), from there i called page 102 (customer edit screen) and in the page 102 i attached the process which includes the procedure to update the customer details;
Normally if update is success, the procedure will return SUCCESS and its navigating to the page 10(customer search screen.). so here if FAILURE is returning by procedure, i need to be in the same page i.e 102(customer edit) by showing the error message..just like a validation message...
currently whatever the procedure returns either SUCCESS or FAILURE, it goes to previous screen, but i need the method just like how the validation works if it fails.
hope you got....
regards
renjish

Similar Messages

  • How to show custom error message in WebADI Excel template?

    Hi,
    I've  created a custom Web ADI integrator and associated it with a 'Procedure' based custom interface.
    WebADI Interface API Returns is set to  "Error Message".
    I'm using  raise_application_error(-20001, "Actual Error Message") for invalid rows,but custom error message from PL/SQL  is not populated on the excel template.
    Instead it is showing "SQL exception occurred during PL/SQL upload".
    Am I missing anything? How to show custom error message from Pl/SQL procedure to WebADI Excel template?
    TIA
    Narasimha

    The custom API errors are visible in the BNE log but not on the Excel.
    BNE Log=>
    12/10/13 2:52 PM Web ADI Upload Job 13008 ERROR          BnePLSQLUpload.doUpload: Exception while uploading to PL/SQL API.  Error Code: 20001, Message: ORA-20001: -Please enter CONTAINER_ID -  Enter PO_NO -
    ORA-06512: at "APPS.XXPO_COSTFACTS_WEBADI_PKG", line 264
    ORA-06512: at line 1
    12/10/13 2:52 PM Web ADI Upload Job 13008 ERROR          BnePLSQLUpload.doUpload: Stack trace: java.sql.SQLException: ORA-20001: -Please enter CONTAINER_ID -  Enter PO_NO -
    ORA-06512: at "APPS.XXPO_COSTFACTS_WEBADI_PKG", line 264
    ORA-06512: at line 1
      at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:439)
      at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:395)
      at oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:802)
      at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:436)
      at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:186)
      at oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:521)
      at oracle.jdbc.driver.T4CCallableStatement.doOall8(T4CCallableStatement.java:202)
      at oracle.jdbc.driver.T4CCallableStatement.executeForRows(T4CCallableStatement.java:1005)
      at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1307)
      at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3449)
      at oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.java:3550)
      at oracle.jdbc.driver.OracleCallableStatement.execute(OracleCallableStatement.java:4710)
      at oracle.jdbc.driver.OraclePreparedStatementWrapper.execute(OraclePreparedStatementWrapper.java:1374)
      at oracle.apps.bne.integrator.upload.BnePLSQLUpload.doUpload(BnePLSQLUpload.java:284)
      at oracle.apps.bne.integrator.upload.BneSAXUploader.processDeepestLevel(BneSAXUploader.java:2346)
      at oracle.apps.bne.integrator.upload.BneSAXUploader.startElement(BneSAXUploader.java:1182)
      at oracle.xml.parser.v2.XMLContentHandler.startElement(XMLContentHandler.java:181)
      at oracle.xml.parser.v2.NonValidatingParser.parseElement(NonValidatingParser.java:1288)
      at oracle.xml.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:336)
      at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:303)
      at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:234)
      at oracle.apps.bne.integrator.upload.BneUploader.processUpload(BneUploader.java:301)
      at oracle.apps.bne.integrator.upload.BneAbstractUploader.processUpload(BneAbstractUploader.java:114)
      at oracle.apps.bne.integrator.upload.async.BneAsyncUploadThread.run(BneAsyncUploadThread.java:140)
    12/10/13 2:52 PM AJPRequestHandler-HTTPThreadGroup-5 WARNING        BneOracleWebAppsContext.getTimeZone CLIENT_TIMEZONE_ID has not been set
    12/10/13 2:52 PM AJPRequestHandler-HTTPThreadGroup-5 ERROR          BneOracleWebAppsContext.getExtraJDBCConnection recieved the same connection as the base connection.  There may be transaction problems.
    How to show the same error in the excel template?
    Here is the package:
    CREATE OR REPLACE PACKAGE BODY APPS.XXPO_COSTFACTS_WEBADI_PKG
    AS
       PROCEDURE upload_data (
                              P_CONTAINER_ID IN VARCHAR2
                            , P_SAIL_DATE IN DATE
                            , P_PO_NO IN VARCHAR2                     
                             ) IS
        --declare
        lv_err_msg      VARCHAR2(240);
        lf_err_flag     NUMBER := 0;
        ln_temp         NUMBER;
        BEGIN
        --------------------- checking for mandatory parameters---------------------------
          IF (P_CONTAINER_ID IS NULL) THEN
             lf_err_flag := 1;
             lv_err_msg := lv_err_msg||'-'||'Please enter CONTAINER_ID - ';
          END IF;
          -------------Validation for Sail Date Format----------------------
          IF (P_SAIL_DATE IS NULL) THEN
             lf_err_flag := 1;
             lv_err_msg := lv_err_msg || ' ' || 'Enter Sail Date - ';
          ELSE
             BEGIN
                SELECT 1
                  INTO ln_temp
                  FROM DUAL
                 WHERE P_SAIL_DATE =  TO_DATE (TO_CHAR (P_SAIL_DATE, 'DD-MON-YYYY'), 'DD-MM-YYYY');
             EXCEPTION
                WHEN NO_DATA_FOUND THEN
                   lf_err_flag := 1;
                   lv_err_msg := lv_err_msg || ' Enter Sail date in DD-MON-YYYY Format';
                WHEN OTHERS THEN
                   lf_err_flag := 1;
                   lv_err_msg := lv_err_msg || ' Enter Sail date in DD-MON-YYYY Format'|| SQLERRM;
             END;
          END IF;
          -------------Validation for PO_Number----------------------
          IF (P_PO_NO IS NULL) THEN
             lf_err_flag := 1;
             lv_err_msg := lv_err_msg || ' ' || 'Enter PO_NO - ';
          ELSE
             BEGIN
                SELECT count(1)
                  INTO ln_temp
                  FROM PO_HEADERS
                 WHERE Attribute4 =  P_PO_NO;
             EXCEPTION
                WHEN NO_DATA_FOUND THEN
                   lf_err_flag := 1;
                   lv_err_msg := lv_err_msg || ' No Oracle PO for Biceps PO#'||P_PO_NO;
                WHEN OTHERS THEN
                   lf_err_flag := 1;
                   lv_err_msg := lv_err_msg || ' Error getting the Oracle PO for Bicpes PO#'||P_PO_NO||' Error-' || SQLERRM;
             END;
          END IF;
         -----------------------Insert Record----------------------------
         IF lv_err_msg is NULL THEN
         BEGIN
             INSERT
              INTO XXP2P_HW_COST_FACTORS_STG
                     CONTAINER_ID
                    ,SAIL_DATE
                    ,PO_NO
                    , ERROR_FLAG
                    , ERROR_MSG
                   ,CREATED_BY
                    ,CREATION_DATE
                    ,LAST_UPDATED_BY
                    ,LAST_UPDATE_DATE
                    ,LAST_UPDATE_LOGIN              
                VALUES
                     P_CONTAINER_ID
                    ,P_SAIL_DATE
                    ,P_PO_NO              
                    ,lf_err_flag
                    ,lv_err_msg
                  ,FND_GLOBAL.USER_ID
                    , trunc (sysdate)
                    ,FND_GLOBAL.USER_ID
                    , trunc (sysdate)
                    ,FND_GLOBAL.LOGIN_ID              
                  --  commit;
                  DBMS_OUTPUT.put_line
                    '-' || 'After ap_invoices_interface'
            EXCEPTION
            WHEN OTHERS THEN
              ROLLBACK;
              lf_err_flag := 1;
              lv_err_msg  := lv_err_msg || ' ' || 'error loading CONTAINER_ID-' || P_CONTAINER_ID || SQLERRM;
              raise_application_error(-20001, lv_err_msg);
            END;
        ELSE
              raise_application_error(-20001, lv_err_msg);
        END IF;
      END upload_data;                        
    END XXPO_COSTFACTS_WEBADI_PKG;

  • How to show a error message to user from report.

    I don´t wanna to go in a form builder to create a simple form for just two inputs.
    I have put two inputs into reports parameter screen, but I know that reports is not like forms, I cannot use SET_ITEM_PROPERTY to hide an element or put a runtime message to a label.
    How can I show an error message when I validate an input from user, when some input trigger raise?
    Thanks a lot!

    The SRW.message doesn't show me no alert on report 10g !!!
    is there any restriction that can be made to block the displaying of the alert on the web environnement?
    thanks..

  • ADF-BC/JSF How to display acustom error message from a backing bean

    Hi all
    Can anybody provide an example of how to manipulate the list of error messages from a JSF backing bean.
    In my code I use a different navigation case and this directs the user to the page displaying the error message but I am sure that there must be a more elegant way.
    Thanks in advance
    Thanassis

    Thanks Kris
    I think you 've put me on the right track here, it's just that in my case what I really want to do is prevent my users from editing records not belonging to their own group. This is done via a selectOne table component and then the backing bean code tests if the value #{row.UserGroup} matches the #{bindings.LoggedOnUserGroup.inputValue}. If the values are equal then the beans returns the navigation case to the edit page. Otherwise it returns the navigation case for the "cannot edit" page.
    So what I am thinking is to return null and somehow raise the right kind of exception in order to display the error in the af:messages tag.
    Thanassis

  • How to get the Error message from hr_contact_rel_api.create_contact

    Hello All,
    I am using this API for creating a contact for an employee in R12.
    But, some times i am not able to create the contact successfully, and Unable to figure out proper reason for record erroring out.
    I dont find any out msg data variables for this API in order to check it for the Error.
    So, can any body help me how to get the ERROR Message for such APIs.
    Thanks inAdvance,
    Amarnadh Js

    user12243334 wrote:
    solved the issue on myselfIt would be nice if you could share the solution with us.
    Thanks,
    Hussein

  • How to capture the error messages from incorrect session?

    Hi SDNs.,
    i am using BDC Session method to update transaction FB01. So my job runs daily. here i want to capture the error messages and i want to send it to mail.  Can i capture the unprocessed records???
    i think FM <b>SO_NEW_DOCUMENT_ATT_SEND_API1</b> used for sending mail? but how to capture mes or records?
    or Is there any other way to Do it???
    Thankning you.,
    Ram

    Hi Ramakrishna,
       Once you create the session, Process the session using
    the report RSBDCSUB using submit statement.
    It would list out the erroneous records.
    Hence, while submitting, just say submit RSBDCSUB in background and export output list to memory.,
    Then you can retrieve the list from memory using the FM LIST_FROM_MEMORY into the internal table and finally send the email by the fm you have already mentioned.
    Regards,
    Ravi

  • How do I suppress error messages from displaying in GPIB calls?

    I use GPIB Read and GPIB Write to access instruments on the bus. Both vi's supply status on error out.
    I sometimes call these routines in situations where I do NOT want to reap error status, so I leave the error out terminal unconnected.
    Here's the problem: I get error popups that display the GPIB errors (when there are some)  even though I don't connect the error out terminals to simple error or general error.
    How can I suppress the error messages??? I do NOT want them to display...
    As always, thanks in advance for the assist!!!

    PROBLEM SOLVED.
    Thanks gentlemen. But... now I have to defend myself!
    1. I have both old non-488.2 and newer 488.2 instruments on the same bus. When I send *IDN? to the old instruments, they generate errors. When I send model-specific (non 488.2) commands to the newer stuff, they sometimes error. I have to 'search' the bus and identify specific instruments (by mfg/model) that I'm looking for; I don't know what address they're at. So I go thru a loop (the index is the GPIB address) and for each address I try the old-style probe; if it fails, the new style; if neither succeeds, no one is home at that address. The problem is that in cases where I try the wrong probe for the device first, it frequent gets 'trapped' in the input buffer of that device causing it to incorrectly respond to its correct probe when I finally get to it. So I have to clear the device before sending it the probe to make sure its listening. Can't use *CLR since many devices don't recognize it; and since I can't send a command (yet) because the device is screwed up. So.... I figured out what I have to do to get the devices listening. The NEAT-3xx controllers are happy *after* they receive a null command with a LF (EOS) character - but they generate errors while processing the digital enema just described. The HP spectrum analyzers I use work fine when they get *IDN?, but generate an error on the bus when they receive the probe designed to get the NEAT controller to respond. So what I do is always send an EOS character first to each address before each probe - and then issue a GPIB read. I ignore the errors generated, and the data returned. Then when I probe, I always get a good response (if the probe type matches the device!) instead of an artifact from the garbage the instrument had to listen to. It's like drinking a beer after your wife calls you and nags - it clears your head and makes you ready to move forward. So now you know why sometimes I wanna ignore errors, but thanks for asking.
    2. Why don't I use VISA? Well, find me a VISA driver for the NEAT-3xx family of controllers, and I will... I use raw GPIB reads/writes (and nothing else) in my 'scan the bus and probe each address' loop described above. I use raw GPIB commands for the NEAT controllers, and VISA for the HP. You guys designed this stuff, not me... What I don't know (and what you might help me with) is whether there's a 'raw' interface that allows you to talk to instruments using VISA calls when there is NOT a VISA driver for the device... kinda like "I wanna use the GPIB read/write, but use the VISA interface so all my code looks the same" deal...
    Thanks again!

  • Bw report to show all error message from an infopackage

    Dears Experts,
    I am looking for a way to analyze within a BW reports (a specific one or already existing in a BI content) all errors messages generated by an infopackage and stored within the status field of a PSA. Does someone have any feedbacks or ideas on that?
    Thanks in advance,
    LL

    Thanks Sam,
    And how to retrieved detailled message regarding each wrong status?
    LL

  • How to get the error message from a AWS code to display on the portal

    I implemented IAuthProvider, it works, within the code when authentication fails, I threw AccessDeniedException(customMessage) but when the login fails, the login screen always display the "You could not be logged in to the portal." error message, how can I get it to display the custom message? Am I throwing the wrong exception?
    TIA.

    Simpler? Uhm as far I know there doesn't exist any magic and you have just to write one or two lines of Javascript code yourself. Is that hard?

  • DSEE 6.3: how to show detailed error messages to ldap clients?

    Is there any possibilty in DSEE 6.3 to send to ldap clients detailed error messages about - for example - missing required attributes in ldap add operation?
    I don't have access to ldap server's logs, so I loose a lot of time trying to figure out "which of 40 attributes I sent to server is bad?"...

    Thank you for reply.
    I know that I can view schema, but I need the functionality which is available in relational databases. When I try to store bad field value in database table, I get descriptive error message: "field XYZ has bad value". In DSEE I get "schema violation" or other cryptic message.
    It's very hard to track the problem if you operate on 30 or more attributes. Which one causes error?
    I see that this functionality is available in DSEE backend (error logs are descriptive). How to turn on this for clients?
    If it is not possible, I will try to write special software module which will double DSEE functionality and check attributes before storing them in DSEE.

  • Catch Error message from WLI Process

    Hi,
    I have a big application developed with WLI and I wanna know if there is a way to recive error messagem from this application throught the ALSB. The ALSB call a WLI jpd procces by BussinesProxy.
    For example, when occurs a database error into JPD proccess, I want to receive this error and log it or pass it to another application to nofify error and so one.
    All the procces in my WLI application were developed with ClientRequestWithReturn and I am thinking in put in this return one tag called <ERROR>ORACLE-0002 - JDBC ERROR bla bla</ERROR> in case off error and <ERROR>FALSE</ERROR> when everythig went OK at the WLI Application.
    Is there another way to do this?
    Thanks!
    Edited by denimar at 05/12/2008 2:33 PM

    Hi,
    Try throwing an RPC SoapFaultException from your JPD. That should make it back to ALSB as an error and does not count as "Unhandled Exception" by WLI. Although SoapFaultExceptions are a pain to create.
    Otherwise passing an error element back in the body has worked fine for me in the past.

  • How to Show String Error Message in SAP status bar?

    Hello All,
    I am doing some custom check in SBO_SP_TransactionNotification and Setting
       SET @error = -1
       SET @error_message='Duplicate Web Order ID'
       select @error,  @error_message 
    But in SAP interface it is only showing -1 in status bar, I could not show error_message in status bar. How it could be achieved.
    Thanks in advance

    Hi
    try this
    SET @error = 1
    SET @error_message='Duplicate Web Order ID'
    select @error, @error_message
    Regards
    Arun

  • How to return an error message from a zbapi that I have written

    Hello Friends
    I have written a simple ZBAPI that I have created. Here is the simple code that I have written which just inserts some value. How can I send information back using BAPIRETURN if the insertion was not successfull.
    Is it enough just to define BAPIRETURN in the EXPORT TAB or is there any extra coding I have to do?
    Your response or feedback will be greatly appreciated.
    Following is the simple code of insertion that I have written.
    FUNCTION ZBAPI_ADD_CONFIG.
    ""Local Interface:
    *" IMPORTING
    *" VALUE(CONFIG_DATA) TYPE ZCONFIG_STRUCTURE
    *" EXPORTING
    *" VALUE(MESSAGE) TYPE BAPIRETURN
    tables: ZDAMPER_CONFIG.
    ZDAMPER_CONFIG-CONFIG_ID = CONFIG_DATA-CONFIG_ID.
    ZDAMPER_CONFIG-APPL_FILE_NAME = CONFIG_DATA-APPL_FILE_NAME.
    ZDAMPER_CONFIG-APPL_VER = CONFIG_DATA-APPL_VER.
    ZDAMPER_CONFIG-CONFIG_DESC = CONFIG_DATA-CONFIG_DESC.
    ZDAMPER_CONFIG-CONFIG_EXT_QTY = CONFIG_DATA-CONFIG_EXT_QTY.
    ZDAMPER_CONFIG-CONFIG_STATUS = CONFIG_DATA-CONFIG_STATUS.
    ZDAMPER_CONFIG-CONFIG_TYPE = CONFIG_DATA-CONFIG_TYPE.
    ZDAMPER_CONFIG-CONFIG_UFLD_1 = CONFIG_DATA-CONFIG_UFLD_1.
    ZDAMPER_CONFIG-CONFIG_UFLD_2 = CONFIG_DATA-CONFIG_UFLD_2.
    ZDAMPER_CONFIG-CONFIG_UFLD_3 = CONFIG_DATA-CONFIG_UFLD_3.
    ZDAMPER_CONFIG-CONFIG_UFLD_4 = CONFIG_DATA-CONFIG_UFLD_4.
    ZDAMPER_CONFIG-CONFIG_UFLD_5 = CONFIG_DATA-CONFIG_UFLD_5.
    ZDAMPER_CONFIG-CONFIG_VALID = CONFIG_DATA-CONFIG_VALID.
    ZDAMPER_CONFIG-CRT_TS = CONFIG_DATA-CRT_TS.
    ZDAMPER_CONFIG-CRT_USER_ID = CONFIG_DATA-CRT_USER_ID.
    ZDAMPER_CONFIG-PDCT_ID = CONFIG_DATA-PDCT_ID.
    ZDAMPER_CONFIG-PROSPECT_ID = CONFIG_DATA-PROSPECT_ID.
    INSERT ZDAMPER_CONFIG.
    ENDFUNCTION.

    Just declaring the return parameter is not enough. In your example you need to check the return code of the INSERT and populate the message parameter accordingly. Only then you'll get values in there.
    Regards,
    Michael

  • How to fectch the error message from popup?

    i am able to recognize pop message at the the time recording byt at the time of playback it's unable to find that.

    When u call a BAPI there will be Return structure. u need to pass the internal table to that function module. when the function module is executed the internal table is filled with the messages. u can loop at that internal table where message type is 'E' and process the message.
    Check this :
    DATA:IT_PERSONALDATA LIKE STANDARD TABLE OF BAPIKNA101_1 WITH HEADER LINE,
         IT_COPYREFERENCE LIKE STANDARD TABLE OF BAPIKNA102 WITH HEADER LINE,
         RETURN LIKE STANDARD TABLE OF BAPIRETURN1 WITH HEADER LINE.
    CALL FUNCTION 'BAPI_CUSTOMER_CREATEFROMDATA1'
      EXPORTING
        PI_PERSONALDATA              = IT_PERSONALDATA
      PI_OPT_PERSONALDATA          = PI_OPT_PERSONALDATA
      PI_COMPANYDATA               = PI_COMPANYDATA
      PI_OPT_COMPANYDATA           = PI_OPT_COMPANYDATA
      PI_CONSUMEREN                = PI_CONSUMEREN
        PI_COPYREFERENCE             = IT_COPYREFERENCE
      PI_CREDIT_CONTROL_FLAG       = PI_CREDIT_CONTROL_FLAG
    IMPORTING
       CUSTOMERNO                   = V_CUSTOMERNO
       RETURN                       = RETURN.
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
      EXPORTING
        WAIT = 'X'.
    APPEND RETURN.
    LOOP AT RETURN.
      WRITE:/ RETURN-TYPE, RETURN-MESSAGE.
    ENDLOOP.
    Regards,
    Swathi

  • How ro send error message from BADI to BAPI

    i have a BADI which is triggered from a BAPI.This BADI has only importing and changing parameters.How can i send error message to BAPI.Please reply at the earliest.
    High points can be expected.

    Hi Arshi,
         Please check whether the following link is of any use to you,
    how to capture the error message from bapi
    Best Regards.
    Reward points if it is helpful.

Maybe you are looking for

  • Business One Client - Automating DB login..

    Hi, my apologies if this is the wrong area to post this, please feel free to move to the correct section if here is incorrect. I'm wondering if anyone knows of a way to setup the SAP client so that a new user doesn't have to enter (or have entered) t

  • LV prototype as an add-on to a text editor

    Hello. I'm new to the LV community online. I'm looking for advice on how to use LV as a stand alone text editor or preferably an add-on for editors like Word, Lasik, or even Notepad. What I'm trying to do is make a prototype of a text editor, but I d

  • Essbase Date issue

    Hi, I have an essbase cube integration with OBIEE. Now, I have dates as measure in Essbase. When I fetch those dates in OBIEE, they appear to be in numeric format. How to show those dates as date format? Any idea? Thanks

  • Storing XML Document as Data question...

    Hi, I read the document from http://technet.oracle.com/tech/xml/info/htdocs/otnwp/about_oracle_xml_products.htm and this document mention that can store XML Document as Data. How does it work? and is there any example code tha I can try? Thanks for y

  • Is it possible to create Flash

    Hi I am new to AIR ,Is it possible to create Flash Video Encoder type application using AIR ?