How can I capture error message when I invoke BO or BS in Service Script

I want to check for particular error message number in the service script after I invoke BO.

Not sure what is your objective to do that, but I doubt you have any control over that, alternatively you can look at BO Lifecycle if it may meet your requirements.

Similar Messages

  • How can I get error message when calling pl/sql

    Hi,
    I call a pl/sql java wrapper generated by Rosetta.
    public static void startWf(
    OracleConnection _connection,
    BigDecimal p_goal_header_id,
    BigDecimal p_submiter_userid,
    String p_commit,
    String p_init_msg_list,
    String [] x_return_status,
    BigDecimal [] x_msg_count,
    String [] x_msg_data
    ) throws SQLException
    the pl/sql is written by the standard way of OAF backend,
    PROCEDURE start_wf ( p_goal_header_id in number
              ,p_submiter_userid     in number
    ,p_commit in varchar2 DEFAULT FND_API.G_TRUE
              ,p_init_msg_list in varchar2 DEFAULT FND_API.G_FALSE
    ,x_return_status out varchar2
    ,x_msg_count out number
    ,x_msg_data out varchar2);
    when running this procedure in TOAD, in case of error, following script can print error message:
    if l_return_status <> 'S' then
    dbms_output.put_line('Result');
    dbms_output.put_line('status: '||l_return_status);
    dbms_output.put_line('error count: '||l_msg_count);
    dbms_output.put_line('Loop Error');
    dbms_output.put_line('Err: '||fnd_msg_pub.get(-1,p_encoded=>'F'));
    for i in 2..l_msg_count loop
    dbms_output.put_line('Err: '||fnd_msg_pub.get(p_encoded=>'F'));
    end loop;
    end if;
    if l_return_status = 'S' then
    dbms_output.put_line('Success');
    end if;
    end;
    My question is when calling pl/sql java wrapper from Java, in case of Error, return_status="E", then in order to get exact error msg, is there any equivalent java method such as get error from pageContext or OADBTransaciton.. etc instead of calling again pl/sql fnd_msg_pub.get to get error msg?
    thanks
    Lei

    Lei,
    You can use
    checkErrors(OADBTransaction pTx,
    int pMessageCount,
    String pReturnStatus,
    String pMessageData)
    method in OAExceptionUtils Class.For details look at javadoc of OAExceptionUtils Class.
    --Mukul                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • How can I overcome error message "missing or invalid personalisation info" when trying to re-install Elements 3. I need to re-install Elements 3,

    How can I overcome error message "missing or invalid personalisation info" when trying to re-install Elements 3. I need to re-install Elements 3,
    @ Alternatively purchase an Elements 9 or 10.  Holding Elements13 but that needs OS 10.8 (Lion) and much of my data is in Appleworks, which is incompatble
    Apologies if I am using this incorrectly.  My first time here

    Hi.  Thanks for coming back to me.  I am using Mountain Leopard (OSX 10.6.8).  Had major problem and have re-formatted my H/D and re-installing software.  Must have lost a file in the process.  Would upgrade to Lion only I have a lot of vital data in Officeworks, but that is incompatible with Lion.

  • How to Customize the Error Message when a user enters a wrong password

    Hi Gurus
    Pls Help out me that
    How to Customize the Error Message when a user enters a  wrong password ?
    I need the Help to Customize the messege ?
    How  we can do
    Pls Tell me indetail

    Firstly many appologies I have given you slightly duff information here, I had been editing the file above for email notification texts not logon / password texts.
    The file you need is actually a portal .par file and can be found in the deployment/pcd directory.  The file you need is called com.sap.portal.runtime.logon.par (with a .bak extension at this time). 
    You need to copy this file to a local machine and unzip the contents.  The files you need to edit are contained in a further jar file which can be found in the \PORTAL-INF\lib directory - it is called umelogonbase.jar.  It too needs to be extracted and the file you need to edit is logonMessages_xx.properties (where the xx is the language code you are using).
    In this file you will find lines like:
    NUMERIC_REQUIRED=Invalid new password (must contain digits)
    You need to identify which texts you wish to modify and edit the text to the right of the equals sign.  Once complete rezip the umelogonbase.jar file and then the com.sap.portal.runtime.logon.par (this time name it without the .bak extension.  Then logon to the portal and upload the new par and you should see your new logon messages.
    Haydn

  • How can we trigger error message in BADI PARTNER_UPDATE

    Hi All,
    I have implemented a BADI PARTNER_UPDATE. In this I have validation ( Error Message ) on saving buisness partner.
    It is giving the error message but it freeze all the fields. On pressing enter it goes for short dump.
    In short dump it gives error The COMMIT WORK processing must not be interrupted.
    Kindly suggest me that how can we pass error message and it also does not freeze the fields.
    Regards,
    Narendra Goyal

    Hi Narendra,
                          How are you trying to display message.
    Is it using message service class instance of message statement (which should not be used, as that is for GUI messages) or using collect FM or by adding to genil message class container.
      Please try different approaches and see what works for you.
    Thanks,
    Rohit

  • How can I remove unread messages when I know I don't have any?

    How can I remove "unread messages" when I know I do not have any?

    Hit the num lock button again. Num lock forces only the numeric keypad underlying keys to work as a  numeric keypad, and the rest of the keyboard won't work.  Unfortunately Apple stopped including the numeric keypad hidden keyboard key labels on its keyboards.  They used to include them.  They are known as mouse keys: http://docs.info.apple.com/article.html?path=Mac/10.5/en/cdb_moskys.html

  • How can I fix error -1202 when trying to purchase I tunes?

    How can I fix error-1202 when trying to purchase itunes?

    If you used iTunes on your computer to download the app, suggest you download the app using your iPad. Should then install correctly.
     Cheers, Tom

  • Show error message when Install SM7 in step 4 execute Service

    Hi All
    Show error message when Install SM7 in step 4 execute Service.
    Anyone can help me fix the problem pls!
    Regards
    Kevin
    Start the setup task 'Determination of SID and InstanceNumber for Diagnostics agent' ...
    Information for SAPInst:
    sid=SMD
    number=98
    2009.06.08 11:16:59
    Task completed with status 0
    INFO 2009-06-08 11:17:00.0
    Execute step initSystem of component |NW_Onehost|ind|ind|ind|ind|0|0|SA_Integrated|ind|ind|ind|ind|7|0
    INFO[E] 2009-06-08 11:17:00.250
    FSL-02077  File system export (share) saploc does not exist.
    INFO 2009-06-08 11:17:00.484
    Execute step initED of component |NW_Onehost|ind|ind|ind|ind|0|0|SA_Integrated|ind|ind|ind|ind|7|0
    INFO[E] 2009-06-08 11:17:00.718
    FSL-02077  File system export (share) saploc does not exist.
    INFO[E] 2009-06-08 11:17:05.265
    FSL-01027  Account user="hk-is-000818\smdadm" does not exist.
    INFO 2009-06-08 11:17:05.609
    Execute step createOSUser of component |NW_Onehost|ind|ind|ind|ind|0|0|SA_Integrated|ind|ind|ind|ind|7|0
    INFO[E] 2009-06-08 11:17:05.875
    FSL-02077  File system export (share) saploc does not exist.
    INFO[E] 2009-06-08 11:17:08.187
    FSL-01027  Account user="hk-is-000818\smdadm" does not exist.
    INFO[E] 2009-06-08 11:17:10.531
    FSL-01027  Account user="hk-is-000818\smdadm" does not exist.
    INFO[E] 2009-06-08 11:17:12.859
    FSL-01027  Account user="hk-is-000818\smdadm" does not exist.
    INFO[E] 2009-06-08 11:17:15.156
    FSL-01027  Account user="hk-is-000818\smdadm" does not exist.
    WARNING[E] 2009-06-08 11:17:20.281
    FSL-01002  Unable to create account hk-is-000818\smdadm. HRESULT=0x80005009
    INFO 2009-06-08 11:17:20.562
    Execute step initOS400Parameters of component |NW_Onehost|ind|ind|ind|ind|0|0|SA_Integrated|ind|ind|ind|ind|7|0
    INFO 2009-06-08 11:17:20.781
    Execute step initING_DI of component |NW_Onehost|ind|ind|ind|ind|0|0|SA_Integrated|ind|ind|ind|ind|7|0
    INFO 2009-06-08 11:17:22.312
    Creating file C:\Program Files\sapinst_instdir\SOLMAN\SYSTEM\ORA\CENTRAL\AS\summary.html.
    INFO 2009-06-08 11:17:28.828
    Execute step ntpatch of component |NW_Onehost|ind|ind|ind|ind|0|0|NW_First_Steps|ind|ind|ind|ind|1|0|NW_Update_DLLs|ind|ind|ind|ind|3|0
    INFO 2009-06-08 11:17:29.093
    Node C:\WINDOWS\system32 already exists.
    INFO 2009-06-08 11:17:31.0
    Execute step runChecksStep of component |NW_Onehost|ind|ind|ind|ind|0|0|NW_Onehost_System|ind|ind|ind|ind|2|0|PrerequisiteCheckerDialogs|ind|ind|ind|ind|3|0
    INFO 2009-06-08 11:17:32.390
    Execute step createAccounts of component |NW_Onehost|ind|ind|ind|ind|0|0|NW_Onehost_System|ind|ind|ind|ind|2|0|NW_Users_Create_Do|ind|ind|ind|ind|5|0
    INFO 2009-06-08 11:17:33.171
    Nothing to do. User privileges are an empty string.
    INFO 2009-06-08 11:17:33.203
    Nothing to do. User privileges are an empty string.
    INFO 2009-06-08 11:17:33.250
    Nothing to do. User privileges are an empty string.
    INFO 2009-06-08 11:17:33.281
    Nothing to do. User privileges are an empty string.
    INFO 2009-06-08 11:17:33.328
    Nothing to do. User privileges are an empty string.
    INFO 2009-06-08 11:17:33.375
    Nothing to do. User privileges are an empty string.
    INFO 2009-06-08 11:17:33.421
    Nothing to do. User privileges are an empty string.
    INFO[E] 2009-06-08 11:17:35.703
    FSL-01027  Account user="hk-is-000818\SAPServicePAS" does not exist.
    WARNING[E] 2009-06-08 11:17:40.796
    FSL-01002  Unable to create account hk-is-000818\SAPServicePAS. HRESULT=0x80005009
    WARNING[E] 2009-06-08 11:17:40.796
    MUT-03025  Caught ESyException in Modulecall: ESAPinstException: error text undefined.
    ERROR 2009-06-08 11:17:40.843
    FCO-00011  The step createAccounts with step key |NW_Onehost|ind|ind|ind|ind|0|0|NW_Onehost_System|ind|ind|ind|ind|2|0|NW_Users_Create_Do|ind|ind|ind|ind|5|0|createAccounts was executed with status ERROR .

    hi Subhash
    tkx it work
    but I got another error when install afterwards. do u know how can fix , many tkx
    Kevin
    WARNING 2009-06-09 20:39:02.421
    Execution of the command "D:\oracle\product\10.2.0\db_1\bin\lsnrctl start LISTENER" finished with return code 1. Output:
    WARNING[E] 2009-06-09 20:39:02.437
    CJS-00095  Error return code. DIAGNOSIS: Return code 1 of executable D:\oracle\product\10.2.0\db_1/bin/lsnrctl indicates an error. SOLUTION: See log file lsnrctl.log for details.
    WARNING[E] 2009-06-09 20:39:02.437
    CJS-00095  Error return code. DIAGNOSIS: Return code 1 of executable D:\oracle\product\10.2.0\db_1/bin/lsnrctl indicates an error. SOLUTION: See log file lsnrctl.log for details.
    ERROR 2009-06-09 20:39:02.468
    FCO-00011  The step StartListener with step key |NW_Onehost|ind|ind|ind|ind|0|0|NW_Onehost_System|ind|ind|ind|ind|2|0|NW_CreateDBandLoad|ind|ind|ind|ind|10|0|NW_CreateDB|ind|ind|ind|ind|0|0|NW_OraDBCheck|ind|ind|ind|ind|0|0|NW_OraDBMain|ind|ind|ind|ind|0|0|NW_OraDBStd|ind|ind|ind|ind|3|0|NW_OraClient|ind|ind|ind|ind|3|0|NW_OraNetworkSrv|ind|ind|ind|ind|1|0|StartListener was executed with status ERROR .

  • How to set the error message when LIV amount over PO amount ?

    Dear experts :
    I create a PO without GR base IV , and I have setting limit in OMR6.
    I hope system show error message when the LIV amount over PO amount .
    But in fact , when LIV amount over PO amount , the system didn't show any message.
    Hope someone can tell me ,besides OMR6, what setting I need do?
    Thanks a lot.

    Please use T code OMR6 & assign tolerance key for plant & Tlky -> BD TO "zero".
    Regards
    Bhavesh Mistry

  • How do I restore error message when there's not enough room to sync?

    By default, iTunes displays an error message when there is not enough room on the iPod to store all the files that are scheduled for synchronization.
    This message also has a checkbox for "Do not remind me again" (or something to that effect). The other day, I stupidly checked this box, and now I don't know how to restore the default setting (i.e., to display the error message). Instead, iTunes just silently does nothing -- with no diagnostic -- if it finds that there's not enough room on my iPod to complete a sync.
    Any ideas?

    Right click on your iPod in iTunes and select the Reset Warning option.

  • TS3694 how can i overcome error message 1015 which pops when trying to restore an iphone 3g?

    While doing a restore of my 3g iphone, i get error message 1015, and the phone is frozen at the loading mode. can someone help me fix this problem with a windows 7 ?

    Joebats709 wrote:
    ...  i get error message 1015, ...
    Unauthorized modification of iOS
    http://support.apple.com/kb/HT3743
    ERROR 1015...
    This Error Code is indicative of the Device being jailbroken / Hacked...
    Sorry... But...
    The discussion of Jailbroken Devices is against the Terms of Use of this Forum.
    You will need to look elsewhere.

  • How to pop up error message when printing invoice / delivery note

    i have a problem that when I'm going to print the invoice (VF03), i have to check the field displayed e.g. port of loading, final destination should not be empty.If both are empty, when user is ready to print, then alert message is displayed (e.g. Please return to the invoice to fill in the port of loading / final destination) and is not allowed to print it out
    i'm using Zxxxxx program (including the subroutine)  and SAPScript form Zxxxxxx ,in the form, i use "PERFORM XXX IN PROGRAM ZXXXX" to call the parameter,so how can I do the alert message and stop the printing process and Do i write a checking subroutine in the program and perform that subroutine , so that when that required fields are empty, then show alert when printing?
    PLs advise

    Hi Sky,
    i wont suggest you to give a pop up as if you try and execute the invoice in background it would cause termination.
    Standard way of doing it is by updating nast entries. You can refer below mentioned pseudo code. You can also refer to any standard driver program & form attached to a output type for  more code.
    The below code would show your output condition in error status if your condition fails.
    **Do you validations in the print program and  check for return code.
      IF SY-SUBRC NE 0.
        PERFORM PROTOCOL_UPDATE.
        RETCODE = 1.
        EXIT.
      ENDIF.
          FORM PROTOCOL_UPDATE                                          *
          The messages are collected for the processing protocol.       *
    FORM PROTOCOL_UPDATE.
      CALL FUNCTION 'NAST_PROTOCOL_UPDATE'
           EXPORTING
                MSG_ARBGB = SYST-MSGID
                MSG_NR    = SYST-MSGNO
                MSG_TY    = SYST-MSGTY
                MSG_V1    = SYST-MSGV1
                MSG_V2    = SYST-MSGV2
                MSG_V3    = SYST-MSGV3
                MSG_V4    = SYST-MSGV4
           EXCEPTIONS
                OTHERS    = 1.
    ENDFORM.
    Hope this Helps you.
    Sumit

  • How to raise an error message when duplicate value is entered in a tabular field column? Basically not allow duplicate value at the form level.

    Hi all,
    I have created a form with one data block MATURED_FD_DTL which looks like below:
    ACCT_FD_NO
    CUST_CODE
    FD_AMT
    FD_INT_BAL
    TDS
    CHQ_NO
    ADD_FD_AMT
    P_SAP_CODE
    P_TYPE
    CREATE TABLE MATURED_FD_DTL
      ACCT_FD_NO    VARCHAR2(17 BYTE)               NOT NULL,
      CUST_CODE     NUMBER(9),
      FD_AMT        NUMBER(15),
      FD_INT_BAL    NUMBER(15),
      TDS           NUMBER(15),
      CHQ_NO        NUMBER(10),
      ADD_FD_AMT    NUMBER(15),
      P_SAP_CODE    NUMBER(10),
      P_TYPE        VARCHAR2(1 BYTE)
    For MATURED_FD_DT.ACCT_FD_NO, Trigger: KEY_NEXT_ITEM, I have written the following code:
    DECLARE
    V1 NUMBER;
    V2 NUMBER;
    BEGIN
    V1:=:MATURED_FD_DTL.ACCT_FD_NO;
    MESSAGE('V1:'||V1);
    MESSAGE(' ');
    END;
         GO_ITEM('MATURED_FD_DTL.CUST_CODE');
    This is just a dummy code.
    When ever i enter the value in the field of ACCT_FD_NO, it pops up a message saying "V1:Value of ACCT_FD_NO",
    So i want to store that value .
    Compare them & if it is egual, it should pop up a message saying duplicate value is entered and must not allow to enter, at form_level.
    So how can I compare the ACCT_FD_NO value between FIRST_RECORD and NEXT_RECORD ??
    Help Me .
    Thank You.
    Oracle Forms 6i.
    Oracle 9i.

    Thank You HamidHelal.
    Actually before posting the code, I went through the first link you have mentioned. I tried also, it is quite tedious procedure, however i dint get the proper result, may be i have done some mistake. Anyways , can you tell me how do i check in database table, if a value exists OR IF VALUE FOUND & then message and raise form trigger failure; something like below.
    IF :MATURED_FD_DTL.ACCT_FD_NO EXISTS
    THEN MESSAGE('YOU HAVE ENTERED AN EXISTING OR DUPLICATE VALUE');
              MESSAGE(' ');
    RAISE FORM_TRIGGER_FAILURE;
    END;
    OR
    IF :MATURED_FD_DTL.ACCT_FD_NO FOUND
    THEN MESSAGE('YOU HAVE ENTERED AN EXISTING OR DUPLICATE VALUE');
              MESSAGE(' ');
    RAISE FORM_TRIGGER_FAILURE;
    END;
    Is there any equivalent in the form in oracle forms 6i?? Please let me know how do i do this??

  • Can we get error message when a component is entered twice in BOM??

    Hi,
    I have a BOM with around 150 components.
    Can we get an error or warning message when ever a component is entered twice in the component list????
    Thanks for your views.
    Naveen.

    In addition to the above points about enhancement PCSD0005, here is some more information that you may find useful.
    - The enhancement is called when you press enter after inserting a component.
    - The component name is stored in field rc29p-idnrk
    - Your programmer should know if it is possible to transfer this name to a table where it can be retained. Then when you add the next component, the exit can check against the previously inserted components. With a lot of components, you may get performance problems doing this though....
    Exit is called here:
    SAPLCSDI     FORM     MATERIAL_PRUEFEN
    CALL FUNCTION 'EXIT_SAPLCSDI_006'
       call customer-function '006'
            exporting                                          "note 611155
                 i_rc29p  = rc29p                              "note 611155
            importing
                 msg_data = msg_tmp
                 t_msg_data = lt_msg                           "note 942798
            tables
                 mat_bom_allocation = mastb_tmp
            changing

  • In Ztable creation, How can we display error message for a 'To date' field.

    Hi all,
    I have a requirement like this.
    There r two fields in ztable. From date and To date.
    The field 'To date' in table ZKM007 is taking before date than From date field.
    To date should always be greater than from date i need to throw an  error or don't  allow to enter date  if date is less than From date.
    How can we do this?
    Can any one help on this?
    Rewards to all.
    Thanks & Regards,
    Anu.

    I have written below code at event "Creating a new entry" (05) in table maintainance generator.But it is not working. If we give the to date < From date ,
    it is saving.
    Can any one help on this code? Pls Give me code And which event i have to put this?
    ***INCLUDE LZEXE3F01 .
    FORM AT_entry.
    IF ZEXE3-TODATE LT ZEXE3-FROMDATE.
      MESSAGE I001(0) WITH 'ENTER TO DATE GREATER THAN FROM DATE'.
    ENDIF.
    ENDFORM.
    Rewards to all.
    thanks
    Anu.

Maybe you are looking for

  • Object Custom Program Name of class RE and language EN does not exist

    Hi All,          We are getting this bbelow error while running a custome program , Object <Custom Program Name> of class RE and language EN does not exist Do any one has faced this similar issue earlier. Regards, Sen

  • Meta tag question(s)

    I am curious about a meta tag I came across: <meta name="description" content=" "> <meta name="keywords" content=" "> <meta name="revisit-after" content="31 days"> <meta name="robots" content="all"> <meta name="url" content=" http://www.cariholdorf4h

  • Columns in Line Chart

    Hi Guys,              I have a peculiar behavior in my dashboard. See the attachment below. I am getting the columns in my line chart.  I have developed this dashboard few months back,exported to Launchpad and generated SWF file. Everything was fine

  • Can we Join Fact to Fact obiee11g

    Can we Join Fact to Fact obiee11g? Regards kumar

  • Custom jtable editors

    Hi, I've written an application which needs to use multiple editors for the same table. Also I've modified the keyboard navigation to create a new row for certain keystrokes like TAB and ENTER. For this I've attached a KeyListener to the JTable. My p