How to retrieve errormessage in SBO_SP_TransactionNotification through SDK

I have built an addon that keeps a separated database for its own data - it's a MRPII addon and have lots of tables, so it would be impossible to create UDO for all without rewriting the whole application.
Certain operations in the addon needs two transactions, one kept for SBO connection and the other for my own database. But in some firms using our addon there are code in the stored procedure SBO_SP_TransactionNotification introduced by other third party implementations. This SP returns error code and message, leading to a cenario where the SBO transaction is automatically rolled back.
My question is : how can I retrieve this error code and message using DI API ?
I need to know when transaction fails even when it was commanded via SBO_SP_TransactionNotification. In my tests, function InTransaction acts as the transaction is stil alive and methods Add and Update for Document object returns 0, as if it was succesfull. This situation produces unbalanced data in my database, once my transaction wasnt rolled back along with SBO's transaction. So, how can my addon to detect it ?
Is there any table in SBO to keep the messages generated by SBO_SP_TransactionNotification ? It also could help ...

Hi Luis,
> Is there any table in SBO to keep the messages generated by SBO_SP_TransactionNotification ?
I guess not. But you can add SQL INSERT code to the SBO_SP_TransactionNotification to store those error messages and error codes in your own user table.
Hope it helps.
KR,
D.

Similar Messages

  • How to call the javascript file through sdk?

    I created a plugin through SDK. Now i need to call my javascript file in that plugin code(c++). Could you please advice me with some samples. This is for "Illustrator CS".
    Thanks,
    Prabudass

    I haven't the foggiest idea, except to perhaps suggest firing a script by using the AIActionManager::PlayAction command. That's assuming you can 'action' the use of a script though. If you can, it should be possible that way, if not, I have no idea.

  • Re : How to retrieve Combined Queries (RE Bean SDK) -XIR2 SP2

    Hello all,
    Hope all is well. I am kinda stuck here ...trying to retrieve Combined Queries from WebI Document. I just have 1 report , 1 DP, 1 combined query(union) with 2 nodes coming off of universe ( __NO__ Custom SQL).
    Could someone give me sample code as how to retrieve this...I was able get DP and then Query container...then kinda got lost.How do I retrieve individual query and then get more information of an individual query like DataSourceObject.
    QueryContainer qCont = dataProv.getCombinedQueries();
    int operator = qCont ();
    // getQueryContainerOperator
    // then how doi I proceed further to retrieve individual query.
    Thanks in advance,
    Sam.

    I don't have any code for retrieving the combined queries, however I have some code for retrieving the SQL from a dataprovider- it might give you an idea of how to get the combined query
    oInfoObject = (IInfoObject) oInfoObjects.get(0);
    // Initialize the Report Engine
    ReportEngines oReportEngines = (ReportEngines) oEnterpriseSession.getService("ReportEngines");
    ReportEngine oReportEngine = (ReportEngine) oReportEngines.getService(ReportEngines.ReportEngineType.WI_REPORT_ENGINE);
    // Openning the document
    DocumentInstance oDocumentInstance = oReportEngine.openDocument(oInfoObject.getID());
    DataProvider oDataProvider = null;
    SQLDataProvider oSQLDataProvider = null;
    SQLContainer oSQLContainer_root = null;
    SQLNode oSQLNode = null;
    SQLSelectStatement oSQLSelectStatement = null;
    String sqlStatement = null;
    out.print("<TABLE BORDER=1>");
    for (int i=0; i<oDocumentInstance.getDataProviders().getCount(); i++) {
         oDataProvider = oDocumentInstance.getDataProviders().getItem(i);
         out.print("<TR><TD COLSPAN=2 BGCOLOR=KHAKI>Data Provider Name: " + oDataProvider.getName() + "</TD></TR>");
         oSQLDataProvider = (SQLDataProvider) oDataProvider;
         oSQLContainer_root = oSQLDataProvider.getSQLContainer();
         if (oSQLContainer_root != null) {
              for (int j=0; j<oSQLContainer_root.getChildCount(); j++) {
                   oSQLNode = (SQLNode) oSQLContainer_root.getChildAt(j);
                   oSQLSelectStatement = (SQLSelectStatement) oSQLNode;
                   sqlStatement = oSQLSelectStatement.getSQL();
                   out.print("<TR><TD>" + (j+1) + "</TD><TD>" + sqlStatement + "</TD></TR>");
    out.print("</TABLE>");
    oDocumentInstance.closeDocument();
    Shawn

  • How to retrieve only error message through report file

    Hi,
    When there is extract/replicat abended,we need to check complete report file to see the error message.
    I would like to know is there parameter setting available ,so that we can retrieve only required error message.
    For ex. Instead of complete error message to check in report file,i need to see below meesage only,starting from "source Context".
    Source Context :
    SourceModule : [er.main]
    SourceID : [scratch/pradshar/view_storage/pradshar_bugdbrh40_12927937/oggcore/OpenSys/src/app/er/rep.c]
    SourceFunction : [get_map_entry]
    SourceLine : [9126]
    ThreadBacktrace : [11] elements
    : [ora/gg/install/replicat(CMessageContext::AddThreadContext()+0x26) [0x5f2ac6]]
    : [ora/gg/install/replicat(CMessageFactory::CreateMessage(CSourceContext*, unsigned int, ...)+0x7b2) [0x5e9562]]
    : [ora/gg/install/replicat(_MSG_ERR_DB_CLAUSE_ERROR(CSourceContext*, char const*, CMessageFactory::MessageDisposition)+0x92) [0x5b1352]
    : [ora/gg/install/replicat(get_map_entry(char*, int, __wc*, int)+0x1dd6) [0x4fcec6]]
    : [ora/gg/install/replicat [0x5497e5]]
    : [/ora/gg/install/replicat(WILDCARD_check_table(char const*, char const*, int, unsigned int*, int, unsigned int, DBString<777>*, int)+0
    x16b) [0x54b08b]]
    : [ora/gg/install/replicat(REP_find_source_file_wc(char const*, unsigned int, DBString<777>*, int)+0x350) [0x903d50]]
    : [ora/gg/install/replicat [0x90bb0d]]
    : [ora/gg/install/replicat(main+0x84b) [0x5081ab]]
    : [lib64/libc.so.6(__libc_start_main+0xf4) [0x2b87d13469b4]]
    : [ora/gg/install/replicat(__gxx_personality_v0+0x1da) [0x4e479a]]
    2012-07-09 02:20:48 ERROR OGG-00919 Error in COLMAP clause.
    --------------------------------------------------------------------------------------------------------------------------------------------------------

    Nice..i think awk is better option.
    Just one thing.awk command only displays part of the information instead of complete below information.
    Ex: egrep -q ERROR dirrpt/PODS00C1.rpt && awk '/^Source Context/,/ERROR/ { print $0 }' dirrpt/PODS00C1.rpt
    [22:00]goldengate]$ egrep -q ERROR dirrpt/PODS00C1.rpt && awk '/^Source Context/,/ERROR/ { print $0 }' dirrpt/PODS00C1.rpt
    Source Context :
    SourceModule : [ggdb.ora.sess]
    SourceID : [scratch/pradshar/view_storage/pradshar_bugdbrh40_12927937/oggcore/OpenSys/src/gglib/ggdbora/ocisess.c]
    SourceFunction : [OCISESS_try]
    SourceLine : [500]
    ThreadBacktrace : [12] elements
    : [orashare/gg/navc1/extract(CMessageContext::AddThreadContext()+0x26) [0x6705e6]]
    : [orashare/gg/navc1/extract(CMessageFactory::CreateMessage(CSourceContext*, unsigned int, ...)+0x7b2) [0x667082]]
    : [orashare/gg/navc1/extract(_MSG_ERR_ORACLE_OCI_ERROR_WITH_DESC(CSourceContext*, int, char const*, char const*, CMessageFactory::MessageDisposition)+0xa6) [0x61f2c6]]
    Where as i would like to see complete information including ERROR details as mentioned below.Do you have any awk command for this?
    Required below output:
    Source Context :
    SourceModule : [ggdb.ora.sess]
    SourceID : [scratch/pradshar/view_storage/pradshar_bugdbrh40_12927937/oggcore/OpenSys/src/gglib/ggdbora/ocisess.c]
    SourceFunction : [OCISESS_try]
    SourceLine : [500]
    ThreadBacktrace : [12] elements
    : [orashare/gg/navc1/extract(CMessageContext::AddThreadContext()+0x26) [0x6705e6]]
    : [orashare/gg/navc1/extract(CMessageFactory::CreateMessage(CSourceContext*, unsigned int, ...)+0x7b2) [0x667082]]
    : [/orashare/gg/navc1/extract(_MSG_ERR_ORACLE_OCI_ERROR_WITH_DESC(CSourceContext*, int, char const*, char const*, CMessageFactory::MessageDisp
    osition)+0xa6) [0x61f2c6]]
    : [orashare/gg/navc1/extract(OCISESS_try(int, OCISESS_context_def*, char const*, ...)+0x353) [0x5a3d53]]
    : [orashare/gg/navc1/extract(OCISESS_logon(OCISESS_context_def*, char const*, char const*, char const*, int, int, int)+0x89c) [0x5a596c]]
    : [orashare/gg/navc1/extract(DBOCI_init_connection_logon(char const*, char const*, char const*, int, int, int, char*)+0x74) [0x5931a4]]
    : [orashare/gg/navc1/extract [0x597918]]
    : [orashare/gg/navc1/extract(gl_odbc_param(char const*, char const*, char*)+0x3b) [0x597f1b]]
    : [orashare/gg/navc1/extract [0x520b96]]
    : [orashare/gg/navc1/extract(main+0x1ce) [0x52726e]]
    : [lib64/libc.so.6(__libc_start_main+0xf4) [0x2af768923994]]
    : [orashare/gg/navc1/extract(__gxx_personality_v0+0x1ea) [0x4f3aba]]
    2012-09-06 16:48:50 ERROR OGG-00664 OCI Error beginning session (status = 1017-ORA-01017: invalid username/password; logon denied).
    2012-09-06 16:48:50 ERROR OGG-01668 PROCESS ABENDING.

  • How to call the javascript  through sdk?

    I created a plugin through SDK. Now i need to call my javascript file in that plugin. Could you please advice me with some samples. This is for "Photoshop CS". Kindly help me.

    Could you please provide me an example for
    1) plugin could call JavaScript is if an automation plugin calls a script by name.
    2) And also give an example for how to call plugin through javascript.
    I am new for adobe sdk. So kindly help me.
    Thanks in advance,
    Prabudass

  • How To Add Freight Amount in Invoice Before the Invoice is Posted Through SDK

    Dear All,
    I have a requirement in SAP B1 9.0 where the user want to add the freight amount in the freight window based on an udf value automatically .
    So if there is an possibility of adding the freight amount based on an udf calculated value though SDK before the Invoice get added in the Database.
    Please suggest if this is possible through SDK or any work around for this scenario in SAP.
    Thanks & Regards,
    Amit

    Hi Amit,
    Here is a way to do it via UIAPI:
    Setting a Freight by the UI API ?
    If you need to do it via DIAPI, have a look here:
    How to update amount in freight column(INV3) of A|RInvoice through SDK
    DI Copy AP(AP Invoice) from PO(Purchase Order)
    Populating Freight Charges on Sales Order
    Freight in A/R Invoice
    Hope it helps.
    Thanks & Regards
    Ankit Chauhan

  • TS1702 The application "video converter" says that I can retrieve my converted files through iTunes.   Where and how does that happen?

    The application "video converter" says that I can retrieve my converted files through iTunes.   Where and how does that happen?

    I see an iPhone App called Video Converter but not an iPad app. When to do a search, it comes up with a whole bunch of apps so perhaps if you tell us exactly which app it is .....

  • How do load system form matrix -Inventory-Goods Issue through SDK UI &DI

    While I am accessing system form matrix -Inventory Goods Issue/ Goods Receipt, the matrix object is not accessible.
    Error is coming stating "Item 13 is invalid, where 13 is item uid for matrix.
    So,How do load system form matrix -Inventory-Goods Issue(FORM 720/-720) through SDK UI &DIAPI.
    Form Type: -720
    How to get reference of System form matrix object -Inventory-GoodsIssue.
    Some thing similar to CopyFrom functionality for -Inventory-Goods Issue.
    Currently my client requirement is as follows.
    I created a UDF ((U_ILC) Incoming Log Challan) for marketing documents. And, this field is added in the header level of Goods Reciept, Goods Issue documents.
    1. Through Inventory->Goods Receipt (ILCNo.10), items are received. Assume, M00001, M00002 are the items received with qty, price, whse, account values.
    2. Through Inventory->Goods Issue, item should be issued. In this Goods Issue Form, after entering U_ILC value as 10, pressing Tab, the GoodsIssue matrix should be loaded with the values of GoodsReceipt(IGN1 for U_ILC:10) document i.e. M00001,M00002 along with the same values as in GoodsReceipt of ILC:10.
    The code is as follows:
    If (( ( pVal.FormType = "-720" or pVal.FormType = 720) And pVal.EventType <> SAPbouiCOM.BoEventTypes.et_FORM_UNLOAD) And (pVal.Before_Action = False)) Then
                '// get the event sending form
                oForm = SBO_Application.Forms.GetFormByTypeAndCount(pVal.FormType, pVal.FormTypeCount)
                If pVal.ItemUID = "U_ILCNo" And pVal.EventType = SAPbouiCOM.BoEventTypes.et_LOST_FOCUS And pVal.Before_Action = False Then
                    SBO_Application.MessageBox("ILC No. Lost Focus")
                    oMatrix = oForm.Items.Item("13").Specific
                    oColumn = oForm.Columns.Item("1")
                    oEditItmCode = oColumn.Cells.Item(1).Specific
                    oEditItmCode.Value = "07215090x606"
                    oItem = oForm.Items.Item("U_ILCNo")
                    oEdit = oItem.Specific
                    SBO_Application.MessageBox(oEdit.String)
                End If
            End If
    3. The code
    oMatrix = oForm.Items.Item("13").Specific
    is raising error. I have used Event Logger and breakpoints to see where the code is halting.
    Help me, how to access the matrix of Goods Receipt/ Goods Issue and load based on the existing data.
    Thanks in advance

    HI
    If your code is in the SBO_Application_ItemEvent then try using this line
    oForm = SBO_Application.Forms.Item(strFormUID)
    instead of
    oForm = SBO_Application.Forms.GetFormByTypeAndCount(pVal.FormType, pVal.FormTypeCount)

  • Please can someone explain how to retrieve deleted text, I was clearing old text when one came through at the same time so was also deleted.

    Can someone please tell me how to retrieve deleted text. i was clearing old texts when a new one came through at the same time and was deleted also.  My last update was  iOS 8.1.2

    You restore from a backup that was created after the text was received but before it was deleted.
    But if you literally deleted it right after it came in, then it's not recoverable.  Have the other person resend the text.

  • How to retrieve data through table by passing date

    hi
    i hv made one table which stores email id & cureent date when entered,
    can anybody tell me how to retrieve data through table by passing today's date to last week date,so it can retrieve all email ids which are entersd in last week.
    thanks

    http://www.google.com/search?&q=sql+tutorial

  • How to retrieve the segment label setting of a Pie graph by java sdk?

    hello,
    there is a special setting for a pie graph: you can determine whether to show the segement label in a pie chart by checking the "show segment label" control under values,  data, and categogy.
    my question is, how to fetch the setting by java sdk?
    thx.

    It doesn't look like this is accessible through the SDK.  Unfortunately the SDK doesn't have a lot of access to the charting component.  You would want to look at the RAS SDK guide for what you do have access to.

  • How to disable formsetting menuitem through sdk code

    hi experts,
    I am facing bit problem while loading my udo screen ,when my screen is getting opened sap's menuitem formsetting is enable'd,My requirement is to disable the formsetting menuitem only when udo screen opens through sdk code.so,that user cannot change any of the field in the matrix.
    help would be appreciated.
    regards,
    Vijay Kumar

    Hi Vijay ,
    Try This.....
    'After Loading form
    oform=sbo_application.forms.item("ur fromid")
    sbo_application.Menus.Item("5890").Enabled = False
    Thanks
    Shafi

  • How to retrieve IMSI number of SIM card through MIDP application

    Hello
    Plz. help
    How can I get IMSI number of SIM card?
    I got javax.telephony.mobile.MobileAddress interface which specify method getSubscriptionId().
    How can i use this interface to retrieve IMSI number?
    Thanks

    hi,
    i'm also in need of these details....
    How to retrieve a IMSI number?
    How to intergrate the JTAPI / any new pack with Netbeans / WTK?
    please if any knows reply me soon...
    Thanx in advance....

  • My safari menu bar is missing --the menu bar for desktop, HD, and apps appears, but when I click on Safari, it disappears, so I can no longer see my buttons for History, etc.  I think my husband (pc user) clicked it away.  Any ideas how to retrieve it?

    My safari menu bar is missing.  The menu bar for desktop, HD, and apps appears, but when I click on Safari, it disappears, so I can no longer see my buttons for History, etc.  I think my husband (pc user) clicked it away when borrowing my computer.  Any ideas how to retrieve it?  Thanks. 

    I too was having the same problem However, I could access both the menu bar and the dock by hovering my mouse over them so it wasn't a huge problem but I prefered having it there anyway. I was not in full screen mode and I could still go into full screen mode if I wanted to.  I found the easiest solution was to just quit safai and restart it, but it might not work for you considering you couldn't access you menu bar either way.
    I found this article that allows you to hide/show the menu bar and the dock through TextEdit (didn't work for me) http://www.mactricksandtips.com/2009/07/hide-the-menubar-or-dock-in-specific-app s.html It is pretty old so it might not work for lion and a bit risky if you don't know what you're doing so I wouldn't really recommend doing it this way.
    And KSheppard, I know it's not really any of my buisness, but the way to get answers to a question isn't by insulting others and being quick-tempered. Even if you feel like you were insulted first, don't try snapping at people who aren't obligated to help you. Honestly, it just makes everything easier if everybody is cooperative and polite.

  • How do I access session data through an EJB?

    Hi
    How do I access session data through an EJB?
    I am currantly developing a Web service (using ejb's, JBoss.net and Apache Axis). A client making a call to this Web service, is expecting a bussiness-object in return. My problem is that this bussiness-object i stored in a users session data. How do I retrieve this bussiness-object from the users session.
    I have read that this does not work with httpsessions, is this true? If this is true, is it possible to store the bussiness object in a JavaBean e.g:
    <jsp:useBean id="userContextWebImpl" scope="session" class="com.ac.march.client.UserContextWebImpl">
    <%
    String key = "test";
    String value = "This is the value";
    userContextWebImpl.setValue( key, value1 );
    %>
    </jsp:useBean>
    and then retrieve this information through the EJB? Or is it possible to do this by using Statfull JavaBeans? Or can this be done through a nother solution?
    Please help!

    I have created a JavaBean with scope="application" to store some data. The data is stored when a user prefomes a spesific task.
    A different person then makes a call to a Web-Service on the server. The Web-Service then asks an EJB to retrieve the data stored in the JavaBean (servlet cotext). In other words: How do I retrieve this data from the EJB?
    I have tried with this code, but with no luck.
    (ApplicationContextWebImpl is the JavaBean)
    public static String getBookingResult( String key )
         String myResult = null;
         String myKey = key;
         ApplicationContextWebImpl applicationContextWebImpl = null;
         try
              applicationContextWebImpl = new ApplicationContextWebImpl();
              myResult = (String)applicationContextWebImpl.getValue( key );
         catch ( java.rmi.RemoteException e )
         return myResult;
    }

Maybe you are looking for

  • Balance Sheet in SE71

    In se71, I just see only heads of the balance sheet, I want to see sub heads description in the balance sheet( classical reports), pls suggest me to solve the problem

  • How to manipulate data in Diadem

    Hello everybody, I have been working on a project and faced a problem which I was actually not expecting. I am doing some counter operation of several sensor data for measuring the rotational speed of a shaft and returning the values into an array of

  • Caller screen not visible, mixed up screens on iphone

    when my phone is not in use, often times there will be two screens visible at once. for example, the ipod control will be visible on my wallpaper when i'm not even using the ipod. also, the screen doesn't always come up when someone is calling me.

  • Emails confirmations are not coming through

    Hi Many of my customers are contacting me as they are not receiving a confirmation of their order completed on adobe forms central. i have set the options on adobe to ensure that they receive an email notification reciept. But they still dont get any

  • Can you help with Download  Problem

    Trying to download Adobe Reader to Mac OSX 10.8.2.  Keep getting window that says 'waiting for other installations to complete...'  But nothing happens.....Help!